3036: update i2c gpio
authorwdc <wdc@rock-chips.com>
Tue, 8 Jul 2014 07:33:03 +0000 (15:33 +0800)
committerwdc <wdc@rock-chips.com>
Tue, 8 Jul 2014 07:33:34 +0000 (15:33 +0800)
arch/arm/boot/dts/rk3036-rk88.dts
arch/arm/boot/dts/rk3036-sdk.dts
arch/arm/boot/dts/rk3036.dtsi

index bb5fd2f778d102401457fda776a6015b31fb492e..a4e063ddf16bf2bbb50aa15d2f3e242ebbff80de 100755 (executable)
                status = "okay";
 };
 
-&spi0 {
-       status = "okay";
-       max-freq = <48000000>;  
-       /*
-       spi_test@00 {
-               compatible = "rockchip,spi_test_bus0_cs0";
-                reg = <0>;
-                spi-max-frequency = <24000000>;
-                //spi-cpha;
-               //spi-cpol;
-                poll_mode = <0>;
-               type = <0>;
-               enable_dma = <0>;
-
-       };
-
-       spi_test@01 {
-               compatible = "rockchip,spi_test_bus0_cs1";
-               reg = <1>;
-               spi-max-frequency = <24000000>;
-               spi-cpha;
-               spi-cpol;
-               poll_mode = <0>;
-               type = <0>;
-               enable_dma = <0>;               
-       };
-       */
-};
-
 &uart0 {
         status = "okay";
         dma-names = "!tx", "!rx";
index 5c7509af46156362d00a0829f31f0d56de3022e7..38970e29a26f68c2874dd4508bebacc4934b97c0 100755 (executable)
                status = "okay";
 };
 
-&spi0 {
-       status = "okay";
-       max-freq = <48000000>;  
-       /*
-       spi_test@00 {
-               compatible = "rockchip,spi_test_bus0_cs0";
-                reg = <0>;
-                spi-max-frequency = <24000000>;
-                //spi-cpha;
-               //spi-cpol;
-                poll_mode = <0>;
-               type = <0>;
-               enable_dma = <0>;
-
-       };
-
-       spi_test@01 {
-               compatible = "rockchip,spi_test_bus0_cs1";
-               reg = <1>;
-               spi-max-frequency = <24000000>;
-               spi-cpha;
-               spi-cpol;
-               poll_mode = <0>;
-               type = <0>;
-               enable_dma = <0>;               
-       };
-       */
-};
-
 &uart0 {
         status = "okay";
         dma-names = "!tx", "!rx";
index 43130a8d35216209df64dbe00f1f64165789848e..8aa9102a1e897e266219f3e773d2a693edb373c0 100755 (executable)
                pinctrl-names = "default", "gpio";
                pinctrl-0 = <&i2c0_sda &i2c0_scl>;
                pinctrl-1 = <&i2c0_gpio>;
-               gpios = <&gpio0 GPIO_B7 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_C0 GPIO_ACTIVE_LOW>;
+               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 = <&gpio8 GPIO_A4 GPIO_ACTIVE_LOW>, <&gpio8 GPIO_A5 GPIO_ACTIVE_LOW>;
+               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 = <&gpio6 GPIO_B1 GPIO_ACTIVE_LOW>, <&gpio6 GPIO_B2 GPIO_ACTIVE_LOW>;
+               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";