Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp548397qtb; Wed, 19 Oct 2022 08:37:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74G4u8XV6bmlb3W31Uy8oEzOzY97JNI3lvJ9ADynLEXBz7CGcAowjvAAhYexYq3jkFyGaA X-Received: by 2002:a65:6954:0:b0:445:fdb8:738e with SMTP id w20-20020a656954000000b00445fdb8738emr7466097pgq.520.1666193833368; Wed, 19 Oct 2022 08:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666193833; cv=none; d=google.com; s=arc-20160816; b=HMYTax5mKKYha7TV4lPG/CHk3cIWr8zZVDgAHpWY9nDj4VDPvqMZGm9ePskZOOuz62 fpIX1HAfuk9qjzjD0QP6guBAiA5CUUQWI0PLCt1xo1Flmy8RuLbUNBKCgF6kSFWLBziT yNDu1VJT8n/ikROp/IXSFE5pzCAJKh1wWGmNhtLserRn3x9JglDfveDBT4VG1CnJ+0HY RKht6QaSLARVpvvduDeQZzA7myZpJ/LuP9d33aIPgjJxhctVY8O78EvQ78YgMXRn6seS 5QUM+JE7JMuOLeQd12wjU+j6HfBt8bxPYh8j1q4Uj0xHlhAV49LFEqQC31UmDGUKnJrQ lG3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bWhQyLWn3P1nzjyRx2g5cOkNZks+6vip8qXcgNq/Af8=; b=mJRks4HLD+lKghLsOpzE7ut6JmqT3jZ3krDEeLQdSO5d++hbkxrlWveQHKHQGJ6r8o ZIoNZzFITV+vl3GLg+MKyXo1Mx6P1x9ki+FiKJ7kwk+rGnMwbhVz1nouMdazQXb3SiGB EcCGrgWWGbo/FXgd/ws8XKxjr8jOa+UI066wmUQblepHjfRUlUYKKUoClOYARlD1j5U3 KRwEMcbdLIknQIf9j29ip4h4YaOqLjwYVB2aG5sl+NM+SBv2yPdhmAJM9GmkJm0gFayU KSqrgwlGuFniida+iQpyvyNfNKh04hDTfeIUCfuZcx7Hnl6hcLvGzyigczLNHZObG9+K WAJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jBofWKcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a170902ced200b001865dfb6774si566756plg.458.2022.10.19.08.36.58; Wed, 19 Oct 2022 08:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jBofWKcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233471AbiJSO0s (ORCPT + 99 others); Wed, 19 Oct 2022 10:26:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbiJSO02 (ORCPT ); Wed, 19 Oct 2022 10:26:28 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 264FE1A0F84; Wed, 19 Oct 2022 07:11:20 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3FA61660238F; Wed, 19 Oct 2022 14:57:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666187838; bh=GoqeN/GewrNfh6KyiazZvRA5/fFpIcsiWVnAafIR6s4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jBofWKcmTNvwpH9DAux2lWFazuczb2Pf/fXzZqE0pO2VrcgF/kgweGX93IzW0q6dR LnNY/qK0yn57wnFWEI7CZwAlbCwEpOEdI46HTLg2jLfSmp3lM3REKgMRQjxrFSQCGZ Bkx8lg4zoq755qaQZei/LZIebSwKBIocbdPksVCNPNa2oH/SpQceh0iuHRL3IcZlmq 6JOKzuI+VhGDaafraA9xicTTzMyv7UbABtRAoH/CNwyg961zSWqXvZnSk8/tZ6mWeX WmWPaTaKlTw1rYytzTyQEdncQ7h84pCx/Y9UMXDhYrTbb9BlkGGXpxJnQzW1tBvqt3 vXepuTfwwUcgQ== Message-ID: Date: Wed, 19 Oct 2022 15:57:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v2] arm64: dts: mt8195: Add Ethernet controller Content-Language: en-US To: Biao Huang , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, macpaul.lin@mediatek.com References: <20221019091515.21878-1-biao.huang@mediatek.com> <20221019091515.21878-2-biao.huang@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221019091515.21878-2-biao.huang@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 19/10/22 11:15, Biao Huang ha scritto: > Add Ethernet controller node for mt8195. > > Signed-off-by: Biao Huang > --- > arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 88 ++++++++++++++++++++ > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 86 +++++++++++++++++++ > 2 files changed, 174 insertions(+) > ..snip.. > diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > index 905d1a90b406..7f7d9f8e72ee 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > @@ -1042,6 +1042,92 @@ spis1: spi@1101e000 { > status = "disabled"; > }; > > + stmmac_axi_setup: stmmac-axi-config { Didn't you get a warning during dtb build for these ones? And if you did, why have you ignored it? :-) > + snps,wr_osr_lmt = <0x7>; > + snps,rd_osr_lmt = <0x7>; > + snps,blen = <0 0 0 0 16 8 4>; > + }; > + ..snip.. > + > + eth: ethernet@11021000 { > + compatible = "mediatek,mt8195-gmac", "snps,dwmac-5.10a"; > + reg = <0 0x11021000 0 0x4000>; > + interrupts = ; > + interrupt-names = "macirq"; > + clock-names = "axi", > + "apb", > + "mac_cg", > + "mac_main", > + "ptp_ref", > + "rmii_internal"; > + clocks = <&pericfg_ao CLK_PERI_AO_ETHERNET>, > + <&pericfg_ao CLK_PERI_AO_ETHERNET_BUS>, > + <&pericfg_ao CLK_PERI_AO_ETHERNET_MAC>, > + <&topckgen CLK_TOP_SNPS_ETH_250M>, > + <&topckgen CLK_TOP_SNPS_ETH_62P4M_PTP>, > + <&topckgen CLK_TOP_SNPS_ETH_50M_RMII>; > + assigned-clocks = <&topckgen CLK_TOP_SNPS_ETH_250M>, > + <&topckgen CLK_TOP_SNPS_ETH_62P4M_PTP>, > + <&topckgen CLK_TOP_SNPS_ETH_50M_RMII>; > + assigned-clock-parents = <&topckgen CLK_TOP_ETHPLL_D2>, > + <&topckgen CLK_TOP_ETHPLL_D8>, > + <&topckgen CLK_TOP_ETHPLL_D10>; > + power-domains = <&spm MT8195_POWER_DOMAIN_ETHER>; > + mediatek,pericfg = <&infracfg_ao>; > + snps,axi-config = <&stmmac_axi_setup>; > + snps,mtl-rx-config = <&mtl_rx_setup>; > + snps,mtl-tx-config = <&mtl_tx_setup>; > + snps,txpbl = <16>; > + snps,rxpbl = <16>; > + snps,clk-csr = <0>; > + status = "disabled"; Please move stmmac-axi-config, rx-queues-config, tx-queues-config here as a subnode or in the root node, respecting address/size cells being zero. Of course adding that here means also specifying {address,size}-cells = <0> in this ethernet node. Regards, Angelo