From patchwork Wed Nov 29 15:44:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10082659 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 B99BC60311 for ; Wed, 29 Nov 2017 15:47:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1D8E29A69 for ; Wed, 29 Nov 2017 15:47:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5EE129AA8; Wed, 29 Nov 2017 15:47:38 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 254B729A69 for ; Wed, 29 Nov 2017 15:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=u+VXu7DsJqMpKuXiUSceS1imuv3ZJpFfR+fmPzqyA9s=; b=Cpn CnMFU7U0r9GBghZsRsepdrC6eZBLo8H7GA/3/2sUZhRyALxTT8a1rS1ajZLVRwgVRYtsaytrFQWZJ WwVb88a8ju93rulToKL0hHrMU17W6WKeBB3kniivemOlwzpHe1PcsUPrFJKzsCxMu8oDeIPuQ0UWh NNvfahlhw7OQCejTjyLWAH/10azvZ6I6sVuY8KG6DZBW3FA29rf1D0Xj5cuwsLilxf+8DXDzBTDXq V+/zAjxIskPQQdDJdTEh2PXytwV2mv4Y2K3CyMhSz+pCycUgwB4ascySAdIdcVWcGHyYk5VZWoKSi e/YtG7+7it9Pn8dA7SFhIMAUAoTAqoQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eK4aG-0006Qa-Uw; Wed, 29 Nov 2017 15:47:36 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eK4Zq-0006PD-Eo for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 15:47:13 +0000 Received: by mail-lf0-x241.google.com with SMTP id x204so4369087lfa.11 for ; Wed, 29 Nov 2017 07:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=tOPQ5+QSnWLjw7k47AquypOAAXvIXi1JS9O7jA45RR4=; b=IyasmsezuBV2/b5qEKKnjjzIc1HoYC9kOKcp/x9jVP3PllEbIojH1eqyNCTfgWiaZx 4RvI2bSiTpRGWGWEf5oorPcy0zDnLt9amlzICN520NRl+4ohA4cWXBrBObWQA+YipPSI DU6IyGexSpG92Mx43tsp+YkFbRMk9TJN49fD8= 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; bh=tOPQ5+QSnWLjw7k47AquypOAAXvIXi1JS9O7jA45RR4=; b=mxmA/eSn6JV4vTD95T2/s1Pk+rH6T1KlDj1nBTzuc8yeldnaIfODarcgrrYTHoYu+i s2twkmGFQFC+JcQWkk5fkk3uj9CVI4hey4KWiSGhLw06d1NwWUK13Mc8sUf7i4D7tVFq jkOfZxeuI+Qqo8MBqw/868g3rvYNCWvRkfLpxw8TYtFh2i/+D0ImPWe2e/ZHnnUfDIZQ 69qm+wyl/Q/rdHlUmyLk7HHfoZySaZWKrIvvQKeBKl3a4XUXsU3S4yczlwpWwD1FKc+u LIZq5ckT2UY21bC2ykWaqDsTAyA0/oJLgy8defn1CaDZ+hGMsVAyjdnQHwOaXpK4umUa 4kTw== X-Gm-Message-State: AJaThX4X7rJvx+YMxjQflYdHRTzsWOP+tWzmNnFdQcJQ/KgdR+H0ya56 M5+wQAIkYrYkefDQzmMPHIideV0jfxw= X-Google-Smtp-Source: AGs4zMalj7v3SbUcbMlU1T7qLMvo4CmOdyKKf8bv792YqSjo+Y0r9FsBCq2evnqwcBLTSxfw8p9naQ== X-Received: by 10.46.9.69 with SMTP id 66mr1637315ljj.134.1511970405798; Wed, 29 Nov 2017 07:46:45 -0800 (PST) Received: from localhost.localdomain (c-567171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.86]) by smtp.gmail.com with ESMTPSA id c26sm339559lfh.16.2017.11.29.07.46.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Nov 2017 07:46:45 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Subject: [PATCH] ARM: dts: Add ethernet PHYs to the a bunch of Geminis Date: Wed, 29 Nov 2017 16:44:42 +0100 Message-Id: <20171129154442.16332-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_074710_718265_7C70248E X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Janos Laube , openwrt-devel@lists.openwrt.org, Linus Walleij , Paulius Zaleckas 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 These Gemini boards have Ethernet PHY on GPIO bit-banged MDIO, clearly defined in the corresponding OpenWRT ethernet patches since ages. Add them in accordance with the OpenWRT patch so we can use them when we add ethernet support. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-nas4220b.dts | 13 +++++++++++++ arch/arm/boot/dts/gemini-rut1xx.dts | 13 +++++++++++++ arch/arm/boot/dts/gemini-wbd111.dts | 13 +++++++++++++ arch/arm/boot/dts/gemini-wbd222.dts | 18 ++++++++++++++++++ 4 files changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts index d6a22e677c7a..51b8353861c3 100644 --- a/arch/arm/boot/dts/gemini-nas4220b.dts +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -64,6 +64,19 @@ }; }; + mdio0: ethernet-phy { + compatible = "virtual,mdio-gpio"; + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@0 { + reg = <1>; + device_type = "ethernet-phy"; + }; + }; + soc { flash@30000000 { status = "okay"; diff --git a/arch/arm/boot/dts/gemini-rut1xx.dts b/arch/arm/boot/dts/gemini-rut1xx.dts index 500057b6570e..ea0261d9aa97 100644 --- a/arch/arm/boot/dts/gemini-rut1xx.dts +++ b/arch/arm/boot/dts/gemini-rut1xx.dts @@ -58,6 +58,19 @@ }; }; + mdio0: ethernet-phy { + compatible = "virtual,mdio-gpio"; + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@0 { + reg = <1>; + device_type = "ethernet-phy"; + }; + }; + soc { flash@30000000 { status = "okay"; diff --git a/arch/arm/boot/dts/gemini-wbd111.dts b/arch/arm/boot/dts/gemini-wbd111.dts index b413fd12c5ba..3399a9fd292d 100644 --- a/arch/arm/boot/dts/gemini-wbd111.dts +++ b/arch/arm/boot/dts/gemini-wbd111.dts @@ -69,6 +69,19 @@ }; }; + mdio0: ethernet-phy { + compatible = "virtual,mdio-gpio"; + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@0 { + reg = <1>; + device_type = "ethernet-phy"; + }; + }; + soc { flash@30000000 { status = "okay"; diff --git a/arch/arm/boot/dts/gemini-wbd222.dts b/arch/arm/boot/dts/gemini-wbd222.dts index 3ba710538662..0be3f57bca80 100644 --- a/arch/arm/boot/dts/gemini-wbd222.dts +++ b/arch/arm/boot/dts/gemini-wbd222.dts @@ -69,6 +69,24 @@ }; }; + mdio0: ethernet-phy { + compatible = "virtual,mdio-gpio"; + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@0 { + reg = <1>; + device_type = "ethernet-phy"; + }; + + phy1: ethernet-phy@5 { + reg = <3>; + device_type = "ethernet-phy"; + }; + }; + soc { flash@30000000 { status = "okay";