0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/bus/palmbus.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Ralink PalmBus Device Tree Bindings
0008
0009 maintainers:
0010 - Sergio Paracuellos <sergio.paracuellos@gmail.com>
0011
0012 description: |
0013 The ralink palmbus controller can be found in all ralink MIPS
0014 SoCs. It provides an external bus for connecting multiple
0015 external devices to the SoC.
0016
0017 properties:
0018 $nodename:
0019 pattern: "^palmbus(@[0-9a-f]+)?$"
0020
0021 "#address-cells":
0022 const: 1
0023
0024 "#size-cells":
0025 const: 1
0026
0027 compatible:
0028 const: palmbus
0029
0030 reg:
0031 maxItems: 1
0032
0033 ranges: true
0034
0035 patternProperties:
0036 # All other properties should be child nodes with unit-address and 'reg'
0037 "@[0-9a-f]+$":
0038 type: object
0039 properties:
0040 reg:
0041 maxItems: 1
0042
0043 required:
0044 - reg
0045
0046 required:
0047 - compatible
0048 - reg
0049 - "#address-cells"
0050 - "#size-cells"
0051 - ranges
0052
0053 additionalProperties: false
0054
0055 examples:
0056 - |
0057 #include <dt-bindings/interrupt-controller/mips-gic.h>
0058 #include <dt-bindings/interrupt-controller/irq.h>
0059 palmbus@1e000000 {
0060 compatible = "palmbus";
0061 reg = <0x1e000000 0x100000>;
0062 #address-cells = <1>;
0063 #size-cells = <1>;
0064 ranges = <0x0 0x1e000000 0x0fffff>;
0065
0066 gpio@600 {
0067 #gpio-cells = <2>;
0068 #interrupt-cells = <2>;
0069 compatible = "mediatek,mt7621-gpio";
0070 gpio-controller;
0071 gpio-ranges = <&pinctrl 0 0 95>;
0072 interrupt-controller;
0073 reg = <0x600 0x100>;
0074 interrupt-parent = <&gic>;
0075 interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
0076 };
0077 };
0078
0079 ...