Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp73402rdh; Wed, 22 Nov 2023 19:02:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8HwzbRWPDYOwhTHC0X9GwDZxW2NrPkH29pHJRsA+qTDcvSnCLZL6Q4vfP0Z/3eWKzSFsg X-Received: by 2002:a17:903:2c2:b0:1cc:5c8f:4056 with SMTP id s2-20020a17090302c200b001cc5c8f4056mr3678206plk.42.1700708538822; Wed, 22 Nov 2023 19:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700708538; cv=none; d=google.com; s=arc-20160816; b=SNEY+KN8/nw/jYRkCWMbPhBr1bzdVxZw4ePBo5of+hsTg34ZLjiCqv/wDJBFfuWLb2 0A377iKOLrEeaBNn/+K950A989dqz7Zd8EMKkKEgtv7y5worO6QV/BBlSRLbSEVl1aq+ VFQn5DqXxjbimua3j6GUl8JL0qyocJ56U5xUpvJ7lJohcrCTZLfijEk3OQZwE+O6W/gR NpS037p0IWaSo1FaA1yYmSU8OJ9DrdQ4jRTMrv56XvYdb6N1lDgCG3xl3aAczF+vUYhJ 8GcbYr7uranEpuLazGKSanePvyvvf4dxcdZfdwEkgwX3V3Xn17BzPdSeD5V3sRCrja2t tW3Q== 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=Xptzas81N17YCuuLxBooSV9D0A5Kbw2K/uN1U+PXfjw=; fh=+k2ac32NMQohGfx41aqcCJ8a0dRKeYTq2xCKQy0sbrE=; b=CTLwSDVOOPRFZ81z4mP6ler88LHeuuwpUf73DRMQYsuX0FO3llH+NqpqsaFLC2JaUr WbP8mV6KuwhIxSo3/A724/1a45q4+kdGwoNTrbowFUZMfv8UdQ2d0jo+qp/Oe9k2ev9g OUaelGcK9hVGIvvqLeFkvYDMuyZihhnKyZ/jO3FOWqPfuIchNVToEp7tB47DJwZJa1YE 36SMZqnDxMFAYnD6o+/XGFIwDApHiWPNdy3FlHDUA2OdQ1qYHnE45B/h2EKj/Dv8NL4/ TrTGQr9uGD4XcpVSgAk0ygtZMjQbeDWOEEuotP2iEf8qjJs5IcOshV8JEk9nXrjKA0CD FUmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rUhUJQzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q22-20020a170902789600b001b8a8f359fcsi233010pll.208.2023.11.22.19.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 19:02:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=rUhUJQzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 26E5B807D549; Wed, 22 Nov 2023 19:02:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232688AbjKWDBv (ORCPT + 99 others); Wed, 22 Nov 2023 22:01:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232615AbjKWDBu (ORCPT ); Wed, 22 Nov 2023 22:01:50 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D3C191; Wed, 22 Nov 2023 19:01:56 -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=Xptzas81N17YCuuLxBooSV9D0A5Kbw2K/uN1U+PXfjw=; b=rUhUJQzTP+xMnrOSIku0+NXS9e Vwx/yg9ArH/c7A/Hi97odu9Rty203sOPxQXXqHB8k+uJkoz6Jn6LRa5jL/aFAHtZpFI2e2AtHZ2Cb +WS/q/1vBCfgD+sp4sQuD362kTCVDKhoe31BMaeB8SMr1rrcM6TlTkqzK85s7wAbgJ4Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5zyH-000w18-Cr; Thu, 23 Nov 2023 04:01:41 +0100 Date: Thu, 23 Nov 2023 04:01:41 +0100 From: Andrew Lunn To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , Vladimir Oltean , "Russell King (Oracle)" , Harini Katakam , Simon Horman , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next RFC PATCH 11/14] dt-bindings: net: add QCA807x PHY defines Message-ID: References: <20231120135041.15259-1-ansuelsmth@gmail.com> <20231120135041.15259-12-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120135041.15259-12-ansuelsmth@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 22 Nov 2023 19:02:07 -0800 (PST) On Mon, Nov 20, 2023 at 02:50:38PM +0100, Christian Marangi wrote: > From: Robert Marko > > Add DT bindings defined for Qualcomm QCA807x PHY series related to > calibration and DAC settings. > > Signed-off-by: Robert Marko > Signed-off-by: Christian Marangi > --- > include/dt-bindings/net/qcom-qca807x.h | 45 ++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 include/dt-bindings/net/qcom-qca807x.h > > diff --git a/include/dt-bindings/net/qcom-qca807x.h b/include/dt-bindings/net/qcom-qca807x.h > new file mode 100644 > index 000000000000..42c45c7d5210 > --- /dev/null > +++ b/include/dt-bindings/net/qcom-qca807x.h > @@ -0,0 +1,45 @@ > +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ > +/* > + * Device Tree constants for the Qualcomm QCA807X PHYs > + */ > + > +#ifndef _DT_BINDINGS_QCOM_QCA807X_H > +#define _DT_BINDINGS_QCOM_QCA807X_H > + > +#define PSGMII_QSGMII_TX_DRIVER_140MV 0 > +#define PSGMII_QSGMII_TX_DRIVER_160MV 1 > +#define PSGMII_QSGMII_TX_DRIVER_180MV 2 > +#define PSGMII_QSGMII_TX_DRIVER_200MV 3 > +#define PSGMII_QSGMII_TX_DRIVER_220MV 4 > +#define PSGMII_QSGMII_TX_DRIVER_240MV 5 > +#define PSGMII_QSGMII_TX_DRIVER_260MV 6 > +#define PSGMII_QSGMII_TX_DRIVER_280MV 7 > +#define PSGMII_QSGMII_TX_DRIVER_300MV 8 > +#define PSGMII_QSGMII_TX_DRIVER_320MV 9 > +#define PSGMII_QSGMII_TX_DRIVER_400MV 10 > +#define PSGMII_QSGMII_TX_DRIVER_500MV 11 > +/* Default value */ > +#define PSGMII_QSGMII_TX_DRIVER_600MV 12 Its not clear what these are used for. I think these are actually package properties, so having the correctly documented in the binding would help a lot understand why we need package properties. Actually using #define like this is probably wrong. You should just have a u32 tx_driver_mv property, and list [140, 160, 180, 200, ... 600] as valid values. The driver should then convert to whatever value it should write into the register. Andrew