From patchwork Tue Jan 16 00:34:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 10165555 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 1E46A601D3 for ; Tue, 16 Jan 2018 00:34:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D19127F7F for ; Tue, 16 Jan 2018 00:34:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01FDC27F82; Tue, 16 Jan 2018 00:34:19 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 5B37727F7F for ; Tue, 16 Jan 2018 00:34:19 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cnqEk3YYPg+7q1aWLF9l9zou6V3Wh4cRlFK3PWt3xS0=; b=QeoNgK/Nm/IbLT 6upxeSS+/AwikbHe/8O4VpwqamPqNtSf3Wnv4r3sKqiLyzW1wN+znREt0nPuAsDt61stleOahRlYS YMw4O6sa26R0B134dzbLnn7bmgh0Gl/TfuSPpKVaIZw+fGWNKsM3i9kvpZUBGDH+pvqdlHDFluhKC XTOhMMoPYPJBYU00EX+vF5IwVdQGlKnjvC02Q1Anglc8F7IXIM4pNshuByGrmR0HxXsDr2sus/1Zd J3zPcDNcv1gM4bx2VpAx4uxdxIe+Ylo94BnUElIuvCfnkrdr+8gc8RDzqdrCbmTHDqJQDZmKSPSW7 9/2yyrj8QrX9ZP13vq/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ebFCc-00072S-42; Tue, 16 Jan 2018 00:34:10 +0000 Received: from mail-wm0-f66.google.com ([74.125.82.66]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebFCZ-0006uy-7m for linux-amlogic@lists.infradead.org; Tue, 16 Jan 2018 00:34:08 +0000 Received: by mail-wm0-f66.google.com with SMTP id f3so5229905wmc.1 for ; Mon, 15 Jan 2018 16:33:56 -0800 (PST) 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:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=XVTfsNS9I4G40HRA73RiH8TBA2L6G82c/Jsst8ZXin8=; b=fzueGH2c5zHitjubJtI1EH25jdqh3xhP6I8ONXqu6Wr8wRZZRlsRLarilNpXLWtgNt ntmLgTy0p5NgH/M+c3aHk8Mx0I8B5GYzAlrDYOMgGP24nmLzEtE4RsKtQLMnYLEIJbsG SpbFdOzCWY0u0xY7qQC4nQ7cDbROjBdet369hcsUnA4DMeZEbniApdLDmX6+ULDmCGBl TCaNFVHNb+1BG8dbkVLCS1q+KOBS0WxOKpPaz1HJkTv1eNOKoz5VswQAdcBQpFzJPvcA n/iAIvy7FLH2CK0BbJj+lyqUkRFwdINvc9UwFhplZ13fKakEk1uYdbb320GHfmqTP777 /mAA== X-Gm-Message-State: AKwxytddmtxv8gF78ziesh2BAcBrPnmxqkoK3wJC7NOmvXkrxFRFJcAG f2Zs/iwuwd62R3hn7/wf7U1L0zQk X-Google-Smtp-Source: ACJfBoswH2xoZtOzfcRNFVD5BDcZOxxxp8/RUXLYKr2l3jMN47PNRbPHuqI1rJnoGKgclYcoyRVVTQ== X-Received: by 10.28.237.23 with SMTP id l23mr7389674wmh.113.1516062835423; Mon, 15 Jan 2018 16:33:55 -0800 (PST) Received: from ingrassia.epigenesys.com ([151.27.244.4]) by smtp.gmail.com with ESMTPSA id r1sm1456239wmg.22.2018.01.15.16.33.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 16:33:54 -0800 (PST) Date: Tue, 16 Jan 2018 01:34:12 +0100 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman Subject: [PATCH 1/2] ARM: dts: meson8b: extend ethernet controller description Message-ID: <20180116003412.GA10581@ingrassia.epigenesys.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180115_163407_280427_27E9B257 X-CRM114-Status: UNSURE ( 8.73 ) 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: , Cc: Martin Blumenstingl , linux-amlogic@lists.infradead.org, linus.luessing@c0d3.blue Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Extend ethernet controller description adding pin multiplexing and setting the needed attributes in ethmac node. As reported in S805 SoC manual, the MAC clock source is MPLL2 only. Signed-off-by: Emiliano Ingrassia Reviewed-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b.dtsi | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 7cd03ed3742e..3c66d9bdc3a8 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -185,6 +185,27 @@ #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"; + }; + }; }; }; @@ -203,8 +224,18 @@ }; ðmac { - clocks = <&clkc CLKID_ETH>; - clock-names = "stmmaceth"; + compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac"; + + reg = <0xc9410000 0x10000 + 0xc1108140 0x4>; + + clocks = <&clkc CLKID_ETH>, + <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL2>; + clock-names = "stmmaceth", "clkin0", "clkin1"; + + resets = <&reset RESET_ETHERNET>; + reset-names = "stmmaceth"; }; &gpio_intc {