From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antony Pavlov Subject: [RFC v3 03/14] MIPS: dts: qca: ar9132: use dt-bindings/clock/ath79-clk.h macros Date: Sat, 23 Jan 2016 23:17:20 +0300 Message-ID: <1453580251-2341-4-git-send-email-antonynpavlov@gmail.com> References: <1453580251-2341-1-git-send-email-antonynpavlov@gmail.com> Return-path: In-Reply-To: <1453580251-2341-1-git-send-email-antonynpavlov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org Cc: Antony Pavlov , Alban Bedel , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org The old ar9132 clk implementation (see arch/mips/ath79/clock.c) have had only 3 devicetree clks (cpu, ddr, ahb). Two additional clocks (wdt and uart) have realized as aliases for ahb clock. In the old ar9132 clk implementation the wdt and uart clocks were inaccessible via devicetree so index "2" used for reference to ahb clock instead, e.g. clocks = <&pll 2>; In the new ar9132 clk implementation (see drivers/clk/clk-ath79.c) the wdt and uart clks are accessible via devicetree so appropriate ATH79_CLK_WDT and ATH79_CLK_UART are used in ar9132.dtsi. Signed-off-by: Antony Pavlov Cc: Alban Bedel Cc: linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org --- arch/mips/boot/dts/qca/ar9132.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/mips/boot/dts/qca/ar9132.dtsi b/arch/mips/boot/dts/qca/ar9132.dtsi index 13d0439..4a537ea 100644 --- a/arch/mips/boot/dts/qca/ar9132.dtsi +++ b/arch/mips/boot/dts/qca/ar9132.dtsi @@ -1,3 +1,5 @@ +#include + / { compatible = "qca,ar9132"; @@ -57,7 +59,7 @@ reg = <0x18020000 0x20>; interrupts = <3>; - clocks = <&pll 2>; + clocks = <&pll ATH79_CLK_UART>; clock-names = "uart"; reg-io-width = <4>; @@ -100,7 +102,7 @@ interrupts = <4>; - clocks = <&pll 2>; + clocks = <&pll ATH79_CLK_WDT>; clock-names = "wdt"; }; @@ -129,7 +131,7 @@ compatible = "qca,ar9132-spi", "qca,ar7100-spi"; reg = <0x1f000000 0x10>; - clocks = <&pll 2>; + clocks = <&pll ATH79_CLK_AHB>; clock-names = "ahb"; status = "disabled"; -- 2.6.2 -- 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