Skip to contentSkip to conversation

arm64: dts: amlogic: cottonwood: fix blue/green led inversion

PATCH In review Jerome Brunet 2 participants 2 messages Oct 6, 2023

Subsystems (2)
lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

PATCH 1/1 arm64: dts: amlogic: cottonwood: fix blue/green led inversion

While making the v2, blue and green LED pwms got inverted This change fixes the problem

Fixes 9f841514c9c2 ("arm64: dts: amlogic: add libretech cottonwood support")
---
 arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi +2 -2
index ed826f673349..35e8f5bae990 100644
@@ -70,7 +70,7 @@ led {
 			function = LED_FUNCTION_ACTIVITY;
 			linux,default-trigger = "heartbeat";
 			max-brightness = <255>;
-			pwms = <&pwm_cd 1 1250 0>;
+			pwms = <&pwm_ab 1 1250 0>;
 			active-low;
 		};
 	};
@@ -83,7 +83,7 @@ led {
 			function = LED_FUNCTION_STATUS;
 			linux,default-trigger = "default-on";
 			max-brightness = <255>;
-			pwms = <&pwm_ab 1 1250 0>;
+			pwms = <&pwm_cd 1 1250 0>;
 			active-low;
 		};
 	};
Signature · 1 line
2.40.1
maintainer
#1 lore raw
Quoted 23 lines · Jerome Brunet

While making the v2, blue and green LED pwms got inverted This change fixes the problem

Fixes 9f841514c9c2 ("arm64: dts: amlogic: add libretech cottonwood support")
---
  arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi +1 -1
index ed826f673349..35e8f5bae990 100644
@@ -70,7 +70,7 @@ led {
  			function = LED_FUNCTION_ACTIVITY;
  			linux,default-trigger = "heartbeat";
  			max-brightness = <255>;
-			pwms = <&pwm_cd 1 1250 0>;
+			pwms = <&pwm_ab 1 1250 0>;
  			active-low;
  		};
  	};

arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi led { · line 89

Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi +1 -1
@@ -83,7 +83,7 @@ led {
  			function = LED_FUNCTION_STATUS;
  			linux,default-trigger = "default-on";
  			max-brightness = <255>;
-			pwms = <&pwm_ab 1 1250 0>;
+			pwms = <&pwm_cd 1 1250 0>;
  			active-low;
  		};
  	};

Squashed into 9f841514c9c2 ("arm64: dts: amlogic: add libretech cottonwood support")

Thanks,
Neil