From mboxrd@z Thu Jan 1 00:00:00 1970 From: Icenowy Zheng Subject: Re: [PATCH 5/8] arm64: dts: allwinner: add R_PIO node Date: Wed, 08 Feb 2017 19:08:46 +0800 Message-ID: <39431486552126@web41j.yandex.ru> References: <20170208100009.29362-1-icenowy@aosc.xyz> <20170208100009.29362-5-icenowy@aosc.xyz> <20170208101458.du6ybqsw52ypzhzw@lukather> Reply-To: icenowy-ymACFijhrKM@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <20170208101458.du6ybqsw52ypzhzw@lukather> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Maxime Ripard Cc: Linus Walleij , Rob Herring , Chen-Yu Tsai , Catalin Marinas , Will Deacon , "linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org" List-Id: devicetree@vger.kernel.org 08.02.2017, 18:15, "Maxime Ripard" : > On Wed, Feb 08, 2017 at 06:00:06PM +0800, Icenowy Zheng wrote: >> =C2=A0Allwinner A64 SoC has a R_PIO node like the one in H3. >> >> =C2=A0Add the node as well as needed clocks and resets. >> >> =C2=A0As there's no document for apb0_gates, I only added the R_PIO bit = here. >> >> =C2=A0Signed-off-by: Icenowy Zheng >> =C2=A0--- >> =C2=A0=C2=A0arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 40 +++++++++= ++++++++++++++++++ >> =C2=A0=C2=A01 file changed, 40 insertions(+) >> >> =C2=A0diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/= arm64/boot/dts/allwinner/sun50i-a64.dtsi >> =C2=A0index 1c64ea2d23f9..4b0baa79554c 100644 >> =C2=A0--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> =C2=A0+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> =C2=A0@@ -98,6 +98,15 @@ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0clock-output-names =3D "osc32k"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}; >> >> =C2=A0+ apb0: apb0_clk { >> =C2=A0+ compatible =3D "fixed-factor-clock"; >> =C2=A0+ #clock-cells =3D <0>; >> =C2=A0+ clock-div =3D <1>; >> =C2=A0+ clock-mult =3D <1>; >> =C2=A0+ clocks =3D <&osc24M>; >> =C2=A0+ clock-output-names =3D "apb0"; >> =C2=A0+ }; >> =C2=A0+ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0psci { >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0compatible =3D "arm,psci-0.2"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0method =3D "smc"; >> =C2=A0@@ -392,5 +401,36 @@ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0interrupts =3D , >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}; >> =C2=A0+ >> =C2=A0+ apb0_gates: clk@1f01428 { >> =C2=A0+ compatible =3D "allwinner,sun50i-a64-apb0-gates-clk", >> =C2=A0+ "allwinner,sun4i-a10-gates-clk"; >> =C2=A0+ reg =3D <0x01f01428 0x4>; >> =C2=A0+ #clock-cells =3D <1>; >> =C2=A0+ clocks =3D <&apb0>; >> =C2=A0+ clock-indices =3D <0>; >> =C2=A0+ clock-output-names =3D "apb0_pio"; >> =C2=A0+ }; >> =C2=A0+ >> =C2=A0+ apb0_rst: reset@1f014b0 { >> =C2=A0+ reg =3D <0x01f014b0 0x4>; >> =C2=A0+ compatible =3D "allwinner,sun6i-a31-clock-reset"; >> =C2=A0+ #reset-cells =3D <1>; >> =C2=A0+ }; > > Please make a sunxi-ng driver for those clocks. We have no enough materials to make such a CCU driver. Clocks in CPUs are usually undocumented, and difficult to be collected -- even the clk-sun50iw1.c in BSP do not have all clocks in CPUs. We should only make it sunxi-ng until it's fully discovered (all functions in CPUs are functional). > > Thanks, > Maxime > > -- > Maxime Ripard, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com --=20 You received this message because you are subscribed to the Google Groups "= linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout.