Thinking about the PWM remote-ctrl is used by box, we should
put this into box dts.
Meanwhile, that PWM configure will break the normal PWM driver.
This patch will fix it.
Change-Id: I14878332631f94f512412ced5ceb8689f8bfbe46
Signed-off-by: huang zhibao <hzb@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
regulator-name = "vcc_sd";
};
regulator-name = "vcc_sd";
};
+/*
+ * Due to not have the software of PWM for remotectrl.
+ * We can _*HACK*_ do that as the following.
+ */
+&pwm0 {
+ compatible = "rockchip,remotectl-pwm";
+ remote_pwm_id = <0>;
handle_cpu_id = <1>;
status = "okay";
handle_cpu_id = <1>;
status = "okay";
ir_key1{
rockchip,usercode = <0x4040>;
rockchip,key_table =
ir_key1{
rockchip,usercode = <0x4040>;
rockchip,key_table =
- remotectl: pwm@ff680000 {
- compatible = "rockchip,remotectl-pwm";
- reg = <0xff680000 0x10>;
- #pwm-cells = <2>;
- pinctrl-names = "default";
- pinctrl-0 = <&pwm0_pin>;
- clocks = <&clk_gates11 11>;
- clock-names = "pclk_pwm";
- remote_pwm_id = <0>;
- interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
- };
-