ARM: DT: Add DT entry for PWMs and Backlight
[linux-3.10.git] / arch / arm / boot / dts / tegra124-soc.dtsi
index 859a9ee..26920eb 100644 (file)
@@ -1,5 +1,11 @@
 / {
        aliases {
+               i2c0 = &i2c1;
+               i2c1 = &i2c2;
+               i2c2 = &i2c3;
+               i2c3 = &i2c4;
+               i2c4 = &i2c5;
+               i2c5 = &i2c6;
                serial0 = &uarta;
                serial1 = &uartb;
                serial2 = &uartc;
                spi5 = &spi5;
        };
 
+       gpio: gpio@6000d000 {
+               compatible = "nvidia,tegra124-gpio", "nvidia,tegra30-gpio";
+               reg = <0x6000d000 0x1000>;
+               interrupts = <0 32 0x04
+                               0 33 0x04
+                               0 34 0x04
+                               0 35 0x04
+                               0 55 0x04
+                               0 87 0x04
+                               0 89 0x04
+                               0 125 0x04>;
+               #gpio-cells = <2>;
+               gpio-controller;
+               #interrupt-cells = <2>;
+               interrupt-controller;
+       };
+
+       tegra_car: clock {
+               compatible = "nvidia,tegra124-car";
+               reg = <0x60006000 0x1000>;
+               #clock-cells = <1>;
+       };
+
+       pwm: pwm {
+               compatible = "nvidia,tegra124-pwm", "nvidia,tegra20-pwm";
+               reg = <0x7000a000 0x100>;
+               #pwm-cells = <2>;
+               clocks = <&tegra_car 17>;
+       };
+
        apbdma: dma@60020000 {
                compatible = "nvidia,tegra124-apbdma";
                reg = <0x60020000 0x1400>;
                              0 143 0x04>;
        };
 
+       pinmux: pinmux {
+               compatible = "nvidia,tegra124-pinmux";
+               reg = <0x70000868 0x164         /* Pad control registers */
+                      0x70003000 0x434>;       /* Mux registers */
+               status = "disable";
+       };
+
        /*
         * There are two serial driver i.e. 8250 based simple serial
         * driver and APB DMA based serial driver for higher baudrate
                status = "disabled";
        };
 
+       i2c1: i2c@7000c000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "nvidia,tegra124-i2c";
+               reg = <0x7000c000 0x100>;
+               interrupts = <0 38 0x04>;
+               scl-gpio = <&gpio 20 0>; /* gpio PC4 */
+               sda-gpio = <&gpio 21 0>; /* gpio PC5 */
+               nvidia,memory-clients = <14>;
+               status = "disable";
+       };
+
+       i2c2: i2c@7000c400 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "nvidia,tegra124-i2c";
+               reg = <0x7000c400 0x100>;
+               interrupts = <0 84 0x04>;
+               scl-gpio = <&gpio 157 0>; /* gpio PT5 */
+               sda-gpio = <&gpio 158 0>; /* gpio PT6 */
+               nvidia,memory-clients = <14>;
+               status = "disable";
+       };
+
+       i2c3: i2c@7000c500 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "nvidia,tegra124-i2c";
+               reg = <0x7000c500 0x100>;
+               interrupts = <0 92 0x04>;
+               scl-gpio = <&gpio 217 0>; /* gpio PBB1 */
+               sda-gpio = <&gpio 218 0>; /* gpio PBB2 */
+               nvidia,memory-clients = <14>;
+               status = "disable";
+       };
+
+       i2c4: i2c@7000c700 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "nvidia,tegra124-i2c";
+               reg = <0x7000c700 0x100>;
+               interrupts = <0 120 0x04>;
+               scl-gpio = <&gpio 172 0>; /* gpio PV4 */
+               sda-gpio = <&gpio 173 0>; /* gpio PV5 */
+               nvidia,memory-clients = <14>;
+               status = "disable";
+       };
+
+       i2c5: i2c@7000d000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "nvidia,tegra124-i2c";
+               reg = <0x7000d000 0x100>;
+               interrupts = <0 53 0x04>;
+               scl-gpio = <&gpio 206 0>; /* gpio PZ6 */
+               sda-gpio = <&gpio 207 0>; /* gpio PZ7 */
+               nvidia,memory-clients = <14>;
+               status = "disable";
+       };
+
+       i2c6: i2c@7000d100 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "nvidia,tegra124-i2c";
+               reg = <0x7000d100 0x100>;
+               interrupts = <0 63 0x04>;
+               nvidia,memory-clients = <14>;
+               status = "disable";
+       };
+
        spi0: spi@7000d400 {
                compatible = "nvidia,tegra114-spi";
                reg = <0x7000d400 0x200>;
                #size-cells = <0>;
                status = "disabled";
        };
