* [PATCH v2 0/2] ARM: sunxi: Enable dwmac-sun8i on more boards @ 2017-06-07 17:33 Corentin Labbe 2017-06-07 17:33 ` [PATCH v2 1/2] ARM: sun8i: a83t: Add dt node for the syscon control module Corentin Labbe 2017-06-07 17:33 ` [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver Corentin Labbe 0 siblings, 2 replies; 8+ messages in thread From: Corentin Labbe @ 2017-06-07 17:33 UTC (permalink / raw) To: robh+dt, mark.rutland, linux, maxime.ripard, wens Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe Hello Since the first 3 patch of v1 was applied, it remains this two patchs for enabling dwmac-sun8i on A83T Changes since v1: - Ordered compatible of syscon - Renamed pins to emac-rgmii-pins Corentin Labbe (2): ARM: sun8i: a83t: Add dt node for the syscon control module ARM: sun8i: a83t: add dwmac-sun8i ethernet driver arch/arm/boot/dts/sun8i-a83t.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- 2.13.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 1/2] ARM: sun8i: a83t: Add dt node for the syscon control module 2017-06-07 17:33 [PATCH v2 0/2] ARM: sunxi: Enable dwmac-sun8i on more boards Corentin Labbe @ 2017-06-07 17:33 ` Corentin Labbe 2017-06-08 8:33 ` Maxime Ripard 2017-06-07 17:33 ` [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver Corentin Labbe 1 sibling, 1 reply; 8+ messages in thread From: Corentin Labbe @ 2017-06-07 17:33 UTC (permalink / raw) To: robh+dt, mark.rutland, linux, maxime.ripard, wens Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe This patch add the dt node for the syscon register present on the Allwinner A83T Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Reviewed-by: Chen-Yu Tsai <wens@csie.org> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 49aeb56970ba..01a83406f9ae 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -163,6 +163,12 @@ #size-cells = <1>; ranges; + syscon: syscon@1c00000 { + compatible = "allwinner,sun8i-a83t-system-controller", + "syscon"; + reg = <0x01c00000 0x1000>; + }; + dma: dma-controller@1c02000 { compatible = "allwinner,sun8i-a83t-dma"; reg = <0x01c02000 0x1000>; -- 2.13.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/2] ARM: sun8i: a83t: Add dt node for the syscon control module 2017-06-07 17:33 ` [PATCH v2 1/2] ARM: sun8i: a83t: Add dt node for the syscon control module Corentin Labbe @ 2017-06-08 8:33 ` Maxime Ripard 0 siblings, 0 replies; 8+ messages in thread From: Maxime Ripard @ 2017-06-08 8:33 UTC (permalink / raw) To: Corentin Labbe Cc: robh+dt, mark.rutland, linux, wens, devicetree, linux-arm-kernel, linux-kernel [-- Attachment #1: Type: text/plain, Size: 394 bytes --] On Wed, Jun 07, 2017 at 07:33:44PM +0200, Corentin Labbe wrote: > This patch add the dt node for the syscon register present on the > Allwinner A83T > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> > Reviewed-by: Chen-Yu Tsai <wens@csie.org> Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver 2017-06-07 17:33 [PATCH v2 0/2] ARM: sunxi: Enable dwmac-sun8i on more boards Corentin Labbe 2017-06-07 17:33 ` [PATCH v2 1/2] ARM: sun8i: a83t: Add dt node for the syscon control module Corentin Labbe @ 2017-06-07 17:33 ` Corentin Labbe 2017-06-08 8:34 ` Maxime Ripard 1 sibling, 1 reply; 8+ messages in thread From: Corentin Labbe @ 2017-06-07 17:33 UTC (permalink / raw) To: robh+dt, mark.rutland, linux, maxime.ripard, wens Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Reviewed-by: Chen-Yu Tsai <wens@csie.org> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 01a83406f9ae..7d719b4aeaa9 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -200,6 +200,14 @@ #interrupt-cells = <3>; #gpio-cells = <3>; + emac_rgmii_pins: emac-rgmii-pins { + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", + "PD11", "PD12", "PD13", "PD14", "PD18", + "PD19", "PD21", "PD22", "PD23"; + function = "gmac"; + drive-strength = <40>; + }; + mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -266,6 +274,26 @@ status = "disabled"; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-a83t-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x104>; + interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "macirq"; + resets = <&ccu 13>; + reset-names = "stmmaceth"; + clocks = <&ccu 27>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + gic: interrupt-controller@1c81000 { compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; reg = <0x01c81000 0x1000>, -- 2.13.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver 2017-06-07 17:33 ` [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver Corentin Labbe @ 2017-06-08 8:34 ` Maxime Ripard 2017-06-08 8:42 ` Corentin Labbe 0 siblings, 1 reply; 8+ messages in thread From: Maxime Ripard @ 2017-06-08 8:34 UTC (permalink / raw) To: Corentin Labbe Cc: robh+dt, mark.rutland, linux, wens, devicetree, linux-arm-kernel, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1169 bytes --] On Wed, Jun 07, 2017 at 07:33:45PM +0200, Corentin Labbe wrote: > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> > Reviewed-by: Chen-Yu Tsai <wens@csie.org> > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi > index 01a83406f9ae..7d719b4aeaa9 100644 > --- a/arch/arm/boot/dts/sun8i-a83t.dtsi > +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi > @@ -200,6 +200,14 @@ > #interrupt-cells = <3>; > #gpio-cells = <3>; > > + emac_rgmii_pins: emac-rgmii-pins { > + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", > + "PD11", "PD12", "PD13", "PD14", "PD18", > + "PD19", "PD21", "PD22", "PD23"; > + function = "gmac"; > + drive-strength = <40>; > + }; > + This is not used anywhere. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver 2017-06-08 8:34 ` Maxime Ripard @ 2017-06-08 8:42 ` Corentin Labbe 2017-06-08 12:48 ` Maxime Ripard 0 siblings, 1 reply; 8+ messages in thread From: Corentin Labbe @ 2017-06-08 8:42 UTC (permalink / raw) To: Maxime Ripard Cc: robh+dt, mark.rutland, linux, wens, devicetree, linux-arm-kernel, linux-kernel On Thu, Jun 08, 2017 at 10:34:28AM +0200, Maxime Ripard wrote: > On Wed, Jun 07, 2017 at 07:33:45PM +0200, Corentin Labbe wrote: > > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. > > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. > > > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> > > Reviewed-by: Chen-Yu Tsai <wens@csie.org> > > --- > > arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++++++++++++++++++++++++++++ > > 1 file changed, 28 insertions(+) > > > > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi > > index 01a83406f9ae..7d719b4aeaa9 100644 > > --- a/arch/arm/boot/dts/sun8i-a83t.dtsi > > +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi > > @@ -200,6 +200,14 @@ > > #interrupt-cells = <3>; > > #gpio-cells = <3>; > > > > + emac_rgmii_pins: emac-rgmii-pins { > > + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", > > + "PD11", "PD12", "PD13", "PD14", "PD18", > > + "PD19", "PD21", "PD22", "PD23"; > > + function = "gmac"; > > + drive-strength = <40>; > > + }; > > + > > This is not used anywhere. > But will be used by bpim3 board ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver 2017-06-08 8:42 ` Corentin Labbe @ 2017-06-08 12:48 ` Maxime Ripard 2017-06-09 4:35 ` Chen-Yu Tsai 0 siblings, 1 reply; 8+ messages in thread From: Maxime Ripard @ 2017-06-08 12:48 UTC (permalink / raw) To: Corentin Labbe Cc: robh+dt, mark.rutland, linux, wens, devicetree, linux-arm-kernel, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1541 bytes --] On Thu, Jun 08, 2017 at 10:42:22AM +0200, Corentin Labbe wrote: > On Thu, Jun 08, 2017 at 10:34:28AM +0200, Maxime Ripard wrote: > > On Wed, Jun 07, 2017 at 07:33:45PM +0200, Corentin Labbe wrote: > > > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. > > > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. > > > > > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> > > > Reviewed-by: Chen-Yu Tsai <wens@csie.org> > > > --- > > > arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++++++++++++++++++++++++++++ > > > 1 file changed, 28 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi > > > index 01a83406f9ae..7d719b4aeaa9 100644 > > > --- a/arch/arm/boot/dts/sun8i-a83t.dtsi > > > +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi > > > @@ -200,6 +200,14 @@ > > > #interrupt-cells = <3>; > > > #gpio-cells = <3>; > > > > > > + emac_rgmii_pins: emac-rgmii-pins { > > > + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", > > > + "PD11", "PD12", "PD13", "PD14", "PD18", > > > + "PD19", "PD21", "PD22", "PD23"; > > > + function = "gmac"; > > > + drive-strength = <40>; > > > + }; > > > + > > > > This is not used anywhere. > > > But will be used by bpim3 board Then will add it when we'll add support for that board, until then, it's dead code. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver 2017-06-08 12:48 ` Maxime Ripard @ 2017-06-09 4:35 ` Chen-Yu Tsai 0 siblings, 0 replies; 8+ messages in thread From: Chen-Yu Tsai @ 2017-06-09 4:35 UTC (permalink / raw) To: Corentin Labbe Cc: Maxime Ripard, Rob Herring, Mark Rutland, Russell King, Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel On Thu, Jun 8, 2017 at 8:48 PM, Maxime Ripard <maxime.ripard@free-electrons.com> wrote: > On Thu, Jun 08, 2017 at 10:42:22AM +0200, Corentin Labbe wrote: >> On Thu, Jun 08, 2017 at 10:34:28AM +0200, Maxime Ripard wrote: >> > On Wed, Jun 07, 2017 at 07:33:45PM +0200, Corentin Labbe wrote: >> > > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. >> > > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. >> > > >> > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> >> > > Reviewed-by: Chen-Yu Tsai <wens@csie.org> >> > > --- >> > > arch/arm/boot/dts/sun8i-a83t.dtsi | 28 ++++++++++++++++++++++++++++ >> > > 1 file changed, 28 insertions(+) >> > > >> > > diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi >> > > index 01a83406f9ae..7d719b4aeaa9 100644 >> > > --- a/arch/arm/boot/dts/sun8i-a83t.dtsi >> > > +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi >> > > @@ -200,6 +200,14 @@ >> > > #interrupt-cells = <3>; >> > > #gpio-cells = <3>; >> > > >> > > + emac_rgmii_pins: emac-rgmii-pins { >> > > + pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", >> > > + "PD11", "PD12", "PD13", "PD14", "PD18", >> > > + "PD19", "PD21", "PD22", "PD23"; >> > > + function = "gmac"; >> > > + drive-strength = <40>; >> > > + }; >> > > + >> > >> > This is not used anywhere. >> > >> But will be used by bpim3 board > > Then will add it when we'll add support for that board, until then, > it's dead code. I'll include this in my A83T work branch and resend it when I get around to it. Thanks ChenYu ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-06-09 4:35 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-06-07 17:33 [PATCH v2 0/2] ARM: sunxi: Enable dwmac-sun8i on more boards Corentin Labbe 2017-06-07 17:33 ` [PATCH v2 1/2] ARM: sun8i: a83t: Add dt node for the syscon control module Corentin Labbe 2017-06-08 8:33 ` Maxime Ripard 2017-06-07 17:33 ` [PATCH v2 2/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver Corentin Labbe 2017-06-08 8:34 ` Maxime Ripard 2017-06-08 8:42 ` Corentin Labbe 2017-06-08 12:48 ` Maxime Ripard 2017-06-09 4:35 ` Chen-Yu Tsai
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).