add spi dts code
authorluowei <lw@rock-chips.com>
Fri, 7 Mar 2014 11:03:20 +0000 (19:03 +0800)
committerluowei <lw@rock-chips.com>
Fri, 7 Mar 2014 11:03:20 +0000 (19:03 +0800)
arch/arm/boot/dts/rk3188.dtsi

index b4834797b70b16123ca256f60318d138acd18c2c..6a6cdd5f18025d77c99fc89a449530e3ba6f947e 100755 (executable)
@@ -23,6 +23,8 @@
                i2c4 = &i2c4;
                lcdc0 = &lcdc0;
                lcdc1 = &lcdc1;
+               spi0 = &spi0;
+               spi1 = &spi1;
        };
 
        cpus {
                status = "disabled";
        };
 
+       spi0: spi@20070000 {
+               compatible = "rockchip,rockchip-spi";
+               reg = <0x20070000 0x500>;
+               interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&spi0_txd &spi0_rxd &spi0_clk &spi0_cs0 &spi0_cs1>;
+               rockchip,spi-src-clk = <0>;
+               num-cs = <2>;
+               clocks =<&clk_spi0>, <&clk_gates7 12>;
+               clock-names = "spi","pclk_spi0";
+               dmas = <&pdma0 16>, <&pdma0 17>;
+               #dma-cells = <2>;
+               dma-names = "tx", "rx";
+               status = "disabled";
+       };
+
+       spi1: spi@20074000 {
+               compatible = "rockchip,rockchip-spi";
+               reg = <0x20074000 0x500>;
+               interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&spi1_txd &spi1_rxd &spi1_clk &spi1_cs0 &spi1_cs1>;
+               rockchip,spi-src-clk = <1>;
+               num-cs = <2>;
+               clocks = <&clk_spi1>, <&clk_gates7 13>;
+               clock-names = "spi","pclk_spi1";
+               dmas = <&pdma0 16>, <&pdma0 17>;
+               #dma-cells = <2>;
+               dma-names = "tx", "rx";
+               status = "disabled";
+       };
+
        i2c0: i2c@2002d000 {
                compatible = "rockchip,rk30-i2c";
                reg = <0x2002d000 0x1000>;