From patchwork Wed Sep 27 10:40:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 9973687 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 B272160365 for ; Wed, 27 Sep 2017 10:44:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC42128628 for ; Wed, 27 Sep 2017 10:44:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A12242869D; Wed, 27 Sep 2017 10:44:49 +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 3CC8928628 for ; Wed, 27 Sep 2017 10:44:49 +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=PdhFt8cimWCC2FPnagT/kD3ulJzwkxVNVgAhP3tHe9M=; b=FfWz0jearuMwyR JjEIwcFi2HbS3HJEEsZfxrk20Kx8S7xSQOgZGjIIJq2kFpzLwmUPRy8BHZlYpDYxAtPR28mnHlePp +uMcn6vU5SbO5P7ufMcw9q4/sjl2cBf2vuysPFaHgpB4m+lCTAhHXZ5Mc29kP2zN3HcAkeSiCIDMn qvpkjy3ZbC0TaDvxEE7vjfPr9aqReCvj0rm8tFACDUcCSLv3834izN2xcx4hCoXhpOGlWjPzDQGwW 3kdWgAAnbC7qdbLK1pAZZkKxh0nvU57EoJNaPLjWjKmqZAkS4vsGaCkY+8HhuvGVvqajiwq2fYyo7 Or7G2CxufKmAE1BwP37Q==; 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 1dx9pZ-0000Dz-Kl; Wed, 27 Sep 2017 10:44:41 +0000 Received: from mail-wm0-f66.google.com ([74.125.82.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dx9pV-00085Y-CN for linux-amlogic@lists.infradead.org; Wed, 27 Sep 2017 10:44:39 +0000 Received: by mail-wm0-f66.google.com with SMTP id r136so11122269wmf.3 for ; Wed, 27 Sep 2017 03:44:16 -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=WElFiJi7lm2wZMbTh36GZs1EkfDLuLmiF3dwDOentDQ=; b=mrXBcQ9qqjlAQwBwy5k+2Zkf+jvInc6KHibalNw1T3EBhhm5mRteu6gmUQr9T4UGvf TcwSB5OU1vBEisZAfRSW+gqfi9VFUplgT0/0coVLa1e8T6aCHpKAIwOm0Li8x61QTRDs 1fgJXAKvUZHEu0kwhvYUjyo/Yb6R/TbQsAXzqMWUcTXf9OjcpS8SK3wOXyrFR4uAVZbD GNLpa6RCDwmi9ifsQNvrxEttM5z5lq+R+MHesx6MFda28LViliHQ0Ax8ahO5pLgHQJ+Z NpdMB9THtSIbepKDD54nNZqw1pGSF2A6CZiebv1l+7XtuikQ7bbkBx69URTp2e23YdRZ 4V4Q== X-Gm-Message-State: AHPjjUjJG7l4AYp41deoWvcCTB98ulTQwmnGxWZo4XdcEXzfuzCVoA1G nsOx1QJXC20BGqHcHBbJMkQ= X-Google-Smtp-Source: AOwi7QCoSvQOD1LiIDkqZRlPrrICSO88+iKljdqGggAQp/EdR3rVyQmRSi64aSI+MSzpPDz4NrqOcQ== X-Received: by 10.28.149.144 with SMTP id x138mr1110733wmd.58.1506509054824; Wed, 27 Sep 2017 03:44:14 -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 x5sm6284720wre.18.2017.09.27.03.44.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 03:44:14 -0700 (PDT) Date: Wed, 27 Sep 2017 12:40:49 +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: <450a483abe07f8d903c6cb74091592743975a8eb.1506507688.git.ingrassia@epigenesys.com> 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_034437_620985_5F6215FF X-CRM114-Status: UNSURE ( 8.71 ) 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 --- arch/arm/boot/dts/meson8b.dtsi | 43 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index bc278da7df0d..26372b019897 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -154,12 +154,51 @@ #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"; + + reg = <0xc9410000 0x10000 + 0xc1108140 0x8>; + + 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 {