Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1074106rdb; Fri, 2 Feb 2024 12:45:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6VX4968JTnGAcqlNUMrhoznCIYTgrChKuDvDesP/eTk85evbiwYUUtxT02ChylT0NKbi0 X-Received: by 2002:a05:6a20:4e07:b0:19c:a30b:89e with SMTP id gk7-20020a056a204e0700b0019ca30b089emr6492742pzb.16.1706906751138; Fri, 02 Feb 2024 12:45:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706906751; cv=pass; d=google.com; s=arc-20160816; b=F84G2GdaR1Fao7zkIFPuuA8cJLZD+9iKBemxsQmBWMKzYB5igcggoflUnidCKhtE/R RPThNVmcy5uked6dofPhA54TdTfurd6E+Vbregrdud1Jwgz4PMEuSDjatz272JK4esZq 2zA0AmDzo3p+bBlG8HN9cWXeBZo5eQ86UUf083/DSW0VWYlIsiqkvADfLMCg1wQXh6aW I8LbeWkAVbMWBoKGtMOceCNPZmREB+FtP3X9Tm2m7PRm7L5ADxdHPpVSH6rMdG8R0F+I f8yJ/RHn1tsmfiSqUf3HDBSBqh36DyDlCRdyDpNumbWluRhIvaLs1CtGc4yOXPojORb/ txfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sJfd63aSQHrk7NYIYjnzZersfMm5L3qiq1gpmzgVIqc=; fh=GbApbb7eyp8+2yczghOpzaYIx3h15CTWkP1E6H0VFPI=; b=BYSFIjlaRgbLzqdyuzAruXIc/xfDJopW3NNdduzkdvU7HcFk4xvvu9OKodXtHADDP8 D9ydHXtVqjQLxm84QkJvK9/j7Tj4KcJm7ZKFWrS/IP08z9sjOy1ic+TJx2l/L/vdEkvr 7gdAYDplmHXoB/z/ErVkgFn5NyYyx7AghlrwsqT7diLYYo4pN1T2W36ioy2Q8VjSjkQv wcgHYGkXjsXcIypiZNEQgmCc+WDTAUjg6kRipaMaxUGz2amZkY07eZYa94ud+wJzVz1g uxZw0KwPhUVmWUdDuPqZ1yNZuA13I5DjW0BBTWesldWkVMW/a8v9pr9UGcugFJ0N7kRw h1NQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="daMElx/P"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWQ6QZ36D25yx4Onf1skNSpuk6kWlCq4/HBNiJ6CBuWNwpp9s57pc6shij4PjMdxdb1839Y9N9KwZ0tE6pk2cE1dq1OaygB4d1u3+xn7Q== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y194-20020a62cecb000000b006dd8105f032si2007552pfg.195.2024.02.02.12.45.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 12:45:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="daMElx/P"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C7DB728C7DD for ; Fri, 2 Feb 2024 20:45:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2D727A72D; Fri, 2 Feb 2024 20:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="daMElx/P" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF1FF182AE; Fri, 2 Feb 2024 20:45:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706906738; cv=none; b=SZn1L4Hq+WazEG1D2nshxAbbE7jeO2uzrbDEN2qh4rgX2fCReMdpX2HxiBoKM2I0+dP+S9JFYlP3l2eKON4o8f2LytG0r4O0TEvP/CYPalgjrl8WQdCojuc6SLO61yaJqRtPm8iPYXZv0WxpVndqd4q797efr5nCDi3pc8o6IuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706906738; c=relaxed/simple; bh=C/VMZZQUDDRS58ykeTSF3+aBedhLWIE8vgnf5IcVwP8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=as8X5D2t385/8WSBCf3Gk6v2BoWNiEaXseBpe2GkpiypyUgd7qmGJj7GbdNK9GUVKdVWZLTpUuq74PvUQdJ8zR/4ZdNdUs+T8z+ES4d+sffmLTnYjir0SC1vnGT/MKCUiJ2/dDF+NLKgd2gzmn9yIMWl8jNjhe88DoQMA4uIOWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=daMElx/P; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69277C433C7; Fri, 2 Feb 2024 20:45:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706906738; bh=C/VMZZQUDDRS58ykeTSF3+aBedhLWIE8vgnf5IcVwP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=daMElx/PKpI8YTRhsyTr/jvScSii2tQ8GF91s6fySyRKJByq3Sn1D3JifvWoEAnUc O6ZNJXb4+Uw5Elp2kTusqHZ8TUVLINsY+9gcsm2BJKe+v1YJcefZUi/5QswfYO6DBt Zs6Ef3eeqIUPqrh6XyrL3qdh4cTeuI/++VXMVBmGSTSKe8k41SCaFe0SodvjuK0bY1 cl8o75Oy6PofpDtta2YbciQXQuWhnHH3T6RJKgmKcbuh4PyY9jzJyvh804+olgVnxV aT78kPZ4I+aLhkd0y+3L4pUi/A0/RLX8XXnAnVQv4XOqjs68C3mRw4LFxXW9tmdv9s HAv1KoW3N6qug== Date: Fri, 2 Feb 2024 14:45:36 -0600 From: Rob Herring To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Andrew Lunn , Heiner Kallweit , Russell King , Frank Rowand , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v5 6/9] dt-bindings: net: Document Qcom QCA807x PHY package Message-ID: <20240202204536.GB1075521-robh@kernel.org> References: <20240201151747.7524-1-ansuelsmth@gmail.com> <20240201151747.7524-7-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201151747.7524-7-ansuelsmth@gmail.com> On Thu, Feb 01, 2024 at 04:17:32PM +0100, Christian Marangi wrote: > Document Qcom QCA807x PHY package. > > Qualcomm QCA807X Ethernet PHY is PHY package of 2 or 5 > IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and > 1000BASE-T PHY-s. > > Document the required property to make the PHY package correctly > configure and work. > > Signed-off-by: Christian Marangi > --- > .../devicetree/bindings/net/qcom,qca807x.yaml | 142 ++++++++++++++++++ > 1 file changed, 142 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/qcom,qca807x.yaml > > diff --git a/Documentation/devicetree/bindings/net/qcom,qca807x.yaml b/Documentation/devicetree/bindings/net/qcom,qca807x.yaml > new file mode 100644 > index 000000000000..1c3692897b02 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/qcom,qca807x.yaml > @@ -0,0 +1,142 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/qcom,qca807x.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm QCA807X Ethernet PHY > + > +maintainers: > + - Christian Marangi > + - Robert Marko > + > +description: | > + Qualcomm QCA807X Ethernet PHY is PHY package of 2 or 5 > + IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and > + 1000BASE-T PHY-s. > + > + They feature 2 SerDes, one for PSGMII or QSGMII connection with > + MAC, while second one is SGMII for connection to MAC or fiber. > + > + Both models have a combo port that supports 1000BASE-X and > + 100BASE-FX fiber. > + > + Each PHY inside of QCA807x series has 4 digitally controlled > + output only pins that natively drive LED-s for up to 2 attached > + LEDs. Some vendor also use these 4 output for GPIO usage without > + attaching LEDs. > + > + Note that output pins can be set to drive LEDs OR GPIO, mixed > + definition are not accepted. > + > + PHY package can be configured in 3 mode following this table: > + > + First Serdes mode Second Serdes mode > + Option 1 PSGMII for copper Disabled > + ports 0-4 > + Option 2 PSGMII for copper 1000BASE-X / 100BASE-FX > + ports 0-4 > + Option 3 QSGMII for copper SGMII for > + ports 0-3 copper port 4 > + > +$ref: ethernet-phy-package.yaml# > + > +properties: > + compatible: > + const: qcom,qca807x-package > + > + qcom,package-mode: > + enum: > + - qsgmii > + - psgmii > + > + qcom,tx-driver-strength: > + description: set the TX Amplifier value in mv. > + If not defined, 600mw is set by default. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [140, 160, 180, 200, 220, > + 240, 260, 280, 300, 320, > + 400, 500, 600] > + > +patternProperties: > + ^ethernet-phy(@[a-f0-9]+)?$: I don't get how an address is optional. Rob