treewide: remove default-state off for LEDs

default-state = "off" is default for LEDs, no need to specify it
explicitly.

https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/common.yaml

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
Adrian Schmutzler 2020-11-16 13:26:56 +01:00 committed by maurerr
parent ef2bee1bac
commit 2714014267
9 changed files with 6 additions and 23 deletions

View File

@ -80,7 +80,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+}; +};
--- /dev/null --- /dev/null
+++ b/arch/arm/boot/dts/imx6qdl-gw5907.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw5907.dtsi
@@ -0,0 +1,399 @@ @@ -0,0 +1,398 @@
+// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0
+/* +/*
+ * Copyright 2019 Gateworks Corporation + * Copyright 2019 Gateworks Corporation
@ -117,7 +117,6 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+ led1: user2 { + led1: user2 {
+ label = "user2"; + label = "user2";
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */ + gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
+ default-state = "off";
+ }; + };
+ }; + };
+ +

View File

@ -89,7 +89,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+}; +};
--- /dev/null --- /dev/null
+++ b/arch/arm/boot/dts/imx6qdl-gw5910.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw5910.dtsi
@@ -0,0 +1,491 @@ @@ -0,0 +1,489 @@
+// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0
+/* +/*
+ * Copyright 2019 Gateworks Corporation + * Copyright 2019 Gateworks Corporation
@ -129,13 +129,11 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+ led1: user2 { + led1: user2 {
+ label = "user2"; + label = "user2";
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */ + gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
+ default-state = "off";
+ }; + };
+ +
+ led2: user3 { + led2: user3 {
+ label = "user3"; + label = "user3";
+ gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */ + gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
+ default-state = "off";
+ }; + };
+ }; + };
+ +

View File

@ -84,7 +84,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+}; +};
--- /dev/null --- /dev/null
+++ b/arch/arm/boot/dts/imx6qdl-gw5913.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw5913.dtsi
@@ -0,0 +1,348 @@ @@ -0,0 +1,347 @@
+// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0
+/* +/*
+ * Copyright 2019 Gateworks Corporation + * Copyright 2019 Gateworks Corporation
@ -121,7 +121,6 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+ led1: user2 { + led1: user2 {
+ label = "user2"; + label = "user2";
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */ + gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
+ default-state = "off";
+ }; + };
+ }; + };
+ +

View File

@ -87,7 +87,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+}; +};
--- /dev/null --- /dev/null
+++ b/arch/arm/boot/dts/imx6qdl-gw5912.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw5912.dtsi
@@ -0,0 +1,461 @@ @@ -0,0 +1,459 @@
+// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0
+/* +/*
+ * Copyright 2019 Gateworks Corporation + * Copyright 2019 Gateworks Corporation
@ -125,13 +125,11 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
+ led1: user2 { + led1: user2 {
+ label = "user2"; + label = "user2";
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */ + gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
+ default-state = "off";
+ }; + };
+ +
+ led2: user3 { + led2: user3 {
+ label = "user3"; + label = "user3";
+ gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */ + gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
+ default-state = "off";
+ }; + };
+ }; + };
+ +

View File

@ -59,13 +59,11 @@
green { green {
label = "bpi-r64:pio:green"; label = "bpi-r64:pio:green";
gpios = <&pio 89 GPIO_ACTIVE_HIGH>; gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
default-state = "off";
}; };
red { red {
label = "bpi-r64:pio:red"; label = "bpi-r64:pio:red";
gpios = <&pio 88 GPIO_ACTIVE_HIGH>; gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
default-state = "off";
}; };
}; };

View File

@ -66,13 +66,11 @@
green { green {
label = "bpi-r64:pio:green"; label = "bpi-r64:pio:green";
gpios = <&pio 89 GPIO_ACTIVE_HIGH>; gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
default-state = "off";
}; };
red { red {
label = "bpi-r64:pio:red"; label = "bpi-r64:pio:red";
gpios = <&pio 88 GPIO_ACTIVE_HIGH>; gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
default-state = "off";
}; };
}; };

View File

@ -81,7 +81,7 @@
}; };
cpus { cpus {
@@ -40,23 +39,38 @@ @@ -40,23 +39,36 @@
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
@ -108,13 +108,11 @@
+ green { + green {
+ label = "bpi-r64:pio:green"; + label = "bpi-r64:pio:green";
+ gpios = <&pio 89 GPIO_ACTIVE_HIGH>; + gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ }; + };
+ +
+ red { + red {
+ label = "bpi-r64:pio:red"; + label = "bpi-r64:pio:red";
+ gpios = <&pio 88 GPIO_ACTIVE_HIGH>; + gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
}; };
}; };

View File

@ -44,7 +44,7 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
+}; +};
--- /dev/null --- /dev/null
+++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi +++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi
@@ -0,0 +1,343 @@ @@ -0,0 +1,340 @@
+/* +/*
+ * Copyright 2018 Kristian Evensen <kristian.evensen@gmail.com> + * Copyright 2018 Kristian Evensen <kristian.evensen@gmail.com>
+ * + *
@ -132,13 +132,11 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
+ led3 { + led3 {
+ label = "u7623-01:green:led3"; + label = "u7623-01:green:led3";
+ gpios = <&pio 14 GPIO_ACTIVE_LOW>; + gpios = <&pio 14 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ }; + };
+ +
+ led4 { + led4 {
+ label = "u7623-01:green:led4"; + label = "u7623-01:green:led4";
+ gpios = <&pio 15 GPIO_ACTIVE_LOW>; + gpios = <&pio 15 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ }; + };
+ }; + };
+}; +};
@ -343,7 +341,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
+ led@0 { + led@0 {
+ reg = <0>; + reg = <0>;
+ label = "led0"; + label = "led0";
+ default-state = "off";
+ }; + };
+ }; + };
+ }; + };

View File

@ -152,14 +152,12 @@
hdd1_red { hdd1_red {
label = "ls421de:red:hdd1"; label = "ls421de:red:hdd1";
gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "ata1"; linux,default-trigger = "ata1";
}; };
hdd2_red { hdd2_red {
label = "ls421de:red:hdd2"; label = "ls421de:red:hdd2";
gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
default-state = "off";
linux,default-trigger = "ata2"; linux,default-trigger = "ata2";
}; };
}; };