Message ID | 1525395446-1953-4-git-send-email-shawnguo@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Shawn, On Thu, May 3, 2018 at 9:57 PM, Shawn Guo <shawnguo@kernel.org> wrote: > Instead of copying the whole node hierarchy, let's define a label for > clock osc26m in soc dtsi and use it for overriding clock-frequency. > > Signed-off-by: Shawn Guo <shawnguo@kernel.org> In the Subject: s/lable/label Other than that the series looks good.
On Fri, May 04, 2018 at 12:34:29PM -0300, Fabio Estevam wrote: > Hi Shawn, > > On Thu, May 3, 2018 at 9:57 PM, Shawn Guo <shawnguo@kernel.org> wrote: > > Instead of copying the whole node hierarchy, let's define a label for > > clock osc26m in soc dtsi and use it for overriding clock-frequency. > > > > Signed-off-by: Shawn Guo <shawnguo@kernel.org> > > In the Subject: s/lable/label Fixed. Thanks, Fabio. Shawn
diff --git a/arch/arm/boot/dts/imx27-apf27.dts b/arch/arm/boot/dts/imx27-apf27.dts index 66941cdbf244..3eddd805a793 100644 --- a/arch/arm/boot/dts/imx27-apf27.dts +++ b/arch/arm/boot/dts/imx27-apf27.dts @@ -22,17 +22,10 @@ memory@a0000000 { reg = <0xa0000000 0x04000000>; }; +}; - clocks { - #address-cells = <1>; - #size-cells = <0>; - - osc26m { - compatible = "fsl,imx-osc26m", "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <0>; - }; - }; +&clk_osc26m { + clock-frequency = <0>; }; &iomuxc { diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi index 389c9288b4ed..6c28b9cf802c 100644 --- a/arch/arm/boot/dts/imx27.dtsi +++ b/arch/arm/boot/dts/imx27.dtsi @@ -57,7 +57,7 @@ }; clocks { - osc26m { + clk_osc26m: osc26m { compatible = "fsl,imx-osc26m", "fixed-clock"; #clock-cells = <0>; clock-frequency = <26000000>;
Instead of copying the whole node hierarchy, let's define a label for clock osc26m in soc dtsi and use it for overriding clock-frequency. Signed-off-by: Shawn Guo <shawnguo@kernel.org> --- arch/arm/boot/dts/imx27-apf27.dts | 13 +++---------- arch/arm/boot/dts/imx27.dtsi | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-)