Commit 885a8cfa authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Stephen Warren

ARM: tegra20: convert device tree files to use CLK defines

Use the Tegra20 CAR binding header (tegra20-car.h) to replace magic
numbers in the device tree. For example,

-               clocks = <&tegra_car 28>;
+               clocks = <&tegra_car CLK_HOST1X>;
Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
[swarren, updated since tegra20-car.h moved for consistency]
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 1a99ece9
...@@ -492,7 +492,9 @@ sound { ...@@ -492,7 +492,9 @@ sound {
nvidia,ac97-controller = <&ac97>; nvidia,ac97-controller = <&ac97>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
......
...@@ -702,7 +702,9 @@ sound { ...@@ -702,7 +702,9 @@ sound {
nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1) nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
GPIO_ACTIVE_HIGH>; GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -59,7 +59,9 @@ sound { ...@@ -59,7 +59,9 @@ sound {
nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>; nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -277,7 +277,8 @@ nvec { ...@@ -277,7 +277,8 @@ nvec {
clock-frequency = <80000>; clock-frequency = <80000>;
request-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; request-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
slave-addr = <138>; slave-addr = <138>;
clocks = <&tegra_car 67>, <&tegra_car 124>; clocks = <&tegra_car TEGRA20_CLK_I2C3>,
<&tegra_car TEGRA20_CLK_PLL_P_OUT3>;
clock-names = "div-clk", "fast-clk"; clock-names = "div-clk", "fast-clk";
}; };
...@@ -535,7 +536,9 @@ sound { ...@@ -535,7 +536,9 @@ sound {
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
GPIO_ACTIVE_HIGH>; GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -53,7 +53,9 @@ sound { ...@@ -53,7 +53,9 @@ sound {
nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>; nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -853,7 +853,9 @@ sound { ...@@ -853,7 +853,9 @@ sound {
nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>; nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(X, 1) GPIO_ACTIVE_HIGH>; nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(X, 1) GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -54,7 +54,9 @@ sound { ...@@ -54,7 +54,9 @@ sound {
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2)
GPIO_ACTIVE_HIGH>; GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -419,7 +419,9 @@ sound { ...@@ -419,7 +419,9 @@ sound {
nvidia,i2s-controller = <&tegra_i2s1>; nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,audio-codec = <&codec>; nvidia,audio-codec = <&codec>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -654,7 +654,9 @@ sound { ...@@ -654,7 +654,9 @@ sound {
nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1) nvidia,ext-mic-en-gpios = <&gpio TEGRA_GPIO(X, 1)
GPIO_ACTIVE_HIGH>; GPIO_ACTIVE_HIGH>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
...@@ -613,7 +613,9 @@ sound { ...@@ -613,7 +613,9 @@ sound {
nvidia,i2s-controller = <&tegra_i2s1>; nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,audio-codec = <&codec>; nvidia,audio-codec = <&codec>;
clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
<&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
<&tegra_car TEGRA20_CLK_CDEV1>;
clock-names = "pll_a", "pll_a_out0", "mclk"; clock-names = "pll_a", "pll_a_out0", "mclk";
}; };
}; };
#include <dt-bindings/clock/tegra20-car.h>
#include <dt-bindings/gpio/tegra-gpio.h> #include <dt-bindings/gpio/tegra-gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
...@@ -20,7 +21,7 @@ host1x { ...@@ -20,7 +21,7 @@ host1x {
reg = <0x50000000 0x00024000>; reg = <0x50000000 0x00024000>;
interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */ interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */
<GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; /* general */ <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; /* general */
clocks = <&tegra_car 28>; clocks = <&tegra_car TEGRA20_CLK_HOST1X>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
...@@ -31,48 +32,49 @@ mpe { ...@@ -31,48 +32,49 @@ mpe {
compatible = "nvidia,tegra20-mpe"; compatible = "nvidia,tegra20-mpe";
reg = <0x54040000 0x00040000>; reg = <0x54040000 0x00040000>;
interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 60>; clocks = <&tegra_car TEGRA20_CLK_MPE>;
}; };
vi { vi {
compatible = "nvidia,tegra20-vi"; compatible = "nvidia,tegra20-vi";
reg = <0x54080000 0x00040000>; reg = <0x54080000 0x00040000>;
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 100>; clocks = <&tegra_car TEGRA20_CLK_VI>;
}; };
epp { epp {
compatible = "nvidia,tegra20-epp"; compatible = "nvidia,tegra20-epp";
reg = <0x540c0000 0x00040000>; reg = <0x540c0000 0x00040000>;
interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 19>; clocks = <&tegra_car TEGRA20_CLK_EPP>;
}; };
isp { isp {
compatible = "nvidia,tegra20-isp"; compatible = "nvidia,tegra20-isp";
reg = <0x54100000 0x00040000>; reg = <0x54100000 0x00040000>;
interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 23>; clocks = <&tegra_car TEGRA20_CLK_ISP>;
}; };
gr2d { gr2d {
compatible = "nvidia,tegra20-gr2d"; compatible = "nvidia,tegra20-gr2d";
reg = <0x54140000 0x00040000>; reg = <0x54140000 0x00040000>;
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 21>; clocks = <&tegra_car TEGRA20_CLK_GR2D>;
}; };
gr3d { gr3d {
compatible = "nvidia,tegra20-gr3d"; compatible = "nvidia,tegra20-gr3d";
reg = <0x54180000 0x00040000>; reg = <0x54180000 0x00040000>;
clocks = <&tegra_car 24>; clocks = <&tegra_car TEGRA20_CLK_GR3D>;
}; };
dc@54200000 { dc@54200000 {
compatible = "nvidia,tegra20-dc"; compatible = "nvidia,tegra20-dc";
reg = <0x54200000 0x00040000>; reg = <0x54200000 0x00040000>;
interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 27>, <&tegra_car 121>; clocks = <&tegra_car TEGRA20_CLK_DISP1>,
<&tegra_car TEGRA20_CLK_PLL_P>;
clock-names = "disp1", "parent"; clock-names = "disp1", "parent";
rgb { rgb {
...@@ -84,7 +86,8 @@ dc@54240000 { ...@@ -84,7 +86,8 @@ dc@54240000 {
compatible = "nvidia,tegra20-dc"; compatible = "nvidia,tegra20-dc";
reg = <0x54240000 0x00040000>; reg = <0x54240000 0x00040000>;
interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 26>, <&tegra_car 121>; clocks = <&tegra_car TEGRA20_CLK_DISP2>,
<&tegra_car TEGRA20_CLK_PLL_P>;
clock-names = "disp2", "parent"; clock-names = "disp2", "parent";
rgb { rgb {
...@@ -96,7 +99,8 @@ hdmi { ...@@ -96,7 +99,8 @@ hdmi {
compatible = "nvidia,tegra20-hdmi"; compatible = "nvidia,tegra20-hdmi";
reg = <0x54280000 0x00040000>; reg = <0x54280000 0x00040000>;
interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 51>, <&tegra_car 117>; clocks = <&tegra_car TEGRA20_CLK_HDMI>,
<&tegra_car TEGRA20_CLK_PLL_D_OUT0>;
clock-names = "hdmi", "parent"; clock-names = "hdmi", "parent";
status = "disabled"; status = "disabled";
}; };
...@@ -105,14 +109,14 @@ tvo { ...@@ -105,14 +109,14 @@ tvo {
compatible = "nvidia,tegra20-tvo"; compatible = "nvidia,tegra20-tvo";
reg = <0x542c0000 0x00040000>; reg = <0x542c0000 0x00040000>;
interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 102>; clocks = <&tegra_car TEGRA20_CLK_TVO>;
status = "disabled"; status = "disabled";
}; };
dsi { dsi {
compatible = "nvidia,tegra20-dsi"; compatible = "nvidia,tegra20-dsi";
reg = <0x54300000 0x00040000>; reg = <0x54300000 0x00040000>;
clocks = <&tegra_car 48>; clocks = <&tegra_car TEGRA20_CLK_DSI>;
status = "disabled"; status = "disabled";
}; };
}; };
...@@ -122,7 +126,7 @@ timer@50004600 { ...@@ -122,7 +126,7 @@ timer@50004600 {
reg = <0x50040600 0x20>; reg = <0x50040600 0x20>;
interrupts = <GIC_PPI 13 interrupts = <GIC_PPI 13
(GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
clocks = <&tegra_car 132>; clocks = <&tegra_car TEGRA20_CLK_TWD>;
}; };
intc: interrupt-controller { intc: interrupt-controller {
...@@ -149,7 +153,7 @@ timer@60005000 { ...@@ -149,7 +153,7 @@ timer@60005000 {
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 5>; clocks = <&tegra_car TEGRA20_CLK_TIMER>;
}; };
tegra_car: clock { tegra_car: clock {
...@@ -177,7 +181,7 @@ apbdma: dma { ...@@ -177,7 +181,7 @@ apbdma: dma {
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 34>; clocks = <&tegra_car TEGRA20_CLK_APBDMA>;
}; };
ahb { ahb {
...@@ -219,7 +223,7 @@ tegra_ac97: ac97 { ...@@ -219,7 +223,7 @@ tegra_ac97: ac97 {
reg = <0x70002000 0x200>; reg = <0x70002000 0x200>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 12>; nvidia,dma-request-selector = <&apbdma 12>;
clocks = <&tegra_car 3>; clocks = <&tegra_car TEGRA20_CLK_AC97>;
status = "disabled"; status = "disabled";
}; };
...@@ -228,7 +232,7 @@ tegra_i2s1: i2s@70002800 { ...@@ -228,7 +232,7 @@ tegra_i2s1: i2s@70002800 {
reg = <0x70002800 0x200>; reg = <0x70002800 0x200>;
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 2>; nvidia,dma-request-selector = <&apbdma 2>;
clocks = <&tegra_car 11>; clocks = <&tegra_car TEGRA20_CLK_I2S1>;
status = "disabled"; status = "disabled";
}; };
...@@ -237,7 +241,7 @@ tegra_i2s2: i2s@70002a00 { ...@@ -237,7 +241,7 @@ tegra_i2s2: i2s@70002a00 {
reg = <0x70002a00 0x200>; reg = <0x70002a00 0x200>;
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 1>; nvidia,dma-request-selector = <&apbdma 1>;
clocks = <&tegra_car 18>; clocks = <&tegra_car TEGRA20_CLK_I2S2>;
status = "disabled"; status = "disabled";
}; };
...@@ -254,7 +258,7 @@ uarta: serial@70006000 { ...@@ -254,7 +258,7 @@ uarta: serial@70006000 {
reg-shift = <2>; reg-shift = <2>;
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 8>; nvidia,dma-request-selector = <&apbdma 8>;
clocks = <&tegra_car 6>; clocks = <&tegra_car TEGRA20_CLK_UARTA>;
status = "disabled"; status = "disabled";
}; };
...@@ -264,7 +268,7 @@ uartb: serial@70006040 { ...@@ -264,7 +268,7 @@ uartb: serial@70006040 {
reg-shift = <2>; reg-shift = <2>;
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 9>; nvidia,dma-request-selector = <&apbdma 9>;
clocks = <&tegra_car 96>; clocks = <&tegra_car TEGRA20_CLK_UARTB>;
status = "disabled"; status = "disabled";
}; };
...@@ -274,7 +278,7 @@ uartc: serial@70006200 { ...@@ -274,7 +278,7 @@ uartc: serial@70006200 {
reg-shift = <2>; reg-shift = <2>;
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 10>; nvidia,dma-request-selector = <&apbdma 10>;
clocks = <&tegra_car 55>; clocks = <&tegra_car TEGRA20_CLK_UARTC>;
status = "disabled"; status = "disabled";
}; };
...@@ -284,7 +288,7 @@ uartd: serial@70006300 { ...@@ -284,7 +288,7 @@ uartd: serial@70006300 {
reg-shift = <2>; reg-shift = <2>;
interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 19>; nvidia,dma-request-selector = <&apbdma 19>;
clocks = <&tegra_car 65>; clocks = <&tegra_car TEGRA20_CLK_UARTD>;
status = "disabled"; status = "disabled";
}; };
...@@ -294,7 +298,7 @@ uarte: serial@70006400 { ...@@ -294,7 +298,7 @@ uarte: serial@70006400 {
reg-shift = <2>; reg-shift = <2>;
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
nvidia,dma-request-selector = <&apbdma 20>; nvidia,dma-request-selector = <&apbdma 20>;
clocks = <&tegra_car 66>; clocks = <&tegra_car TEGRA20_CLK_UARTE>;
status = "disabled"; status = "disabled";
}; };
...@@ -302,7 +306,7 @@ pwm: pwm { ...@@ -302,7 +306,7 @@ pwm: pwm {
compatible = "nvidia,tegra20-pwm"; compatible = "nvidia,tegra20-pwm";
reg = <0x7000a000 0x100>; reg = <0x7000a000 0x100>;
#pwm-cells = <2>; #pwm-cells = <2>;
clocks = <&tegra_car 17>; clocks = <&tegra_car TEGRA20_CLK_PWM>;
status = "disabled"; status = "disabled";
}; };
...@@ -310,7 +314,7 @@ rtc { ...@@ -310,7 +314,7 @@ rtc {
compatible = "nvidia,tegra20-rtc"; compatible = "nvidia,tegra20-rtc";
reg = <0x7000e000 0x100>; reg = <0x7000e000 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 4>; clocks = <&tegra_car TEGRA20_CLK_RTC>;
}; };
i2c@7000c000 { i2c@7000c000 {
...@@ -319,7 +323,8 @@ i2c@7000c000 { ...@@ -319,7 +323,8 @@ i2c@7000c000 {
interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 12>, <&tegra_car 124>; clocks = <&tegra_car TEGRA20_CLK_I2C1>,
<&tegra_car TEGRA20_CLK_PLL_P_OUT3>;
clock-names = "div-clk", "fast-clk"; clock-names = "div-clk", "fast-clk";
status = "disabled"; status = "disabled";
}; };
...@@ -331,7 +336,7 @@ spi@7000c380 { ...@@ -331,7 +336,7 @@ spi@7000c380 {
nvidia,dma-request-selector = <&apbdma 11>; nvidia,dma-request-selector = <&apbdma 11>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 43>; clocks = <&tegra_car TEGRA20_CLK_SPI>;
status = "disabled"; status = "disabled";
}; };
...@@ -341,7 +346,8 @@ i2c@7000c400 { ...@@ -341,7 +346,8 @@ i2c@7000c400 {
interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 54>, <&tegra_car 124>; clocks = <&tegra_car TEGRA20_CLK_I2C2>,
<&tegra_car TEGRA20_CLK_PLL_P_OUT3>;
clock-names = "div-clk", "fast-clk"; clock-names = "div-clk", "fast-clk";
status = "disabled"; status = "disabled";
}; };
...@@ -352,7 +358,8 @@ i2c@7000c500 { ...@@ -352,7 +358,8 @@ i2c@7000c500 {
interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 67>, <&tegra_car 124>; clocks = <&tegra_car TEGRA20_CLK_I2C3>,
<&tegra_car TEGRA20_CLK_PLL_P_OUT3>;
clock-names = "div-clk", "fast-clk"; clock-names = "div-clk", "fast-clk";
status = "disabled"; status = "disabled";
}; };
...@@ -363,7 +370,8 @@ i2c@7000d000 { ...@@ -363,7 +370,8 @@ i2c@7000d000 {
interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 47>, <&tegra_car 124>; clocks = <&tegra_car TEGRA20_CLK_DVC>,
<&tegra_car TEGRA20_CLK_PLL_P_OUT3>;
clock-names = "div-clk", "fast-clk"; clock-names = "div-clk", "fast-clk";
status = "disabled"; status = "disabled";
}; };
...@@ -375,7 +383,7 @@ spi@7000d400 { ...@@ -375,7 +383,7 @@ spi@7000d400 {
nvidia,dma-request-selector = <&apbdma 15>; nvidia,dma-request-selector = <&apbdma 15>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 41>; clocks = <&tegra_car TEGRA20_CLK_SBC1>;
status = "disabled"; status = "disabled";
}; };
...@@ -386,7 +394,7 @@ spi@7000d600 { ...@@ -386,7 +394,7 @@ spi@7000d600 {
nvidia,dma-request-selector = <&apbdma 16>; nvidia,dma-request-selector = <&apbdma 16>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 44>; clocks = <&tegra_car TEGRA20_CLK_SBC2>;
status = "disabled"; status = "disabled";
}; };
...@@ -397,7 +405,7 @@ spi@7000d800 { ...@@ -397,7 +405,7 @@ spi@7000d800 {
nvidia,dma-request-selector = <&apbdma 17>; nvidia,dma-request-selector = <&apbdma 17>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 46>; clocks = <&tegra_car TEGRA20_CLK_SBC3>;
status = "disabled"; status = "disabled";
}; };
...@@ -408,7 +416,7 @@ spi@7000da00 { ...@@ -408,7 +416,7 @@ spi@7000da00 {
nvidia,dma-request-selector = <&apbdma 18>; nvidia,dma-request-selector = <&apbdma 18>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
clocks = <&tegra_car 68>; clocks = <&tegra_car TEGRA20_CLK_SBC4>;
status = "disabled"; status = "disabled";
}; };
...@@ -416,14 +424,14 @@ kbc { ...@@ -416,14 +424,14 @@ kbc {
compatible = "nvidia,tegra20-kbc"; compatible = "nvidia,tegra20-kbc";
reg = <0x7000e200 0x100>; reg = <0x7000e200 0x100>;
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 36>; clocks = <&tegra_car TEGRA20_CLK_KBC>;
status = "disabled"; status = "disabled";
}; };
pmc { pmc {
compatible = "nvidia,tegra20-pmc"; compatible = "nvidia,tegra20-pmc";
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
clocks = <&tegra_car 110>, <&clk32k_in>; clocks = <&tegra_car TEGRA20_CLK_PCLK>, <&clk32k_in>;
clock-names = "pclk", "clk32k_in"; clock-names = "pclk", "clk32k_in";
}; };
...@@ -453,7 +461,7 @@ usb@c5000000 { ...@@ -453,7 +461,7 @@ usb@c5000000 {
interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
phy_type = "utmi"; phy_type = "utmi";
nvidia,has-legacy-mode; nvidia,has-legacy-mode;
clocks = <&tegra_car 22>; clocks = <&tegra_car TEGRA20_CLK_USBD>;
nvidia,needs-double-reset; nvidia,needs-double-reset;
nvidia,phy = <&phy1>; nvidia,phy = <&phy1>;
status = "disabled"; status = "disabled";
...@@ -463,10 +471,10 @@ phy1: usb-phy@c5000000 { ...@@ -463,10 +471,10 @@ phy1: usb-phy@c5000000 {
compatible = "nvidia,tegra20-usb-phy"; compatible = "nvidia,tegra20-usb-phy";
reg = <0xc5000000 0x4000 0xc5000000 0x4000>; reg = <0xc5000000 0x4000 0xc5000000 0x4000>;
phy_type = "utmi"; phy_type = "utmi";
clocks = <&tegra_car 22>, clocks = <&tegra_car TEGRA20_CLK_USBD>,
<&tegra_car 127>, <&tegra_car TEGRA20_CLK_PLL_U>,
<&tegra_car 106>, <&tegra_car TEGRA20_CLK_CLK_M>,
<&tegra_car 22>; <&tegra_car TEGRA20_CLK_USBD>;
clock-names = "reg", "pll_u", "timer", "utmi-pads"; clock-names = "reg", "pll_u", "timer", "utmi-pads";
nvidia,has-legacy-mode; nvidia,has-legacy-mode;
hssync_start_delay = <9>; hssync_start_delay = <9>;
...@@ -484,7 +492,7 @@ usb@c5004000 { ...@@ -484,7 +492,7 @@ usb@c5004000 {
reg = <0xc5004000 0x4000>; reg = <0xc5004000 0x4000>;
interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
phy_type = "ulpi"; phy_type = "ulpi";
clocks = <&tegra_car 58>; clocks = <&tegra_car TEGRA20_CLK_USB2>;
nvidia,phy = <&phy2>; nvidia,phy = <&phy2>;
status = "disabled"; status = "disabled";
}; };
...@@ -493,9 +501,9 @@ phy2: usb-phy@c5004000 { ...@@ -493,9 +501,9 @@ phy2: usb-phy@c5004000 {
compatible = "nvidia,tegra20-usb-phy"; compatible = "nvidia,tegra20-usb-phy";
reg = <0xc5004000 0x4000>; reg = <0xc5004000 0x4000>;
phy_type = "ulpi"; phy_type = "ulpi";
clocks = <&tegra_car 58>, clocks = <&tegra_car TEGRA20_CLK_USB2>,
<&tegra_car 127>, <&tegra_car TEGRA20_CLK_PLL_U>,
<&tegra_car 93>; <&tegra_car TEGRA20_CLK_CDEV2>;
clock-names = "reg", "pll_u", "ulpi-link"; clock-names = "reg", "pll_u", "ulpi-link";
status = "disabled"; status = "disabled";
}; };
...@@ -505,7 +513,7 @@ usb@c5008000 { ...@@ -505,7 +513,7 @@ usb@c5008000 {
reg = <0xc5008000 0x4000>; reg = <0xc5008000 0x4000>;
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
phy_type = "utmi"; phy_type = "utmi";
clocks = <&tegra_car 59>; clocks = <&tegra_car TEGRA20_CLK_USB3>;
nvidia,phy = <&phy3>; nvidia,phy = <&phy3>;
status = "disabled"; status = "disabled";
}; };
...@@ -514,10 +522,10 @@ phy3: usb-phy@c5008000 { ...@@ -514,10 +522,10 @@ phy3: usb-phy@c5008000 {
compatible = "nvidia,tegra20-usb-phy"; compatible = "nvidia,tegra20-usb-phy";
reg = <0xc5008000 0x4000 0xc5000000 0x4000>; reg = <0xc5008000 0x4000 0xc5000000 0x4000>;
phy_type = "utmi"; phy_type = "utmi";
clocks = <&tegra_car 59>, clocks = <&tegra_car TEGRA20_CLK_USB3>,
<&tegra_car 127>, <&tegra_car TEGRA20_CLK_PLL_U>,
<&tegra_car 106>, <&tegra_car TEGRA20_CLK_CLK_M>,
<&tegra_car 22>; <&tegra_car TEGRA20_CLK_USBD>;
clock-names = "reg", "pll_u", "timer", "utmi-pads"; clock-names = "reg", "pll_u", "timer", "utmi-pads";
hssync_start_delay = <9>; hssync_start_delay = <9>;
idle_wait_delay = <17>; idle_wait_delay = <17>;
...@@ -533,7 +541,7 @@ sdhci@c8000000 { ...@@ -533,7 +541,7 @@ sdhci@c8000000 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000000 0x200>; reg = <0xc8000000 0x200>;
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 14>; clocks = <&tegra_car TEGRA20_CLK_SDMMC1>;
status = "disabled"; status = "disabled";
}; };
...@@ -541,7 +549,7 @@ sdhci@c8000200 { ...@@ -541,7 +549,7 @@ sdhci@c8000200 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000200 0x200>; reg = <0xc8000200 0x200>;
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 9>; clocks = <&tegra_car TEGRA20_CLK_SDMMC2>;
status = "disabled"; status = "disabled";
}; };
...@@ -549,7 +557,7 @@ sdhci@c8000400 { ...@@ -549,7 +557,7 @@ sdhci@c8000400 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000400 0x200>; reg = <0xc8000400 0x200>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 69>; clocks = <&tegra_car TEGRA20_CLK_SDMMC3>;
status = "disabled"; status = "disabled";
}; };
...@@ -557,7 +565,7 @@ sdhci@c8000600 { ...@@ -557,7 +565,7 @@ sdhci@c8000600 {
compatible = "nvidia,tegra20-sdhci"; compatible = "nvidia,tegra20-sdhci";
reg = <0xc8000600 0x200>; reg = <0xc8000600 0x200>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 15>; clocks = <&tegra_car TEGRA20_CLK_SDMMC4>;
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment