From patchwork Tue Oct 31 08:19:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117530 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3599683qgn; Tue, 31 Oct 2017 01:25:52 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QyDdXyzl9zYLyHbGpB0RR25O0e0rtiPCIxKadawhg6X3nh6ublZbqkRnfYZGGsxR7ped+8 X-Received: by 10.101.77.3 with SMTP id i3mr1114364pgt.311.1509438352777; Tue, 31 Oct 2017 01:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438352; cv=none; d=google.com; s=arc-20160816; b=dY9+E5FXkQD44bwVS3gperq1AuJbE8uYx8yi4x9KHBkBxi1HX7bY3V5rMonzgfOSBM oK8iLYpnol3XFoKk0ERIMyFg6D7msABFmbvzGxV62Dd2M4JvCEkKDW0hu7sENSIcGmuN jTSNTsNwzDG4eX56IXXHrbUWmDmzHHJVKDT8ssz3QZAaKgRr+IJoFB4SOZF9wQozPAYw cFYnrvazReLfaO8fE6kZjrlXsyDQvv28c1qhDeVkdHX9czfMxGUe92ZSSpUphS4YOFFV S2vH6HQSKKIfq+aP9NFhdjacS7yT3kH7rmAyH4quhFG3+xZZC+3kcaVVOwPXpInybpcw 64zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=WYV6WDj6jbmpN4+V+GRB1N4tgNSoU/ETuQGk/vz5nqk=; b=qGgOwO7N7kS3y1fJETyvo7LAzNPrSDTa/Y9CmWVKE9mjQxDDhC1G7B2zFUW98PLmRN tS1nhMbrjCQAVB+TevOyVGLsYO/DSUjvKVldnnD5FHFoabjvm8ZZxCaa3Rk1foXpJIhp sfm8BQgYXxvvgt2vjtaFp8IiY7gYb27mEE0vShQ4WNxJ04mPcm9Tdf1hxtZvM9n38CPS 4HohKagbPOmyrzuTR9Ivxw0VEUu/+iwzaXID55kcNseRPOvTB9PPCYrm5SO03FdSH+gK hm9V5vK0QndgVgpWNXMrNGOeiS3P/7bYQGlFm3QrWD5mqqORLoOoI8cp/L1L7ZFYQu8j KpAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j/cQjxl6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si966965pge.285.2017.10.31.01.25.52; Tue, 31 Oct 2017 01:25:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j/cQjxl6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753377AbdJaIZu (ORCPT + 27 others); Tue, 31 Oct 2017 04:25:50 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:53440 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752707AbdJaIVZ (ORCPT ); Tue, 31 Oct 2017 04:21:25 -0400 Received: by mail-wr0-f193.google.com with SMTP id u40so15071025wrf.10; Tue, 31 Oct 2017 01:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WYV6WDj6jbmpN4+V+GRB1N4tgNSoU/ETuQGk/vz5nqk=; b=j/cQjxl6pgQmzsT1yEfEOA3IqvCU02+cEVo5ML8iwWt2I6Zh7i+uG79GYPYoIaoPwP 5b9pbRCkLSaniHBtDqKgjo/lMzB7Dbbt7OstDdmVI5AAN8tgdtcqSpxa1CCV/5L8xj3v o/oq2UIftAIntj4UXz+oGJ7pi0ghGOr8PSuWD27ijYKA1870Q/mR7Iph+1RRJdHM4C0J CWEs/JOAgvr5tXymqoJBkaLSXDw0AN5E/OCBMt24tXfWWLBxFIpXZOqmTRsAO6/iP9lA gPf4omspS1PiiwfZ1PkOKkO1d7oCSmQhh2nuV61r00QU61JMF7XRQMY2/sme3Kt+Elwc MiHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WYV6WDj6jbmpN4+V+GRB1N4tgNSoU/ETuQGk/vz5nqk=; b=ZOciUGLi/n3KrxlD8Wr2phym7CdBLTVRXYpDsC+4HWZrootzcnrBWPwgdMWWHlYOeK 1IyvoqOBDETEJXmX1wd8RkOL4/LPLQm/67LQCc4Z2iuAcoy72irdqjl2npwvKoDuiG5Y qU52Sy8+9BD+0/UuIJhdXgQDnIu8Rm6Q2020j5l4UtuMWd3m3RWKU3s06qZR9YjVprKD 79N3NJZeQiq8nYGrhtJLEllna6S8EcZKO0aK/Css6LMedMCNdMvEthRVoq9j1c1PfD+z HvscRtXhILB1yEDhh4M/keuD98SsHvmoS4oeDB68G1NNoHQsCQDrc4XTYLMo7D/FJNGE k6Wg== X-Gm-Message-State: AMCzsaUzEYQm92XRygKSzNswdZ3Z0B4bUY4Qm/KmS0FJ/cE1Aozvh6/m Oj+sRoZ7LIB3iR7gnHYT9fQ= X-Received: by 10.223.170.154 with SMTP id h26mr948027wrc.87.1509438083872; Tue, 31 Oct 2017 01:21:23 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:23 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 2/8] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY Date: Tue, 31 Oct 2017 09:19:09 +0100 Message-Id: <20171031081915.18960-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add documentation about the MDIO switch used on sun8i-h3-emac for integrated PHY. Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli Reviewed-by: Andrew Lunn --- .../devicetree/bindings/net/dwmac-sun8i.txt | 147 +++++++++++++++++++-- 1 file changed, 135 insertions(+), 12 deletions(-) -- 2.13.6 diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt index 725f3b187886..3d6d5fa0c4d5 100644 --- a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt +++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt @@ -4,18 +4,18 @@ This device is a platform glue layer for stmmac. Please see stmmac.txt for the other unchanged properties. Required properties: -- compatible: should be one of the following string: +- compatible: must be one of the following string: "allwinner,sun8i-a83t-emac" "allwinner,sun8i-h3-emac" "allwinner,sun8i-v3s-emac" "allwinner,sun50i-a64-emac" - reg: address and length of the register for the device. - interrupts: interrupt for the device -- interrupt-names: should be "macirq" +- interrupt-names: must be "macirq" - clocks: A phandle to the reference clock for this device -- clock-names: should be "stmmaceth" +- clock-names: must be "stmmaceth" - resets: A phandle to the reset control for this device -- reset-names: should be "stmmaceth" +- reset-names: must be "stmmaceth" - phy-mode: See ethernet.txt - phy-handle: See ethernet.txt - #address-cells: shall be 1 @@ -39,23 +39,42 @@ Optional properties for the following compatibles: - allwinner,leds-active-low: EPHY LEDs are active low Required child node of emac: -- mdio bus node: should be named mdio +- mdio bus node: should be named mdio with compatible "snps,dwmac-mdio" Required properties of the mdio node: - #address-cells: shall be 1 - #size-cells: shall be 0 -The device node referenced by "phy" or "phy-handle" should be a child node +The device node referenced by "phy" or "phy-handle" must be a child node of the mdio node. See phy.txt for the generic PHY bindings. -Required properties of the phy node with the following compatibles: +The following compatibles require that the emac node have a mdio-mux child +node called "mdio-mux": + - "allwinner,sun8i-h3-emac" + - "allwinner,sun8i-v3s-emac": +Required properties for the mdio-mux node: + - compatible = "allwinner,sun8i-h3-mdio-mux" + - mdio-parent-bus: a phandle to EMAC mdio + - one child mdio for the integrated mdio with the compatible + "allwinner,sun8i-h3-mdio-internal" + - one child mdio for the external mdio if present (V3s have none) +Required properties for the mdio-mux children node: + - reg: 1 for internal MDIO bus, 2 for external MDIO bus + +The following compatibles require a PHY node representing the integrated +PHY, under the integrated MDIO bus node if an mdio-mux node is used: - "allwinner,sun8i-h3-emac", - "allwinner,sun8i-v3s-emac": + +Additional information regarding generic multiplexer properties can be found +at Documentation/devicetree/bindings/net/mdio-mux.txt + +Required properties of the integrated phy node: - clocks: a phandle to the reference clock for the EPHY - resets: a phandle to the reset control for the EPHY +- Must be a child of the integrated mdio -Example: - +Example with integrated PHY: emac: ethernet@1c0b000 { compatible = "allwinner,sun8i-h3-emac"; syscon = <&syscon>; @@ -72,13 +91,117 @@ emac: ethernet@1c0b000 { phy-handle = <&int_mii_phy>; phy-mode = "mii"; allwinner,leds-active-low; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; + + mdio-mux { + compatible = "mdio-mux", "allwinner,sun8i-h3-mdio-mux"; + #address-cells = <1>; + #size-cells = <0>; + + mdio-parent-bus = <&mdio>; + + int_mdio: mdio@1 { + compatible = "allwinner,sun8i-h3-mdio-internal"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + phy-is-integrated; + }; + }; + ext_mdio: mdio@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; +}; + +Example with external PHY: +emac: ethernet@1c0b000 { + compatible = "allwinner,sun8i-h3-emac"; + syscon = <&syscon>; + reg = <0x01c0b000 0x104>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + allwinner,leds-active-low; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; + + mdio-mux { + compatible = "allwinner,sun8i-h3-mdio-mux"; + #address-cells = <1>; + #size-cells = <0>; + + mdio-parent-bus = <&mdio>; + + int_mdio: mdio@1 { + compatible = "allwinner,sun8i-h3-mdio-internal"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + }; + }; + ext_mdio: mdio@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + ext_rgmii_phy: ethernet-phy@1 { + reg = <1>; + }; + }: + }; +}; + +Example with SoC without integrated PHY + +emac: ethernet@1c0b000 { + compatible = "allwinner,sun8i-a83t-emac"; + syscon = <&syscon>; + reg = <0x01c0b000 0x104>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + mdio: mdio { + compatible = "snps,dwmac-mdio"; #address-cells = <1>; #size-cells = <0>; - int_mii_phy: ethernet-phy@1 { + ext_rgmii_phy: ethernet-phy@1 { reg = <1>; - clocks = <&ccu CLK_BUS_EPHY>; - resets = <&ccu RST_BUS_EPHY>; }; }; }; From patchwork Tue Oct 31 08:19:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117529 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3599188qgn; Tue, 31 Oct 2017 01:25:14 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TZQG5HmSSxXA/Axina5m3FcVgWi2x+5C5NQcDlDLVg6qhz8G17eIeC4DDun5U2/aoiyUsA X-Received: by 10.101.72.132 with SMTP id n4mr1102412pgs.245.1509438314109; Tue, 31 Oct 2017 01:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438314; cv=none; d=google.com; s=arc-20160816; b=e/Lihkg5vfMIKjJCiJP9Jcr49lsEvUL+zs57seFL2/YoJgsi4JoGDkFOSqn7tJCg6N fLrj3E2S90pMXt1JBfJTsBQDqTjKaIZ9/GFqspknoAZu+H7aBlXVyexO85I6PFKI1YjS mHvkLeNXHR7kdSvQz6jNLXQ2/+Es1ZO3O3C6CAJEUnLNDMUbkH4Xn6zLSDoUArialEx6 5rlYY4tbZ+or8ZIRhzc10qtfAma1LwyVmpYRDV44WyD3ZqYwoiIaLCgbO4Jct0t6Cbsy o9OdgVEoE/LRSvrAdNGXjDeP4gv7lhowpqaQaM/YvoJbUGcye+sgNu1zn2NzyCoZdyt5 Kr2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=xJ/jp7lH+WhV14jpglw3FiIXi13FF6KuecP1IExkifYS7XM+Kbh2eilaIrDsEzCzX3 pyxy+6KBBdyeKIufv8BTNBBOmH6x8aM6LKA6dcf3Im54ZMPKTmZgKXPiYZgAs9n6NeIB It00livS5PMT0I6++X7ajhND0oyDGvhenLmOgnfvzjyH85jPPnY8BURWHmFf4lOoUxYQ S0f+W9Z1hLMMS7iZ8X/Mm6TuRJ8NgUXldCrzbQCwasquz9qSznWcvWWFdvGRyGFHjGbG mj4S22NVFKxJhoAxE7L38qCe9wOPH09LgBw9Xb886eGyExnywIu9hjC6SFPUT9dkAQA3 dhyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H/E52Q+9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k190si990792pgc.648.2017.10.31.01.25.13; Tue, 31 Oct 2017 01:25:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H/E52Q+9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753373AbdJaIZL (ORCPT + 27 others); Tue, 31 Oct 2017 04:25:11 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:49527 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752747AbdJaIV0 (ORCPT ); Tue, 31 Oct 2017 04:21:26 -0400 Received: by mail-wr0-f194.google.com with SMTP id g90so15094710wrd.6; Tue, 31 Oct 2017 01:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=H/E52Q+91Yrj2l3NA5a1V77KbGCjURZMprDGCUzmi/zJxfbj4wkVaXu1bGLIzD91L3 n8q+szNCSUsH+Vg6KH9qXboH1GoF4BCQCxtbP+jMAn8/zjNrQj5dU6fanAcWIGnq1FXW o04KYMcQAgTtOzRTdzWmDc3tObRX/60y4pmaqejyvLjQvJYxoo3fsMB0g4y43PZV2JXg /+j/v0ZNrGMJwvAKlwplxRNSQrR5fAH9qf19D6wspxrD0vymH6qtZL7fcohzlS5TsE9Q C5Sv1CLqnGunI7EVd211LA4kXc2W+3pQn8Wkimk2orAthg1v+b4YpN/HPS3K1l8c9x8e snTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=CxsYrbNPghQBEQ8n70b6i0KQKxLJDIpZEKd8WetpG4BHgv0h9RgOOg+wEjXjj4CbVZ VcCZFNpzYEx144IJ3LRQE6zGDhCW8qEY2dhzau2Pc7TWS7hzLROf/OuSGAjfg7j5WNsV XmcGQbDvPhRNTSf0CHyFOh/M+F9yJxzlfoqOvKzIRQVDdtLzn2lZnI/mudbYtYTM+sct DvS2tJmmuRPmZdhJmX5tUcH0C/ppDxLGrPu0lMxrHMqwA8xb/cMN0W2ST6uOcPRoSlhx O8fyKxmGtkmrayshSabAsRhTOxuxBryVPykrdY8KjTNhs2UllLpTU35LXGqmyrOwo5hZ r1wQ== X-Gm-Message-State: AMCzsaXlRxXKFetkpvAyP+JlJJYOM79Z9UWnj1tMBMglu2gjvOTLJ5cn sCrR/BxVRsDpBt95/tSoyEk= X-Received: by 10.223.184.125 with SMTP id u58mr942115wrf.8.1509438084862; Tue, 31 Oct 2017 01:21:24 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:24 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 3/8] arm: dts: sunxi: h3/h5: Restore EMAC changes Date: Tue, 31 Oct 2017 09:19:10 +0100 Message-Id: <20171031081915.18960-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore sunxi-h3-h5.dtsi This reverts partially commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) -- 2.13.6 diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index c1bd09dab3da..d762098fc589 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -408,6 +408,32 @@ clocks = <&osc24M>; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-h3-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + }; + }; + }; + spi0: spi@1c68000 { compatible = "allwinner,sun8i-h3-spi"; reg = <0x01c68000 0x1000>; From patchwork Tue Oct 31 08:19:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117525 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3596677qgn; Tue, 31 Oct 2017 01:22:02 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SXLTrcH/F+3E2BSoLd6z8SKruLMaeLZ9JvH2n3j7Ctr+sFCUzmTyweLv9AgD4dtTmvsFb/ X-Received: by 10.98.130.65 with SMTP id w62mr1243459pfd.203.1509438122339; Tue, 31 Oct 2017 01:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438122; cv=none; d=google.com; s=arc-20160816; b=qofa7GXnpzZO9dG8ahVzpIV12MBuaJ56bAzQCH3EkM+/GITwIRTiuh7/qxc+jZq58n 2HDVpUQtZDF+qf6wuXEARLqRmFUrAjznxBJvirgfMgZdU9phRUfvQuMAwPa7TbkuRxhB m5brKMs/x/pfycg8RT6XL1i1L4fVRVq7jPzuwuMwbD1VPzAonBUrM55ksr7M6dvR/J+U cpoF/KZObO4f5xCPlof7ib7LuvHZfuqTKsELsNfmoVktTZe2xdqx88G2FN/ZtKPYVRy4 J4BtdjTbu4gWy9kBg0mZCDZ4gMyZ3XL1qcPC9m4jYB/RmnPPFBydgNzqABtRr4rcAPpc K0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qiRl1ggBJ2cJaQWbvlM5Kjj4My5XbDI5iJAPGonYtLU=; b=JEbGstDqDnkkN2KeqL23PAfyD8F1zu0HVe/G4iCU6d3XoGxXiwvIuIejPynyNLsGrL dClkTg9IGLPLaXhaDZtsiVdwl2X36neifokIGTarj7tWij2ngBcQj6gngFgKbMVbts6O vOJtFC7yrFA+89Kw27Oe9MNY1zKVi/6qGuf6TeqIIbXfNvtP1Oi9PrUxW1tRmXb4sQRZ NwH91xyQCWft9QWT0sE7WuRZFGd527bhZKZ+kwAIhNvBlbMzX9wVJmXgm4i2DN2fytiI rPquXn/pxbRY1bAdbVeX2LFvqDFziCCu7ZM7p+IT4kaIz5PQeHvEO+Sa86RiDux3i2fi HHpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rQtblbjQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si1044066plb.136.2017.10.31.01.22.02; Tue, 31 Oct 2017 01:22:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rQtblbjQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbdJaIVc (ORCPT + 27 others); Tue, 31 Oct 2017 04:21:32 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:53163 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbdJaIV2 (ORCPT ); Tue, 31 Oct 2017 04:21:28 -0400 Received: by mail-wm0-f67.google.com with SMTP id t139so21248930wmt.1; Tue, 31 Oct 2017 01:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qiRl1ggBJ2cJaQWbvlM5Kjj4My5XbDI5iJAPGonYtLU=; b=rQtblbjQfwe/TeFBUSMQIgAVuypvCH4CJ2T9Wj9yXXGcY6EuqQ9OwDaeMbauPdRVYj jLs0AuitFj92NQ9CWO8GX++xaqET4pM4NorQp244nGemSYxWjN7FVLvEzOZmxV6ZdeeJ bbYhzY9hNzizw8uzMmBRDyJhyJCXy3g/Y/2Wcyi60Lg8SdH/eoSviYFV4FpiGD81WIre qVf28jTX0Y/EbnmlMimSpbHrOEC9aHWgIyhR2ZMHIIwZ4JEQzcGtAqw4eCm2Kv/vaN6k WCC1qXbIMYIfHf/VMSi26gVOIEzXK4BosaSE5D2tVUvKHEZTQAy7EmZF6kqp2Q6nQE1o fo/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qiRl1ggBJ2cJaQWbvlM5Kjj4My5XbDI5iJAPGonYtLU=; b=JH3ISj1nd06tkBPXTG19wQ3fJJLnstNCfzFsH1tcErEP7ZE7NvwC1XJWzTf+J2YmQK WRS6SxXeZwgBvKowxePkoHYHH0ZZzt2FhsrN9yrzMJOQFggYmJ2Uc2lRdMHMjadBUDj6 HJsPk9jRYi591cC+pEefwZNw2N5LXfqXmXRoAeEmsrzV1dR9T5sETxop67iLaEteyPl5 iFj020CJAvyBiW7JFxzhFm5ZobMRYHunLV2oUiZx8BQrr/56cfrm7Q8UNyfJEDVRO7If kMPzvZOmZ7SyGAtQMvqBnxHmKj+nZcqUaKjMKJCbyLfCzTrYYCwkod1vrhQ+djBQiv0O tMaw== X-Gm-Message-State: AMCzsaXKyX8UudcwJJJovtzvTzL54U53IdtPL+Iu969nlCZVXAfl6QoB B9Y6qfHGXTjg5alCDI9UPHQ= X-Received: by 10.28.238.193 with SMTP id j62mr1142301wmi.44.1509438086829; Tue, 31 Oct 2017 01:21:26 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:26 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 5/8] ARM: dts: sunxi: Restore EMAC changes (boards) Date: Tue, 31 Oct 2017 09:19:12 +0100 Message-Id: <20171031081915.18960-6-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore all boards DT about dwmac-sun8i This reverts partially commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli --- arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 9 +++++++++ arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 19 +++++++++++++++++++ arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 19 +++++++++++++++++++ arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 7 +++++++ arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts | 5 +++++ arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 22 ++++++++++++++++++++++ arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts | 16 ++++++++++++++++ 10 files changed, 121 insertions(+) -- 2.13.6 diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts index b1502df7b509..6713d0f2b3f4 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts @@ -56,6 +56,8 @@ aliases { serial0 = &uart0; + /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ + ethernet0 = &emac; ethernet1 = &xr819; }; @@ -102,6 +104,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>; diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts index e1dba9ffa94b..f2292deaa590 100644 --- a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts +++ b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts @@ -52,6 +52,7 @@ compatible = "sinovoip,bpi-m2-plus", "allwinner,sun8i-h3"; aliases { + ethernet0 = &emac; serial0 = &uart0; serial1 = &uart1; }; @@ -111,6 +112,24 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + + allwinner,leds-active-low; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>; diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts index 73766d38ee6c..cfb96da3cfef 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts @@ -66,6 +66,25 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + + allwinner,leds-active-low; + + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>; diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts index 8d2cc6e9a03f..78f6c24952dd 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts @@ -46,3 +46,10 @@ model = "FriendlyARM NanoPi NEO"; compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3"; }; + +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index 1bf51802f5aa..b20be95b49d5 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart0; /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ + ethernet0 = &emac; ethernet1 = &rtl8189; }; @@ -117,6 +118,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>; diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts index a1c6ff6fd05d..82e5d28cd698 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-one.dts @@ -52,6 +52,7 @@ compatible = "xunlong,orangepi-one", "allwinner,sun8i-h3"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -97,6 +98,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts index 8b93f5c781a7..a10281b455f5 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts @@ -53,6 +53,11 @@ }; }; +&emac { + /* LEDs changed to active high on the plus */ + /delete-property/ allwinner,leds-active-low; +}; + &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins_a>; diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts index d0b80fda2f6b..6d98bcfbe877 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts @@ -52,6 +52,7 @@ compatible = "xunlong,orangepi-pc", "allwinner,sun8i-h3"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -117,6 +118,13 @@ status = "okay"; }; +&emac { + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "okay"; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>; diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts index 72ca01b93f1b..cbc499b04de4 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts @@ -47,6 +47,10 @@ model = "Xunlong Orange Pi Plus / Plus 2"; compatible = "xunlong,orangepi-plus", "allwinner,sun8i-h3"; + aliases { + ethernet0 = &emac; + }; + reg_gmac_3v3: gmac-3v3 { compatible = "regulator-fixed"; regulator-name = "gmac-3v3"; @@ -74,6 +78,24 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + + allwinner,leds-active-low; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; +}; + &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_8bit_pins>; diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts index 97920b12a944..6dbf7b2e0c13 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts @@ -61,3 +61,19 @@ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ }; }; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; From patchwork Tue Oct 31 08:19:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117528 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3598583qgn; Tue, 31 Oct 2017 01:24:23 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QGUgljJ5SC0+GPzT/YwMAcs98aLS4nQmT1v/36cLBiDq8hJr2RV6Ohw+HhU8+R42o6D0JI X-Received: by 10.159.245.142 with SMTP id a14mr1160334pls.394.1509438263894; Tue, 31 Oct 2017 01:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438263; cv=none; d=google.com; s=arc-20160816; b=UOXcFXZNr2CFG6t2crXA+MdEgie0O/VHhul9OJ4othYAnfy/7yx7qud9/FvtcoyIb8 A9Nyd4j9uUG++OxrkFS4mQtGeStzkqhKT4NeQU3L+2/9JFUDl6SYCP5XuvOvxSrUI1m1 whoBbKXXzhcbqJz7QJRQFaCp5/CttOSwqHwbE8xw3nlmpoqvUeQYvW3XPx12bowGdP78 Mug9gyaV69tmIthp4CBAn65n1CH0l61VPE9GJcBKyApgAkWcFSIX0M4GSFA8tZKJub6y 0+27P4qvnipoPDfvrY/I4juYxR85Kjpu40vx1s7NmmS+Vk8cp/XUGbpOpaa20cO4lJxn FLOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=zrRm+dXQsnZp5wuSiAmuf1xWu93MJtd2LDhcgfPSfqc=; b=UcpMsIepUNtk3HiV4QIMMipbZ/N4X9Kq9fex4U2oqUp8ACeaaaQEC5Bt5TV9Dk0Gx9 akoP36qwI6HdatkwUdXt99iCxArKCLZK/ghi5H27Ka0ZjF+EMli48LPTChMm/ZyvVRhV jZJkLQSOBLbIH6oXeszjGPqi23H1bjpo3mlK9pr67F8+xGcdt8ZJvSIdn7fQ/wO+XAFt G9cbHejZbGM4EGZ6AzTrvR8g3D+IQRy/XAlCppXtuik6e82BTl42X2mAnJ/yDl5gREGv dqaNBouRi1oBn0D8SF68ylFlgRXnNeAob+XAUK0EOf4Dc2wQoJX75LGsnRwejjm0T6QO 0TpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BsLDsMaq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si1048267pfi.439.2017.10.31.01.24.23; Tue, 31 Oct 2017 01:24:23 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BsLDsMaq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753337AbdJaIYV (ORCPT + 27 others); Tue, 31 Oct 2017 04:24:21 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:45798 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbdJaIV3 (ORCPT ); Tue, 31 Oct 2017 04:21:29 -0400 Received: by mail-wm0-f65.google.com with SMTP id y80so13749282wmd.0; Tue, 31 Oct 2017 01:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zrRm+dXQsnZp5wuSiAmuf1xWu93MJtd2LDhcgfPSfqc=; b=BsLDsMaqXXBRwfuLj7lJtSuL32mDpw6ifdCGbGQQL/RiMEXE6t7mvDJ4/yjuKT5P0y cAkOLWah67t9J3s6iY+GR2uR+ypWA950jwJPFnkENCo5+zUHw4PvMr6R8L26t7F/M5f9 KM6YumS3F8OtPJj7UlytKmbgBN6zFrq2/CpupFYBq8ieoO/37hJLzngnBRayTtU+ItRK mDnfnxYU0q+ezK5BS0LnY0xmLiLbCeCJkhpJyhnn25KZ5kclskPcg0r5RAm8PNveCPmH 5TkgTAIKVFieCr9Z1KD9AhJ+cnDKFTz8E+d7uQC+C0Xb3kKIihzuXfvoxVWKYLBgwxNu Fp5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zrRm+dXQsnZp5wuSiAmuf1xWu93MJtd2LDhcgfPSfqc=; b=D0K4Qjug/lNp+52FktM7+rslm7eyJIwiygHALo2m11fg0xAPB8VOPyxQqFJ7fvRQFN ghNUw50t65o1OjfF6iFgg9jPz/wVdN/ev1Jo0vbruiLkxuuKKvAJ5nsT3qqj9IEDhpLs sG3GjHEWp10xroukAjJiLzRgkC7HgknTkoCKvsnFwMB/68JgE/48zEtOkwvO+TMfIkaM YZIetfuI9/EwPpr3lALb6hubF9dx5JMJ/1KPt6pCsOjValB3CSmqc9i6BkXztxx02eRG 720pcMvS5jfjuOh+1UtV+wOYGVsuaVkyaMGnf2BdjyGVzTyGOoE4SbURVNwsxz2k8olw Hmow== X-Gm-Message-State: AMCzsaUvqjth6cEoMpxFnmnql2FpscQV14MD7xcIc/QzwHAP/OqMeZXm JxnhNwQHPrPtKOz0prNsRsU= X-Received: by 10.28.91.65 with SMTP id p62mr985127wmb.126.1509438087829; Tue, 31 Oct 2017 01:21:27 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:27 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 6/8] arm64: dts: allwinner: A64: Restore EMAC changes Date: Tue, 31 Oct 2017 09:19:13 +0100 Message-Id: <20171031081915.18960-7-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore arm64 DT about dwmac-sun8i for A64 This reverts commit 87e1f5e8bb4b ("arm64: dts: allwinner: Revert EMAC changes") Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli --- .../boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 16 ++++++++++++++++ .../boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 15 +++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 17 +++++++++++++++++ .../dts/allwinner/sun50i-a64-sopine-baseboard.dts | 16 ++++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 ++++++++++++++++++++ 5 files changed, 84 insertions(+) -- 2.13.6 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts index d347f52e27f6..45bdbfb96126 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -51,6 +51,7 @@ compatible = "sinovoip,bananapi-m64", "allwinner,sun50i-a64"; aliases { + ethernet0 = &emac; serial0 = &uart0; serial1 = &uart1; }; @@ -69,6 +70,14 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; @@ -79,6 +88,13 @@ bias-pull-up; }; +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts index f82ccf332c0f..24f1aac366d6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts @@ -48,3 +48,18 @@ /* TODO: Camera, touchscreen, etc. */ }; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index d06e34b5d192..806442d3e846 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -51,6 +51,7 @@ compatible = "pine64,pine64", "allwinner,sun50i-a64"; aliases { + ethernet0 = &emac; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; @@ -71,6 +72,15 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rmii_pins>; + phy-mode = "rmii"; + phy-handle = <&ext_rmii_phy1>; + status = "okay"; + +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; @@ -81,6 +91,13 @@ bias-pull-up; }; +&mdio { + ext_rmii_phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index 17ccc12b58df..0eb2acedf8c3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -53,6 +53,7 @@ "allwinner,sun50i-a64"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -76,6 +77,21 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 905af406dbd3..0650a1cda107 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -517,6 +517,26 @@ #size-cells = <0>; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun50i-a64-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + gic: interrupt-controller@1c81000 { compatible = "arm,gic-400"; reg = <0x01c81000 0x1000>, From patchwork Tue Oct 31 08:19:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117527 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3597190qgn; Tue, 31 Oct 2017 01:22:43 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RYoUKQtyuschsD9a2V8JZ/pkBgCCTGL3rzvmjl/K0y0tzt65y/8mT2+zmUDqbyjwFLDpMt X-Received: by 10.98.189.23 with SMTP id a23mr1268369pff.124.1509438163130; Tue, 31 Oct 2017 01:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438163; cv=none; d=google.com; s=arc-20160816; b=VMNinHlb03pRYpaJfupmaJEFeOMR1uDFDZgdE3gKQRe7uFzFpMWyukCZD6/DIqPJMv OwV7PL97YQfSNBjvTrJFPtHrXBldSXmeTnlCuG/oiVFGoRhB/MoOMv7MTkdriGjhq7Om NLWqHMnfdHF+e2aov6PVu39IOdXyY5KUaoW9i4gzH+rQ44TwI/Vwgb7mtpkL3IygBH6R a4cpGbO83NjG+MASyYbpW/w/46oe4YR5zG1qPTsxTnSs9NjU4Vcib80qgkmwEjJY50Mv iffZJ3/MPdXL4i4jb6fgga+ma6lXcKXkzr4hIy6wu1PpUgftMuSCPVwvQ1Yxne4G0JHO 4wJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=XdMwGXVBbvVz3w5IN0IslDdI/Sy8rfKFbEt28B8aBpU=; b=KSC1l6wFY4rqF2Gr5Jjb8W9i0XUh/ttfBqRYwooaRIOTDO0NkaRRHTiB/x7D9YIgR6 CkDX0E6Oo+Ujf0PnhfFpb1qtExzG5z1Peu9udngNimxfLoEKpwZF0MAeaQLQdZ09PgAn QRyb2DRHimMMf/MrtOtau7NXgMcG/1Ye0sf7MD/kizqcH8c4Sf2J5MQZV3mnHjL4hnMM aAIwYtHngOPyvqG7Sezh5v0T3jANvuIW7BVVePFJuZcWPx2AH1ncF3Fkz3wcK8glTwpU GzBeJTpvbtG0mm5Nq/wzK/MEJvutoBmDhCe84tueiX8C+KIDvKGH676/Pu7vE8V8/8Z8 iykg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U0N3EzLd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si1095226pfd.118.2017.10.31.01.22.42; Tue, 31 Oct 2017 01:22:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U0N3EzLd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753247AbdJaIWl (ORCPT + 27 others); Tue, 31 Oct 2017 04:22:41 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54294 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752856AbdJaIVb (ORCPT ); Tue, 31 Oct 2017 04:21:31 -0400 Received: by mail-wm0-f68.google.com with SMTP id r68so21257238wmr.3; Tue, 31 Oct 2017 01:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XdMwGXVBbvVz3w5IN0IslDdI/Sy8rfKFbEt28B8aBpU=; b=U0N3EzLdSonHfqwUIIl+HhrYm2M9cGKGB3D2iffibissHH2WeZs51Xta+h//yIDhIM lVm08kIpm63P6f6uixGkBXy/b1UJut6uuLe3lTsIe8hpnzlTz/k9AcNc2E87T8R8rQB3 VOF/ACtA1pBGPPEA1AmJCtVxu0VyTrJ5BV7m3rW0+Vl7jwb6NUeqXfObYgTwinrOpG/b bLGK1Rx+4b5xvXe1DnT684JRH4sHDbw2W3zXUaBMaN80UbtSZBAsmpsKQLR29u3c+vdD p9XYOA993epYzBkuGW9P/SjdvOkQql3nrMPJAo2rq7lj8J6Sywn+LDdapPvOgzoANdlg ZzhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XdMwGXVBbvVz3w5IN0IslDdI/Sy8rfKFbEt28B8aBpU=; b=IOfPNZz2JMkn94H3rlOKeFYeMug35CtyGYVQghMPByTrvCmkrLGIpH7nin1PpdBaL9 +pshijSOVwTXIGPMoGSnbvehaxLZIe5a7QoMjkTw5BtXG0L8AtC49O64wvnVvIFiM27Y PkpS+Qi6gX+9C4+nncXdFv7vMjvR95aopT0S9VcICirGBC6logyWQXaYOOmJjf/SJqKZ aYOzmCnwtaQUiKZkd69zNUAna4h/VxQgCihdtKQQwEZB4a4bxqaBR+B7ZWQJ6PzR10Tt UOgluRtlHvSoAOH0TSl9QvcCHU3e1Va5wkTcyF3BzrqVSugQb+zQ3lfIDV+HbF8nirxi vAgQ== X-Gm-Message-State: AMCzsaXoZxmih4qA04C7tygjjtxsdv4BEhLB1ArqxZzP8tA4zqtrLxCu BCynvVlkLwepUXAph7xpdBA= X-Received: by 10.28.51.3 with SMTP id z3mr1230801wmz.158.1509438088832; Tue, 31 Oct 2017 01:21:28 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:28 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 7/8] arm64: dts: allwinner: H5: Restore EMAC changes Date: Tue, 31 Oct 2017 09:19:14 +0100 Message-Id: <20171031081915.18960-8-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore arm64 DT about dwmac-sun8i for H5 This reverts a part of commit 87e1f5e8bb4b ("arm64: dts: allwinner: Revert EMAC changes") Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli --- arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts | 17 +++++++++++++++++ .../arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 17 +++++++++++++++++ .../boot/dts/allwinner/sun50i-h5-orangepi-prime.dts | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) -- 2.13.6 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts index 1c2387bd5df6..6eb8092d8e57 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts @@ -50,6 +50,7 @@ compatible = "friendlyarm,nanopi-neo2", "allwinner,sun50i-h5"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -108,6 +109,22 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts index 4f77c8470f6c..a0ca925175aa 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts @@ -59,6 +59,7 @@ }; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -136,6 +137,22 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts index 6be06873e5af..b47790650144 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts @@ -54,6 +54,7 @@ compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -143,6 +144,22 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &ir { pinctrl-names = "default"; pinctrl-0 = <&ir_pins_a>; From patchwork Tue Oct 31 08:19:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117526 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3596716qgn; Tue, 31 Oct 2017 01:22:05 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Q2vHhSUNli//397NJIYEXm11cQIQ5VdPrdY6zPU6mmfhyv5l287Z7lPM7IrDc7L31hjDes X-Received: by 10.84.169.1 with SMTP id g1mr1172268plb.349.1509438125417; Tue, 31 Oct 2017 01:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438125; cv=none; d=google.com; s=arc-20160816; b=WGLD8OqIsgeHgvP4j0s2WR/XW2mvfVh2zmXO5y6oRVwTUDDgcmqoEloAxQct2XI9Dl OxjZKQYhEQsXz7xDm3ywPuQ3KrTKJdftrgzOUvEgHgMFTtYWLX525cWP2svwAtSOo/U6 KUkIqnOLuOzsIKyfQBC+5ciI3ajywRoQotLvT8VtGLGn1YAMorNg09yXKEqbmcmNNQYV TEaIIw+7R9kWjasPBOns6ErsBxr6KD29aSISAjREx700dQBr2XnfGL4iPe9WOvEMgJI+ zTz/W7WLi+bkMvRqtiBKAgKS4VNy/DouWllJO6D4U0WRx6R9tzU0gBkK+yeWeDmYnQ66 9ayA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=eG8C57/19nUQB2ViEM1oTzR2b4hVBc8oc/lTBk1zKDQ=; b=ra5af1tjVcUIDo5UgXwlW+ZLcqZB0Wy2QKIKMZmONWl4puHA02ehyCu6ehpeuceROB 2FnN2Waf+1ddBbVlllWcAMKhvL+MPRr0XOXhYEj6jJenf5ErxcAE7cZKautMleHA8LJf OCk8JbSrZBauviJh6UOMUkwcgJ1oik21KphzsLlmepNrpCaoKhfaxtHG5mznuH+C3d3S Kwyk5B174qhZPEqgb0lXBAW0nSO3EkZJkz47AKmSCnuz0T6eqPlGwTxI3Lb2wz+fXPNm rw98WmnPCBMMJeWziQJEGOlZ0c5rTBvcCvuhWHo5nqDFSBy1qHM+5n4cNTetY3mxiSdE oFIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rSZW3BFn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si1044066plb.136.2017.10.31.01.22.05; Tue, 31 Oct 2017 01:22:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rSZW3BFn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753133AbdJaIWC (ORCPT + 27 others); Tue, 31 Oct 2017 04:22:02 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51642 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752875AbdJaIVc (ORCPT ); Tue, 31 Oct 2017 04:21:32 -0400 Received: by mail-wm0-f65.google.com with SMTP id b9so21248611wmh.0; Tue, 31 Oct 2017 01:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eG8C57/19nUQB2ViEM1oTzR2b4hVBc8oc/lTBk1zKDQ=; b=rSZW3BFnaOOsPYqxZImzpEUaT93V40DryfQwMtsOYgBpvoI0vpjsjCLVdX1f10WdR9 dFr5GoJyqvhUlPJ/SlZDwpzbpwQe5rPYTL74ZQi9ZRjECHtxKU5naS3bgQFEL8YI6YLI bu0A8/xif3FlaDLhxg/NRfRCp9+Dy9B8cKpMyTlLPbm/op7mUDn4m9VtSJPiveCS4zdC 2LyS50S7yKlCCnMEKPWrab0+r2+M/qU1pVNsItFdxRRQXIDBMAzcdkYbO+vz6e8kwYVI idY1JWk0Jdhq5GYNbamQLZ8u//YjoKY9dDWnELD+bLJqBnx10mNTioIaV3hq7EMWTkc0 VauQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eG8C57/19nUQB2ViEM1oTzR2b4hVBc8oc/lTBk1zKDQ=; b=YKi156fG94yHB4r1SqSpbC4S6/2n2hHfBxsBi1MkwLWZpFdox7WV2wCPZhvip2KnUT AWwNyGd2kjCQmTVJyGdHc0cMNSwc6TYvpjJfV59sWG9Thr0H2bVbUM77g1VXb87uAVZy 8VsnDldqWmaOiA+J/lPWhfESfVCnmt6OR4BpbB3cZUc9GfSAoJ88l3n2vYDApLTdUwU4 lKUIRC/wujCdUL2XQzLeiFsqa/e3l/5thiqd8iTc7w9wKY5j2CAyju96ZgQbhzmNVa5j hWAvrGBSsvf/dp3WdzYO2/uJYABaXAgMTFX+foK5kWnfVccLYiOVVWZRuhuakEf+JeW1 o48w== X-Gm-Message-State: AMCzsaUZ/hLrjIfTKy39INd88KYMwQecXUtdLk64/y0RugkVAxHRE0Dn QLrzAJrqR8f1rlwZdvImS+g= X-Received: by 10.28.107.5 with SMTP id g5mr1030362wmc.125.1509438089802; Tue, 31 Oct 2017 01:21:29 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id d18sm796423wra.50.2017.10.31.01.21.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:29 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 8/8] arm64: dts: allwinner: add snps, dwmac-mdio compatible to emac/mdio Date: Tue, 31 Oct 2017 09:19:15 +0100 Message-Id: <20171031081915.18960-9-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org stmmac bindings docs said that its mdio node must have compatible = "snps,dwmac-mdio"; Since dwmac-sun8i does not have any good reasons to not doing it, all their MDIO node must have it. Signed-off-by: Corentin Labbe Acked-by: Florian Fainelli --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.13.6 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 0650a1cda107..0a2074f86f2c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -532,6 +532,7 @@ #size-cells = <0>; mdio: mdio { + compatible = "snps,dwmac-mdio"; #address-cells = <1>; #size-cells = <0>; };