From patchwork Mon Nov 7 10:43:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9414701 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 C0F1B60512 for ; Mon, 7 Nov 2016 10:47:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1FA728329 for ; Mon, 7 Nov 2016 10:47:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5FD0287A2; Mon, 7 Nov 2016 10:47:08 +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 3EF0428BD7 for ; Mon, 7 Nov 2016 10:47:08 +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 1c3hQ8-0003Cp-Et; Mon, 07 Nov 2016 10:44:56 +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 1c3hPg-00034o-MU for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2016 10:44:30 +0000 Received: by mail-wm0-x22d.google.com with SMTP id a197so173419871wmd.0 for ; Mon, 07 Nov 2016 02:44:04 -0800 (PST) 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=rSGlqmVthR1794UZrM5AkD7ykNJU1i7C4GozCbufHaY=; b=S87xcc327URDBw+TlwTgmSizxtjPr3Uhmzor7tgrOUa17sYPn+/E2PmAsRwIcSA6Hf DMXflwWdv9buz0lE3j9Ee9Q+CUWGKaM6hjegjWuAVzC5deU/fw1UQi/CuPdimMyBV2ED e7ovDP1IuJ6A7+w6PA6SEmCfXdCOUxi2L4PviREwftdNbFF8uWXXfVetpFt5uWiswyEo SbfOaDhe53Ou+Fsh8Nd7ppnvQeUfI/T2G+Slmgk2h5tV6hqCtJ+6IEWb19Sv0anxw1Tu +weRyxhFXSOgKZrUViIrG6ALTbdwOZJ4u3o64tRPO7hF2WRRSsmKdihRG12qw1oU8Tpd lk7Q== 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=rSGlqmVthR1794UZrM5AkD7ykNJU1i7C4GozCbufHaY=; b=cZC4Ae0GhvtjN7uMXF8WVzhpj2+RHX2BYPOs65310OpBTsZTMTaNOgix9y0WVeItyF BdXMjxTZa8qa6/8LD20PF/yFByeCb0glk9ICT9229T+K0Z2oWFOMZybmW9zAOLVSYLT8 I1i6SXSV8X1TnCvV+6H9pUku4C/Tvo2IxAm8aTewVvsEOovFQjU4F46n5dNjkntxbZ4I hY3/fQtvnvRL52gBKuJgZwbcPDTeXVD3wKhwi5Pis2uJXgtzwXl+r5duXf2g2TNVRm0S ZHybN1lqkBRPDTnLgg8lruWs629ahcK+GHn92NCJYpxiTlMRfWtjFjxKdHhDgWGEIEQ8 RDsQ== X-Gm-Message-State: ABUngvcict318iIW0TKIN531dOo9mSrOgvnhQhdbLYnZJPZ1wHujNq7NJKaJELuCJrrAL2Ta X-Received: by 10.28.131.72 with SMTP id f69mr5764703wmd.33.1478515443087; Mon, 07 Nov 2016 02:44:03 -0800 (PST) Received: from build.net (build.baylibre.com. [37.187.146.144]) by smtp.gmail.com with ESMTPSA id c133sm2058225wme.12.2016.11.07.02.44.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 02:44:02 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com, carlo@caione.org Subject: [PATCH 1/3] ARM64: dts: meson-gxl: Add ethernet nodes with internal PHY Date: Mon, 7 Nov 2016 11:43:55 +0100 Message-Id: <20161107104357.24428-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161107104357.24428-1-narmstrong@baylibre.com> References: <20161107104357.24428-1-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161107_024428_954145_0DBD1D6B X-CRM114-Status: UNSURE ( 9.00 ) 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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 | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index d1bf381..3af54dc 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -49,6 +49,22 @@ 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: mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; +}; + &aobus { pinctrl_aobus: pinctrl@14 { compatible = "amlogic,meson-gxl-aobus-pinctrl"; @@ -214,6 +230,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 {