Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4792688rwl; Wed, 28 Dec 2022 08:54:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXt57+WsXKgsFlLXPEPSdCrggzhlQmgFNJn8Ay7ipaX2+VwVODkK0Z7pofYbPa++77Oq23a0 X-Received: by 2002:a17:902:da86:b0:189:d0c9:f7d0 with SMTP id j6-20020a170902da8600b00189d0c9f7d0mr35086646plx.27.1672246441962; Wed, 28 Dec 2022 08:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672246441; cv=none; d=google.com; s=arc-20160816; b=cDWcMrnDs8Qpr4Wmexs9Krtc2hE/2+PvVDC8Zdk+msvYBaUxUXUoQxv+Yzkbf18SAA YlOMRi9ZkP1JYe1bxlqU9coHD8eXEoOWE86XlfrASiaMOS974Zpu0ADtHdsS5TyCYA4i MufErkpVTb4jumaQ/1IYmgBJmAIqJGFv7E6GFFRx6QLbDATh9NVOBAZoC/S94sdlIRqF RfjWebHtp/ps032f60Q+HLp0lG3MDsqJgHdA+uioZSyzzP08iowc6S4Da69FNeaVZrQC J2322RHUeBye43GgYGZtRrLwFogK/bM4ZZe8RBs4PwTiJ4SGbpgUg9TxSgoaX0fwx5ZQ 3Zhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Jjhwb3N70ms/j1i4bo7QKbXNHaIJIzIejW0oNyuj4bg=; b=GTTxoHMxFQRo/0uU/yOxtjihTVIPgWuppK6+afpFtht7W+D4J2JjI8hQEqSnAidtou 0jzRXQtfFnpJcJS6sdv2ADJ3KU4jqVRlargfTJRQijPs9j0taU8mE4KKf4gRkF8/EMOM zah9GVtyHGhPNf8jD+GtOvL5zhzFpdllixmVcDxfvRDwNY3vHmjS2UdO/YK8U7yYddvn G1x+6iXIN8gPZRGYvPhWV2xKlP0CI7dgFxmSD1fcOA7CA5aa+q1WkdNrQc+e8dvzqk1z em2M4oSBfV2/65qelcVhuk3ECKJ2scK7oncfTY6wVVHoVis0347CI6a4vvxnm9Jn9ezn wz1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=q3zHczMs; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a170902ea0500b001893e9d712dsi18495641plg.557.2022.12.28.08.53.53; Wed, 28 Dec 2022 08:54:01 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=q3zHczMs; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233144AbiL1QR3 (ORCPT + 63 others); Wed, 28 Dec 2022 11:17:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234490AbiL1QQY (ORCPT ); Wed, 28 Dec 2022 11:16:24 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E9791A83C; Wed, 28 Dec 2022 08:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Jjhwb3N70ms/j1i4bo7QKbXNHaIJIzIejW0oNyuj4bg=; b=q3zHczMspDGI0BcJTxyCVqPWKl 15mJ+UvJgN7C/+aXofFshb7hlNJz/wBhhP82ReDZOmUJytZMts8SR+vvemM/GEqgaW+TC0j5UhZpR dp1k1N1afxlz7eJ7DbQPdY0pVFalZthdOHpH5M+iMKTq/bV1ExA4UJXZ/fPOW0qMxBfY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pAZ3k-000e6S-LX; Wed, 28 Dec 2022 17:13:40 +0100 Date: Wed, 28 Dec 2022 17:13:40 +0100 From: Andrew Lunn To: Biao Huang Cc: AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Richard Cochran , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, macpaul.lin@mediatek.com Subject: Re: [PATCH v6 2/2] arm64: dts: mt8195: Add Ethernet controller Message-ID: References: <20221228063331.10756-1-biao.huang@mediatek.com> <20221228063331.10756-3-biao.huang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221228063331.10756-3-biao.huang@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 > --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts > +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts > @@ -258,6 +258,66 @@ &mt6359_vsram_others_ldo_reg { > }; > > +ð { > + phy-mode ="rgmii-id"; > + phy-handle = <ðernet_phy0>; > + snps,reset-gpio = <&pio 93 GPIO_ACTIVE_HIGH>; > + snps,reset-delays-us = <0 10000 10000>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <ð_default_pins>; > + pinctrl-1 = <ð_sleep_pins>; > + status = "okay"; > + > + mdio { > + compatible = "snps,dwmac-mdio"; > + #address-cells = <1>; > + #size-cells = <0>; The mdio bus master is a property of the SoC, not the board. So i would expect it be in the .dtsi file. > + ethernet_phy0: ethernet-phy@1 { > + compatible = "ethernet-phy-id001c.c916"; > + reg = <0x1>; > + }; Is the PHY integrated into the SoC, or on the board? You also don't need the compatible, if the PHY correctly implements the ID registers. Andrew