Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 0b7baa1a307f ("ARM: dts: lan966x: add led configuration")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20221026174303.702919-1-horatiu.vultur@microchip.com

authored by

Horatiu Vultur and committed by
Claudiu Beznea
0873509e 2b4337c8

+20
+20
arch/arm/boot/dts/lan966x-pcb8291.dts
··· 69 69 pins = "GPIO_35", "GPIO_36"; 70 70 function = "can0_b"; 71 71 }; 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 + }; 72 78 }; 73 79 74 80 &can0 { ··· 122 116 123 117 &serdes { 124 118 status = "okay"; 119 + }; 120 + 121 + &sgpio { 122 + pinctrl-0 = <&sgpio_a_pins>; 123 + pinctrl-names = "default"; 124 + microchip,sgpio-port-ranges = <0 3>, <8 11>; 125 + status = "okay"; 126 + 127 + gpio@0 { 128 + ngpios = <64>; 129 + }; 130 + gpio@1 { 131 + ngpios = <64>; 132 + }; 125 133 }; 126 134 127 135 &switch {