From d1471948f336be8cd754cdc2d826e47e8d3e6c2c Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Thu, 4 Aug 2022 21:06:23 +1200 Subject: ARM: kirkwood: SBx81LIFKW: remove direct access of GPIO registers Replace code that accessed the GPIO registers directly with code that makes use of the LED_GPIO driver. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- arch/arm/dts/kirkwood-atl-sbx81lifkw.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'arch') diff --git a/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts b/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts index 4ae74f4316e..3837c8f77fe 100644 --- a/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts +++ b/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts @@ -70,6 +70,20 @@ }; }; }; + + gpio-leds { + compatible = "gpio-leds"; + + ledn { + label = "status:ledn"; + gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; + }; + + ledp { + label = "status:ledp"; + gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; + }; + }; }; &spi0 { -- cgit v1.2.3