* [PATCH 0/2] Enable clock controllers on MSM
@ 2014-01-17 1:25 Stephen Boyd
2014-01-17 1:25 ` [PATCH 1/2] ARM: dts: msm: Add clock controller nodes and hook into uart Stephen Boyd
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Stephen Boyd @ 2014-01-17 1:25 UTC (permalink / raw)
To: linux-arm-kernel
These patches add the clock controller nodes, enable the clock drivers
on MSM based platforms, and hook it up enough to get the serial console
working. This is based on the merge of Mike's clk-next branch with
linux-next-20140116. The changes need the clk-next branch because that's
where the DTS include files landed.
Perhaps this can be applied after 3.14-rc1 is out?
Stephen Boyd (2):
ARM: dts: msm: Add clock controller nodes and hook into uart
ARM: msm_defconfig: Enable MSM clock drivers
arch/arm/boot/dts/qcom-msm8660-surf.dts | 11 +++++++++++
arch/arm/boot/dts/qcom-msm8960-cdp.dts | 18 ++++++++++++++++++
arch/arm/boot/dts/qcom-msm8974.dtsi | 24 ++++++++++++++++++++++++
arch/arm/configs/msm_defconfig | 4 ++++
4 files changed, 57 insertions(+)
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/2] ARM: dts: msm: Add clock controller nodes and hook into uart 2014-01-17 1:25 [PATCH 0/2] Enable clock controllers on MSM Stephen Boyd @ 2014-01-17 1:25 ` Stephen Boyd 2014-01-17 1:25 ` [PATCH 2/2] ARM: msm_defconfig: Enable MSM clock drivers Stephen Boyd 2014-01-23 17:25 ` [PATCH 0/2] Enable clock controllers on MSM Kevin Hilman 2 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2014-01-17 1:25 UTC (permalink / raw) To: linux-arm-kernel Add the necessary DT nodes to probe the clock controllers on MSM devices as well as hook up the uart nodes to the clock controllers. This should allow us to boot to a serial console on all DT enabled MSM platforms. Cc: David Brown <davidb@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> --- arch/arm/boot/dts/qcom-msm8660-surf.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-msm8960-cdp.dts | 18 ++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 24 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8660-surf.dts b/arch/arm/boot/dts/qcom-msm8660-surf.dts index 1187185cf25b..68a72f5507b9 100644 --- a/arch/arm/boot/dts/qcom-msm8660-surf.dts +++ b/arch/arm/boot/dts/qcom-msm8660-surf.dts @@ -2,6 +2,8 @@ /include/ "skeleton.dtsi" +#include <dt-bindings/clock/qcom,gcc-msm8660.h> + / { model = "Qualcomm MSM8660 SURF"; compatible = "qcom,msm8660-surf", "qcom,msm8660"; @@ -37,11 +39,20 @@ #interrupt-cells = <2>; }; + gcc: clock-controller at 900000 { + compatible = "qcom,gcc-msm8660"; + #clock-cells = <1>; + #reset-cells = <1>; + reg = <0x900000 0x4000>; + }; + serial at 19c40000 { compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x19c40000 0x1000>, <0x19c00000 0x1000>; interrupts = <0 195 0x0>; + clocks = <&gcc GSBI12_UART_CLK>, <&gcc GSBI12_H_CLK>; + clock-names = "core", "iface"; }; qcom,ssbi at 500000 { diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts index 6ccbac77931e..7c30de4fa302 100644 --- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts +++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts @@ -2,6 +2,8 @@ /include/ "skeleton.dtsi" +#include <dt-bindings/clock/qcom,gcc-msm8960.h> + / { model = "Qualcomm MSM8960 CDP"; compatible = "qcom,msm8960-cdp", "qcom,msm8960"; @@ -37,11 +39,27 @@ reg = <0x800000 0x4000>; }; + gcc: clock-controller at 900000 { + compatible = "qcom,gcc-msm8960"; + #clock-cells = <1>; + #reset-cells = <1>; + reg = <0x900000 0x4000>; + }; + + clock-controller at 4000000 { + compatible = "qcom,mmcc-msm8960"; + reg = <0x4000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + serial at 16440000 { compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x16440000 0x1000>, <0x16400000 0x1000>; interrupts = <0 154 0x0>; + clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>; + clock-names = "core", "iface"; }; qcom,ssbi at 500000 { diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 6ac94967d2d3..9e5dadb101eb 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -2,6 +2,8 @@ #include "skeleton.dtsi" +#include <dt-bindings/clock/qcom,gcc-msm8974.h> + / { model = "Qualcomm MSM8974"; compatible = "qcom,msm8974"; @@ -93,5 +95,27 @@ compatible = "qcom,pshold"; reg = <0xfc4ab000 0x4>; }; + + gcc: clock-controller at fc400000 { + compatible = "qcom,gcc-msm8974"; + #clock-cells = <1>; + #reset-cells = <1>; + reg = <0xfc400000 0x4000>; + }; + + mmcc: clock-controller at fd8c0000 { + compatible = "qcom,mmcc-msm8974"; + #clock-cells = <1>; + #reset-cells = <1>; + reg = <0xfd8c0000 0x6000>; + }; + + serial at f991e000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0xf991e000 0x1000>; + interrupts = <0 108 0x0>; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + }; }; }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] ARM: msm_defconfig: Enable MSM clock drivers 2014-01-17 1:25 [PATCH 0/2] Enable clock controllers on MSM Stephen Boyd 2014-01-17 1:25 ` [PATCH 1/2] ARM: dts: msm: Add clock controller nodes and hook into uart Stephen Boyd @ 2014-01-17 1:25 ` Stephen Boyd 2014-01-23 17:25 ` [PATCH 0/2] Enable clock controllers on MSM Kevin Hilman 2 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2014-01-17 1:25 UTC (permalink / raw) To: linux-arm-kernel This allows us to probe the clock controller devices and boot to a serial console on all DT enabled MSM platforms. Cc: David Brown <davidb@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> --- arch/arm/configs/msm_defconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/msm_defconfig b/arch/arm/configs/msm_defconfig index 0219c65cefd5..c5858b9eb516 100644 --- a/arch/arm/configs/msm_defconfig +++ b/arch/arm/configs/msm_defconfig @@ -114,6 +114,10 @@ CONFIG_USB_GADGET_VBUS_DRAW=500 CONFIG_NEW_LEDS=y CONFIG_RTC_CLASS=y CONFIG_STAGING=y +CONFIG_COMMON_CLK_QCOM=y +CONFIG_MSM_GCC_8660=y +CONFIG_MSM_MMCC_8960=y +CONFIG_MSM_MMCC_8974=y CONFIG_MSM_IOMMU=y CONFIG_EXT2_FS=y CONFIG_EXT2_FS_XATTR=y -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 0/2] Enable clock controllers on MSM 2014-01-17 1:25 [PATCH 0/2] Enable clock controllers on MSM Stephen Boyd 2014-01-17 1:25 ` [PATCH 1/2] ARM: dts: msm: Add clock controller nodes and hook into uart Stephen Boyd 2014-01-17 1:25 ` [PATCH 2/2] ARM: msm_defconfig: Enable MSM clock drivers Stephen Boyd @ 2014-01-23 17:25 ` Kevin Hilman 2014-01-23 19:59 ` Kumar Gala 2 siblings, 1 reply; 9+ messages in thread From: Kevin Hilman @ 2014-01-23 17:25 UTC (permalink / raw) To: linux-arm-kernel Stephen Boyd <sboyd@codeaurora.org> writes: > These patches add the clock controller nodes, enable the clock drivers > on MSM based platforms, and hook it up enough to get the serial console > working. This is based on the merge of Mike's clk-next branch with > linux-next-20140116. The changes need the clk-next branch because that's > where the DTS include files landed. I forgot to repond to this earlier, but I tested this on top of -next and it gets the dragonboard booting w/mainline. Yay! > Perhaps this can be applied after 3.14-rc1 is out? Yeah, sounds good. Kevin > Stephen Boyd (2): > ARM: dts: msm: Add clock controller nodes and hook into uart > ARM: msm_defconfig: Enable MSM clock drivers > > arch/arm/boot/dts/qcom-msm8660-surf.dts | 11 +++++++++++ > arch/arm/boot/dts/qcom-msm8960-cdp.dts | 18 ++++++++++++++++++ > arch/arm/boot/dts/qcom-msm8974.dtsi | 24 ++++++++++++++++++++++++ > arch/arm/configs/msm_defconfig | 4 ++++ > 4 files changed, 57 insertions(+) ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/2] Enable clock controllers on MSM 2014-01-23 17:25 ` [PATCH 0/2] Enable clock controllers on MSM Kevin Hilman @ 2014-01-23 19:59 ` Kumar Gala 2014-01-23 20:43 ` Olof Johansson 0 siblings, 1 reply; 9+ messages in thread From: Kumar Gala @ 2014-01-23 19:59 UTC (permalink / raw) To: linux-arm-kernel On Jan 23, 2014, at 11:25 AM, Kevin Hilman <khilman@linaro.org> wrote: > Stephen Boyd <sboyd@codeaurora.org> writes: > >> These patches add the clock controller nodes, enable the clock drivers >> on MSM based platforms, and hook it up enough to get the serial console >> working. This is based on the merge of Mike's clk-next branch with >> linux-next-20140116. The changes need the clk-next branch because that's >> where the DTS include files landed. > > I forgot to repond to this earlier, but I tested this on top of -next > and it gets the dragonboard booting w/mainline. Yay! > >> Perhaps this can be applied after 3.14-rc1 is out? > > Yeah, sounds good. > > Kevin We?ll need arm-soc to pull in the clk changes from Mike?s tree for that. > Stephen Boyd (2): >> ARM: dts: msm: Add clock controller nodes and hook into uart >> ARM: msm_defconfig: Enable MSM clock drivers >> >> arch/arm/boot/dts/qcom-msm8660-surf.dts | 11 +++++++++++ >> arch/arm/boot/dts/qcom-msm8960-cdp.dts | 18 ++++++++++++++++++ >> arch/arm/boot/dts/qcom-msm8974.dtsi | 24 ++++++++++++++++++++++++ >> arch/arm/configs/msm_defconfig | 4 ++++ >> 4 files changed, 57 insertions(+) - k -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/2] Enable clock controllers on MSM 2014-01-23 19:59 ` Kumar Gala @ 2014-01-23 20:43 ` Olof Johansson 2014-01-23 21:57 ` Kumar Gala 0 siblings, 1 reply; 9+ messages in thread From: Olof Johansson @ 2014-01-23 20:43 UTC (permalink / raw) To: linux-arm-kernel On Thu, Jan 23, 2014 at 11:59 AM, Kumar Gala <galak@codeaurora.org> wrote: > > On Jan 23, 2014, at 11:25 AM, Kevin Hilman <khilman@linaro.org> wrote: > >> Stephen Boyd <sboyd@codeaurora.org> writes: >> >>> These patches add the clock controller nodes, enable the clock drivers >>> on MSM based platforms, and hook it up enough to get the serial console >>> working. This is based on the merge of Mike's clk-next branch with >>> linux-next-20140116. The changes need the clk-next branch because that's >>> where the DTS include files landed. >> >> I forgot to repond to this earlier, but I tested this on top of -next >> and it gets the dragonboard booting w/mainline. Yay! >> >>> Perhaps this can be applied after 3.14-rc1 is out? >> >> Yeah, sounds good. >> >> Kevin > > We?ll need arm-soc to pull in the clk changes from Mike?s tree for that. They're queued for this merge window, right? If so, they'll be in -rc1 and the dependency will be solved before we apply the patches. -Olof ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/2] Enable clock controllers on MSM 2014-01-23 20:43 ` Olof Johansson @ 2014-01-23 21:57 ` Kumar Gala 2014-01-23 22:08 ` Olof Johansson 2014-01-27 21:52 ` Mike Turquette 0 siblings, 2 replies; 9+ messages in thread From: Kumar Gala @ 2014-01-23 21:57 UTC (permalink / raw) To: linux-arm-kernel On Jan 23, 2014, at 2:43 PM, Olof Johansson <olof@lixom.net> wrote: > On Thu, Jan 23, 2014 at 11:59 AM, Kumar Gala <galak@codeaurora.org> wrote: >> >> On Jan 23, 2014, at 11:25 AM, Kevin Hilman <khilman@linaro.org> wrote: >> >>> Stephen Boyd <sboyd@codeaurora.org> writes: >>> >>>> These patches add the clock controller nodes, enable the clock drivers >>>> on MSM based platforms, and hook it up enough to get the serial console >>>> working. This is based on the merge of Mike's clk-next branch with >>>> linux-next-20140116. The changes need the clk-next branch because that's >>>> where the DTS include files landed. >>> >>> I forgot to repond to this earlier, but I tested this on top of -next >>> and it gets the dragonboard booting w/mainline. Yay! >>> >>>> Perhaps this can be applied after 3.14-rc1 is out? >>> >>> Yeah, sounds good. >>> >>> Kevin >> >> We?ll need arm-soc to pull in the clk changes from Mike?s tree for that. > > They're queued for this merge window, right? If so, they'll be in -rc1 > and the dependency will be solved before we apply the patches. > Yeah, they look like they are in Mike?s pull request for Linus. So hopefully they?ll show up in -rc1 (wasn?t sure if Mike intended them for 3.14 or not). What?s the feeling about pushing DT and defconfig changes into 3.14 (or do we just queue them up for 3.15)? - k -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/2] Enable clock controllers on MSM 2014-01-23 21:57 ` Kumar Gala @ 2014-01-23 22:08 ` Olof Johansson 2014-01-27 21:52 ` Mike Turquette 1 sibling, 0 replies; 9+ messages in thread From: Olof Johansson @ 2014-01-23 22:08 UTC (permalink / raw) To: linux-arm-kernel On Thu, Jan 23, 2014 at 1:57 PM, Kumar Gala <galak@codeaurora.org> wrote: > > On Jan 23, 2014, at 2:43 PM, Olof Johansson <olof@lixom.net> wrote: > >> On Thu, Jan 23, 2014 at 11:59 AM, Kumar Gala <galak@codeaurora.org> wrote: >>> >>> On Jan 23, 2014, at 11:25 AM, Kevin Hilman <khilman@linaro.org> wrote: >>> >>>> Stephen Boyd <sboyd@codeaurora.org> writes: >>>> >>>>> These patches add the clock controller nodes, enable the clock drivers >>>>> on MSM based platforms, and hook it up enough to get the serial console >>>>> working. This is based on the merge of Mike's clk-next branch with >>>>> linux-next-20140116. The changes need the clk-next branch because that's >>>>> where the DTS include files landed. >>>> >>>> I forgot to repond to this earlier, but I tested this on top of -next >>>> and it gets the dragonboard booting w/mainline. Yay! >>>> >>>>> Perhaps this can be applied after 3.14-rc1 is out? >>>> >>>> Yeah, sounds good. >>>> >>>> Kevin >>> >>> We?ll need arm-soc to pull in the clk changes from Mike?s tree for that. >> >> They're queued for this merge window, right? If so, they'll be in -rc1 >> and the dependency will be solved before we apply the patches. >> > > Yeah, they look like they are in Mike?s pull request for Linus. So hopefully they?ll show up in -rc1 (wasn?t sure if Mike intended them for 3.14 or not). > > What?s the feeling about pushing DT and defconfig changes into 3.14 (or do we just queue them up for 3.15)? I can probably pick them up in a late/* branch and merge for 3.14, no promises though. -Olof ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/2] Enable clock controllers on MSM 2014-01-23 21:57 ` Kumar Gala 2014-01-23 22:08 ` Olof Johansson @ 2014-01-27 21:52 ` Mike Turquette 1 sibling, 0 replies; 9+ messages in thread From: Mike Turquette @ 2014-01-27 21:52 UTC (permalink / raw) To: linux-arm-kernel Quoting Kumar Gala (2014-01-23 13:57:58) > > On Jan 23, 2014, at 2:43 PM, Olof Johansson <olof@lixom.net> wrote: > > > On Thu, Jan 23, 2014 at 11:59 AM, Kumar Gala <galak@codeaurora.org> wrote: > >> > >> On Jan 23, 2014, at 11:25 AM, Kevin Hilman <khilman@linaro.org> wrote: > >> > >>> Stephen Boyd <sboyd@codeaurora.org> writes: > >>> > >>>> These patches add the clock controller nodes, enable the clock drivers > >>>> on MSM based platforms, and hook it up enough to get the serial console > >>>> working. This is based on the merge of Mike's clk-next branch with > >>>> linux-next-20140116. The changes need the clk-next branch because that's > >>>> where the DTS include files landed. > >>> > >>> I forgot to repond to this earlier, but I tested this on top of -next > >>> and it gets the dragonboard booting w/mainline. Yay! > >>> > >>>> Perhaps this can be applied after 3.14-rc1 is out? > >>> > >>> Yeah, sounds good. > >>> > >>> Kevin > >> > >> We?ll need arm-soc to pull in the clk changes from Mike?s tree for that. > > > > They're queued for this merge window, right? If so, they'll be in -rc1 > > and the dependency will be solved before we apply the patches. > > > > Yeah, they look like they are in Mike?s pull request for Linus. So hopefully they?ll show up in -rc1 (wasn?t sure if Mike intended them for 3.14 or not). They are in the second pull request which I just sent today. Regards, Mike > > What?s the feeling about pushing DT and defconfig changes into 3.14 (or do we just queue them up for 3.15)? > > - k > > -- > Employee of Qualcomm Innovation Center, Inc. > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-01-27 21:52 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-01-17 1:25 [PATCH 0/2] Enable clock controllers on MSM Stephen Boyd 2014-01-17 1:25 ` [PATCH 1/2] ARM: dts: msm: Add clock controller nodes and hook into uart Stephen Boyd 2014-01-17 1:25 ` [PATCH 2/2] ARM: msm_defconfig: Enable MSM clock drivers Stephen Boyd 2014-01-23 17:25 ` [PATCH 0/2] Enable clock controllers on MSM Kevin Hilman 2014-01-23 19:59 ` Kumar Gala 2014-01-23 20:43 ` Olof Johansson 2014-01-23 21:57 ` Kumar Gala 2014-01-23 22:08 ` Olof Johansson 2014-01-27 21:52 ` Mike Turquette
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).