[linux-sunxi] Re: [Buildroot] [PATCH v5 00/11] board: Add Allwinner A64/H5 boards

2017-11-09 Thread Jagan Teki
On Mon, Nov 6, 2017 at 3:18 PM, Thomas Petazzoni
 wrote:
> Hello,
>
> On Mon, 6 Nov 2017 15:09:14 +0530, Jagan Teki wrote:
>
>> > Jagan Teki (11):
>> >   arm-trusted-firmware: Build FIP for BL33
>> >   uboot: Add U-Boot-bundles-ATF support
>> >   board: Add Bananapi M64 support
>> >   board: Add Pine64 support
>> >   board: Add SoPine support
>> >   board: Add FriendlyARM Nanopi A64 support
>> >   board: Add FriendlyARM Nanopi NEO2 support
>> >   board: Add Olimex A64-OLinuXino support
>> >   board: Add Orangepi Win/Win Plus support
>> >   board: Add Orangepi Prime support
>> >   board: Add Orangepi Zero Plus2 support
>>
>> Any comments?
>
> I intend to review this series (since I commented on the previous
> iterations), but haven't gotten to it yet.

OK, thanks.

-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i

2017-11-09 Thread Corentin Labbe
On Fri, Nov 10, 2017 at 11:48:11AM +0800, Chen-Yu Tsai wrote:
> On Thu, Nov 9, 2017 at 4:29 PM, Corentin Labbe
>  wrote:
> > The dwmac-sun8i hardware is present on the bananapi m3
> > It uses an external PHY rtl8211e via RGMII.
> >
> > This patch create the needed emac and phy nodes.
> >
> > Signed-off-by: Corentin Labbe 
> > ---
> >  arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 ++
> >  1 file changed, 18 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts 
> > b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
> > index c606af3dbfed..45bdd5c17829 100644
> > --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
> > +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
> > @@ -52,6 +52,7 @@
> > compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t";
> >
> > aliases {
> > +   ethernet0 = &emac;
> > serial0 = &uart0;
> > };
> >
> > @@ -88,6 +89,23 @@
> > /* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls 
> > */
> >  };
> >
> > +&emac {
> > +   pinctrl-names = "default";
> > +   pinctrl-0 = <&emac_rgmii_pins>;
> > +   phy-handle = <&ext_rgmii_phy>;
> > +   phy-mode = "rgmii";
> 
> Schematics say PHY is power by DC1SW from the PMIC.
> Not sure why you don't need that. Have you tested your patch?

Tested on 4.14.0-rc5-next-20171018+ 
I will try to check which uboot is used, perhaps it's an old uboot with some 
PMIC hack.

Thanks
Regards

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i

2017-11-09 Thread Chen-Yu Tsai
On Thu, Nov 9, 2017 at 4:29 PM, Corentin Labbe
 wrote:
> The dwmac-sun8i hardware is present on the bananapi m3
> It uses an external PHY rtl8211e via RGMII.
>
> This patch create the needed emac and phy nodes.
>
> Signed-off-by: Corentin Labbe 
> ---
>  arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 ++
>  1 file changed, 18 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts 
> b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
> index c606af3dbfed..45bdd5c17829 100644
> --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
> +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
> @@ -52,6 +52,7 @@
> compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t";
>
> aliases {
> +   ethernet0 = &emac;
> serial0 = &uart0;
> };
>
> @@ -88,6 +89,23 @@
> /* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */
>  };
>
> +&emac {
> +   pinctrl-names = "default";
> +   pinctrl-0 = <&emac_rgmii_pins>;
> +   phy-handle = <&ext_rgmii_phy>;
> +   phy-mode = "rgmii";

Schematics say PHY is power by DC1SW from the PMIC.
Not sure why you don't need that. Have you tested your patch?

See 
https://github.com/wens/linux/commit/c2a12e2470b6d7988a3af043e0f030d8206ad68a

ChenYu

> +   allwinner,rx-delay-ps = <700>;
> +   allwinner,tx-delay-ps = <700>;
> +
> +   status = "okay";
> +};
> +
> +&mdio {
> +   ext_rgmii_phy: ethernet-phy@1 {
> +   reg = <1>;
> +   };
> +};
> +
>  &mmc0 {
> pinctrl-names = "default";
> pinctrl-0 = <&mmc0_pins>;
> --
> 2.13.6
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [PATCH v2 0/2] Add dwmac-sun8i on A83T DT

2017-11-09 Thread Chen-Yu Tsai
On Thu, Nov 9, 2017 at 4:29 PM, Corentin Labbe
 wrote:
> Hello
>
> This patch series add some device node for dwmac-sun8i on A83T.
>
> Changes since v1:
> - reworked commit log of patch #1
> - added comment on drive strength
>
> Corentin Labbe (2):
>   ARM: sun8i: a83t: add dwmac-sun8i device node
>   ARM: sun8i: bananapi-m3: Enable dwmac-sun8i

Subjects should have "dts:" prefix.
We could probably fix it up for you.

ChenYu

>
>  arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 +++
>  arch/arm/boot/dts/sun8i-a83t.dtsi| 33 
> 
>  2 files changed, 51 insertions(+)
>
> --
> 2.13.6
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [PATCH 1/1] add rgb888 pins to a20 to enable parallel rgb LCD

2017-11-09 Thread Icenowy Zheng

在 2017-11-08 18:56,Maxime Ripard 写道:

Hi,

On Tue, Nov 07, 2017 at 05:38:55PM +0100, Giulio Benetti wrote:

Board could be any with A20,
for example Olinuxino A20.
Or our Q027, S027 boards, but final dts still are not complete.


Therefore no upstream boards are using it right now, so we'll merge it
when that will be the case.


I think the LCD connector on Banana Pi's uses parallel interface,
although the LCD should be an external DT overlay.



Maxime

___
linux-arm-kernel mailing list
linux-arm-ker...@lists.infradead.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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [PATCH] sunxi: lower the DRAM frequency of Nano Pi NEO2 to 504MHz

2017-11-09 Thread Thomas Kaiser
Am Donnerstag, 2. November 2017 14:59:57 UTC+1 schrieb Maxime Ripard:

> On Thu, Nov 02, 2017 at 11:36:52AM +0800, Icenowy Zheng wrote: 
> > The BSP of Nano Pi NEO2 provided by FriendlyARM uses 504MHz DRAM 
> > frequency, which is much lower than the current 672MHz used in 
> > mainline. 
> > 
> > Switch to use the BSP-provided frequency 504MHz for DRAM. 
> > 
> > Thanks to Thomas Kaiser, who pointed out the frequency problem. 
>
> What issue does this patch fix? BSPs have often been way underclocked 
> in the past. 
>
> Did you encounter any corruption? 
>

We had a couple of reports in Armbian forum about instabilities with NEO2 
that went away after downclocking the DRAM to 408 MHz (that's what Armbian 
uses currently on all Allwinner H thingies with just a single DRAM chip). 
FriendlyELEC started with 432 MHz on their single bank DRAM configurations 
last year and also lowered down to 408 MHz in the meantime.

But not where one would expect the change but somewhere else -- please see 
here: 
https://github.com/armbian/build/commit/b57c9d767ead528a54001d8728d39470e9faf5e4#commitcomment-23003991

I asked FriendlyELEC's Weidong right now to join the discussion providing 
some insights.

Best,

Thomas

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: [PATCH v2 00/10] Allwinner H3/H5/A64(DE2) SimpleFB support

2017-11-09 Thread Chris Obbard
Hi Everyone,

What's the status of HDMI/SimpleFB driver for H5?

I don't see anything related to HDMI in linux-next dts files:

arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts  (example board)
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi
arch/arm/boot/dts/sunxi-h3-h5.dtsi

On 6 November 2017 at 08:40, Daniel Vetter  wrote:

> On Thu, Nov 02, 2017 at 04:44:47PM +0100, Maxime Ripard wrote:
> > On Thu, Nov 02, 2017 at 04:51:29PM +0800, Icenowy Zheng wrote:
> > > 在 2017-10-27 23:06,Icenowy Zheng 写道:
> > > > This patchset adds support for the SimpleFB on Allwinner SoCs with
> > > > "Display Engine 2.0".
> > > >
> > > > PATCH 1 to PATCH 3 are DE2 CCU fixes for H3/H5 SoCs.
> > > >
> > > > PATCH 4 adds the pipeline strings for DE2 SimpleFB.
> > > >
> > > > PATCH 5 to 7 adds necessary device tree nodes (DE2 CCU and SimpleFB)
> > > > for H3/H5 SoCs.
> > > >
> > > > PATCH 8 to 10 are for Allwinner A64 SoC to enable SimpleFB.
> > > >
> > > > Icenowy Zheng (10):
> > > >   dt-bindings: fix the binding of Allwinner DE2 CCU of A83T and H3
> > > >   clk: sunxi-ng: add support for Allwinner H3 DE2 CCU
> > > >   clk: sunxi-ng: fix the A64/H5 clock description of DE2 CCU
> > > >   dt-bindings: simplefb-sunxi: add pipelines for DE2
> > > >   ARM: sun8i: h3/h5: add DE2 CCU device node for H3
> > > >   arm64: allwinner: h5: add compatible string for DE2 CCU
> > > >   ARM: sunxi: h3/h5: add simplefb nodes
> > > >   dt-bindings: add binding for A64 DE2 CCU SRAM
> > > >   arm64: allwinner: a64: add DE2 CCU for A64 SoC
> > > >   arm64: allwinner: a64: add simplefb for A64 SoC
> > >
> > > Maxime, could you review and, if possible, apply the H3/5
> > > part of this patchset?
> >
> > This came a bit late, we're too close from the merge window
> > now. Please resend them after -rc1 is out.
>
> Just dropping here that drm-misc is open all the time, making for a much
> better process for contributors :-)
> -Daniel
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: [PATCH 1/1] add rgb888 pins to a20 to enable parallel rgb LCD

