Skip to content

Commit

Permalink
ARM: dts: lan966x: Enable sgpio on pcb8291
Browse files Browse the repository at this point in the history
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 <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
  • Loading branch information
Horatiu Vultur authored and Claudiu Beznea committed Oct 31, 2022
1 parent 2b4337c commit 0873509
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arch/arm/boot/dts/lan966x-pcb8291.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
pins = "GPIO_35", "GPIO_36";
function = "can0_b";
};

sgpio_a_pins: sgpio-a-pins {
/* SCK, D0, D1, LD */
pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
function = "sgpio_a";
};
};

&can0 {
Expand Down Expand Up @@ -118,6 +124,20 @@
status = "okay";
};

&sgpio {
pinctrl-0 = <&sgpio_a_pins>;
pinctrl-names = "default";
microchip,sgpio-port-ranges = <0 3>, <8 11>;
status = "okay";

gpio@0 {
ngpios = <64>;
};
gpio@1 {
ngpios = <64>;
};
};

&switch {
status = "okay";
};
Expand Down

0 comments on commit 0873509

Please sign in to comment.