mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
ARM: dts: rv1126: 38x38 board: fix flash led use pwm
Test: insmod kernel/drivers/leds/leds-pwm.ko echo 77 > /sys/devices/platform/pwmleds/leds/PWM-IR/brightness Signed-off-by: Weiwen Chen <cww@rock-chips.com> Change-Id: I4dd75bd124eeed1b2e13c638c34d315772aea3c1
This commit is contained in:
@@ -18,6 +18,16 @@
|
||||
/delete-node/ vdd-npu;
|
||||
/delete-node/ vdd-vepu;
|
||||
|
||||
pwmleds {
|
||||
compatible = "pwm-leds";
|
||||
|
||||
pwmi_ir {
|
||||
label = "PWM-IR";
|
||||
pwms = <&pwm3 0 25000 0>;
|
||||
max-brightness = <255>;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_1v8: vcc-1v8 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_1v8";
|
||||
@@ -101,7 +111,6 @@
|
||||
compatible = "rockchip,ircut";
|
||||
ircut-open-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
ircut-close-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
led-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
};
|
||||
@@ -267,6 +276,12 @@
|
||||
vccio7-supply = <&vcc3v3_sys>;
|
||||
};
|
||||
|
||||
&pwm3 {
|
||||
status = "okay";
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&pwm3m0_pins_pull_down>;
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user