All of lore.kernel.org
 help / color / mirror / Atom feed
From: icenowy@aosc.io (Icenowy Zheng)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 16/18] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet
Date: Thu, 26 Jul 2018 22:59:58 +0800	[thread overview]
Message-ID: <822CCD9A-FA51-4AC9-A2AE-2011B0CAADA1@aosc.io> (raw)
In-Reply-To: <e2f98352-30f5-d162-5bf9-46c7f15e8a80@arm.com>



? 2018?7?26? GMT+08:00 ??10:06:44, Andre Przywara <andre.przywara@arm.com> ??:
>Hi,
>
>On 26/07/18 14:41, Icenowy Zheng wrote:
>> 
>> 
>> ? 2018?7?26? GMT+08:00 ??9:39:56, Sergey Suloev
><ssuloev@orpaltech.com> ??:
>>> Hi,
>>>
>>> On 07/26/2018 03:35 AM, Andre Przywara wrote:
>>>> The NanoPi-A64 has the usual Realtek Gbit PHY connected to the
>EMAC,
>>>> so add the respective nodes to the DT. The PHY is powered by the
>>>> VDD_SYS_3.3V line, which is always on.
>>>>
>>>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>>>> ---
>>>>   arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 17
>>> +++++++++++++++++
>>>>   1 file changed, 17 insertions(+)
>>>>
>>>> diff --git
>a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
>>> b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
>>>> index 5caba225b4f7..bd35a093e6cd 100644
>>>> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
>>>> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
>>>> @@ -51,6 +51,7 @@
>>>>   	compatible = "friendlyarm,nanopi-a64", "allwinner,sun50i-a64";
>>>>   
>>>>   	aliases {
>>>> +		ethernet0 = &emac;
>>>>   		serial0 = &uart0;
>>>>   	};
>>>>   
>>>> @@ -67,6 +68,15 @@
>>>>   	status = "okay";
>>>>   };
>>>>   
>>>> +&emac {
>>>> +	pinctrl-names = "default";
>>>> +	pinctrl-0 = <&rgmii_pins>;
>>>> +	phy-mode = "rgmii";
>>>> +	phy-handle = <&ext_rgmii_phy>;
>>>> +	phy-supply = <&reg_dcdc1>;
>>>> +	status = "okay";
>>>> +};
>>>> +
>>>>   /* i2c1 connected with gpio headers like pine64, bananapi */
>>>>   &i2c1 {
>>>>   	pinctrl-names = "default";
>>>> @@ -78,6 +88,13 @@
>>>>   	bias-pull-up;
>>>>   };
>>>>   
>>>> +&mdio {
>>>> +	ext_rgmii_phy: ethernet-phy at 1 {
>>>> +		compatible = "ethernet-phy-ieee802.3-c22";
>>>> +		reg = <1>;
>>>> +	};
>>>> +};
>>>> +
>>>>   &mmc0 {
>>>>   	pinctrl-names = "default";
>>>>   	pinctrl-0 = <&mmc0_pins>;
>>>
>>> did you test? "reg = <1>" on a real hardware ?
>
>No, thanks for pointing this out.
>
>According to the PHY's datasheet the PHY address is configured by the
>three pins also used for the LEDs. By looking at the schematics back
>then I somehow managed to convince myself that it should be 1, as most
>other boards use, but from looking again it indeed looks more like 7
>(the other LED pin connected to 3.3V).
>
>Can you please try with reg = <7> and confirm that it works that way?

In my memory many nanopi's use 7.

>
>Many thanks,
>Andre.
>
>>>
>>> I have? "reg = <0>" in my dts? and? it has been working on my board
>for
>> 
>> 0 is a wildcard address.
>> 
>> For nano pi, if 1 doesn't work, then it should be 7. 0 can work,
>> but it won't be accepted by DT maintainers.
>> 
>>>
>>> ages.
>>>
>>> Thanks
>
>_______________________________________________
>linux-arm-kernel mailing list
>linux-arm-kernel at lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2018-07-26 14:59 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26  0:35 [PATCH v2 00/18] arm64: dts: allwinner: A64 boards DT updates Andre Przywara
2018-07-26  0:35 ` [PATCH v2 01/18] arm64: dts: allwinner: a64: Add L2 cache nodes Andre Przywara
2018-07-26  0:35 ` [PATCH v2 02/18] arm64: dts: allwinner: a64: Add Pine64-LTS device tree file Andre Przywara
2018-07-26  0:35 ` [PATCH v2 03/18] arm64: dts: allwinner: a64: Orange Pi Win: Fix SD card node Andre Przywara
2018-07-26  7:34   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 04/18] arm64: dts: allwinner: a64: Orange Pi Win: Fix USB Andre Przywara
2018-07-26  7:37   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 05/18] arm64: dts: allwinner: a64: Orange Pi Win: Add Ethernet node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 06/18] arm64: dts: allwinner: a64: Orange Pi Win: Add UARTs Andre Przywara
2018-07-26  7:39   ` Maxime Ripard
2018-07-26  7:42     ` [linux-sunxi] " Icenowy Zheng
2018-07-26  8:30       ` Andre Przywara
2018-07-26  9:32         ` Maxime Ripard
2018-07-26 13:04           ` Andre Przywara
2018-07-27 10:33             ` Andre Przywara
2018-07-27 13:24               ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 07/18] arm64: dts: allwinner: a64: Orange Pi Win: Add LED node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 08/18] arm64: dts: allwinner: a64: Orange Pi Win: Add SDIO node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 09/18] arm64: dts: allwinner: a64: Orange Pi Win: Add SPI flash node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 10/18] arm64: dts: allwinner: a64: Orange Pi Win: Mark CPU supply regulator Andre Przywara
2018-07-26  7:41   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 11/18] arm64: dts: allwinner: a64: Orange Pi Win: Add missing power rails Andre Przywara
2018-07-26  7:43   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 12/18] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Andre Przywara
2018-07-26  0:35 ` [PATCH v2 13/18] arm64: dts: allwinner: a64: Olinuxino: add Ethernet nodes Andre Przywara
2018-07-26  0:35 ` [PATCH v2 14/18] arm64: dts: allwinner: a64: Olinuxino: enable USB Andre Przywara
2018-07-26  0:35 ` [PATCH v2 15/18] arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage Andre Przywara
2018-07-26  0:35 ` [PATCH v2 16/18] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet Andre Przywara
2018-07-26 13:39   ` Sergey Suloev
2018-07-26 13:41     ` Icenowy Zheng
2018-07-26 14:06       ` Andre Przywara
2018-07-26 14:59         ` Icenowy Zheng [this message]
2018-07-26 15:25         ` Sergey Suloev
2018-07-26 15:31           ` Andre Przywara
2018-07-26 17:25             ` Sergey Suloev
2018-07-26 17:48               ` Andre Przywara
2018-07-26 13:45     ` Chen-Yu Tsai
2018-07-26  0:35 ` [PATCH v2 17/18] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip Andre Przywara
2018-07-26  7:44   ` Maxime Ripard
2018-07-26  7:48   ` Chen-Yu Tsai
2018-07-26  9:05     ` Andre Przywara
2018-07-26  0:35 ` [PATCH v2 18/18] arm64: dts: allwinner: a64: NanoPi-A64: Add blue status LED Andre Przywara

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=822CCD9A-FA51-4AC9-A2AE-2011B0CAADA1@aosc.io \
    --to=icenowy@aosc.io \
    --cc=linux-arm-kernel@lists.infradead.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: link
Be 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.