kernel-config: additional led triggers + kernel-patch: use certain gpios as kernel leds
This commit is contained in:
parent
a56ee4ffb9
commit
e7b2f7c6f6
2 changed files with 74 additions and 8 deletions
|
@ -2,10 +2,10 @@
|
|||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm 5.9.0 Kernel Configuration
|
||||
#
|
||||
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (GCC) 10.1.0"
|
||||
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
|
||||
CONFIG_CC_IS_GCC=y
|
||||
CONFIG_GCC_VERSION=100100
|
||||
CONFIG_LD_VERSION=234000000
|
||||
CONFIG_GCC_VERSION=100200
|
||||
CONFIG_LD_VERSION=235000000
|
||||
CONFIG_CLANG_VERSION=0
|
||||
CONFIG_CC_CAN_LINK=y
|
||||
CONFIG_CC_CAN_LINK_STATIC=y
|
||||
|
@ -6609,12 +6609,12 @@ CONFIG_LEDS_MAX8997=m
|
|||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_TIMER=y
|
||||
CONFIG_LEDS_TRIGGER_ONESHOT=y
|
||||
# CONFIG_LEDS_TRIGGER_DISK is not set
|
||||
CONFIG_LEDS_TRIGGER_DISK=y
|
||||
# CONFIG_LEDS_TRIGGER_MTD is not set
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_LEDS_TRIGGER_BACKLIGHT=y
|
||||
CONFIG_LEDS_TRIGGER_CPU=y
|
||||
# CONFIG_LEDS_TRIGGER_ACTIVITY is not set
|
||||
CONFIG_LEDS_TRIGGER_ACTIVITY=y
|
||||
CONFIG_LEDS_TRIGGER_GPIO=y
|
||||
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
|
||||
|
||||
|
@ -6623,9 +6623,9 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
|
|||
#
|
||||
CONFIG_LEDS_TRIGGER_TRANSIENT=y
|
||||
CONFIG_LEDS_TRIGGER_CAMERA=y
|
||||
# CONFIG_LEDS_TRIGGER_PANIC is not set
|
||||
# CONFIG_LEDS_TRIGGER_NETDEV is not set
|
||||
# CONFIG_LEDS_TRIGGER_PATTERN is not set
|
||||
CONFIG_LEDS_TRIGGER_PANIC=y
|
||||
CONFIG_LEDS_TRIGGER_NETDEV=y
|
||||
CONFIG_LEDS_TRIGGER_PATTERN=y
|
||||
CONFIG_LEDS_TRIGGER_AUDIO=m
|
||||
# CONFIG_ACCESSIBILITY is not set
|
||||
# CONFIG_INFINIBAND is not set
|
||||
|
|
|
@ -1,3 +1,55 @@
|
|||
diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi
|
||||
index 3a6b856e5b74..07b976fb42e7 100644
|
||||
--- a/arch/arm/boot/dts/mt7623.dtsi
|
||||
+++ b/arch/arm/boot/dts/mt7623.dtsi
|
||||
@@ -1178,7 +1178,11 @@ 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_21_PCM_TX_FUNC_GPIO21>,
|
||||
+ <MT7623_PIN_22_EINT0_FUNC_GPIO22>,
|
||||
+ <MT7623_PIN_24_EINT2_FUNC_GPIO24>,
|
||||
+ <MT7623_PIN_25_EINT3_FUNC_GPIO25>;
|
||||
};
|
||||
};
|
||||
|
||||
diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
|
||||
index 2b760f90f38c..33f2153d140c 100644
|
||||
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
|
||||
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
|
||||
@@ -106,6 +106,30 @@ red {
|
||||
gpios = <&pio 239 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
+
|
||||
+ cust-0 {
|
||||
+ label = "bpi-r2:pio:cust0";
|
||||
+ gpios = <&pio 21 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ cust-1 {
|
||||
+ label = "bpi-r2:pio:cust1";
|
||||
+ gpios = <&pio 22 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ cust-2 {
|
||||
+ label = "bpi-r2:pio:cust2";
|
||||
+ gpios = <&pio 24 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
+
|
||||
+ cust-3 {
|
||||
+ label = "bpi-r2:pio:cust3";
|
||||
+ gpios = <&pio 25 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "off";
|
||||
+ };
|
||||
};
|
||||
|
||||
memory@80000000 {
|
||||
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
|
||||
index 1aaf47a0da2b..a2b5372d9dd6 100644
|
||||
--- a/drivers/net/dsa/mt7530.c
|
||||
|
@ -51,3 +103,17 @@ index 1aaf47a0da2b..a2b5372d9dd6 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
|
||||
|
|
Loading…
Reference in a new issue