File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
arch/arm64/boot/dts/rockchip Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 33 * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd.
44 */
55
6+ #include <dt-bindings/gpio/gpio.h>
7+ #include <dt-bindings/leds/common.h>
8+
69/ {
710 aliases {
811 mmc0 = &sdhci;
912 };
1013
14+ gpio-leds {
15+ compatible = "gpio-leds";
16+
17+ led_user: led-0 {
18+ color = <LED_COLOR_ID_GREEN>;
19+ function = LED_FUNCTION_HEARTBEAT;
20+ gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
21+ linux,default-trigger = "heartbeat";
22+ pinctrl-names = "default";
23+ pinctrl-0 = <&led_user_en>;
24+ };
25+ };
26+
1127 vcc12v_dcin: vcc12v-dcin-regulator {
1228 compatible = "regulator-fixed";
1329 regulator-name = "vcc12v_dcin";
110126 };
111127};
112128
129+ &pinctrl {
130+ leds {
131+ led_user_en: led_user_en {
132+ rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
133+ };
134+ };
135+ };
136+
113137&sdhci {
114138 bus-width = <8>;
115139 no-sdio;
You can’t perform that action at this time.
0 commit comments