ARM: dts: add clock data for s3c2416

This adds the clock controller itself, the xti clock on the smdk2416
as well as the clock references in the individual device nodes.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
Heiko Stuebner 2014-02-19 09:26:17 +09:00 committed by Kukjin Kim
parent 5ab9a428cf
commit 8cb2874815
2 changed files with 55 additions and 0 deletions

View File

@ -19,6 +19,19 @@
reg = <0x30000000 0x4000000>; reg = <0x30000000 0x4000000>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
xti: xti {
compatible = "fixed-clock";
clock-frequency = <12000000>;
clock-output-names = "xti";
#clock-cells = <0>;
};
};
serial@50000000 { serial@50000000 {
status = "okay"; status = "okay";
pinctrl-names = "default"; pinctrl-names = "default";

View File

@ -8,6 +8,7 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <dt-bindings/clock/s3c2443.h>
#include "s3c24xx.dtsi" #include "s3c24xx.dtsi"
#include "s3c2416-pinctrl.dtsi" #include "s3c2416-pinctrl.dtsi"
@ -28,26 +29,53 @@
compatible = "samsung,s3c2416-irq"; compatible = "samsung,s3c2416-irq";
}; };
clocks: clock-controller@0x4c000000 {
compatible = "samsung,s3c2416-clock";
reg = <0x4c000000 0x40>;
#clock-cells = <1>;
};
pinctrl@56000000 { pinctrl@56000000 {
compatible = "samsung,s3c2416-pinctrl"; compatible = "samsung,s3c2416-pinctrl";
}; };
timer@51000000 {
clocks = <&clocks PCLK_PWM>;
clock-names = "timers";
};
serial@50000000 { serial@50000000 {
compatible = "samsung,s3c2440-uart"; compatible = "samsung,s3c2440-uart";
clock-names = "uart", "clk_uart_baud2",
"clk_uart_baud3";
clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>,
<&clocks SCLK_UART>;
}; };
serial@50004000 { serial@50004000 {
compatible = "samsung,s3c2440-uart"; compatible = "samsung,s3c2440-uart";
clock-names = "uart", "clk_uart_baud2",
"clk_uart_baud3";
clocks = <&clocks PCLK_UART1>, <&clocks PCLK_UART1>,
<&clocks SCLK_UART>;
}; };
serial@50008000 { serial@50008000 {
compatible = "samsung,s3c2440-uart"; compatible = "samsung,s3c2440-uart";
clock-names = "uart", "clk_uart_baud2",
"clk_uart_baud3";
clocks = <&clocks PCLK_UART2>, <&clocks PCLK_UART2>,
<&clocks SCLK_UART>;
}; };
serial@5000C000 { serial@5000C000 {
compatible = "samsung,s3c2440-uart"; compatible = "samsung,s3c2440-uart";
reg = <0x5000C000 0x4000>; reg = <0x5000C000 0x4000>;
interrupts = <1 18 24 4>, <1 18 25 4>; interrupts = <1 18 24 4>, <1 18 25 4>;
clock-names = "uart", "clk_uart_baud2",
"clk_uart_baud3";
clocks = <&clocks PCLK_UART3>, <&clocks PCLK_UART3>,
<&clocks SCLK_UART>;
status = "disabled"; status = "disabled";
}; };
@ -55,6 +83,10 @@
compatible = "samsung,s3c6410-sdhci"; compatible = "samsung,s3c6410-sdhci";
reg = <0x4AC00000 0x100>; reg = <0x4AC00000 0x100>;
interrupts = <0 0 21 3>; interrupts = <0 0 21 3>;
clock-names = "hsmmc", "mmc_busclk.0",
"mmc_busclk.2";
clocks = <&clocks HCLK_HSMMC0>, <&clocks HCLK_HSMMC0>,
<&clocks MUX_HSMMC0>;
status = "disabled"; status = "disabled";
}; };
@ -62,18 +94,28 @@
compatible = "samsung,s3c6410-sdhci"; compatible = "samsung,s3c6410-sdhci";
reg = <0x4A800000 0x100>; reg = <0x4A800000 0x100>;
interrupts = <0 0 20 3>; interrupts = <0 0 20 3>;
clock-names = "hsmmc", "mmc_busclk.0",
"mmc_busclk.2";
clocks = <&clocks HCLK_HSMMC1>, <&clocks HCLK_HSMMC1>,
<&clocks MUX_HSMMC1>;
status = "disabled"; status = "disabled";
}; };
watchdog@53000000 { watchdog@53000000 {
interrupts = <1 9 27 3>; interrupts = <1 9 27 3>;
clocks = <&clocks PCLK_WDT>;
clock-names = "watchdog";
}; };
rtc@57000000 { rtc@57000000 {
compatible = "samsung,s3c2416-rtc"; compatible = "samsung,s3c2416-rtc";
clocks = <&clocks PCLK_RTC>;
clock-names = "rtc";
}; };
i2c@54000000 { i2c@54000000 {
compatible = "samsung,s3c2440-i2c"; compatible = "samsung,s3c2440-i2c";
clocks = <&clocks PCLK_I2C0>;
clock-names = "i2c";
}; };
}; };