summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2022-11-10 20:31:05 +0300
committerFlorian Fainelli <f.fainelli@gmail.com>2022-11-10 22:41:58 +0300
commit1156e3a78bcc1e4673b3e32e98e3fd09cbc7067b (patch)
tree44c5f62028ced1ef62e4e370b1ead65d8b84ff39 /arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
parenta9865ec3e1a0886f6ddf40dd7e212d72c35b6671 (diff)
downloadlinux-1156e3a78bcc1e4673b3e32e98e3fd09cbc7067b.tar.xz
ARM: dts: bcm283x: Move ACT LED into separate dtsi
The usage of the label property for gpio-leds has been deprecated a long time ago. In bcm2835-rpi.dtsi the ACT LED uses such a label and derive it to almost every Raspberry Pi board. Since we cannot break userspace interface this property must be kept. But we can move the ACT LED into a separate dtsi and include them from the board files. This change have two benefits: - with both new refs it's now clear the LED part is included from a dtsi - new boards do not include the deprecated stuff automatically Reported-by: Alexander Dahl <ada@thorsis.com> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Link: https://lore.kernel.org/r/20221110173105.6633-3-stefan.wahren@i2se.com Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts')
-rw-r--r--arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts27
1 files changed, 14 insertions, 13 deletions
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
index f7222a28903e..3548306dfbcb 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
@@ -2,6 +2,7 @@
/dts-v1/;
#include "bcm2837.dtsi"
#include "bcm2836-rpi.dtsi"
+#include "bcm283x-rpi-led-deprecated.dtsi"
#include "bcm283x-rpi-usb-host.dtsi"
#include "bcm283x-rpi-wifi-bt.dtsi"
@@ -18,19 +19,6 @@
device_type = "memory";
reg = <0 0x20000000>;
};
-
- leds {
- led-act {
- gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
- };
-
- led-pwr {
- label = "PWR";
- gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- default-state = "keep";
- linux,default-trigger = "default-on";
- };
- };
};
&firmware {
@@ -124,6 +112,19 @@
status = "okay";
};
+&led_act {
+ gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+};
+
+&leds {
+ led-pwr {
+ label = "PWR";
+ gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
+ default-state = "keep";
+ linux,default-trigger = "default-on";
+ };
+};
+
&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;