2017-11-09 Thread Chris Obbard
Hi Giulio,

If the board is available to buy, for general public use, then I think YES
it should go in as a separate DTS ;-).

Cheers!

On 7 November 2017 at 13:19, Giulio Benetti  wrote:

> As publicly available what do you mean?
> Need schematics and gerbers?
> Or that is possible to buy it online?
>
> --
> Giulio Benetti
> R&D Manager &
> Advanced Research
>
> MICRONOVA SRL
> Sede: Via A. Niedda 3 - 35010 Vigonza
> 
> (PD)
> Tel. 049/8931563 - Fax 049/8931346
> Cod.Fiscale - P.IVA 02663420285
> Capitale Sociale € 26.000 i.v.
> Iscritta al Reg. Imprese di Padova N. 02663420285
> Numero R.E.A. 258642
>
> Il 07/11/2017 14:14, Chris Obbard ha scritto:
>
>> I'd say no, do not merge if hardware is not publicly available, make a
>> separate DTS in your separate Tree that extends the board you are closest
>> to with your custom changes.
>>
>> Cheers!
>>
>> On 7 November 2017 at 13:13, Giulio Benetti <
>> giulio.bene...@micronovasrl.com >
>> wrote:
>>
>> It's a custom board of my Company.
>> Its complete dts is not ready, but that part works.
>> Do I have to submit this when I will submit entire board dts?
>> If yes, since our board has software open source, but not opensource
>> hardware,
>> will you accept our dts in the future?
>>
>> Thank you
>>
>> Il giorno martedì 7 novembre 2017 14:03:51 UTC+1, Maxime Ripard ha
>> scritto:
>>
>> On Tue, Nov 07, 2017 at 01:49:59PM +0100, Giulio Benetti wrote:
>>  > On sun7i-a20-* there's no way to enable PA00--PA27 as RGB888
>> LCD0 pins.
>>  >
>>  > Add lcd_rgb888_pins in sun7i-a20.dtsi.
>>  >
>>  > It can be used on sun7i-a20-olinuxino-lime.dts.
>>  > This patch gives possibility to set parallel lcd pins for
>> RGB888.
>>  > To be used with tcon0 in your .dts
>>
>> My question was on which board do you want to use it right now.
>> If the
>> answer is none, then we won't merge that patch, we have too many
>> pinctrl already to not add the unused ones.
>>
>> Maxime
>>
>> -- Maxime Ripard, Free Electrons
>> Embedded Linux and Kernel engineering
>> http://free-electrons.com
>>
>> -- 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+unsubscr...@googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout
>> .
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: [PATCH 1/1] add rgb888 pins to a20 to enable parallel rgb LCD

