summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-10-26 20:43:03 +0300
committerClaudiu Beznea <claudiu.beznea@microchip.com>2022-10-31 11:35:14 +0300
commit0873509ea64739a9be02e8ee7b4ff573e503ab8e (patch)
treee0e847d91c5f5095494a237c83d6c32f173e9f79 /arch/arm
parent2b4337c8409b4e9e5aed15c597e4031dd567bdd8 (diff)
downloadlinux-0873509ea64739a9be02e8ee7b4ff573e503ab8e.tar.xz
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
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/lan966x-pcb8291.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan966x-pcb8291.dts
index f4f054cdf2a8..3a3d76af8612 100644
--- a/arch/arm/boot/dts/lan966x-pcb8291.dts
+++ b/arch/arm/boot/dts/lan966x-pcb8291.dts
@@ -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 {
@@ -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";
};