]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: stm32f429: add LSI and LSE clocks
authorGabriel Fernandez <gabriel.fernandez@st.com>
Fri, 14 Oct 2016 09:18:00 +0000 (11:18 +0200)
committerAlexandre TORGUE <alexandre.torgue@st.com>
Fri, 4 Nov 2016 14:08:08 +0000 (15:08 +0100)
This patch adds lsi / lse oscillators. These clocks can be use by
RTC clocks.
The clock drivers needs to disable the power domain write protection using
syscon / regmap to enable these clocks.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32f429.dtsi

index b02a31edd0b2481d568b904d8cdc874021775b43..e4dae0eda3cdf95ebf65e3ea29cc07f8ed375335 100644 (file)
                        compatible = "fixed-clock";
                        clock-frequency = <0>;
                };
+
+               clk-lse {
+                       #clock-cells = <0>;
+                       compatible = "fixed-clock";
+                       clock-frequency = <32768>;
+               };
+
+               clk-lsi {
+                       #clock-cells = <0>;
+                       compatible = "fixed-clock";
+                       clock-frequency = <32000>;
+               };
        };
 
        soc {
                        interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
                };
 
+               pwrcfg: power-config@40007000 {
+                       compatible = "syscon";
+                       reg = <0x40007000 0x400>;
+               };
+
                pin-controller {
                        #address-cells = <1>;
                        #size-cells = <1>;
                        compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
                        reg = <0x40023800 0x400>;
                        clocks = <&clk_hse>;
+                       st,syscfg = <&pwrcfg>;
                };
 
                dma1: dma-controller@40026000 {