Skip to content

Commit 48fe0fd

Browse files
cpackham-atlnzNipaLocal
authored andcommitted
dt-bindings: net: Add switch ports and interrupts to RTL9300
Add bindings for the ethernet-switch and interrupt properties for the RTL9300. Signed-off-by: Chris Packham <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent ec0c71c commit 48fe0fd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Documentation/devicetree/bindings/net/realtek,rtl9301-switch.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ description:
1414
number of different peripherals are accessed through a common register block,
1515
represented here as a syscon node.
1616

17+
$ref: ethernet-switch.yaml#/$defs/ethernet-ports
18+
1719
properties:
1820
compatible:
1921
items:
@@ -28,12 +30,23 @@ properties:
2830
reg:
2931
maxItems: 1
3032

33+
interrupts:
34+
maxItems: 2
35+
36+
interrupt-names:
37+
items:
38+
- const: switch
39+
- const: nic
40+
3141
'#address-cells':
3242
const: 1
3343

3444
'#size-cells':
3545
const: 1
3646

47+
ethernet-ports:
48+
type: object
49+
3750
patternProperties:
3851
'reboot@[0-9a-f]+$':
3952
$ref: /schemas/power/reset/syscon-reboot.yaml#
@@ -44,6 +57,8 @@ patternProperties:
4457
required:
4558
- compatible
4659
- reg
60+
- interrupts
61+
- interrupt-names
4762

4863
additionalProperties: false
4964

@@ -52,6 +67,9 @@ examples:
5267
ethernet-switch@1b000000 {
5368
compatible = "realtek,rtl9301-switch", "syscon", "simple-mfd";
5469
reg = <0x1b000000 0x10000>;
70+
interrupt-parent = <&intc>;
71+
interrupts = <23>, <24>;
72+
interrupt-names = "switch", "nic";
5573
#address-cells = <1>;
5674
#size-cells = <1>;
5775
@@ -110,5 +128,17 @@ examples:
110128
};
111129
};
112130
};
131+
132+
ethernet-ports {
133+
#address-cells = <1>;
134+
#size-cells = <0>;
135+
136+
port@0 {
137+
reg = <0>;
138+
};
139+
port@1 {
140+
reg = <1>;
141+
};
142+
};
113143
};
114144

0 commit comments

Comments
 (0)