From patchwork Fri Nov 25 13:01:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9447525 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 BCDAD60778 for ; Fri, 25 Nov 2016 13:05:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AD652756B for ; Fri, 25 Nov 2016 13:05:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B65A280F4; Fri, 25 Nov 2016 13:05: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_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 261E12808F for ; Fri, 25 Nov 2016 13:05: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 1cAGAL-0005qS-18; Fri, 25 Nov 2016 13:03:45 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAG9P-0004Pb-Jv; Fri, 25 Nov 2016 13:02:58 +0000 Received: by mail-wm0-x242.google.com with SMTP id g23so7749649wme.1; Fri, 25 Nov 2016 05:02:27 -0800 (PST) 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=fU8RHfUaLfHwrszcxBtiD4Wy6Aw9W4oCMpCHPmf/oaU=; b=fToaZJIRGi/xu4U5n5mC1YdoCZGmOf1kS464+9lPOKhMpse7qWAl2vkt5E25VlzwYv lzl9roYKmxkgzdb7pS1iYxx4VcYXb6gXkpWbswtuWL7V6OVds8h5ce3r38u3EuGgw7zH JxULmofHtQthaDFl45yuf0FcJX9tDWc83PpS6mYP/dvvwCaw7atMQB8E/j2WvwmUpo5L oKsQIHkpmexFTCSGs3ZrnmnrFy/WpeWFYc9S0Rs230BK58u14+Q0JNvdkPowMjvPvuUi uffGLSUKzaF9zjmi2Fc5fCUSlBnfvG/oZcWrFdVTDhv4UZ+Pg2feQXuUCVtfM0kDm8nM d9tQ== 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=fU8RHfUaLfHwrszcxBtiD4Wy6Aw9W4oCMpCHPmf/oaU=; b=DHvyPd6NKcZhvvS54QSB3bGn/XVkxrf9/2AzJ93Ig85hWGCsNweafovfnmJU3ltwq6 S3RgLy6kThm+wDnYQ76hNwcEVooIk+qY+kadmuBwSAf+BfbxH/+Y1TNZAkVUxE+uUF4+ BCh+hfGkSvQDa50cJI1uONx/AbX+zKeeS6P+PfYtXtWrOYmaPDGJIT2tSsPtyKg8e41z Wzy30sM117rpDSWXCknCVqehdbqgKPErj6/YKyEPwoThLhT+LYhWtMEOqE5GznTFETC9 x0qlNELPmfqxu50lE0RDeENVkJO7KNBZDqqHGdTz7Rn5WfRrHW0voa2Q88N+fdUzYrgl oJsw== X-Gm-Message-State: AKaTC001Dh/IVco6u0ZZdzwPJs7VyRNtZdt/L9a1Lq6NR6JLGwev1OLL6nxTfvXcf7rVIw== X-Received: by 10.28.74.25 with SMTP id x25mr7836960wma.74.1480078945647; Fri, 25 Nov 2016 05:02:25 -0800 (PST) Received: from blackbox.darklights.net ([2003:dc:d3d3:9204:9426:48db:352f:a6de]) by smtp.googlemail.com with ESMTPSA id ua15sm46937433wjb.1.2016.11.25.05.02.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 05:02:24 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, khilman@baylibre.com, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH v2 1/7] net: dt-bindings: add RGMII TX delay configuration to meson8b-dwmac Date: Fri, 25 Nov 2016 14:01:50 +0100 Message-Id: <20161125130156.17879-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161125130156.17879-1-martin.blumenstingl@googlemail.com> References: <20161124143417.10178-1-martin.blumenstingl@googlemail.com> <20161125130156.17879-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161125_050248_075549_D4222569 X-CRM114-Status: UNSURE ( 9.90 ) 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: f.fainelli@gmail.com, alexandre.torgue@st.com, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, carlo@caione.org, peppe.cavallaro@st.com, 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 allows configuring the RGMII TX clock delay. The RGMII clock is generated by underlying hardware of the the Meson 8b / GXBB DWMAC glue. The configuration depends on the actual hardware (no delay may be needed due to the design of the actual circuit, the PHY might add this delay, etc.). Signed-off-by: Martin Blumenstingl --- Documentation/devicetree/bindings/net/meson-dwmac.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/net/meson-dwmac.txt b/Documentation/devicetree/bindings/net/meson-dwmac.txt index 89e62dd..f8bc540 100644 --- a/Documentation/devicetree/bindings/net/meson-dwmac.txt +++ b/Documentation/devicetree/bindings/net/meson-dwmac.txt @@ -25,6 +25,20 @@ Required properties on Meson8b and newer: - "clkin0" - first parent clock of the internal mux - "clkin1" - second parent clock of the internal mux +Optional properties on Meson8b and newer: +- amlogic,tx-delay-ns: The internal RGMII TX clock delay (provided + by this driver) in nanoseconds. Allowed values + are: 0ns, 2ns, 4ns, 6ns. + This must be configured when the phy-mode is + "rgmii" (typically a value of 2ns is used in + this case). + When phy-mode is set to "rgmii-id" or + "rgmii-txid" the TX clock delay is already + provided by the PHY. In that case this + property should be set to 0ns (which disables + the TX clock delay in the MAC to prevent the + clock from going off because both PHY and MAC + are adding a delay). Example for Meson6: