Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fbfe10f authored by Shohei Maruyama's avatar Shohei Maruyama Committed by Heiko Stuebner
Browse files

arm64: dts: rockchip: add led support for Firefly-RK3399



This commit adds led support for the Firefly-RK3399. The board has two
leds, this commit enables them.

Signed-off-by: default avatarShohei Maruyama <cheat.sc.linux@outlook.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 5b64d061
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -88,6 +88,24 @@
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>;

		work-led {
			label = "work";
			default-state = "on";
			gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
		};

		diy-led {
			label = "diy";
			default-state = "off";
			gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
		};
	};

	rt5640-sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "rockchip,rt5640-codec";
@@ -603,6 +621,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 {