From patchwork Sun Jun 12 00:14:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9171259 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 DFB4560573 for ; Sun, 12 Jun 2016 00:16:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D129225EA6 for ; Sun, 12 Jun 2016 00:16:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5F7D21BED; Sun, 12 Jun 2016 00:16:40 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 38E7821BED for ; Sun, 12 Jun 2016 00:16:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBt3G-0000Yb-UJ; Sun, 12 Jun 2016 00:14:54 +0000 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBt38-0000WB-IX for linux-arm-kernel@lists.infradead.org; Sun, 12 Jun 2016 00:14:47 +0000 Received: by mail-oi0-x243.google.com with SMTP id e205so13927965oig.0 for ; Sat, 11 Jun 2016 17:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/5DrMyZznP1UVAbpBNkjBgMmWz6QQzYZX816GqxHen4=; b=vlrMpYQlAxFhCTKO1HeDB8cejFmwrXLllRMc60/MDxGKrzHuXvfRn4P7t/4A81eJQC oWCiPOAhnva604XalFfwaGth1RVaAF89EuiU2iK1Po4Juh/or3A2l3g5lXej6AF8lTlD lzwfAw3Pwn1LpEGagi2+D4k9HsWKaZr28KPRWvhMkA6W/SO/xDEDVmLu/WHnvXWTwhRk 5xVuALYNMWismhY6EgOxuLsDqgGk31hvg+ARk+87PBuD6fsmLrlJk22aS9DikJ17hGMp HyTeZte3d3G0FsPDEb1UDNM/D/SJ8TNKuIg96in0nk0oPck8ngYM+iZ2X0uUwouGvs9m zoiQ== 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=/5DrMyZznP1UVAbpBNkjBgMmWz6QQzYZX816GqxHen4=; b=HDwP6DUrAIbGQ49AHTJYsiU9qJx1K3qNrY2brIXAmIWf1WytEDDkj2Av0DkEst5mtR 3HurxlgfWezXTXqDn6YORX5jvpg39jReZKIAq9Us6lwGVB/E38J+lkyCm9S5XtVKwxzA YyPmPBDmLGj2LE8Iv8fvK4ihYmQ3ZVSgOvKsuMVorqELNDkGWqqPFQCn0LXm+z5mDwW+ +phSmQCfNDEud2GFObRNCa5N3o0OWHUHsf6xtrSRPqmKObz8HX7O8ett9hlplUYBvBrV lkO57ZxqPLO50SFKVlopiCjU+D3040Fw7wHGrB6KxH0Xf2pMUOFpSpHNmagk3iu9VX1J XCMA== X-Gm-Message-State: ALyK8tL/g1RfLzQGkB8ajzxiEiHx+8UC2gBieOH7iWEyk7NLfQIhA4GXaCOvpzwfbKshkA== X-Received: by 10.202.212.213 with SMTP id l204mr4510960oig.140.1465690464868; Sat, 11 Jun 2016 17:14:24 -0700 (PDT) Received: from bender.lan ([2001:470:d:73f:455d:15ed:da96:a098]) by smtp.gmail.com with ESMTPSA id x81sm6109024oix.26.2016.06.11.17.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 11 Jun 2016 17:14:24 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: sun7i: Add BCM53125 Device Tree nodes Date: Sat, 11 Jun 2016 17:14:19 -0700 Message-Id: <1465690459-30751-2-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465690459-30751-1-git-send-email-f.fainelli@gmail.com> References: <1465690459-30751-1-git-send-email-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160611_171446_693581_298CAF2E X-CRM114-Status: UNSURE ( 9.84 ) 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, Florian Fainelli , vivien.didelot@savoirfairelinux.com, linux@armlinux.org.uk, wens@csie.org, andrew@lunn.ch 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 Now that we have a proper binding for Ethernet switches hanging off different buses, and a driver for the BCM53125 switch, add its Device Tree as a child MDIO node, at MDIO address 30 (Broadcom pseudo-PHY address) and describe the ports layout of the Lamobo R1 board. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 60 +++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts index 5ee43d8bf174..697582397dcf 100644 --- a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts +++ b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts @@ -110,13 +110,67 @@ &gmac { pinctrl-names = "default"; pinctrl-0 = <&gmac_pins_rgmii_a>; - phy = <&phy1>; phy-mode = "rgmii"; phy-supply = <®_gmac_3v3>; status = "okay"; - phy1: ethernet-phy@1 { - reg = <1>; + fixed-link { + speed = <1000>; + full-duplex; + }; + + mdio1 { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + switch: ethernet-switch@30 { + compatible = "brcm,bcm53125"; + reg = <30>; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan2"; + }; + + port@1 { + reg = <1>; + label = "lan3"; + }; + + port@2 { + reg = <2>; + label = "lan4"; + }; + + port@3 { + reg = <3>; + label = "wan"; + }; + + port@4 { + reg = <4>; + label = "lan1"; + }; + + port@8 { + reg = <8>; + label = "cpu"; + ethernet = <&gmac>; + phy-mode = "rgmii"; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; }; };