From patchwork Wed Sep 27 21:39:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 9974913 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 01C6D60375 for ; Wed, 27 Sep 2017 21:43:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E62CB29382 for ; Wed, 27 Sep 2017 21:43:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA12329384; Wed, 27 Sep 2017 21:43:58 +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=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 012D829382 for ; Wed, 27 Sep 2017 21:43:57 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CZARUhvm0z4oeVT51deI7u7sUNomwIbmum3g3H6tVo0=; b=rMB9dD5mAmQbfa HKmd9EUx+/ES6Q5OnapClnk8cNbFumMozpYFL7B9UVecREFgC+CWIX5Q5ewh+7oebO3018jGaGy7T ln9qaEWgPA5lUFQKmyVbBkW1RQIzyrKp+qxNz2lfoHOap9t5Qj5UOtY97PxOxAyi0gG7sodLT7T57 d4BbcxEcosucaZDIXnHcujHJsgU2YnoiLOsTY3hyD9MzYiR5CHWn39tyuyGxSUY8m3cdshaC/g0/6 G3V8m5E4KTUKxtPIR0jEr39a9VREwRDICiUGBxQyJrdN9OOm0JWOuKn0kOeiKJHYIWYCis+zgcsCr xlrOW8HGsujVfkO4RKVw==; 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 1dxK7O-0001sz-FB; Wed, 27 Sep 2017 21:43:46 +0000 Received: from mail-wm0-f68.google.com ([74.125.82.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dxK7K-0001hc-Ow for linux-amlogic@lists.infradead.org; Wed, 27 Sep 2017 21:43:45 +0000 Received: by mail-wm0-f68.google.com with SMTP id m72so22915573wmc.1 for ; Wed, 27 Sep 2017 14:43:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=01oXlsKEbmpZPfNk1aHSJzCu9EsQL1whbfbHyJ8NiwE=; b=JGg8Zqfk216NOUPJaMHbwYIsBwq6e1M/CX4eXOM+e5ToWFzwF9oeTATVSstDLVZnpa pcZT3mWqyEm8WtggNFk8GSwrfdnmpHet6vznq52Rb0ggEXz2zJDyEfTTntAJ9kHSha13 iYvlo5/A3eXEO9nAodO0lDkffWe1bB/Msc6Vp/yzCoAxsznYd4h3hJGO7MYUeg3BLpF0 CMAz0OA5C8t2yNUQPmvOpccRYHORlVsuYLrRCa4TmkN2KDWORBdIzBMZXGUyHOZW8ZaV e1wv2rfX/AB8SrhG8W9a0upSs5M9HeyA1ONcy9nHn3V7xTEjrEsrqyw6UiQtlKGux8NF Q6rA== X-Gm-Message-State: AHPjjUibpTWsIJ/MvuBi/n39hs2K+nGqDJjHyLGpfqScTIACIFgOKSmG evZ2pRpik4nrzfQoV1X41Hw= X-Google-Smtp-Source: AOwi7QAkvFCZT/wCP/KvXq3COsydswBIg7T5R+PFvmMPATy+WHy4tpGYbAWmfaAiaInxATNruX4tzA== X-Received: by 10.28.188.86 with SMTP id m83mr1319208wmf.83.1506548600769; Wed, 27 Sep 2017 14:43:20 -0700 (PDT) Received: from ingrassia.epigenesys.com (host194-85-static.3-79-b.business.telecomitalia.it. [79.3.85.194]) by smtp.gmail.com with ESMTPSA id i136sm406870wmd.23.2017.09.27.14.43.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 14:43:19 -0700 (PDT) Date: Wed, 27 Sep 2017 23:39:53 +0200 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman , linux-amlogic@lists.infradead.org Subject: [PATCH 2/4] ARM: dts: meson8b: extending ethernet controller description Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170927_144343_039607_8FB5862E X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds ethernet controller pin description and extend its attributes in the relative node. Signed-off-by: Emiliano Ingrassia --- This patch corrects the meson8b-dwmac reg attributes updated by the previous 2/4 patch (450a483abe07f8d903c6cb74091592743975a8eb). The second addresses range, taken from S805 (aka Meson8b) SoC manual, was not correct. Please, apply this patch and discard the previous (450a483abe07f8d903c6cb74091592743975a8eb). arch/arm/boot/dts/meson8b.dtsi | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index bc278da7df0d..816bc9188f44 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -154,12 +154,48 @@ #gpio-cells = <2>; gpio-ranges = <&pinctrl_cbus 0 0 130>; }; + + eth_rgmii_pins: eth-rgmii { + mux { + groups = "eth_tx_clk", + "eth_tx_en", + "eth_txd1_0", + "eth_txd1_1", + "eth_txd0_0", + "eth_txd0_1", + "eth_rx_clk", + "eth_rx_dv", + "eth_rxd1", + "eth_rxd0", + "eth_mdio_en", + "eth_mdc", + "eth_ref_clk", + "eth_txd2", + "eth_txd3"; + function = "ethernet"; + }; + }; }; }; ðmac { - clocks = <&clkc CLKID_ETH>; - clock-names = "stmmaceth"; + compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac"; + + interrupts = , + ; + interrupt-names = "macirq", + "eth_lpi"; + + clock-names = "stmmaceth", "clkin0", "clkin1"; + clocks = <&clkc CLKID_ETH>, + <&clkc CLKID_FCLK_DIV2>, + <&clkc CLKID_MPLL2>; + + resets = <&reset RESET_ETHERNET>; + reset-names = "stmmaceth"; + + rx-fifo-depth=<4000>; + tx-fifo-depth=<2000>; }; &hwrng {