+
+       pmc {
+               compatible = "nvidia,tegra124-pmc";
+               reg = <0x7000e400 0x400>;
+               clocks = <&tegra_car 261>, <&clk32k_in>;
+               clock-names = "pclk", "clk32k_in";
+       };
+
+       clocks {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               clk32k_in: clock {
+                       compatible = "fixed-clock";
+                       reg=<0>;
+                       #clock-cells = <0>;
+                       clock-frequency = <32768>;
+               };
+       };
+
+       timer@60005000 {
+               compatible = "nvidia,tegra-nvtimer";
+               reg = <0x60005000 0x400>;
+               interrupts = <0 0 0x04
+                             0 1 0x04
+                             0 41 0x04
+                             0 42 0x04
+                             0 121 0x04
+                             0 151 0x04
+                             0 152 0x04
+                             0 153 0x04
+                             0 154 0x04
+                             0 155 0x04
+                             0 122 0x04>;
+               clocks = <&tegra_car 5>;
+       };
+
+       rtc {
+               compatible = "nvidia,tegra-rtc";
+               reg = <0x7000e000 0x100>;
+               interrupts = <0 2 0x04>;
+               clocks = <&tegra_car 4>;
+       };
+
+       tegra_ahub_apbif: ahub {
+               compatible = "nvidia,tegra124-ahub";
+               reg = <0x70300000 0x200>,
+                       <0x70300800 0x800>,
+                       <0x70300200 0x200>;
+               interrupts = <0 103 0x04>;
+               nvidia,dma-request-selector = <&apbdma 1>, <&apbdma 2>,
+                       <&apbdma 3>, <&apbdma 4>, <&apbdma 6>, <&apbdma 7>,
+                       <&apbdma 12>, <&apbdma 13>, <&apbdma 14>, <&apbdma 29>;
+               status = "disabled";
+
+               ranges;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               tegra_i2s0: i2s@70301000 {
+                       compatible = "nvidia,tegra124-i2s";
+                       reg = <0x70301000 0x100>;
+                       nvidia,ahub-cif-ids = <4 4>;
+                       status = "disabled";
+               };
+
+               tegra_i2s1: i2s@70301100 {
+                       compatible = "nvidia,tegra124-i2s";
+                       reg = <0x70301100 0x100>;
+                       nvidia,ahub-cif-ids = <5 5>;
+                       status = "disabled";
+               };
+
+               tegra_i2s2: i2s@70301200 {
+                       compatible = "nvidia,tegra124-i2s";
+                       reg = <0x70301200 0x100>;
+                       nvidia,ahub-cif-ids = <6 6>;
+                       status = "disabled";
+               };
+
+               tegra_i2s3: i2s@70301300 {
+                       compatible = "nvidia,tegra124-i2s";
+                       reg = <0x70301300 0x100>;
+                       nvidia,ahub-cif-ids = <7 7>;
+                       status = "disabled";
+               };
+
+               tegra_i2s4: i2s@70301400 {
+                       compatible = "nvidia,tegra124-i2s";
+                       reg = <0x70301400 0x100>;
+                       nvidia,ahub-cif-ids = <8 8>;
+                       status = "disabled";
+               };
+
+               tegra_amx0: amx@70303000 {
+                       compatible = "nvidia,tegra124-amx";
+                       reg = <0x70303000 0x100>;
+                       status = "disabled";
+               };
+
+               tegra_amx1: amx@70303100 {
+                       compatible = "nvidia,tegra124-amx";
+                       reg = <0x70303100 0x100>;
+                       status = "disabled";
+               };
+
+               tegra_adx0: adx@70303800 {
+                       compatible = "nvidia,tegra124-adx";
+                       reg = <0x70303800 0x100>;
+                       status = "disabled";
+               };
+
+               tegra_adx1: adx@70303900 {
+                       compatible = "nvidia,tegra124-adx";
+                       reg = <0x70303900 0x100>;
+                       status = "disabled";
+               };
+       };
 };