From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8FAC606A32F for ; Thu, 3 Dec 2026 18:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=KYCxY3Rr; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=V/LQawBf DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=rr5WkXEmUjZRoa2NbaMEBlL/UBxGbWW/BiANXFM8tAg=; b=KYCxY3RrBcNDUYya4Ffzj3o0p1 jCWBy/HfXAnXmuMjSsu7tABI2dVlauo8L0C2Iu6L5BAdpyL+bYYkES/seBkrKQYX8PsCRvdCyAVRA 4UgiW9NaLMH3Ne82MuUAwk3+wF0+mJXkh3RnFllAH0Awhq+DEi3Wgq/X1rKV1yKSjRuEWcNK7ofp2 ARzcRKGKudIoPC5FCGI10VPRfHph1bSxq9jyU8rfInWAwb20bAc1YIE5WLEn3MSGSattB7Vr2AAWw 5+5gFu5BAG/BbQ2LRYTcpHjXU2gaTfxoXQP3znkv2/EHx1r4eyyQh00e8AZNBy5O3ay7nvppqrO+S WpmePfVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZBn0-0000000Fc7E-18Kn; Thu, 03 Dec 2026 18:44:18 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZBmz-0000000Fc6t-1Kv2 for linux-phy@lists.infradead.org; Thu, 03 Dec 2026 18:44:17 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 6FE58611D2; Thu, 3 Dec 2026 18:44:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B82B01F00898; Thu, 3 Dec 2026 18:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796323456; bh=uQjf6VfRoDjS/BzuP+01ovpfAyVIzRbn8COURQPSAU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=V/LQawBfk41shfefL5G8MxYGCiStTNRd4WT6DR9HrAxQFpNEfrpOMvZ+s+rDmSjhH euIBTOXo7Yai+vmMQfVR9j/xHNXqTx5URrcLMJgJo7CZzhBmdmDmOmwuxBZvHUVxFW 3XyKxsmURvORoJPw9FESFEUx6nbhwNkuwi1smWZMcVPNKjycRsElHJ6rlM7a41/JUm O65DWqY9Qsy1rkiDTEL7mAqw1QxERFWAcEWh3nj5PwFBPNAmOkNobP5ECAqAHA0yGg vRWKnUeVGC4P2XGnKzCNTIQ2hAlh+M9I1T0wZ8yNqBS3AYYBnFpbF1QhZMdHu+dVY9 /dCSarAcjLY2Q== Date: Thu, 3 Dec 2026 12:44:09 -0600 From: Rob Herring To: Christian Marangi Cc: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, John Crispin Subject: Re: [PATCH v5 1/3] dt-bindings: phy: airoha: Document support for AN7583 USB PHY Message-ID: <20261203184409.GA136342-robh@kernel.org> References: <20261124222452.219832-1-ansuelsmth@gmail.com> <20261124222452.219832-2-ansuelsmth@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261124222452.219832-2-ansuelsmth@gmail.com> X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Nov 24, 2026 at 11:24:31PM +0100, Christian Marangi wrote: > Add documentation for Airoha AN7583 USB PHY that describe the USB PHY > for the USB controller. > > Airoha AN7583 SoC support a maximum of 2 USB port. The USB 2.0 mode is > always supported. The USB 3.0 mode is optional and depends on the Serdes > mode currently configured on the system for the relevant USB port. > > To correctly calibrate, the USB 2.0 port require correct value in > "airoha,usb2-monitor-clk-sel" property. Both the 2 USB 2.0 port permit > selecting one of the 4 monitor clock for calibration (internal clock not > exposed to the system) but each port have only one of the 4 actually > connected in HW hence the correct value needs to be specified in DT > based on board and the physical port. Normally it's monitor clock 1 for > USB1 and monitor clock 2 for USB2. > > To correctly setup the Serdes mode attached to the USB 3.0 mode, a phys > property is required with the phandle pointing to the correct Serdes port > provided by the SCU node. Providing the phys property is optional if USB > 3.0 is not used. > > Signed-off-by: Christian Marangi > --- > .../bindings/phy/airoha,an7583-usb-phy.yaml | 133 ++++++++++++++++++ > 1 file changed, 133 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/airoha,an7583-usb-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/airoha,an7583-usb-phy.yaml b/Documentation/devicetree/bindings/phy/airoha,an7583-usb-phy.yaml > new file mode 100644 > index 000000000000..f1a5d83e8968 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/airoha,an7583-usb-phy.yaml > @@ -0,0 +1,133 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/airoha,an7583-usb-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Airoha AN7583 SoC USB PHY > + > +maintainers: > + - Christian Marangi > + > +description: > > + The Airoha AN7583 SoC USB PHY describes the USB PHY for the USB controller.. > + > + Airoha AN7583 SoC support a maximum of 2 USB port. The USB 2.0 mode is > + always supported. The USB 3.0 mode is optional and depends on the Serdes > + mode currently configured on the system for the relevant USB port. > + > + On Airoha AN7583 there is an unified PHY implementation where a single > + PHY provide support for both the 2 USB 2.0 port and > + optionally one 3.0 USB. > + > +properties: > + compatible: > + const: airoha,an7583-usb-phy > + > + reg: > + items: > + - description: phy register > + - description: ana register > + - description: pma register > + - description: dig register > + > + reg-names: > + items: > + - const: phy > + - const: ana > + - const: pma > + - const: dig > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + usb3-phy: > + type: object > + > + properties: > + phys: > + items: > + - description: phandle to Serdes PHY > + > + '#phy-cells': > + description: The cell contains the mode, PHY_TYPE_USB2 or PHY_TYPE_USB3, > + as defined in dt-bindings/phy/phy.h. > + const: 1 > + > + required: > + - phys > + - '#phy-cells' > + > + additionalProperties: false > + > +patternProperties: > + '^usb2-phy@[0-9a-f]+$': > + type: object > + > + properties: > + reg: > + enum: [0x0, 0x1000] > + > + airoha,usb2-monitor-clk-sel: > + description: Describe what oscillator across the available 4 > + should be selected for USB 2.0 Slew Rate calibration. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1, 2, 3] Move this to the parent node and make it a 2 entry array. Problem solved for removing the child nodes. Rob -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy