From patchwork Sun Aug 28 16:16:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9302783 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 6B1F56077C for ; Sun, 28 Aug 2016 16:20:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 588F8286B2 for ; Sun, 28 Aug 2016 16:20:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48D7028825; Sun, 28 Aug 2016 16:20:22 +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=unavailable 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 57625286B2 for ; Sun, 28 Aug 2016 16:20:21 +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 1be2nI-000639-HR; Sun, 28 Aug 2016 16:18:48 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1be2lp-0005Dd-45; Sun, 28 Aug 2016 16:17:19 +0000 Received: by mail-wm0-x241.google.com with SMTP id i138so6401155wmf.3; Sun, 28 Aug 2016 09:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=avKzpmD3OD3vRz6RWtMpqAACkpR2dYb57AONXDy78J4=; b=ZtdGnDUNQ4CpCGTx2TJm7VfIWW++pucRBiLJa4qKTyml20a25ezppXY0lm7IRzUv98 O3PMAuhi+WkKkL6nOvacUCHIxJsmOj7QpmbS8eo1PMdPAGhNzNZ29ODnDzAJAdm9x+jN /pmGUuVwsXbR8RxE5puH6H5NraEHnoym3/+bLSaQ3Bxw9bq2ZgfKrLbpFRAPzI/bgcvH IQX6S1M39NIU1Bdy5vHRSEq+GK6D9+uihDvEXHPUiD6JEepiHvgAL8u/M7gkBdy0Stgh 3CpBLIXlAyE+Fs+WotLv+y7ZYWyDfzfG8wE8eBs0QdmPqIPnFptgGVOK96F1lhMvlEZw dU+g== 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=avKzpmD3OD3vRz6RWtMpqAACkpR2dYb57AONXDy78J4=; b=Vo3d97eJh8YFDiIAulMNOghdy7E4Tz6NX3jPhwfOL3hAFdjnHjfks5Wf9Eh2SAfLag kaowDxLIIE5Svz5ro0c3ZLz4KgFr5oXKkvOscUZMm/jR821d6uJ1s5xih+RYZWlNPMrK foCmAUhYPNVP/7dxxCAk6MLk15h1zL5UAkiRpGM97f76K2rQ0nO9Az938k8pMdxmGFy4 kjsfzMizNae1kG/FUSKwGyZoyEViJbk4+/eg2lfbucH+DZcY4qygUqbuInad18hAfgCu W8YfTa2qcf9BBNHttgVG+Zd0IP9MDAwq5mrpfY3GshDamZmUqaGWq8i3MVVKHVSBXnDw vkNQ== X-Gm-Message-State: AE9vXwPR8ndOGi2/39gmlh4+Y0knSaJwlc8pxd9ox0ulopq8G1wFRh1khb1PI3epqfbDsA== X-Received: by 10.28.0.203 with SMTP id 194mr6576848wma.29.1472401016723; Sun, 28 Aug 2016 09:16:56 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CD1604DDE8B455CCB566F1.dip0.t-ipconnect.de. [2003:dc:d3cd:1604:dde8:b455:ccb5:66f1]) by smtp.googlemail.com with ESMTPSA id ly9sm29987769wjb.44.2016.08.28.09.16.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Aug 2016 09:16:55 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org, mturquette@baylibre.com, peppe.cavallaro@st.com, alexandre.torgue@st.com Subject: [PATCH v3 1/5] net: dt-bindings: Document the new Meson8b and GXBB DWMAC bindings Date: Sun, 28 Aug 2016 18:16:33 +0200 Message-Id: <20160828161637.9941-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160828161637.9941-1-martin.blumenstingl@googlemail.com> References: <20160820093538.9707-1-martin.blumenstingl@googlemail.com> <20160828161637.9941-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160828_091717_393372_01C5C813 X-CRM114-Status: GOOD ( 12.15 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, arnd@arndb.de, Martin Blumenstingl , catalin.marinas@arm.com, manabian@gmail.com, will.deacon@arm.com, robh+dt@kernel.org, netdev@vger.kernel.org, sboyd@codeaurora.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 This patch adds the documentation for the DWMAC ethernet controller found in Amlogic Meson 8b (S805) and GXBB (S905) SoCs. The main difference between the Meson6 glue is that different registers (with different layout) are used. Signed-off-by: Martin Blumenstingl Acked-by: Rob Herring --- .../devicetree/bindings/net/meson-dwmac.txt | 45 ++++++++++++++++++---- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/net/meson-dwmac.txt b/Documentation/devicetree/bindings/net/meson-dwmac.txt index ec633d7..89e62dd 100644 --- a/Documentation/devicetree/bindings/net/meson-dwmac.txt +++ b/Documentation/devicetree/bindings/net/meson-dwmac.txt @@ -1,18 +1,32 @@ * Amlogic Meson DWMAC Ethernet controller The device inherits all the properties of the dwmac/stmmac devices -described in the file net/stmmac.txt with the following changes. +described in the file stmmac.txt in the current directory with the +following changes. -Required properties: +Required properties on all platforms: -- compatible: should be "amlogic,meson6-dwmac" along with "snps,dwmac" - and any applicable more detailed version number - described in net/stmmac.txt +- compatible: Depending on the platform this should be one of: + - "amlogic,meson6-dwmac" + - "amlogic,meson8b-dwmac" + - "amlogic,meson-gxbb-dwmac" + Additionally "snps,dwmac" and any applicable more + detailed version number described in net/stmmac.txt + should be used. -- reg: should contain a register range for the dwmac controller and - another one for the Amlogic specific configuration +- reg: The first register range should be the one of the DWMAC + controller. The second range is is for the Amlogic specific + configuration (for example the PRG_ETHERNET register range + on Meson8b and newer) -Example: +Required properties on Meson8b and newer: +- clock-names: Should contain the following: + - "stmmaceth" - see stmmac.txt + - "clkin0" - first parent clock of the internal mux + - "clkin1" - second parent clock of the internal mux + + +Example for Meson6: ethmac: ethernet@c9410000 { compatible = "amlogic,meson6-dwmac", "snps,dwmac"; @@ -23,3 +37,18 @@ Example: clocks = <&clk81>; clock-names = "stmmaceth"; } + +Example for GXBB: + ethmac: ethernet@c9410000 { + compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac"; + reg = <0x0 0xc9410000 0x0 0x10000>, + <0x0 0xc8834540 0x0 0x8>; + interrupts = <0 8 1>; + interrupt-names = "macirq"; + clocks = <&clkc CLKID_ETH>, + <&clkc CLKID_FCLK_DIV2>, + <&clkc CLKID_MPLL2>; + clock-names = "stmmaceth", "clkin0", "clkin1"; + phy-mode = "rgmii"; + status = "disabled"; + };