2017-11-09 Thread Chris Obbard
I'd say no, do not merge if hardware is not publicly available, make a
separate DTS in your separate Tree that extends the board you are closest
to with your custom changes.

Cheers!

On 7 November 2017 at 13:13, Giulio Benetti  wrote:

> It's a custom board of my Company.
> Its complete dts is not ready, but that part works.
> Do I have to submit this when I will submit entire board dts?
> If yes, since our board has software open source, but not opensource
> hardware,
> will you accept our dts in the future?
>
> Thank you
>
> Il giorno martedì 7 novembre 2017 14:03:51 UTC+1, Maxime Ripard ha scritto:
>>
>> On Tue, Nov 07, 2017 at 01:49:59PM +0100, Giulio Benetti wrote:
>> > On sun7i-a20-* there's no way to enable PA00--PA27 as RGB888 LCD0 pins.
>> >
>> > Add lcd_rgb888_pins in sun7i-a20.dtsi.
>> >
>> > It can be used on sun7i-a20-olinuxino-lime.dts.
>> > This patch gives possibility to set parallel lcd pins for RGB888.
>> > To be used with tcon0 in your .dts
>>
>> My question was on which board do you want to use it right now. If the
>> answer is none, then we won't merge that patch, we have too many
>> pinctrl already to not add the unused ones.
>>
>> Maxime
>>
>> --
>> Maxime Ripard, Free Electrons
>> Embedded Linux and Kernel engineering
>> http://free-electrons.com
>>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: [PATCH 1/1] add rgb888 pins to a20 to enable parallel rgb LCD

