Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

riscv: dts: sifive: unleashed/unmatched: Remove PWM controlled LED's active-low properties

This removes the active-low properties of the PWM-controlled LEDs in
the HiFive Unmatched device tree.

The reference is hifive-unleashed-a00.pdf[0] and hifive-unmatched-schematics-v3.pdf[1].

Link: https://sifive.cdn.prismic.io/sifive/c52a8e32-05ce-4aaf-95c8-7bf8453f8698_hifive-unleashed-a00-schematics-1.pdf [0]
Link: https://sifive.cdn.prismic.io/sifive/6a06d6c0-6e66-49b5-8e9e-e68ce76f4192_hifive-unmatched-schematics-v3.pdf [1]

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Nylon Chen <nylon.chen@sifive.com>
Link: https://lore.kernel.org/r/20250529035341.51736-2-nylon.chen@sifive.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Nylon Chen and committed by
Uwe Kleine-König
f4bcf818 27b5dfe4

+8 -16
+4 -8
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
··· 49 49 compatible = "pwm-leds"; 50 50 51 51 led-d1 { 52 - pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; 53 - active-low; 52 + pwms = <&pwm0 0 7812500 0>; 54 53 color = <LED_COLOR_ID_GREEN>; 55 54 max-brightness = <255>; 56 55 label = "d1"; 57 56 }; 58 57 59 58 led-d2 { 60 - pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; 61 - active-low; 59 + pwms = <&pwm0 1 7812500 0>; 62 60 color = <LED_COLOR_ID_GREEN>; 63 61 max-brightness = <255>; 64 62 label = "d2"; 65 63 }; 66 64 67 65 led-d3 { 68 - pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; 69 - active-low; 66 + pwms = <&pwm0 2 7812500 0>; 70 67 color = <LED_COLOR_ID_GREEN>; 71 68 max-brightness = <255>; 72 69 label = "d3"; 73 70 }; 74 71 75 72 led-d4 { 76 - pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; 77 - active-low; 73 + pwms = <&pwm0 3 7812500 0>; 78 74 color = <LED_COLOR_ID_GREEN>; 79 75 max-brightness = <255>; 80 76 label = "d4";
+4 -8
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
··· 51 51 compatible = "pwm-leds"; 52 52 53 53 led-d12 { 54 - pwms = <&pwm0 0 7812500 PWM_POLARITY_INVERTED>; 55 - active-low; 54 + pwms = <&pwm0 0 7812500 0>; 56 55 color = <LED_COLOR_ID_GREEN>; 57 56 max-brightness = <255>; 58 57 label = "d12"; ··· 67 68 label = "d2"; 68 69 69 70 led-red { 70 - pwms = <&pwm0 2 7812500 PWM_POLARITY_INVERTED>; 71 - active-low; 71 + pwms = <&pwm0 2 7812500 0>; 72 72 color = <LED_COLOR_ID_RED>; 73 73 }; 74 74 75 75 led-green { 76 - pwms = <&pwm0 1 7812500 PWM_POLARITY_INVERTED>; 77 - active-low; 76 + pwms = <&pwm0 1 7812500 0>; 78 77 color = <LED_COLOR_ID_GREEN>; 79 78 }; 80 79 81 80 led-blue { 82 - pwms = <&pwm0 3 7812500 PWM_POLARITY_INVERTED>; 83 - active-low; 81 + pwms = <&pwm0 3 7812500 0>; 84 82 color = <LED_COLOR_ID_BLUE>; 85 83 }; 86 84 };