From: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org> To: "Jernej Škrabec" <jernej.skrabec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>, devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>, Maxime Ripard <maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>, Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, linux-arm-kernel <linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org> Subject: Re: [PATCH v3 4/4] arm64: dts: allwinner: a64: add SRAM controller device tree node Date: Fri, 15 Jun 2018 07:09:09 +0800 [thread overview] Message-ID: <5C14D945-0795-4100-86E2-6FBF04350715@aosc.io> (raw) In-Reply-To: <2687631.x8iGEoiUx5@jernej-laptop> 于 2018年6月15日 GMT+08:00 上午1:27:21, "Jernej Škrabec" <jernej.skrabec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 写到: >Dne četrtek, 14. junij 2018 ob 19:09:56 CEST je Jagan Teki napisal(a): >> On Thu, Jun 14, 2018 at 9:05 PM, Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> wrote: >> > From: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org> >> > >> > Allwinner A64 has a SRAM controller, and in the device tree >currently >> > we have a syscon node to enable EMAC driver to access the EMAC >clock >> > register. As SRAM controller driver can now export regmap for this >> > register, replace the syscon node to the SRAM controller device >node, >> > and let EMAC driver to acquire its EMAC clock regmap. >> > >> > Signed-off-by: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org> >> > [wens-jdAy2FN1RRM@public.gmane.org: Updated compatible string] >> > Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> >> > --- >> > >> > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 19 >+++++++++++++++++-- >> > 1 file changed, 17 insertions(+), 2 deletions(-) >> > >> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> > b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index >> > 1b2ef28c42bd..87968dafe1dc 100644 >> > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> > @@ -169,9 +169,24 @@ >> > >> > ranges; >> > >> > syscon: syscon@1c00000 { >> > >> > - compatible = >> > "allwinner,sun50i-a64-system-controller", - > >> > "syscon"; >> > + compatible = >> > "allwinner,sun50i-a64-system-control"; >> > >> > reg = <0x01c00000 0x1000>; >> > >> > + #address-cells = <1>; >> > + #size-cells = <1>; >> > + ranges; >> > + >> > + sram_c: sram@18000 { >> > + compatible = "mmio-sram"; >> > + reg = <0x00018000 0x28000>; >> > + #address-cells = <1>; >> > + #size-cells = <1>; >> > + ranges = <0 0x00018000 0x28000>; >> > + >> > + de2_sram: sram-section@0 { >> >> So, this can attach to display-engine node through allwinner,sram and >> add support to claim the sram on sun4i/sun4i_drv.c, correct? > >Actually, it has to be added to display_clocks node and claimed in >drivers/ >clk/sunxi-ng/ccu-sun8i-de2.c Sorry it's old practice. My new way is to add a bus driver which claims the SRAM. > >Best regards, >Jernej > > > >_______________________________________________ >linux-arm-kernel mailing list >linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org >http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- 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 email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout.
WARNING: multiple messages have this Message-ID (diff)
From: icenowy@aosc.io (Icenowy Zheng) To: linux-arm-kernel@lists.infradead.org Subject: [linux-sunxi] [PATCH v3 4/4] arm64: dts: allwinner: a64: add SRAM controller device tree node Date: Fri, 15 Jun 2018 07:09:09 +0800 [thread overview] Message-ID: <5C14D945-0795-4100-86E2-6FBF04350715@aosc.io> (raw) In-Reply-To: <2687631.x8iGEoiUx5@jernej-laptop> ? 2018?6?15? GMT+08:00 ??1:27:21, "Jernej ?krabec" <jernej.skrabec@gmail.com> ??: >Dne ?etrtek, 14. junij 2018 ob 19:09:56 CEST je Jagan Teki napisal(a): >> On Thu, Jun 14, 2018 at 9:05 PM, Chen-Yu Tsai <wens@csie.org> wrote: >> > From: Icenowy Zheng <icenowy@aosc.io> >> > >> > Allwinner A64 has a SRAM controller, and in the device tree >currently >> > we have a syscon node to enable EMAC driver to access the EMAC >clock >> > register. As SRAM controller driver can now export regmap for this >> > register, replace the syscon node to the SRAM controller device >node, >> > and let EMAC driver to acquire its EMAC clock regmap. >> > >> > Signed-off-by: Icenowy Zheng <icenowy@aosc.io> >> > [wens at csie.org: Updated compatible string] >> > Signed-off-by: Chen-Yu Tsai <wens@csie.org> >> > --- >> > >> > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 19 >+++++++++++++++++-- >> > 1 file changed, 17 insertions(+), 2 deletions(-) >> > >> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> > b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index >> > 1b2ef28c42bd..87968dafe1dc 100644 >> > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> > @@ -169,9 +169,24 @@ >> > >> > ranges; >> > >> > syscon: syscon at 1c00000 { >> > >> > - compatible = >> > "allwinner,sun50i-a64-system-controller", - > >> > "syscon"; >> > + compatible = >> > "allwinner,sun50i-a64-system-control"; >> > >> > reg = <0x01c00000 0x1000>; >> > >> > + #address-cells = <1>; >> > + #size-cells = <1>; >> > + ranges; >> > + >> > + sram_c: sram at 18000 { >> > + compatible = "mmio-sram"; >> > + reg = <0x00018000 0x28000>; >> > + #address-cells = <1>; >> > + #size-cells = <1>; >> > + ranges = <0 0x00018000 0x28000>; >> > + >> > + de2_sram: sram-section at 0 { >> >> So, this can attach to display-engine node through allwinner,sram and >> add support to claim the sram on sun4i/sun4i_drv.c, correct? > >Actually, it has to be added to display_clocks node and claimed in >drivers/ >clk/sunxi-ng/ccu-sun8i-de2.c Sorry it's old practice. My new way is to add a bus driver which claims the SRAM. > >Best regards, >Jernej > > > >_______________________________________________ >linux-arm-kernel mailing list >linux-arm-kernel at lists.infradead.org >http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2018-06-14 23:09 UTC|newest] Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-06-14 15:35 [PATCH v3 0/4] allwinner: a64: add SRAM controller / system control Chen-Yu Tsai 2018-06-14 15:35 ` Chen-Yu Tsai [not found] ` <20180614153548.9644-1-wens-jdAy2FN1RRM@public.gmane.org> 2018-06-14 15:35 ` [PATCH v3 1/4] soc: sunxi: export a regmap for EMAC clock reg on A64 Chen-Yu Tsai 2018-06-14 15:35 ` Chen-Yu Tsai 2018-06-14 15:35 ` [PATCH v3 2/4] dt-bindings: sram: Rename A64 SRAM controller compatible Chen-Yu Tsai 2018-06-14 15:35 ` Chen-Yu Tsai [not found] ` <20180614153548.9644-3-wens-jdAy2FN1RRM@public.gmane.org> 2018-06-20 18:04 ` Rob Herring 2018-06-20 18:04 ` Rob Herring 2018-06-14 15:35 ` [PATCH v3 3/4] soc: sunxi: sram: Add updated compatible string for A64 system control Chen-Yu Tsai 2018-06-14 15:35 ` Chen-Yu Tsai 2018-06-14 15:35 ` [PATCH v3 4/4] arm64: dts: allwinner: a64: add SRAM controller device tree node Chen-Yu Tsai 2018-06-14 15:35 ` Chen-Yu Tsai [not found] ` <20180614153548.9644-5-wens-jdAy2FN1RRM@public.gmane.org> 2018-06-14 17:09 ` Jagan Teki 2018-06-14 17:09 ` [linux-sunxi] " Jagan Teki [not found] ` <CAMty3ZARNpBOQKvS7knH8kWE2+bvjuJoAA4cFGZK8+GzTUQ5zA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-06-14 17:27 ` Jernej Škrabec 2018-06-14 17:27 ` [linux-sunxi] " Jernej Škrabec 2018-06-14 23:09 ` Icenowy Zheng [this message] 2018-06-14 23:09 ` Icenowy Zheng [not found] ` <5C14D945-0795-4100-86E2-6FBF04350715-h8G6r0blFSE@public.gmane.org> 2018-06-19 7:36 ` Jagan Teki 2018-06-19 7:36 ` [linux-sunxi] " Jagan Teki [not found] ` <CAMty3ZCsPXh7Fhmhtd7UjTmJ9id+NeaZDVqkix1iQz7-fDqoUw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-06-19 14:27 ` Icenowy Zheng 2018-06-19 14:27 ` [linux-sunxi] " Icenowy Zheng 2018-06-15 9:14 ` [PATCH v3 0/4] allwinner: a64: add SRAM controller / system control Maxime Ripard 2018-06-15 9:14 ` Maxime Ripard 2018-06-18 2:11 ` Chen-Yu Tsai 2018-06-18 2:11 ` Chen-Yu Tsai [not found] ` <CAGb2v64Ar+rOgiXbjtRrQojHUZteLa9N7OwM3XY7ZcpS87Qpmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-06-18 7:34 ` Maxime Ripard 2018-06-18 7:34 ` Maxime Ripard 2018-06-19 15:20 ` Chen-Yu Tsai 2018-06-19 15:20 ` Chen-Yu Tsai 2018-08-20 7:42 ` Emmanuel Vadot 2018-08-20 7:42 ` Emmanuel Vadot [not found] ` <20180820094210.6d856029d51dad480782a783-xXdDKFdH5B3kFDPD4ZthVA@public.gmane.org> 2018-08-20 8:41 ` Chen-Yu Tsai 2018-08-20 8:41 ` Chen-Yu Tsai 2018-08-20 14:01 ` Emmanuel Vadot 2018-08-20 14:01 ` Emmanuel Vadot [not found] ` <20180820160149.65771a35c5b46f5ddb483428-xXdDKFdH5B3kFDPD4ZthVA@public.gmane.org> 2018-08-20 14:25 ` Chen-Yu Tsai 2018-08-20 14:25 ` Chen-Yu Tsai 2018-08-20 14:29 ` Emmanuel Vadot 2018-08-20 14:29 ` Emmanuel Vadot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=5C14D945-0795-4100-86E2-6FBF04350715@aosc.io \ --to=icenowy-h8g6r0blfse@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org \ --cc=jernej.skrabec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \ --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \ --cc=maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \ --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=wens-jdAy2FN1RRM@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.