2017-11-09 Thread Chris Obbard
Hi Giulio,

Sounds good to me.  I guess you are developing using the Olimex Lime board,
in which case the DTS patch is useless to anyone else?

Cheers!

On 7 November 2017 at 13:27, Giulio Benetti  wrote:

> Sure,
>
> that is the idea.
> Here is one of the boards:
> http://www.micronovasrl.com/en/q027/
>
> We still don't have an e-commerce on website,
> but you can write us an e-mail and we can sell it to everybody.
>
> So when I will be ready with full DTS of that board,
> I will submit a patchset including rgb888_pins.
>
> Right?
>
> --
> Giulio Benetti
> R&D Manager &
> Advanced Research
>
> MICRONOVA SRL
> Sede: Via A. Niedda 3 - 35010 Vigonza
> 
> (PD)
> Tel. 049/8931563 - Fax 049/8931346
> Cod.Fiscale - P.IVA 02663420285
> Capitale Sociale € 26.000 i.v.
> Iscritta al Reg. Imprese di Padova N. 02663420285
> Numero R.E.A. 258642
>
> Il 07/11/2017 14:23, Chris Obbard ha scritto:
>
>> Hi Giulio,
>>
>> If the board is available to buy, for general public use, then I think
>> YES it should go in as a separate DTS ;-).
>>
>> Cheers!
>>
>> On 7 November 2017 at 13:19, Giulio Benetti <
>> giulio.bene...@micronovasrl.com >
>> wrote:
>>
>> As publicly available what do you mean?
>> Need schematics and gerbers?
>> Or that is possible to buy it online?
>>
>> -- Giulio Benetti
>> R&D Manager &
>> Advanced Research
>>
>> MICRONOVA SRL
>> Sede: Via A. Niedda 3 - 35010 Vigonza
>> > entry=gmail&source=g>
>> (PD)
>> Tel. 049/8931563 - Fax 049/8931346
>> Cod.Fiscale - P.IVA 02663420285
>> Capitale Sociale € 26.000 i.v.
>> Iscritta al Reg. Imprese di Padova N. 02663420285
>> Numero R.E.A. 258642
>>
>> Il 07/11/2017 14:14, Chris Obbard ha scritto:
>>
>> I'd say no, do not merge if hardware is not publicly available,
>> make a separate DTS in your separate Tree that extends the board
>> you are closest to with your custom changes.
>>
>> Cheers!
>>
>> On 7 November 2017 at 13:13, Giulio Benetti
>> > 
>> >
>> >> wrote:
>>
>>  It's a custom board of my Company.
>>  Its complete dts is not ready, but that part works.
>>  Do I have to submit this when I will submit entire board dts?
>>  If yes, since our board has software open source, but not
>> opensource
>>  hardware,
>>  will you accept our dts in the future?
>>
>>  Thank you
>>
>>  Il giorno martedì 7 novembre 2017 14:03:51 UTC+1, Maxime
>> Ripard ha
>>  scritto:
>>
>>  On Tue, Nov 07, 2017 at 01:49:59PM +0100, Giulio
>> Benetti wrote:
>>   > On sun7i-a20-* there's no way to enable PA00--PA27
>> as RGB888
>>  LCD0 pins.
>>   >
>>   > Add lcd_rgb888_pins in sun7i-a20.dtsi.
>>   >
>>   > It can be used on sun7i-a20-olinuxino-lime.dts.
>>   > This patch gives possibility to set parallel lcd
>> pins for
>>  RGB888.
>>   > To be used with tcon0 in your .dts
>>
>>  My question was on which board do you want to use it
>> right now.
>>  If the
>>  answer is none, then we won't merge that patch, we have
>> too many
>>  pinctrl already to not add the unused ones.
>>
>>  Maxime
>>
>>  -- Maxime Ripard, Free Electrons
>>  Embedded Linux and Kernel engineering
>> http://free-electrons.com
>>
>>  -- 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+unsubscr...@googlegroups.com
>> 
>>  > >.
>>  For more options, visit https://groups.google.com/d/optout
>> 
>>  > >.
>>
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: [PATCH v2 00/10] Allwinner H3/H5/A64(DE2) SimpleFB support

