Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1664140ybh; Sun, 8 Mar 2020 09:49:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsrTDEXo6oDXgAccHbHmTMjE8NXVtbPsvc3dZCWgKnS2uNCpKJU23yqNEKHytRd1qPbg2Hb X-Received: by 2002:a05:6830:2110:: with SMTP id i16mr10005612otc.337.1583686195107; Sun, 08 Mar 2020 09:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583686195; cv=none; d=google.com; s=arc-20160816; b=ktxWsbJg+GfNkVIHw5gz9pumyW6JqJx61DKiE2dpZ3snDwxepyH+2qdlxSLvuAqQCi 7V6Kma6XrzayIUAWLcA/EUQNoYX10bndOvOIJEDdtV1hR6/laV8CBLcJTHHaCLojk9EH cfjE6C3tkoT+VppPN+xqCMPfzt4/OzimQIhQFn4jFdptOn5j5L/VSN6AuvWBvJI/NGq6 xH4VJu9H8NpXJzGG+6jHGS/YQlZx4MdhUosmnyGn0UXCRm5kjm6qAwYVIPtDkwm54w29 gweJs9i5Alow6qnTrjPEbYNb8UEK+y2pDXzwd0AX9KZL85EW/WT3+9YmeMbSgwie1FZ1 e3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ptQeVLfICMNI2q4A3dPq1OEKj/Sp1iwWWAHw7jDeIGo=; b=JOxFICaZvZcUPoLfZRT+sjunSPVKy11ZAuU64Eg6+O/QtHeuDlTWGMsqGkKMAtDmlL LEAErXrcmtRgDEXneAGWOMpkOZq7G+J5YJJIPYl151LhgpaDyulkekSdDIVgWzglsIEZ bUylFpmT4LrYo52XcGiXiEr/3HZ8CY/LPd7O2jaQUhPZczjIiYwPL2W/hE/MD8BoVH2/ rP4L8zNKPnm8gZqMYTjh9+/XwBdvahpqWkLW18DyOn2XbbUbGzXYYPVoUxTTLL7nmJEM bVFQPWeRiWxwfsE+VlAUB0SCJcr4n0Jh9CbksFSoh7IAoduynYGkTKg2t5VnvR4jNZMT ZymA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si2715907oie.36.2020.03.08.09.49.43; Sun, 08 Mar 2020 09:49:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbgCHQsz (ORCPT + 99 others); Sun, 8 Mar 2020 12:48:55 -0400 Received: from mailoutvs56.siol.net ([185.57.226.247]:49426 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726297AbgCHQsy (ORCPT ); Sun, 8 Mar 2020 12:48:54 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 8996B52202A; Sun, 8 Mar 2020 17:48:51 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VG2p_uMe23Bp; Sun, 8 Mar 2020 17:48:51 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id 39A1552200D; Sun, 8 Mar 2020 17:48:51 +0100 (CET) Received: from localhost.localdomain (cpe-194-152-20-232.static.triera.net [194.152.20.232]) (Authenticated sender: 031275009) by mail.siol.net (Zimbra) with ESMTPSA id 69ACB521FDF; Sun, 8 Mar 2020 17:48:48 +0100 (CET) From: Jernej Skrabec To: mripard@kernel.org, wens@csie.org Cc: robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Marcus Cooper Subject: [PATCH 1/2] arm64: dts: allwinner: h6: orangepi-one-plus: Enable ethernet Date: Sun, 8 Mar 2020 17:48:39 +0100 Message-Id: <20200308164840.110747-2-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200308164840.110747-1-jernej.skrabec@siol.net> References: <20200308164840.110747-1-jernej.skrabec@siol.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcus Cooper OrangePi One Plus has gigabit ethernet. Add nodes for it. Signed-off-by: Marcus Cooper [patch split and commit message] Signed-off-by: Jernej Skrabec --- .../allwinner/sun50i-h6-orangepi-one-plus.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dt= s b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts index 83aab7368889..fceb298bfd53 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts @@ -7,4 +7,37 @@ / { model =3D "OrangePi One Plus"; compatible =3D "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; + + aliases { + ethernet0 =3D &emac; + }; + + reg_gmac_3v3: gmac-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc-gmac-3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + startup-delay-us =3D <100000>; + enable-active-high; + gpio =3D <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ + vin-supply =3D <®_aldo2>; + }; +}; + +&emac { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&ext_rgmii_pins>; + phy-mode =3D "rgmii"; + phy-handle =3D <&ext_rgmii_phy>; + phy-supply =3D <®_gmac_3v3>; + allwinner,rx-delay-ps =3D <200>; + allwinner,tx-delay-ps =3D <200>; + status =3D "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <1>; + }; }; --=20 2.25.1