rk312x pinctrl: add rk312x lcdc_d pinctrl for rgb output
authorzwl <zwl@rockchips.com>
Thu, 31 Jul 2014 06:50:16 +0000 (14:50 +0800)
committerzwl <zwl@rockchips.com>
Thu, 31 Jul 2014 06:50:30 +0000 (14:50 +0800)
arch/arm/boot/dts/rk312x-pinctrl.dtsi
arch/arm/boot/dts/rk312x.dtsi

index 7a189857da9eba15519a87449cb5640117db31b0..16c7b42121b6ff3aaab23641f722eff3bc08ecdd 100755 (executable)
 
                };
 
+               gpio2_lcdc0_d {
+                       lcdc0_lcdc_d: lcdc0-lcdc_d {
+                               rockchip,pins =
+                                               <LCDC0_D10>,
+                                               <LCDC0_D11>,
+                                               <LCDC0_D12>,
+                                               <LCDC0_D13>,
+                                               <LCDC0_D14>,
+                                               <LCDC0_D15>,
+                                               <LCDC0_D16>,
+                                               <LCDC0_D17>,
+                                               <LCDC0_D18>,
+                                               <LCDC0_D19>,
+                                               <LCDC0_D20>,
+                                               <LCDC0_D21>,
+                                               <LCDC0_D22>,
+                                               <LCDC0_D23>;
+                               rockchip,pull = <VALUE_PULL_DISABLE>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                       };
+
+                       lcdc0_lcdc_gpio: lcdc0-lcdc_gpio {
+                               rockchip,pins =
+                                               <FUNC_TO_GPIO(LCDC0_D10)>,
+                                               <FUNC_TO_GPIO(LCDC0_D11)>,
+                                               <FUNC_TO_GPIO(LCDC0_D12)>,
+                                               <FUNC_TO_GPIO(LCDC0_D13)>,
+                                               <FUNC_TO_GPIO(LCDC0_D14)>,
+                                               <FUNC_TO_GPIO(LCDC0_D15)>,
+                                               <FUNC_TO_GPIO(LCDC0_D16)>,
+                                               <FUNC_TO_GPIO(LCDC0_D17)>,
+                                               <FUNC_TO_GPIO(LCDC0_D18)>,
+                                               <FUNC_TO_GPIO(LCDC0_D19)>,
+                                               <FUNC_TO_GPIO(LCDC0_D20)>,
+                                               <FUNC_TO_GPIO(LCDC0_D21)>,
+                                               <FUNC_TO_GPIO(LCDC0_D22)>,
+                                               <FUNC_TO_GPIO(LCDC0_D23)>;
+                               rockchip,pull = <VALUE_PULL_DOWN>;
+                               rockchip,drive = <VALUE_DRV_DEFAULT>;
+                       };
+
+               };
+
                //to add 
 
                
index 84d4286a0dc0d8b24ce7befe75df89ae22e20b9b..356054ccd7a452d24f5360f96dd1882a0beeee7f 100755 (executable)
                reg = <0x20038000 0x4000>;
                clocks = <&clk_gates5 0>;
                clock-names = "pclk_lvds";
+               pinctrl-names = "lcdc", "sleep";
+               pinctrl-0 = <&lcdc0_lcdc_d>;
+               pinctrl-1 = <&lcdc0_lcdc_gpio>;
        };
 
        lcdc: lcdc@1010e000 {