arm64: dts: rockchip: give some life to the rk3328-roc-cc leds
Subsystems (2)
PATCH 1/1 arm64: dts: rockchip: give some life to the rk3328-roc-cc leds
Assign the LED's to heartbeat and sdcard io, as in other RK boards.
https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609edd0858
--- .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +27 -0
@@ -81,6 +81,33 @@ regulator-always-on; regulator-boot-on; }; + + leds { + compatible = "gpio-leds"; + power { + label = "firefly:blue:power"; + linux,default-trigger = "heartbeat"; + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; + default-state = "on"; + mode = <0x23>; + }; + + user { + label = "firefly:yellow:user"; + linux,default-trigger = "mmc1"; + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; + default-state = "off"; + mode = <0x05>; + }; + + ir { + status = "disabled"; + /* gpios = <&gpio2 GPIO_C2 GPIO_ACTIVE_HIGH>; */ + linux,default-trigger = "ir"; + default-state = "off"; + mode = <0x00>; + }; + }; }; &cpu0 {
Signature · 1 line
2.21.0
A message that is not in the archive (sent off-list or not yet received): 20190301225813.19834-1-papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Am Freitag, 1. März 2019, 23:58:13 CET schrieb Leonidas P. Papadakos:
Quoted 28 lines
Assign the LED's to heartbeat and sdcard io, as in other RK boards.
https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609edd0858
Signed-off-by Leonidas P. Papadakos <[email protected]>--- .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +11
-0@@ -81,6 +81,33 @@ regulator-always-on; regulator-boot-on; }; + + leds { + compatible = "gpio-leds"; + power { + label = "firefly:blue:power"; + linux,default-trigger = "heartbeat"; + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; + default-state = "on"; + mode = <0x23>; + }; +
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts line 104
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +10
-0+ user { + label = "firefly:yellow:user"; + linux,default-trigger = "mmc1"; + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; + default-state = "off"; + mode = <0x05>; + }; + + ir { + status = "disabled";
please explain that. Is this an IR transmitting LED? And why are you adding a disabled property?
Similar to how the kernel should not contain commented out code having a disabled node in the actual board file is strange.
Heiko
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +6
-0+ /* gpios = <&gpio2 GPIO_C2 GPIO_ACTIVE_HIGH>; */ + linux,default-trigger = "ir"; + default-state = "off"; + mode = <0x00>; + }; + }; }; &cpu0 {
Quoted 43 lines · Heiko Stuebner
Am Freitag, 1. März 2019, 23:58:13 CET schrieb Leonidas P. Papadakos:
Quoted 28 lines
Assign the LED's to heartbeat and sdcard io, as in other RK boards.
https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609edd0858
Signed-off-by Leonidas P. Papadakos <[email protected]>--- .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +11
-0@@ -81,6 +81,33 @@ regulator-always-on; regulator-boot-on; }; + + leds { + compatible = "gpio-leds"; + power { + label = "firefly:blue:power"; + linux,default-trigger = "heartbeat"; + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; + default-state = "on"; + mode = <0x23>; + }; +arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts line 104
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +10
-0+ user { + label = "firefly:yellow:user"; + linux,default-trigger = "mmc1"; + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; + default-state = "off"; + mode = <0x05>; + }; + + ir { + status = "disabled";please explain that. Is this an IR transmitting LED? And why are you adding a disabled property?
Quoted 6 lines
Similar to how the kernel should not contain commented out code having a disabled node in the actual board file is strange.
Heiko
It probably is. See the image of the board on this site:
https://shop.t-firefly.com/goods.php?id=65
Should I make a PATCH v2 without it?
Quoted 14 lines
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +6
-0+ /* gpios = <&gpio2 GPIO_C2 GPIO_ACTIVE_HIGH>; */ + linux,default-trigger = "ir"; + default-state = "off"; + mode = <0x00>; + }; + }; }; &cpu0 {
Am Samstag, 2. März 2019, 03:51:07 CET schrieb Leonidas P. Papadakos:
Quoted 48 lines · Heiko Stuebner
Quoted 47 lines
Am Freitag, 1. März 2019, 23:58:13 CET schrieb Leonidas P. Papadakos:
Quoted 28 lines
Assign the LED's to heartbeat and sdcard io, as in other RK boards.
https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609edd0858
Signed-off-by Leonidas P. Papadakos <[email protected]>--- .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +11
-0@@ -81,6 +81,33 @@ regulator-always-on; regulator-boot-on; }; + + leds { + compatible = "gpio-leds"; + power { + label = "firefly:blue:power"; + linux,default-trigger = "heartbeat"; + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; + default-state = "on"; + mode = <0x23>; + }; +arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts line 104
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +10
-0+ user { + label = "firefly:yellow:user"; + linux,default-trigger = "mmc1"; + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; + default-state = "off"; + mode = <0x05>; + }; + + ir { + status = "disabled";please explain that. Is this an IR transmitting LED? And why are you adding a disabled property?
Similar to how the kernel should not contain commented out code having a disabled node in the actual board file is strange.
Quoted 7 lines
Quoted 2 lines
Heiko
It probably is. See the image of the board on this site:
https://shop.t-firefly.com/goods.php?id=65Should I make a PATCH v2 without it?
yes, that would be nice, as we don't want to add dead nodes to actual board devicetrees.