summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/lpc32xx.dtsi
diff options
context:
space:
mode:
authorVladimir Zapolskiy2015-11-20 02:05:04 +0100
committerVladimir Zapolskiy2016-02-11 02:05:59 +0100
commitef5f885ec93b1e6d51a0ef3f4f98d2015b7cab6f (patch)
treead615cc62a30307e1db9868152573e4c534f5752 /arch/arm/boot/dts/lpc32xx.dtsi
parentdt-bindings: create arm/nxp folder and move LPC32xx SoC description to it (diff)
downloadkernel-qcow2-linux-ef5f885ec93b1e6d51a0ef3f4f98d2015b7cab6f.tar.gz
kernel-qcow2-linux-ef5f885ec93b1e6d51a0ef3f4f98d2015b7cab6f.tar.xz
kernel-qcow2-linux-ef5f885ec93b1e6d51a0ef3f4f98d2015b7cab6f.zip
arm: dts: lpc32xx: add device nodes for external oscillators
NXP LPC32xx SoC has two external oscillators - one is mandatory and always on 32768 Hz oscillator and one optional 10-20MHz oscillator, which is practically always present on LPC32xx boards, because its presence is needed to supply USB controller clock and by default it supplies ARM and most of the peripheral clocks, LPC32xx User's Manual references it as a main oscillator. The change adds device nodes for both oscillators, frequency of the main oscillator is selected to be 13MHz by default, this variant is found on all LPC32xx reference boards. The device nodes for external oscillators are needed to describe input clocks of LPC32xx clock controller. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Diffstat (limited to 'arch/arm/boot/dts/lpc32xx.dtsi')
-rw-r--r--arch/arm/boot/dts/lpc32xx.dtsi16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi
index c85cf979725e..a9f2d9ac203f 100644
--- a/arch/arm/boot/dts/lpc32xx.dtsi
+++ b/arch/arm/boot/dts/lpc32xx.dtsi
@@ -28,6 +28,22 @@
};
};
+ clocks {
+ xtal_32k: xtal_32k {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ clock-output-names = "xtal_32k";
+ };
+
+ xtal: xtal {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <13000000>;
+ clock-output-names = "xtal";
+ };
+ };
+
ahb {
#address-cells = <1>;
#size-cells = <1>;