add more gpio leds

This commit is contained in:
Christian Zimmermann 2021-01-17 23:14:46 +01:00
parent 0e83980ab5
commit ee06012f62

View file

@ -1,13 +1,15 @@
diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi
index aea6809500d7..e34e26f09673 100644
index aea6809500d7..0f1520723c15 100644
--- a/arch/arm/boot/dts/mt7623.dtsi
+++ b/arch/arm/boot/dts/mt7623.dtsi
@@ -1055,7 +1055,11 @@ led_pins_a: leds-alt {
@@ -1055,7 +1055,13 @@ led_pins_a: leds-alt {
pins-leds {
pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>,
<MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>,
- <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>;
+ <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>,
+ <MT7623_PIN_18_PCM_CLK_FUNC_GPIO18>,
+ <MT7623_PIN_19_PCM_SYNC_FUNC_GPIO19>,
+ <MT7623_PIN_21_PCM_TX_FUNC_GPIO21>,
+ <MT7623_PIN_22_EINT0_FUNC_GPIO22>,
+ <MT7623_PIN_24_EINT2_FUNC_GPIO24>,
@ -16,34 +18,46 @@ index aea6809500d7..e34e26f09673 100644
};
diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
index e96aa0ed1ebd..e0acf3b99b66 100644
index e96aa0ed1ebd..9767c41b70fa 100644
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
@@ -126,6 +126,30 @@ red {
@@ -126,6 +126,42 @@ red {
gpios = <&pio 239 GPIO_ACTIVE_LOW>;
default-state = "off";
};
+
+ cust-0 {
+ label = "bpi-r2:pio:cust0";
+ gpios = <&pio 21 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-1 {
+ label = "bpi-r2:pio:cust1";
+ gpios = <&pio 22 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-2 {
+ label = "bpi-r2:pio:cust2";
+ gpios = <&pio 24 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio 21 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-3 {
+ label = "bpi-r2:pio:cust3";
+ gpios = <&pio 22 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-4 {
+ label = "bpi-r2:pio:cust4";
+ gpios = <&pio 24 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ cust-5 {
+ label = "bpi-r2:pio:cust5";
+ gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
@ -103,17 +117,3 @@ index de7692b763d8..0e0c7c9b31a5 100644
dsa_unregister_switch(priv->ds);
mutex_destroy(&priv->reg_mutex);
}
diff --git a/scripts/depmod.sh b/scripts/depmod.sh
index e083bcae343f..1b98fdc9d9a8 100755
--- a/scripts/depmod.sh
+++ b/scripts/depmod.sh
@@ -1,4 +1,9 @@
#!/bin/sh
+exit 0
+exit 0
+exit 0
+exit 0
+exit 0
# SPDX-License-Identifier: GPL-2.0
#
# A depmod wrapper used by the toplevel Makefile