Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp172618rwi; Wed, 19 Oct 2022 19:25:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5n0dFPxMhxAifwVDFbZStuinXHJR8OsxkewJOTboSWhh/mDO1gmaCcHHSR8vC6rxtFdk7I X-Received: by 2002:aa7:c144:0:b0:459:f897:793e with SMTP id r4-20020aa7c144000000b00459f897793emr10089814edp.8.1666232714495; Wed, 19 Oct 2022 19:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666232714; cv=none; d=google.com; s=arc-20160816; b=WNtrosFCFg01SFxpBGdkmlBj+17OH/9UhHwtEK1lnZxHuFjsqkErHn77WcEosIuT+N wRbOmbwe3dtwIZoQ0TY0snWFR7LQvfaSxq/hJqZnGENkxxWWcD4t0iQUacfsAapqBSLv 8rbACFVIZKhpGhvL6T6jbfN/2zUfw5pX7ib5/B0D+6Cx05XfA+U0sWy+9AEGpthb4YVe qutkWwxmtUZenSfsLnG1DO5LkYxyS1BMxg5SrgfKcLevgYSxJihzJ3JNZiA0398Mjd2l RJ6vr5PHqMNZe1fVO0N3+UXBbqZy17A5y2ywrwzW6MNGMUE8Cko1WQcwAWBhgAv0WUnv ztvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=VO5xvhLVQhzMCqtvS6hNx0N5unp8zokjIFS9QG53Czc=; b=zfOYdgikhW8A4F95vAKHQdIF35CcD1DNQlxlHAs+QfGAGsnjDVOfVrc3j7J+JL5KZE fSQRtQeb+4Q0GH0qz1YrDAj5Ak9IFkz1EBs6IO0o5HA3ouqgr7a8+Yl8nEdvBn9f+xuW vqAe1qy8+wYMKxt1PbGQ65e9mHpaSon0nKGr+DFJNo16S58fcG2jHM/d/n39YSEJqitC QgUy4OVMeQwFL4o+YugUm3Nde/eqnXlagEeH637osuwTtRgY2TDaeC0i5g1tQ3fPToh7 BUVNbN4g62/2EjLGhW9cYReoRChwwOc3JEcy4DafZ60V+xoKCbYVaLFxBM5DSxaJzm61 b4dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=cgtZ90yV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b25-20020aa7dc19000000b0045ccd2c9944si13058949edu.233.2022.10.19.19.24.45; Wed, 19 Oct 2022 19:25:14 -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=@mediatek.com header.s=dk header.b=cgtZ90yV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbiJTCFj (ORCPT + 99 others); Wed, 19 Oct 2022 22:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbiJTCFh (ORCPT ); Wed, 19 Oct 2022 22:05:37 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00670129756; Wed, 19 Oct 2022 19:05:28 -0700 (PDT) X-UUID: 20feeda39a5942278c66c40810c63f14-20221020 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=VO5xvhLVQhzMCqtvS6hNx0N5unp8zokjIFS9QG53Czc=; b=cgtZ90yVJBMD/NNXA2lDVvu8VmY3DDNey99o0ywOVB3jM7h7kyW9ZAu801iaoRGWKDv+fiXiwcTo1NQdFtjrJETmclFy3Xeo+NGSqGNDiyEwEOEnmlTA0xXn8XQpApkM5oaG1LBCbj5EW5XAzxomG5b5S0g0JES6Hm6P/oX+S+4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:bbd6fbd9-774d-42bd-8490-38af96895deb,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:26315ba4-ebb2-41a8-a87c-97702aaf2e20,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 20feeda39a5942278c66c40810c63f14-20221020 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 345631413; Thu, 20 Oct 2022 10:05:22 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 20 Oct 2022 10:05:21 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 20 Oct 2022 10:05:21 +0800 Message-ID: Subject: Re: [PATCH v2] arm64: dts: mt8195: Add Ethernet controller From: Biao Huang To: AngeloGioacchino Del Regno , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Matthias Brugger CC: , , , , Date: Thu, 20 Oct 2022 10:05:20 +0800 In-Reply-To: References: <20221019091515.21878-1-biao.huang@mediatek.com> <20221019091515.21878-2-biao.huang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=no 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 Dear Angelo, Thanks for your comments! On Wed, 2022-10-19 at 15:57 +0200, AngeloGioacchino Del Regno wrote: > 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? :-) I checked some dts, they keep stmmac-axi-config outside ethernet node, so I keep the similar way with them, maybe that's old style. > > > + 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 = > 0>; > > + 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. OK, I'll move them to ethernet node, and add address/size-cells in thernet node. > > Regards, > Angelo Best Regards! Biao