* [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.
@ 2020-11-04 19:29 Markus Reichl
2020-11-06 10:29 ` Johan Jonker
2020-11-08 0:35 ` Heiko Stuebner
0 siblings, 2 replies; 4+ messages in thread
From: Markus Reichl @ 2020-11-04 19:29 UTC (permalink / raw)
To: linux-rockchip, Rob Herring, Heiko Stuebner
Cc: devicetree, dianders, linux-kernel, Markus Reichl, wens,
robin.murphy, linux-arm-kernel
After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2.
Correct trigger of LEDs accordingly.
[1]
https://patchwork.kernel.org/patch/11881427
Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
---
arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
index e7a459fa4322..20309076dbac 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
@@ -74,14 +74,14 @@ diy_led: led-1 {
label = "red:diy";
gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
default-state = "off";
- linux,default-trigger = "mmc1";
+ linux,default-trigger = "mmc2";
};
yellow_led: led-2 {
label = "yellow:yellow-led";
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
default-state = "off";
- linux,default-trigger = "mmc0";
+ linux,default-trigger = "mmc1";
};
};
--
2.28.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.
2020-11-04 19:29 [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc Markus Reichl
@ 2020-11-06 10:29 ` Johan Jonker
2020-11-06 11:27 ` Robin Murphy
2020-11-08 0:35 ` Heiko Stuebner
1 sibling, 1 reply; 4+ messages in thread
From: Johan Jonker @ 2020-11-06 10:29 UTC (permalink / raw)
To: Markus Reichl, linux-rockchip, Rob Herring, Heiko Stuebner
Cc: devicetree, dianders, linux-kernel, wens, robin.murphy, linux-arm-kernel
Hi Markus,
On 11/4/20 8:29 PM, Markus Reichl wrote:
> After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2.
> Correct trigger of LEDs accordingly.
>
> [1]
> https://patchwork.kernel.org/patch/11881427
>
> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
> ---
> arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
> index e7a459fa4322..20309076dbac 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
> @@ -74,14 +74,14 @@ diy_led: led-1 {
> label = "red:diy";
> gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
> default-state = "off";
> - linux,default-trigger = "mmc1";
> + linux,default-trigger = "mmc2";
remove
> };
>
> yellow_led: led-2 {
> label = "yellow:yellow-led";
> gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
> default-state = "off";
> - linux,default-trigger = "mmc0";
> + linux,default-trigger = "mmc1";
remove
> };
> };
>
>
The "mmc1" and "mmc2" options are custom values and invalid to the
automated dt check in the mainline kernel.
make ARCH=arm64 dtbs_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/leds/leds-gpio.yaml
linux,default-trigger:
description:
This parameter, if present, is a string defining the trigger
assigned to
the LED.
$ref: /schemas/types.yaml#definitions/string
enum:
# LED will act as a back-light, controlled by the framebuffer system
- backlight
# LED will turn on (but for leds-gpio see "default-state"
property in
# Documentation/devicetree/bindings/leds/leds-gpio.yaml)
- default-on
# LED "double" flashes at a load average based rate
- heartbeat
# LED indicates disk activity
- disk-activity
# LED indicates IDE disk activity (deprecated), in new
implementations
# use "disk-activity"
- ide-disk
# LED flashes at a fixed, configurable rate
- timer
# LED alters the brightness for the specified duration with one
software
# timer (requires "led-pattern" property)
- pattern
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.
2020-11-06 10:29 ` Johan Jonker
@ 2020-11-06 11:27 ` Robin Murphy
0 siblings, 0 replies; 4+ messages in thread
From: Robin Murphy @ 2020-11-06 11:27 UTC (permalink / raw)
To: Johan Jonker, Markus Reichl, linux-rockchip, Rob Herring, Heiko Stuebner
Cc: devicetree, wens, dianders, linux-arm-kernel, linux-kernel
On 2020-11-06 10:29, Johan Jonker wrote:
> Hi Markus,
>
> On 11/4/20 8:29 PM, Markus Reichl wrote:
>> After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2.
>> Correct trigger of LEDs accordingly.
>>
>> [1]
>> https://patchwork.kernel.org/patch/11881427
>>
>> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
>> ---
>> arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
>> index e7a459fa4322..20309076dbac 100644
>> --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
>> +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
>> @@ -74,14 +74,14 @@ diy_led: led-1 {
>> label = "red:diy";
>> gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
>> default-state = "off";
>> - linux,default-trigger = "mmc1";
>
>> + linux,default-trigger = "mmc2";
>
> remove
>> };
>>
>> yellow_led: led-2 {
>> label = "yellow:yellow-led";
>> gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
>> default-state = "off";
>> - linux,default-trigger = "mmc0";
>
>> + linux,default-trigger = "mmc1";
>
> remove
>
>> };
>> };
>>
>>
>
> The "mmc1" and "mmc2" options are custom values and invalid to the
> automated dt check in the mainline kernel.
It's already been established that the binding is at fault here. Effort
should be spent on fixing *that*, not sacrificing useful and intended DT
functionality in blind deference to the schema gods.
Robin.
>
> make ARCH=arm64 dtbs_check
> DT_SCHEMA_FILES=Documentation/devicetree/bindings/leds/leds-gpio.yaml
>
>
> linux,default-trigger:
> description:
> This parameter, if present, is a string defining the trigger
> assigned to
> the LED.
> $ref: /schemas/types.yaml#definitions/string
>
> enum:
> # LED will act as a back-light, controlled by the framebuffer system
> - backlight
> # LED will turn on (but for leds-gpio see "default-state"
> property in
> # Documentation/devicetree/bindings/leds/leds-gpio.yaml)
> - default-on
> # LED "double" flashes at a load average based rate
> - heartbeat
> # LED indicates disk activity
> - disk-activity
> # LED indicates IDE disk activity (deprecated), in new
> implementations
> # use "disk-activity"
> - ide-disk
> # LED flashes at a fixed, configurable rate
> - timer
> # LED alters the brightness for the specified duration with one
> software
> # timer (requires "led-pattern" property)
> - pattern
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.
2020-11-04 19:29 [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc Markus Reichl
2020-11-06 10:29 ` Johan Jonker
@ 2020-11-08 0:35 ` Heiko Stuebner
1 sibling, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2020-11-08 0:35 UTC (permalink / raw)
To: linux-rockchip, Rob Herring, Markus Reichl
Cc: devicetree, Heiko Stuebner, linux-kernel, dianders, wens,
robin.murphy, linux-arm-kernel
On Wed, 4 Nov 2020 20:29:31 +0100, Markus Reichl wrote:
> After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2.
> Correct trigger of LEDs accordingly.
>
> [1]
> https://patchwork.kernel.org/patch/11881427
Applied, thanks!
[1/1] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.
commit: 7327c8b98e2e14c47021eea14d1ab268086a6408
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-08 0:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04 19:29 [PATCH] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc Markus Reichl
2020-11-06 10:29 ` Johan Jonker
2020-11-06 11:27 ` Robin Murphy
2020-11-08 0:35 ` Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).