arm64: dts: rockchip: add power button support for Firefly-RK3399
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 2/3 arm64: dts: rockchip: add power button support for Firefly-RK3399
From: Shohei Maruyama <[email protected]>
This commit adds power button support for the Firefly-RK3399.
--- .../boot/dts/rockchip/rk3399-firefly.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +20 -0
@@ -42,6 +42,7 @@ /dts-v1/; #include <dt-bindings/pwm/pwm.h> +#include <dt-bindings/input/linux-event-codes.h> #include "rk3399.dtsi" #include "rk3399-opp.dtsi"
@@ -132,6 +133,25 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&pwrbtn>; + + button at 0 { + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; + linux,code = <KEY_POWER>; + label = "GPIO Key Power"; + linux,input-type = <1>; + gpio-key,wakeup = <1>; + debounce-interval = <100>; + }; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk808 1>;
Signature · 1 line
2.18.0
Heiko Stuebner
maintainerPATCH 2/3 arm64: dts: rockchip: add power button support for Firefly-RK3399
Am Mittwoch, 18. Juli 2018, 16:58:21 CEST schrieb Maruyama Shohei:
Quoted 5 lines
From: Shohei Maruyama <[email protected]>
This commit adds power button support for the Firefly-RK3399.
Signed-off-by Shohei Maruyama <[email protected]>
applied for 4.19 with some minor changes, like reordering properties and using a descriptive node name for the power buttons and also using the correct wakeup property.
Thanks
Heiko
PATCH 3/3 arm64: dts: rockchip: add led support for Firefly-RK3399
In reply to a message not in the archiveFrom: Shohei Maruyama <[email protected]>
This commit adds led support for the Firefly-RK3399. The board has two leds, this commit enables them.
--- .../boot/dts/rockchip/rk3399-firefly.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +30 -0
@@ -233,6 +233,26 @@ regulator-max-microvolt = <1400000>; vin-supply = <&vcc_sys>; }; + + leds { + compatible = "gpio-leds"; + + work-led { + label = "work"; + default-state = "on"; + gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&work_led_gpio>; + }; + + diy-led { + label = "diy"; + default-state = "off"; + gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&diy_led_gpio>; + }; + }; }; &cpu_l0 {
@@ -647,6 +667,16 @@ rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + leds { + work_led_gpio: work_led-gpio { + rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + diy_led_gpio: diy_led-gpio { + rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pwm0 {
Signature · 1 line
2.18.0
Heiko Stuebner
maintainerPATCH 3/3 arm64: dts: rockchip: add led support for Firefly-RK3399
Am Mittwoch, 18. Juli 2018, 16:58:23 CEST schrieb Maruyama Shohei:
Quoted 6 lines
From: Shohei Maruyama <[email protected]>
This commit adds led support for the Firefly-RK3399. The board has two leds, this commit enables them.
Signed-off-by Shohei Maruyama <[email protected]>
applied for 4.19 after moving some things around
Thanks
Heiko