* [PATCH 0/2] STM32F4 Enable RTC & QSPI clocks @ 2016-11-04 8:52 gabriel.fernandez 2016-11-04 8:52 ` [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks gabriel.fernandez 2016-11-04 8:52 ` [PATCH 2/2] ARM: dts: stm32f429: Add QSPI clock gabriel.fernandez 0 siblings, 2 replies; 5+ messages in thread From: gabriel.fernandez @ 2016-11-04 8:52 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin, Alexandre Torgue Cc: devicetree, linux-arm-kernel, linux-kernel, kernel, gabriel.fernandez From: Gabriel Fernandez <gabriel.fernandez@st.com> This patch-set enables RTC & QSPI clocks. Gabriel Fernandez (2): ARM: dts: stm32f429: add LSI and LSE clocks ARM: dts: stm32f429: Add QSPI clock arch/arm/boot/dts/stm32f429.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/stm32f469-disco.dts | 4 ++++ 2 files changed, 22 insertions(+) -- 1.9.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks 2016-11-04 8:52 [PATCH 0/2] STM32F4 Enable RTC & QSPI clocks gabriel.fernandez @ 2016-11-04 8:52 ` gabriel.fernandez 2016-11-04 10:15 ` Alexandre Torgue 2016-11-04 8:52 ` [PATCH 2/2] ARM: dts: stm32f429: Add QSPI clock gabriel.fernandez 1 sibling, 1 reply; 5+ messages in thread From: gabriel.fernandez @ 2016-11-04 8:52 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin, Alexandre Torgue Cc: devicetree, linux-arm-kernel, linux-kernel, kernel, gabriel.fernandez From: Gabriel Fernandez <gabriel.fernandez@st.com> 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> --- arch/arm/boot/dts/stm32f429.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 336ee4f..2700449 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/arm/boot/dts/stm32f429.dtsi @@ -56,6 +56,18 @@ 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 { @@ -185,6 +197,11 @@ 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>; @@ -340,6 +357,7 @@ compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; reg = <0x40023800 0x400>; clocks = <&clk_hse>; + st,syscfg = <&pwrcfg>; }; dma1: dma-controller@40026000 { -- 1.9.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks 2016-11-04 8:52 ` [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks gabriel.fernandez @ 2016-11-04 10:15 ` Alexandre Torgue [not found] ` <3974b516-d698-ab7f-efba-d768eccbd56f-qxv4g6HH51o@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Alexandre Torgue @ 2016-11-04 10:15 UTC (permalink / raw) To: gabriel.fernandez, Rob Herring, Mark Rutland, Russell King, Maxime Coquelin Cc: devicetree, linux-arm-kernel, linux-kernel, kernel Gabriel, On 11/04/2016 09:52 AM, gabriel.fernandez@st.com wrote: > From: Gabriel Fernandez <gabriel.fernandez@st.com> > > 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. > Is it the same than you sent in last series ? If yes I will take it directly as review has already been done. regards Alex > Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com> > --- > arch/arm/boot/dts/stm32f429.dtsi | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi > index 336ee4f..2700449 100644 > --- a/arch/arm/boot/dts/stm32f429.dtsi > +++ b/arch/arm/boot/dts/stm32f429.dtsi > @@ -56,6 +56,18 @@ > 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 { > @@ -185,6 +197,11 @@ > 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>; > @@ -340,6 +357,7 @@ > compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; > reg = <0x40023800 0x400>; > clocks = <&clk_hse>; > + st,syscfg = <&pwrcfg>; > }; > > dma1: dma-controller@40026000 { > ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <3974b516-d698-ab7f-efba-d768eccbd56f-qxv4g6HH51o@public.gmane.org>]
* Re: [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks [not found] ` <3974b516-d698-ab7f-efba-d768eccbd56f-qxv4g6HH51o@public.gmane.org> @ 2016-11-04 10:16 ` Gabriel Fernandez 0 siblings, 0 replies; 5+ messages in thread From: Gabriel Fernandez @ 2016-11-04 10:16 UTC (permalink / raw) To: Alexandre Torgue, Rob Herring, Mark Rutland, Russell King, Maxime Coquelin Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, kernel-F5mvAk5X5gdBDgjK7y7TUQ Hi Alexandre, On 11/04/2016 11:15 AM, Alexandre Torgue wrote: > Gabriel, > > On 11/04/2016 09:52 AM, gabriel.fernandez-qxv4g6HH51o@public.gmane.org wrote: >> From: Gabriel Fernandez <gabriel.fernandez-qxv4g6HH51o@public.gmane.org> >> >> 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. >> > > Is it the same than you sent in last series ? If yes I will take it > directly as review has already been done. > Yes BR Gabriel. > regards > Alex > >> Signed-off-by: Gabriel Fernandez <gabriel.fernandez-qxv4g6HH51o@public.gmane.org> >> --- >> arch/arm/boot/dts/stm32f429.dtsi | 18 ++++++++++++++++++ >> 1 file changed, 18 insertions(+) >> >> diff --git a/arch/arm/boot/dts/stm32f429.dtsi >> b/arch/arm/boot/dts/stm32f429.dtsi >> index 336ee4f..2700449 100644 >> --- a/arch/arm/boot/dts/stm32f429.dtsi >> +++ b/arch/arm/boot/dts/stm32f429.dtsi >> @@ -56,6 +56,18 @@ >> 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 { >> @@ -185,6 +197,11 @@ >> 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>; >> @@ -340,6 +357,7 @@ >> compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; >> reg = <0x40023800 0x400>; >> clocks = <&clk_hse>; >> + st,syscfg = <&pwrcfg>; >> }; >> >> dma1: dma-controller@40026000 { >> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] ARM: dts: stm32f429: Add QSPI clock 2016-11-04 8:52 [PATCH 0/2] STM32F4 Enable RTC & QSPI clocks gabriel.fernandez 2016-11-04 8:52 ` [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks gabriel.fernandez @ 2016-11-04 8:52 ` gabriel.fernandez 1 sibling, 0 replies; 5+ messages in thread From: gabriel.fernandez @ 2016-11-04 8:52 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin, Alexandre Torgue Cc: devicetree, linux-arm-kernel, linux-kernel, kernel, gabriel.fernandez From: Gabriel Fernandez <gabriel.fernandez@st.com> This patch adds the QSPI clock for stm32f469 discovery board. Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com> --- arch/arm/boot/dts/stm32f469-disco.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index e911af8..c43a484 100644 --- a/arch/arm/boot/dts/stm32f469-disco.dts +++ b/arch/arm/boot/dts/stm32f469-disco.dts @@ -66,6 +66,10 @@ }; }; +&rcc { + compatible = "st,stm32f469-rcc", "st,stm32f42xx-rcc", "st,stm32-rcc"; +}; + &clk_hse { clock-frequency = <8000000>; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-11-04 10:16 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-04 8:52 [PATCH 0/2] STM32F4 Enable RTC & QSPI clocks gabriel.fernandez 2016-11-04 8:52 ` [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks gabriel.fernandez 2016-11-04 10:15 ` Alexandre Torgue [not found] ` <3974b516-d698-ab7f-efba-d768eccbd56f-qxv4g6HH51o@public.gmane.org> 2016-11-04 10:16 ` Gabriel Fernandez 2016-11-04 8:52 ` [PATCH 2/2] ARM: dts: stm32f429: Add QSPI clock gabriel.fernandez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).