[PATCHv4 7/9] ARM: at91/dt: define at91sam9rl clocks

2014-02-27 Thread Alexandre Belloni
Define at91sam9rl clocks in at91sam9rl dtsi file.

Signed-off-by: Alexandre Belloni 
---
 arch/arm/boot/dts/at91sam9rl.dtsi | 227 +-
 1 file changed, 226 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi 
b/arch/arm/boot/dts/at91sam9rl.dtsi
index 9f156d8bfbdd..32ec851fa1d9 100644
--- a/arch/arm/boot/dts/at91sam9rl.dtsi
+++ b/arch/arm/boot/dts/at91sam9rl.dtsi
@@ -8,6 +8,7 @@
 
 #include "skeleton.dtsi"
 #include 
+#include 
 #include 
 #include 
 
@@ -81,6 +82,8 @@
interrupts = <16 IRQ_TYPE_LEVEL_HIGH 0>,
 <17 IRQ_TYPE_LEVEL_HIGH 0>,
 <18 IRQ_TYPE_LEVEL_HIGH 0>;
+   clocks = <_clk>, <_clk>, <_clk>;
+   clock-names = "t0_clk", "t1_clk", "t2_clk";
};
 
mmc0: mmc@fffa4000 {
@@ -90,6 +93,8 @@
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
+   clocks = <_clk>;
+   clock-names = "mci_clk";
status = "disabled";
};
 
@@ -99,6 +104,7 @@
interrupts = <11 IRQ_TYPE_LEVEL_HIGH 6>;
#address-cells = <1>;
#size-cells = <0>;
+   clocks = <_clk>;
status = "disabled";
};
 
@@ -119,6 +125,8 @@
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <_usart0>;
+   clocks = <_clk>;
+   clock-names = "usart";
status = "disabled";
};
 
@@ -130,6 +138,8 @@
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <_usart1>;
+   clocks = <_clk>;
+   clock-names = "usart";
status = "disabled";
};
 
@@ -141,6 +151,8 @@
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <_usart2>;
+   clocks = <_clk>;
+   clock-names = "usart";
status = "disabled";
};
 
@@ -152,6 +164,8 @@
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <_usart3>;
+   clocks = <_clk>;
+   clock-names = "usart";
status = "disabled";
};
 
@@ -181,6 +195,8 @@
interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
pinctrl-names = "default";
pinctrl-0 = <_spi0>;
+   clocks = <_clk>;
+   clock-names = "spi_clk";
status = "disabled";
};
 
@@ -203,6 +219,8 @@
interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
pinctrl-names = "default";
pinctrl-0 = <_dbgu>;
+   clocks = <>;
+   clock-names = "usart";
status = "disabled";
};
 
@@ -484,6 +502,7 @@
gpio-controller;
interrupt-controller;
#interrupt-cells = <2>;
+   clocks = <_clk>;
};
 
pioB: gpio@f600 {
@@ -494,6 +513,7 @@
gpio-controller;
interrupt-controller;
#interrupt-cells = <2>;
+   clocks = <_clk>;
};
 
pioC: gpio@f800 {
@@ -504,6 +524,7 @@
gpio-controller;
interrupt-controller;
#interrupt-cells = <2>;
+   clocks = <_clk>;
};
 
pioD: gpio@fa00 {
@@ -514,12 +535,215 @@

[PATCHv4 7/9] ARM: at91/dt: define at91sam9rl clocks

2014-02-27 Thread Alexandre Belloni
Define at91sam9rl clocks in at91sam9rl dtsi file.

Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com
---
 arch/arm/boot/dts/at91sam9rl.dtsi | 227 +-
 1 file changed, 226 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi 
b/arch/arm/boot/dts/at91sam9rl.dtsi
index 9f156d8bfbdd..32ec851fa1d9 100644
--- a/arch/arm/boot/dts/at91sam9rl.dtsi
+++ b/arch/arm/boot/dts/at91sam9rl.dtsi
@@ -8,6 +8,7 @@
 
 #include skeleton.dtsi
 #include dt-bindings/pinctrl/at91.h
+#include dt-bindings/clk/at91.h
 #include dt-bindings/interrupt-controller/irq.h
 #include dt-bindings/gpio/gpio.h
 
@@ -81,6 +82,8 @@
interrupts = 16 IRQ_TYPE_LEVEL_HIGH 0,
 17 IRQ_TYPE_LEVEL_HIGH 0,
 18 IRQ_TYPE_LEVEL_HIGH 0;
+   clocks = tc0_clk, tc1_clk, tc2_clk;
+   clock-names = t0_clk, t1_clk, t2_clk;
};
 
mmc0: mmc@fffa4000 {
@@ -90,6 +93,8 @@
#address-cells = 1;
#size-cells = 0;
pinctrl-names = default;
+   clocks = mci0_clk;
+   clock-names = mci_clk;
status = disabled;
};
 
@@ -99,6 +104,7 @@
interrupts = 11 IRQ_TYPE_LEVEL_HIGH 6;
#address-cells = 1;
#size-cells = 0;
+   clocks = twi0_clk;
status = disabled;
};
 
@@ -119,6 +125,8 @@
atmel,use-dma-tx;
pinctrl-names = default;
pinctrl-0 = pinctrl_usart0;
+   clocks = usart0_clk;
+   clock-names = usart;
status = disabled;
};
 
@@ -130,6 +138,8 @@
atmel,use-dma-tx;
pinctrl-names = default;
pinctrl-0 = pinctrl_usart1;
+   clocks = usart1_clk;
+   clock-names = usart;
status = disabled;
};
 
@@ -141,6 +151,8 @@
atmel,use-dma-tx;
pinctrl-names = default;
pinctrl-0 = pinctrl_usart2;
+   clocks = usart2_clk;
+   clock-names = usart;
status = disabled;
};
 
@@ -152,6 +164,8 @@
atmel,use-dma-tx;
pinctrl-names = default;
pinctrl-0 = pinctrl_usart3;
+   clocks = usart3_clk;
+   clock-names = usart;
status = disabled;
};
 
@@ -181,6 +195,8 @@
interrupts = 13 IRQ_TYPE_LEVEL_HIGH 3;
pinctrl-names = default;
pinctrl-0 = pinctrl_spi0;
+   clocks = spi0_clk;
+   clock-names = spi_clk;
status = disabled;
};
 
@@ -203,6 +219,8 @@
interrupts = 1 IRQ_TYPE_LEVEL_HIGH 7;
pinctrl-names = default;
pinctrl-0 = pinctrl_dbgu;
+   clocks = mck;
+   clock-names = usart;
status = disabled;
};
 
@@ -484,6 +502,7 @@
gpio-controller;
interrupt-controller;
#interrupt-cells = 2;
+   clocks = pioA_clk;
};
 
pioB: gpio@f600 {
@@ -494,6 +513,7 @@
gpio-controller;
interrupt-controller;
#interrupt-cells = 2;
+   clocks = pioB_clk;
};
 
pioC: gpio@f800 {
@@ -504,6 +524,7 @@
gpio-controller;
interrupt-controller;
#interrupt-cells = 2;
+