2017-11-09 Thread Maxime Ripard
On Thu, Nov 09, 2017 at 11:17:03AM +, Chris Obbard wrote:
> Hi Everyone,
> 
> What's the status of HDMI/SimpleFB driver for H5?
> 
> I don't see anything related to HDMI in linux-next dts files:
> 
> arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts  (example board)
> arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi
> arch/arm/boot/dts/sunxi-h3-h5.dtsi

It will be part of 4.16 and are not in linux-next (yet).

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[linux-sunxi] [PATCH v2 1/2] ARM: sun8i: a83t: add dwmac-sun8i device node

2017-11-09 Thread Corentin Labbe
The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed.
This patch add support for it on the Allwinner a83t SoC Device-tree.

This patch add the emac device node and the related RGMII pins node.

Signed-off-by: Corentin Labbe 
Reviewed-by: Chen-Yu Tsai 
---
 arch/arm/boot/dts/sun8i-a83t.dtsi | 33 +
 1 file changed, 33 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi 
b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 19acae1b4089..a384b766f3dc 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -336,6 +336,18 @@
#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";
+   /*
+* data lines in RGMII mode use DDR mode
+* and need a higher signal drive strength
+*/
+   drive-strength = <40>;
+   };
+
mmc0_pins: mmc0-pins {
pins = "PF0", "PF1", "PF2",
   "PF3", "PF4", "PF5";
@@ -440,6 +452,27 @@
status = "disabled";
};
 
+   emac: ethernet@1c3 {
+   compatible = "allwinner,sun8i-a83t-emac";
+   syscon = <&syscon>;
+   reg = <0x01c3 0x104>;
+   interrupts = ;
+   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 {
+   compatible = "snps,dwmac-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.6

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] [PATCH v2 0/2] Add dwmac-sun8i on A83T DT

2017-11-09 Thread Corentin Labbe
Hello

This patch series add some device node for dwmac-sun8i on A83T.

Changes since v1:
- reworked commit log of patch #1
- added comment on drive strength

Corentin Labbe (2):
  ARM: sun8i: a83t: add dwmac-sun8i device node
  ARM: sun8i: bananapi-m3: Enable dwmac-sun8i

 arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 +++
 arch/arm/boot/dts/sun8i-a83t.dtsi| 33 
 2 files changed, 51 insertions(+)

-- 
2.13.6

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] [PATCH v2 2/2] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i

2017-11-09 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the bananapi m3
It uses an external PHY rtl8211e via RGMII.

This patch create the needed emac and phy nodes.

Signed-off-by: Corentin Labbe 
---
 arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts 
b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
index c606af3dbfed..45bdd5c17829 100644
--- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
@@ -52,6 +52,7 @@
compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t";
 
aliases {
+   ethernet0 = &emac;
serial0 = &uart0;
};
 
@@ -88,6 +89,23 @@
/* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */
 };
 
+&emac {
+   pinctrl-names = "default";
+   pinctrl-0 = <&emac_rgmii_pins>;
+   phy-handle = <&ext_rgmii_phy>;
+   phy-mode = "rgmii";
+   allwinner,rx-delay-ps = <700>;
+   allwinner,tx-delay-ps = <700>;
+
+   status = "okay";
+};
+
+&mdio {
+   ext_rgmii_phy: ethernet-phy@1 {
+   reg = <1>;
+   };
+};
+
 &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
-- 
2.13.6

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.