ARM: dts: rk3288: move the remote-ctrl of PWM into box dts
authorhuang zhibao <hzb@rock-chips.com>
Thu, 27 Aug 2015 08:03:41 +0000 (16:03 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 1 Sep 2015 10:37:54 +0000 (18:37 +0800)
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>
arch/arm/boot/dts/rk3288-box.dts
arch/arm/boot/dts/rk3288.dtsi

index a2dcadd308f380bdf66373cb386b463079485cd7..2001d2178b48fab7c890e1fb46d57505ca7dbeed 100644 (file)
        regulator-name = "vcc_sd";
        };
 
-&remotectl {
+/*
+ * 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";
+
        ir_key1{
                rockchip,usercode = <0x4040>;
                rockchip,key_table =
index f4f921895f9d7cc933c3d5d586619ff714b1ce3d..9c13e3706f5cf7fb30e89aadc46718274f16d187 100755 (executable)
                status = "disabled";
        };
 
-       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";
-       };
-
        dvfs {
 
                vd_arm: vd_arm {