File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
arch/arm64/boot/dts/rockchip Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 88/dts-v1/;
99
1010#include <dt-bindings/gpio/gpio.h>
11+ #include <dt-bindings/leds/common.h>
1112#include <dt-bindings/pwm/pwm.h>
1213#include <dt-bindings/pinctrl/rockchip.h>
1314#include <dt-bindings/input/rk-input.h>
167168
168169 leds {
169170 compatible = "gpio-leds";
171+ pinctrl-names = "default";
172+ pinctrl-0 = <&led_rgb_b>;
170173
171- system-status {
172- label = "blue:status";
174+ led_rgb_b {
175+ function = LED_FUNCTION_STATUS;
176+ color = <LED_COLOR_ID_BLUE>;
173177 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
174178 linux,default-trigger = "heartbeat";
175179 };
884888};
885889
886890&pinctrl {
891+ leds {
892+ led_rgb_b: led-rgb-b {
893+ rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
894+ };
895+ };
887896
888897 usb {
889898 vcc5v0_host_en: vcc5v0-host-en {
Original file line number Diff line number Diff line change 88/dts-v1/;
99
1010#include <dt-bindings/gpio/gpio.h>
11+ #include <dt-bindings/leds/common.h>
1112#include <dt-bindings/pwm/pwm.h>
1213#include <dt-bindings/pinctrl/rockchip.h>
1314#include <dt-bindings/input/rk-input.h>
150151
151152 leds {
152153 compatible = "gpio-leds";
154+ pinctrl-names = "default";
155+ pinctrl-0 = <&io_led>;
153156
154- system-status {
155- label = "blue:status";
157+ io_led {
158+ function = LED_FUNCTION_STATUS;
159+ color = <LED_COLOR_ID_BLUE>;
156160 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
157161 linux,default-trigger = "heartbeat";
158162 };
666670};
667671
668672&pinctrl {
673+ leds {
674+ io_led: io-led {
675+ rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
676+ };
677+ };
669678
670679 power {
671680 vcc_5v0_en: vcc-5v0-en {
You can’t perform that action at this time.
0 commit comments