From patchwork Mon Oct 31 16:56:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9406049 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 37F7D60588 for ; Mon, 31 Oct 2016 16:59:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28DA728DF6 for ; Mon, 31 Oct 2016 16:59:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D82129317; Mon, 31 Oct 2016 16:59:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7541828DF6 for ; Mon, 31 Oct 2016 16:59:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1Fta-00026N-PC; Mon, 31 Oct 2016 16:57:14 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1FtG-0001vH-Db for linux-arm-kernel@lists.infradead.org; Mon, 31 Oct 2016 16:56:56 +0000 Received: by mail-wm0-x22d.google.com with SMTP id a197so31785157wmd.0 for ; Mon, 31 Oct 2016 09:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Dl+wRHThR5JXvTkoejCvyao/RXsblTgeQuN4p+WBTSk=; b=qtiPlWVr2gMLtQNGy2QRtxO+GNSjcecd6+nK6PDQcl2/b5Cu7OsCFqJhBKHXvrwsnw zwaxMo9XhDkEd/SuQe93rYHyK+8K9K+NBPiUmjeMmsbuNkTrZArF68vee0/Z/K0mcRSF aqeYr9/wY300JmRbBIqYh2i9OOXUtB7nD5sxerlSsfZDKvq1va7eDChq2Uupp+RGkbsU QjJwitRy7gd//0U9ibeaufFmTau7uHAwzLJuCspX7HvbeDkzLMtNqLNm3gEV0h1KaYVR N1QvJStIPrgf/Jg3T0MoOIp6+eXcRPyCUcE1KGgAi1duFISVvVXWN/nVhWga48R+ueMW mCsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Dl+wRHThR5JXvTkoejCvyao/RXsblTgeQuN4p+WBTSk=; b=i5lZvY7JgLx8jlc63MoGS54ccndylVsdU9cQkEHpaC21iI/TPxDlGfLkIjo36nqvXB mxQzYCqrnAnLDedpuZSHOns+EtiFItHz85JHNJn9JCBomMVuG/y345IuES+w1Ye9tVuJ s+Qr/pLBrXvf+ls1uevrP4louE2McNtWcH6FALqOcY3ZRhb069JhmTYq7zZHsJyiIoY9 eYW58f19JcF6heNs/htF6Ul0phWv3cGomauS35Mk2JXt1N3U9JYG+Yg15mS6Saqx+YxG G94ZTOMeFPe3+lE4GwN4vOROJplS87G53ICFmzmQgYfK7hsn6gg8cUcp9VUK4xuiCT7a 6Ofg== X-Gm-Message-State: ABUngvcosOBkPv45AOXsrQlDXRBPYIctOl+jLiovO8a0TscBUg5w7uDeuERigu3DAemMPxp6 X-Received: by 10.28.27.2 with SMTP id b2mr7983599wmb.59.1477932997060; Mon, 31 Oct 2016 09:56:37 -0700 (PDT) Received: from localhost.localdomain (home.amouriers.starnux.net. [82.228.250.61]) by smtp.gmail.com with ESMTPSA id p184sm25751792wmg.3.2016.10.31.09.56.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Oct 2016 09:56:36 -0700 (PDT) From: Neil Armstrong To: f.fainelli@gmail.com, khilman@baylibre.com, carlo@caione.org, andrew@lunn.ch Subject: [RFC PATCH v2 3/5] ARM64: dts: meson-gxl: Add ethernet nodes with internal PHY Date: Mon, 31 Oct 2016 17:56:25 +0100 Message-Id: <1477932987-27871-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477932987-27871-1-git-send-email-narmstrong@baylibre.com> References: <1477932987-27871-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161031_095654_812369_E57BA410 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Neil Armstrong , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add Ethernet node with Internal PHY selection for the Amlogic GXL SoCs Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index d1bf381..71670c3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -47,6 +47,24 @@ / { compatible = "amlogic,meson-gxl"; + + +}; + +ðmac { + reg = <0x0 0xc9410000 0x0 0x10000 + 0x0 0xc8834540 0x0 0x4>; + + clocks = <&clkc CLKID_ETH>, + <&clkc CLKID_FCLK_DIV2>, + <&clkc CLKID_MPLL2>; + clock-names = "stmmaceth", "clkin0", "clkin1"; + + mdio0: mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; }; &aobus { @@ -214,6 +232,33 @@ }; }; }; + + eth-phy-mux { + compatible = "mdio-mux-mmioreg", "mdio-mux"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x55c 0x0 0x4>; + mux-mask = <0xffffffff>; + mdio-parent-bus = <&mdio0>; + + internal_mdio: mdio@e40908ff { + reg = <0xe40908ff>; + #address-cells = <1>; + #size-cells = <0>; + + internal_phy: ethernet-phy@8 { + compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22"; + reg = <8>; + max-speed = <100>; + }; + }; + + external_mdio: mdio@2009087f { + reg = <0x2009087f>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; &hiubus {