From patchwork Fri Oct 21 14:40:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9389419 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 AE63F60762 for ; Fri, 21 Oct 2016 14:44:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F9BA29FE4 for ; Fri, 21 Oct 2016 14:44:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 945D82A03A; Fri, 21 Oct 2016 14:44:25 +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 2FA9029FE4 for ; Fri, 21 Oct 2016 14:44:25 +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 1bxb2F-0004rr-KU; Fri, 21 Oct 2016 14:43:03 +0000 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxb0Y-0003OI-S7 for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2016 14:41:26 +0000 Received: by mail-qk0-x234.google.com with SMTP id z190so156165870qkc.2 for ; Fri, 21 Oct 2016 07:41:00 -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=qzTCDRHCW2LLD7+QiN6yXvzJJfIjANNMF44+lRNY81Y=; b=1Lbo9Xfz6gZe/vBDTPuzRXngd45qzJJcG0aPnAE67V5g7i4K4ZfnffBFm9zuEvQNlZ rfaWCXxh+pRCgVQcz4FSUYaBafpn9kaMp82Cq+kT1E/j7da8REg8x/RNm13/3kBhCVuT YYQfgkwsm/CZkBCRssk25XiVl0Dc0vfiul/Et+FGHFso0SPWXe4944sgxOLZP2lZwWZE 0HsxMGXPqXgDqzHEK1eNRsoMfSQUXraclAupNC23kJm+KgoF6qWBiNmVxAfctnVAAsBH S18rFB31CW7uZCrEAT+WRnzKzO7TevLlC9aEEI+Z+rwnGYAknW70F6FRu9kFmq2DCAT1 nRkA== 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=qzTCDRHCW2LLD7+QiN6yXvzJJfIjANNMF44+lRNY81Y=; b=TB0cbJbHoD9+eQhRI74RpLzIkY51JZjqeV0dy5AhPaDw+bkCTocRjYMVj0bWG+9qS1 lXj0324khHLnkoYqaxwtNsqzclHKufgKLr2Xo0aGQQilplz30l6Eq+kMmp9XSjhV3es7 IrhSTy52gfwyP3FcdXObhF+qSr3Hgw0v1eLr+7zmKzHFiQbnCDVHkqUujfbeDvfEsNUS BOFc6eruPi7RHEAd296aTqLe5B9F0XdB6gHKc/73HyiBiGxYVv11MqusGWaqBeX0cKdH HzCPPzuF/LgZ+KY64xKjJzlhd91+PpRYOVM7/rIdV6Rv3D1woakh9rsjbMFQ9+gjTL4H nKRg== X-Gm-Message-State: ABUngvcrkwHeH8dXRc4fzEL4VcjlA0Ee8ymn1MC9eopw4/M7odB+cUo1R/pYPZZGZf2L8X1J X-Received: by 10.194.119.66 with SMTP id ks2mr947840wjb.181.1477060859274; Fri, 21 Oct 2016 07:40:59 -0700 (PDT) Received: from localhost.localdomain (LFbn-1-1885-126.w90-73.abo.wanadoo.fr. [90.73.182.126]) by smtp.gmail.com with ESMTPSA id jt8sm3223281wjc.33.2016.10.21.07.40.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Oct 2016 07:40:58 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, carlo@caione.org, linus.walleij@linaro.org Subject: [RFC PATCH 10/13] ARM64: dts: meson-gxl: Add ethernet nodes with internal PHY Date: Fri, 21 Oct 2016 16:40:35 +0200 Message-Id: <1477060838-14164-11-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477060838-14164-1-git-send-email-narmstrong@baylibre.com> References: <1477060838-14164-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161021_074119_250117_D8DCE50C X-CRM114-Status: UNSURE ( 9.58 ) 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-gpio@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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index d1bf381..85969c6 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -49,6 +49,34 @@ compatible = "amlogic,meson-gxl"; }; +ðmac { + reg = <0x0 0xc9410000 0x0 0x10000 + 0x0 0xc8834540 0x0 0x4 + 0x0 0xc8834558 0x0 0xc>; + + clocks = <&clkc CLKID_ETH>, + <&clkc CLKID_FCLK_DIV2>, + <&clkc CLKID_MPLL2>; + clock-names = "stmmaceth", "clkin0", "clkin1"; + + /* Select Internal PHY by default */ + amlogic,phy-select = <0xe40908ff>; + phy-mode = "rmii"; + phy-handle = <&internal_phy>; + + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + + internal_phy: ethernet-phy@8 { + compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22"; + reg = <8>; + max-speed = <100>; + }; + }; +}; + &aobus { pinctrl_aobus: pinctrl@14 { compatible = "amlogic,meson-gxl-aobus-pinctrl";