Skip to content

Commit 0873509

Browse files
HoratiuVulturclaudiubeznea
authored andcommitted
ARM: dts: lan966x: Enable sgpio on pcb8291
Enable sgpio node on pcb8291 as this is needed to be able to control the LEDs on this board. Otherwise the LEDs support on the board will not be available. On the other board pcb8309 the sgpio is already enabled because it needed to access the SFP ports. Fixes: 0b7baa1 ("ARM: dts: lan966x: add led configuration") Signed-off-by: Horatiu Vultur <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2b4337c commit 0873509

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/arm/boot/dts/lan966x-pcb8291.dts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@
6969
pins = "GPIO_35", "GPIO_36";
7070
function = "can0_b";
7171
};
72+
73+
sgpio_a_pins: sgpio-a-pins {
74+
/* SCK, D0, D1, LD */
75+
pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
76+
function = "sgpio_a";
77+
};
7278
};
7379

7480
&can0 {
@@ -118,6 +124,20 @@
118124
status = "okay";
119125
};
120126

127+
&sgpio {
128+
pinctrl-0 = <&sgpio_a_pins>;
129+
pinctrl-names = "default";
130+
microchip,sgpio-port-ranges = <0 3>, <8 11>;
131+
status = "okay";
132+
133+
gpio@0 {
134+
ngpios = <64>;
135+
};
136+
gpio@1 {
137+
ngpios = <64>;
138+
};
139+
};
140+
121141
&switch {
122142
status = "okay";
123143
};

0 commit comments

Comments
 (0)