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>
This commit is contained in:
parent
a629d58481
commit
d8ce5f5f6a
@ -80,7 +80,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/imx6qdl-gw5907.dtsi
|
||||
@@ -0,0 +1,399 @@
|
||||
@@ -0,0 +1,398 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0
|
||||
+/*
|
||||
+ * Copyright 2019 Gateworks Corporation
|
||||
@ -117,7 +117,6 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+ led1: user2 {
|
||||
+ label = "user2";
|
||||
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
|
||||
@ -89,7 +89,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/imx6qdl-gw5910.dtsi
|
||||
@@ -0,0 +1,491 @@
|
||||
@@ -0,0 +1,489 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0
|
||||
+/*
|
||||
+ * Copyright 2019 Gateworks Corporation
|
||||
@ -129,13 +129,11 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+ led1: user2 {
|
||||
+ label = "user2";
|
||||
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ led2: user3 {
|
||||
+ label = "user3";
|
||||
+ gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
|
||||
@ -84,7 +84,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/imx6qdl-gw5913.dtsi
|
||||
@@ -0,0 +1,348 @@
|
||||
@@ -0,0 +1,347 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0
|
||||
+/*
|
||||
+ * Copyright 2019 Gateworks Corporation
|
||||
@ -121,7 +121,6 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+ led1: user2 {
|
||||
+ label = "user2";
|
||||
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
|
||||
@ -87,7 +87,7 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/imx6qdl-gw5912.dtsi
|
||||
@@ -0,0 +1,461 @@
|
||||
@@ -0,0 +1,459 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0
|
||||
+/*
|
||||
+ * Copyright 2019 Gateworks Corporation
|
||||
@ -125,13 +125,11 @@ Signed-off-by: Shawn Guo <shawnguo@kernel.org>
|
||||
+ led1: user2 {
|
||||
+ label = "user2";
|
||||
+ gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; /* MX6_PANLEDR */
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ led2: user3 {
|
||||
+ label = "user3";
|
||||
+ gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* MX6_LOCLED# */
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
|
||||
@ -59,13 +59,11 @@
|
||||
green {
|
||||
label = "bpi-r64:pio:green";
|
||||
gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
red {
|
||||
label = "bpi-r64:pio:red";
|
||||
gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -66,13 +66,11 @@
|
||||
green {
|
||||
label = "bpi-r64:pio:green";
|
||||
gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
red {
|
||||
label = "bpi-r64:pio:red";
|
||||
gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -63,17 +63,15 @@
|
||||
*
|
||||
* SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
*/
|
||||
@@ -14,8 +13,8 @@
|
||||
@@ -14,7 +13,7 @@
|
||||
#include "mt6380.dtsi"
|
||||
|
||||
/ {
|
||||
- model = "MediaTek MT7622 RFB1 board";
|
||||
- compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622";
|
||||
+ model = "MT7622_MT7531 RFB";
|
||||
+ compatible = "bananapi,bpi-r64", "mediatek,mt7622";
|
||||
compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart0;
|
||||
@@ -23,7 +22,7 @@
|
||||
|
||||
chosen {
|
||||
@ -83,7 +81,7 @@
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -40,23 +39,45 @@
|
||||
@@ -40,23 +39,36 @@
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
@ -93,37 +91,28 @@
|
||||
label = "factory";
|
||||
linux,code = <BTN_0>;
|
||||
- gpios = <&pio 0 0>;
|
||||
+ gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
|
||||
+ gpios = <&pio 0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
linux,code = <KEY_WPS_BUTTON>;
|
||||
- gpios = <&pio 102 0>;
|
||||
+ gpios = <&pio 102 GPIO_ACTIVE_HIGH>;
|
||||
+ gpios = <&pio 102 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gsw: gsw@0 {
|
||||
+ compatible = "mediatek,mt753x";
|
||||
+ mediatek,ethsys = <ðsys>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ green {
|
||||
+ label = "bpi-r64:pio:green";
|
||||
+ gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ red {
|
||||
+ label = "bpi-r64:pio:red";
|
||||
+ gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
@ -133,7 +122,7 @@
|
||||
};
|
||||
|
||||
reg_1p8v: regulator-1p8v {
|
||||
@@ -101,27 +122,67 @@
|
||||
@@ -101,23 +115,82 @@
|
||||
};
|
||||
|
||||
ð {
|
||||
@ -169,48 +158,61 @@
|
||||
+ mdio: mdio-bus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
-
|
||||
|
||||
- phy5: ethernet-phy@5 {
|
||||
- reg = <5>;
|
||||
- phy-mode = "sgmii";
|
||||
- };
|
||||
+ switch@0 {
|
||||
+ compatible = "mediatek,mt7531";
|
||||
+ reg = <0>;
|
||||
+ reset-gpios = <&pio 54 0>;
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ port@0 {
|
||||
+ reg = <0>;
|
||||
+ label = "lan1";
|
||||
+ };
|
||||
+
|
||||
+ port@1 {
|
||||
+ reg = <1>;
|
||||
+ label = "lan2";
|
||||
+ };
|
||||
+
|
||||
+ port@2 {
|
||||
+ reg = <2>;
|
||||
+ label = "lan3";
|
||||
+ };
|
||||
+
|
||||
+ port@3 {
|
||||
+ reg = <3>;
|
||||
+ label = "lan4";
|
||||
+ };
|
||||
+
|
||||
+ port@4 {
|
||||
+ reg = <4>;
|
||||
+ label = "wan";
|
||||
+ };
|
||||
+
|
||||
+ port@6 {
|
||||
+ reg = <6>;
|
||||
+ label = "cpu";
|
||||
+ ethernet = <&gmac0>;
|
||||
+ phy-mode = "2500base-x";
|
||||
+
|
||||
+ fixed-link {
|
||||
+ speed = <2500>;
|
||||
+ full-duplex;
|
||||
+ pause;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
+&gsw {
|
||||
+ mediatek,mdio = <&mdio>;
|
||||
+ mediatek,portmap = "llllw";
|
||||
+ mediatek,mdio_master_pinmux = <0>;
|
||||
+ reset-gpios = <&pio 54 0>;
|
||||
+ interrupt-parent = <&pio>;
|
||||
+ interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ port5: port@5 {
|
||||
+ compatible = "mediatek,mt753x-port";
|
||||
+ reg = <5>;
|
||||
+ phy-mode = "rgmii";
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ port6: port@6 {
|
||||
+ compatible = "mediatek,mt753x-port";
|
||||
+ reg = <6>;
|
||||
+ phy-mode = "sgmii";
|
||||
+ fixed-link {
|
||||
+ speed = <2500>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&i2c1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c1_pins>;
|
||||
@@ -185,15 +246,28 @@
|
||||
@@ -185,15 +258,28 @@
|
||||
|
||||
&pcie {
|
||||
pinctrl-names = "default";
|
||||
@ -240,7 +242,7 @@
|
||||
/* eMMC is shared pin with parallel NAND */
|
||||
emmc_pins_default: emmc-pins-default {
|
||||
mux {
|
||||
@@ -460,11 +534,11 @@
|
||||
@@ -460,11 +546,11 @@
|
||||
};
|
||||
|
||||
&sata {
|
||||
|
||||
@ -44,7 +44,7 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ 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>
|
||||
+ *
|
||||
@ -132,13 +132,11 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
|
||||
+ led3 {
|
||||
+ label = "u7623-01:green:led3";
|
||||
+ gpios = <&pio 14 GPIO_ACTIVE_LOW>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ led4 {
|
||||
+ label = "u7623-01:green:led4";
|
||||
+ gpios = <&pio 15 GPIO_ACTIVE_LOW>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
@ -343,7 +341,6 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
|
||||
+ led@0 {
|
||||
+ reg = <0>;
|
||||
+ label = "led0";
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
|
||||
@ -152,14 +152,12 @@
|
||||
hdd1_red {
|
||||
label = "ls421de:red:hdd1";
|
||||
gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
linux,default-trigger = "ata1";
|
||||
};
|
||||
|
||||
hdd2_red {
|
||||
label = "ls421de:red:hdd2";
|
||||
gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
linux,default-trigger = "ata2";
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user