rk312x: include pinctrl at dtsi
authorwdc <wdc@rock-chips.com>
Thu, 31 Jul 2014 06:21:42 +0000 (14:21 +0800)
committerwdc <wdc@rock-chips.com>
Thu, 31 Jul 2014 06:21:42 +0000 (14:21 +0800)
arch/arm/boot/dts/rk312x-sdk.dtsi
arch/arm/boot/dts/rk312x.dtsi

index 04c9d8d76538db000d36fd974c22c9f584cdd3b3..285220f12aa5dc44b4b6a2a8d364784edbadecff 100644 (file)
@@ -1,7 +1,6 @@
 /dts-v1/;
 
 #include "rk312x.dtsi"
-#include "rk312x-pinctrl.dtsi"
 #include "lcd-b101ew05.dtsi"
 
 / {
index 31d0df836aa37572e20487d5214d18ad97c85701..84d4286a0dc0d8b24ce7befe75df89ae22e20b9b 100755 (executable)
@@ -6,6 +6,7 @@
 
 #include "skeleton.dtsi"
 #include "rk312x-clocks.dtsi"
+#include "rk312x-pinctrl.dtsi"
 
 / {
        compatible = "rockchip,rk312x";
                reg = <0x20060000 0x100>;
                interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
                clock-frequency = <24000000>;
-       //      clocks = <&clk_uart0>, <&clk_gates8 0>;
+               clocks = <&clk_uart0>, <&clk_gates8 0>;
                clock-names = "sclk_uart", "pclk_uart";
                reg-shift = <2>;
                reg-io-width = <4>;
                dmas = <&pdma 2>, <&pdma 3>;
                #dma-cells = <2>;
                pinctrl-names = "default";
-       //      pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
+               pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
                status = "disabled";
        };
 
                reg = <0x20064000 0x100>;
                interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
                clock-frequency = <24000000>;
-       //      clocks = <&clk_uart1>, <&clk_gates8 1>;
+               clocks = <&clk_uart1>, <&clk_gates8 1>;
                clock-names = "sclk_uart", "pclk_uart";
                reg-shift = <2>;
                reg-io-width = <4>;
                dmas = <&pdma 4>, <&pdma 5>;
                #dma-cells = <2>;
                pinctrl-names = "default";
-       //      pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
+               pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
                status = "disabled";
        };
 
                reg = <0x20068000 0x100>;
                interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
                clock-frequency = <24000000>;
-       //      clocks = <&clk_uart2>, <&clk_gates8 2>;
+               clocks = <&clk_uart2>, <&clk_gates8 2>;
                clock-names = "sclk_uart", "pclk_uart";
                reg-shift = <2>;
                reg-io-width = <4>;
                dmas = <&pdma 6>, <&pdma 7>;
                #dma-cells = <2>;
                pinctrl-names = "default";
-       //      pinctrl-0 = <&uart2_xfer>;
+               pinctrl-0 = <&uart2_xfer>;
                status = "disabled";
        };
 
                interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
                #address-cells = <1>;
                #size-cells = <0>;
-       //      pinctrl-names = "default", "gpio";
-       //      pinctrl-0 = <&i2c0_sda &i2c0_scl>;
-       //      pinctrl-1 = <&i2c0_gpio>;
-       //      gpios = <&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
-       //      clocks = <&clk_gates8 4>;
+               pinctrl-names = "default", "gpio";
+               pinctrl-0 = <&i2c0_sda &i2c0_scl>;
+               pinctrl-1 = <&i2c0_gpio>;
+               gpios = <&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
+               clocks = <&clk_gates8 4>;
                rockchip,check-idle = <1>;
                status = "disabled";
        };
                interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
                #address-cells = <1>;
                #size-cells = <0>;
-       //      pinctrl-names = "default", "gpio";
-       //      pinctrl-0 = <&i2c1_sda &i2c1_scl>;
-       //      pinctrl-1 = <&i2c1_gpio>;
-       //      gpios = <&gpio0 GPIO_A3 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
-       //      clocks = <&clk_gates8 5>;
+               pinctrl-names = "default", "gpio";
+               pinctrl-0 = <&i2c1_sda &i2c1_scl>;
+               pinctrl-1 = <&i2c1_gpio>;
+               gpios = <&gpio0 GPIO_A3 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
+               clocks = <&clk_gates8 5>;
                rockchip,check-idle = <1>;
                status = "disabled";
        };
                interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
                #address-cells = <1>;
                #size-cells = <0>;
-       //      pinctrl-names = "default", "gpio";
-       //      pinctrl-0 = <&i2c2_sda &i2c2_scl>;
-       //      pinctrl-1 = <&i2c2_gpio>;
-       //      gpios = <&gpio2 GPIO_C4 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C5 GPIO_ACTIVE_LOW>;
-       //      clocks = <&clk_gates8 6>;
+               pinctrl-names = "default", "gpio";
+               pinctrl-0 = <&i2c2_sda &i2c2_scl>;
+               pinctrl-1 = <&i2c2_gpio>;
+               gpios = <&gpio2 GPIO_C4 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C5 GPIO_ACTIVE_LOW>;
+               clocks = <&clk_gates8 6>;
                rockchip,check-idle = <1>;
                status = "disabled";
        };
                interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
                #address-cells = <1>;
                #size-cells = <0>;
-       //      pinctrl-names = "default", "gpio";
-       //      pinctrl-0 = <&i2c2_sda &i2c2_scl>;
-       //      pinctrl-1 = <&i2c2_gpio>;
-       //      gpios = <&gpio2 GPIO_C4 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C5 GPIO_ACTIVE_LOW>;
-       //      clocks = <&clk_gates8 6>;
+                pinctrl-names = "default", "gpio";
+               pinctrl-0 = <&i2c3_sda &i2c3_scl>;
+               pinctrl-1 = <&i2c3_gpio>;
+               gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A6 GPIO_ACTIVE_LOW>;
+               clocks = <&clk_gates8 6>;
                rockchip,check-idle = <1>;
                status = "disabled";
        };