Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3773783rwb; Mon, 5 Sep 2022 18:53:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4SKbAjX/qFuCQxxZZlXSMP4pWVF57UDh4XlFCHDyv0xXuEjY0AL36IBBcIgOY69lS2lSz+ X-Received: by 2002:a17:907:7f26:b0:74f:94f3:f92 with SMTP id qf38-20020a1709077f2600b0074f94f30f92mr12281803ejc.573.1662429224816; Mon, 05 Sep 2022 18:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662429224; cv=none; d=google.com; s=arc-20160816; b=HfF0Zb+rzy6DF8ltdKqFaB8PbTC+AJ4VpfjMS3DDaXodTX4++kpqFJjkgUECWsjw8D 0xPVGoN9iJYCOD2r1e4A5W0QZi9UlZTkaSU9Uz405NV9RRIeGfqZZNA1wmKKDa841ikf eWJjIJnqJZS0PYHbiDH3LwGeoS8JVeo4egm3ccjz9vHL3t9EICqHJdwfvxE7xcQp+Xn9 ZPKmSje7LLwxaqPdDUVdQ08mvDUNTO9TH4zoUkRgfgh2bv0F0V2at3B+JDmCPM7ItrMu FcH0Rjjxw9fanWh/HqxPm6UHOvRPG/UeMXF7fLVwv/9iJ/8abWRHOdITizkQo22lI/zb aleQ== 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=wR4LPrjfekVqjvMATBzjqFfhUkvNlLUUdzUvMBxpESs=; b=DQ5Z3RmLs9nzZyzv2g9u6zZyB+9Qvs2RNB6fTVVJKIusdo0Y0+A0JoZLZP42tWi61u 7r6BndBf4NIhVFM1BqPMaD/2MjN+qYSbggfwe7Fg9Ww54WxrrgzWFORUUktDYjAdUQrm W9DZjczyRbsxnJ8MDTfRHXXUrbMaJEPfGI8plqJvdy4qfHwqrmXQOy/oOsQl3piLGO1z mkXzSAnyKiLKCyBQPumgTSBe0LUGisn/E3g3lIPGSV8ZFlxNngI/1LBapXJ2CJmTqSmv L5hLrixbPzcSzNq8Wzs8f3l8ih4yq53pMtkzrQJ5yo8aJfGLR8Q1FTByaskhhOZUOimZ flDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fAn8Ca6B; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020aa7d90c000000b0044872247254si2656101edr.153.2022.09.05.18.53.19; Mon, 05 Sep 2022 18:53:44 -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=@gmail.com header.s=20210112 header.b=fAn8Ca6B; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232453AbiIFBlr (ORCPT + 99 others); Mon, 5 Sep 2022 21:41:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiIFBlp (ORCPT ); Mon, 5 Sep 2022 21:41:45 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA1F65544; Mon, 5 Sep 2022 18:41:44 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id x1so5508111plv.5; Mon, 05 Sep 2022 18:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=wR4LPrjfekVqjvMATBzjqFfhUkvNlLUUdzUvMBxpESs=; b=fAn8Ca6BxfW8B6GwWQ+j/b2XZntmmRVgtRSpX6VUO92+DWvaZokWOokIDmpsUClAJd QKe8lYnSXvInKYIIgHyCLWyePb1+LeYdB04PGDobVVbhPtszGc7TssZgqqbwD46G5tOj iEDf9CWSO8WINiKJLraioNeM/tSh2oG5SDtqc9sBbD+ZpQD3zqBd2MGsomNU+3Eiq36q ignrLr71jr29mS75UAat2TLZVc29hJPp1Bl8rbbXCPTEKzmHrQ7E1nCH3CJZ9XzUUa3f vhOBzDg1ifmg7s7yXmSN3hahrP6nywPDxHy2wvpit2f+QmKPJAluwZBk1UXRWhmV8I6c Nu7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=wR4LPrjfekVqjvMATBzjqFfhUkvNlLUUdzUvMBxpESs=; b=QsCwFv8Z2MfnKf4vMLVa6b1idOCGJrcn5pmAXN6D3qQBVilubn7QZznvRFt6vXSS4U yxekuAtf/hVyvisXHpuc0h2ZZaQi1vchhToqMSabBFjJv1gttvytjG+lYdgNCMQsr00S eTV3fMB+ha1NDwj/59H9reRWR2+dvK6qQODY2AL6jnHFwgk1qYXUuwMBffT2OA4GDIJ4 5CvizAsRFCWHcz8DnBW0MYk9OpuKvXEYjMB5tdq45MIChpQMy9qXe7aRs9qiWRMiZQ8v fx0qSDc155DhbLSrd1FKviBD0piPjuiCe9QQHCmDW3XwG3edLyfUQxnuXEKMwWwCkf7f zLpA== X-Gm-Message-State: ACgBeo2W8iYX9ZI2yWwbgV7kcs2XDdClvKatkJcKSZFwicUDkVoIwIN+ PazUyjswLty6PxbpOJ9H9Cs= X-Received: by 2002:a17:90a:5aa2:b0:200:30aa:c773 with SMTP id n31-20020a17090a5aa200b0020030aac773mr12700964pji.182.1662428503955; Mon, 05 Sep 2022 18:41:43 -0700 (PDT) Received: from taoren-fedora-PC23YAB4 ([76.132.249.1]) by smtp.gmail.com with ESMTPSA id cp15-20020a170902e78f00b00176ae5c0f38sm2935022plb.178.2022.09.05.18.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 18:41:43 -0700 (PDT) Date: Mon, 5 Sep 2022 18:41:33 -0700 From: Tao Ren To: Andrew Lunn Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heyi Guo , Dylan Hung , Guangbin Huang , Liang He , Hao Chen , Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , Tao Ren , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/2] ARM: dts: aspeed: elbert: Enable mac3 controller Message-ID: References: <20220905235634.20957-1-rentao.bupt@gmail.com> <20220905235634.20957-3-rentao.bupt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Andrew, On Tue, Sep 06, 2022 at 02:22:50AM +0200, Andrew Lunn wrote: > On Mon, Sep 05, 2022 at 04:56:34PM -0700, rentao.bupt@gmail.com wrote: > > From: Tao Ren > > > > Enable mac3 controller in Elbert dts: Elbert MAC3 is connected to the > > onboard switch directly (fixed link). > > What is the switch? Could you also add a DT node for it? > > > > > Signed-off-by: Tao Ren > > --- > > arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts > > index 27b43fe099f1..52cb617783ac 100644 > > --- a/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts > > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts > > @@ -183,3 +183,14 @@ imux31: i2c@7 { > > &i2c11 { > > status = "okay"; > > }; > > + > > +&mac3 { > > + status = "okay"; > > + phy-mode = "rgmii"; > > 'rgmii' is suspicious, though not necessarily wrong. This value is > normally passed to the PHY, so the PHY inserts the RGMII delay. You > however don't have a PHY. So i assume the switch is inserting the > delay? Again, being able to see the DT properties for the switch would > be useful. > > Andrew Thank you for the quick review! The BMC mac3 is connected to BCM53134P's IMP_RGMII port, and there is no PHY between BMC MAC and BCM53134P. BCM53134P loads configurations from its EEPROM when the chip is powered. Could you please point me an example showing how to describe the switch in dts? Anyhow I will need to improve the patch description and comments in v2. Thanks, - Tao