Skip to content

Commit

Permalink
nanopineo: remove LED patch conflicting with upstream
Browse files Browse the repository at this point in the history
Upstream kernel defines the exact same LEDs already. having both defined leads to unusable LED sysfs nodes: MichaIng/DietPi#5401

Signed-off-by: MichaIng <[email protected]>
  • Loading branch information
MichaIng committed Jan 2, 2025
1 parent b9575b5 commit b229398
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,11 @@ diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i
index df71fab3c..032849663 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
@@ -49,6 +49,63 @@ / {
@@ -49,6 +49,43 @@ / {
aliases {
ethernet0 = &emac;
};
+
+ /* Warning: sunxi-5.18:
+ * The leds node is present in the sun8i-h3-nanopi.dtsi file
+ * You will have to fix this situation yourself
+ */
+ leds {
+ compatible = "gpio-leds";
+
+ pwr {
+ label = "nanopi:red:pwr";
+ gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
+ linux,default-trigger = "default-on";
+ };
+
+ status {
+ label = "nanopi:green:status";
+ gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ vdd_cpux: gpio-regulator {
+ compatible = "regulator-gpio";
+ pinctrl-names = "default";
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.1/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.1/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.10/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.10/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.11/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.11/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,11 @@ diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo.dts b/arch/arm/boot
index df71fab3cf4e..032849663443 100644
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo.dts
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo.dts
@@ -49,6 +49,63 @@ / {
@@ -49,6 +49,43 @@ / {
aliases {
ethernet0 = &emac;
};
+
+ /* Warning: sunxi-5.18:
+ * The leds node is present in the sun8i-h3-nanopi.dtsi file
+ * You will have to fix this situation yourself
+ */
+ leds {
+ compatible = "gpio-leds";
+
+ pwr {
+ label = "nanopi:red:pwr";
+ gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
+ linux,default-trigger = "default-on";
+ };
+
+ status {
+ label = "nanopi:green:status";
+ gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ vdd_cpux: gpio-regulator {
+ compatible = "regulator-gpio";
+ pinctrl-names = "default";
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.6/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.6/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,11 @@ diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo.dts b/arch/arm/boot
index df71fab3cf4e..032849663443 100644
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo.dts
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo.dts
@@ -49,6 +49,63 @@ / {
@@ -49,6 +49,43 @@ / {
aliases {
ethernet0 = &emac;
};
+
+ /* Warning: sunxi-5.18:
+ * The leds node is present in the sun8i-h3-nanopi.dtsi file
+ * You will have to fix this situation yourself
+ */
+ leds {
+ compatible = "gpio-leds";
+
+ pwr {
+ label = "nanopi:red:pwr";
+ gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
+ linux,default-trigger = "default-on";
+ };
+
+ status {
+ label = "nanopi:green:status";
+ gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ vdd_cpux: gpio-regulator {
+ compatible = "regulator-gpio";
+ pinctrl-names = "default";
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.7/series.armbian
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down
1 change: 0 additions & 1 deletion patch/kernel/archive/sunxi-6.7/series.conf
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@
patches.armbian/arm-dts-a10-cubiebord-a20-cubietruck-green-LED-mmc0-default-tri.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-nanopi-duo-device.patch
patches.armbian/arm-dts-Add-sun8i-h2-plus-sunvell-r69-device.patch
patches.armbian/arm-dts-h3-nanopi-neo-Add-regulator-leds-mmc2.patch
patches.armbian/arm-dts-h3-nanopi-neo-air-Add-regulator-camera-wifi-bluetooth-o.patch
patches.armbian/arm-dts-h3-orangepi-2-Add-regulator-vdd-cpu.patch
patches.armbian/arm-dts-sun8i-r40-bananapi-m2-ultra-add-codec-analog.patch
Expand Down

0 comments on commit b229398

Please sign in to comment.