From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58D56366814 for ; Thu, 21 May 2026 15:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779377822; cv=none; b=mxLPxbd/jiSUYBfFs03r8sqf0zd8OzAmYQlEgXtogus41a3e00vTOcs+g3zJ1zFFGD9ZIdpln9teRMctOvKMB28F3PkcUTrE5mGFfMQXdifOK2ykQbHktJLiuP7Uh7i36NYJZ/s4K1kezqJ4+r3aB+jhVpOnx9PhoNQmRY6SsRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779377822; c=relaxed/simple; bh=qnJ6lEJILLeq57ziFnJ/tdvg1mnErt8MEYpEx0zbJC0=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Z9cV0qnzcIlQokD6egbQ1mrlptvBCJb9AKINSgLzcvSl/jTwgQ+gWRwO54YLLE4pqUSVw2hglUbzoQSGHLwhfHfE1WvPFBuSDN20EzZF1nndabp6saAxOurp0dc7/R9AEubq1p5cZBe7RMfqSfeRop3rSVC5CXf//GfN9Haw0Ww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PMnKmljp; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PMnKmljp" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-49040362e4aso885285e9.0 for ; Thu, 21 May 2026 08:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779377818; x=1779982618; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rIXM1te+ieHNM+6xW1gwzAdkuvYjOEEfP1FJY4/MyNs=; b=PMnKmljpni5bSAgnAmd12bY/0kGesC+W0bZ7T/0tQ/18D0mNv17neyXjg6FuguFFfS o0J5Z4UmHOdaN9630DNQQuzGtUqj6oumbvXgmdLxpQ/s6YEFqxl5Y0yJCn5IjHNyMb8a 2Kg8PUZui6kEVKMZ0k9T1JLq+GIusBpOLm6/k2auobsjPezHkfF/5N5ZR+xVTdhXtnoP z9pGYX9hlCwQNfixV2/UlMZ5RrhlBQXJnTqbZQBwr//3ZI2qrzfAIR41Zakq1DgphxEu IyDNetVvlznotNp5cU06F1xKTlNpbxltRtVZsYL69iA5LDjYpB2xprxKUTz44VIzFN7Y nQ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779377818; x=1779982618; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=rIXM1te+ieHNM+6xW1gwzAdkuvYjOEEfP1FJY4/MyNs=; b=nhLQe16emkm8us1cDs3LIJuwSWIxQkt/zDtcrA5CWGcXIK1cxrtDQePE3vGw/iGgid NjT1Qaww9m8NiD992D7BIooNgloTmIHkoYLBOAPruK+zKgNunsh4VCUcK0MCa/Q25HN2 Rbqs94HEz7qv+YnTZx9jwtQ6hKo2JagRjfzmlmJg0kbeuwJskowCZAW3+C3JLkUjV7ms jm5ILtrtk/UBoCIEeD5M//b3tXF1oqolhLEAKDy71PSYf0EnG5xgoabEp3s+HtW0rcj2 1Li/hmXavqRwJYihimk0cN7i27Plh4CX0AFVJXdKQZFSpvXQtR150vgh+k7QK+8HWOiX iZkQ== X-Forwarded-Encrypted: i=1; AFNElJ9ArCAfmhuN6wih4xAiojiFYCz/XDaMTq7WCz0fsAHIt+TMLdk6FETM07ArPWPtkPRdEDMhgY9Khe0MXXo=@vger.kernel.org X-Gm-Message-State: AOJu0YzQ11a5L2D4s5gv+VV+WBp/pa803APBvwCZguTB+x4Xdcw8QQeX /0brSWjC1z6ys3BzNmaCt/mPDRXOlVxgWVerizRiWM63xwsqztifK3m4 X-Gm-Gg: Acq92OGBSW9ri2odTEHJpfFqMjR0RroyVOaPB9pMRboEmsiaaZ4LKYTTQQn+2BjPkEi l2nUyPmBF9UxQ4UdGEl2Fkrmbp1DaGIh2aCbGjH0F5g2mVc/J4BpwSadDP5y50WmS8GOa2LhlvG PUUvYYI7brMoUEBxDBtJVyHDrV7kDUo99G8GqXjna3gUQoRjkAAjGmc97Y9RwjG0A/ATOuR70uA pVHUvDoWUEXhWiGP3csRwOhUnV1CUs+oqvscwO6BN550IgLfebo7ibo+8DcTELb8CLCgP4tWQV0 EIOzreLkrcVM85q8AufjB6+3sbBjLbJIuP8+nX+X6P6WvA1VFLWH/UmGGZaCWTVX4UqYRMqFNof b28gLT4UZZYF4czvOsxqAhfiQfHQZ5VHbJrOILsTVIWF45oD9eQRFflitD/a7jm6sUsCTNYMN9C dGkYbqucQ4X/8L1ZZ+Vvn502IK2g2Vv7vuwquYgi0i22uUT5DD0xGFkem7F6g9pa8= X-Received: by 2002:a05:600c:1f8d:b0:489:5022:39a4 with SMTP id 5b1f17b1804b1-49036041cbdmr49662045e9.9.1779377817541; Thu, 21 May 2026 08:36:57 -0700 (PDT) Received: from Ansuel-XPS24 (host-79-22-5-99.retail.telecomitalia.it. [79.22.5.99]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49033d9edcbsm79159825e9.13.2026.05.21.08.36.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 08:36:56 -0700 (PDT) From: Christian Marangi To: Michael Turquette , Stephen Boyd , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christian Marangi , Vinod Koul , Neil Armstrong , Lorenzo Bianconi , Felix Fietkau , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org Subject: [PATCH v9 2/5] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY Date: Thu, 21 May 2026 17:35:53 +0200 Message-ID: <20260521153645.7028-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260521153645.7028-1-ansuelsmth@gmail.com> References: <20260521153645.7028-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add documentation for Airoha AN7581 USB PHY that describe the USB PHY for the USB controller. Airoha AN7581 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,an7581-usb-phy.yaml | 62 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml b/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml new file mode 100644 index 000000000000..f42e3d49a61f --- /dev/null +++ b/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/airoha,an7581-usb-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha AN7581 SoC USB PHY + +maintainers: + - Christian Marangi + +description: > + The Airoha AN7581 SoC USB PHY describes the USB PHY for the USB controller. + + Airoha AN7581 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. + +properties: + compatible: + const: airoha,an7581-usb-phy + + reg: + maxItems: 1 + + 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] + + phys: + items: + - description: phandle to Serdes PHY. Optional if USB 3.0 is not used. + + '#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: + - compatible + - reg + - airoha,usb2-monitor-clk-sel + - '#phy-cells' + +additionalProperties: false + +examples: + - | + #include + + phy@1fac0000 { + compatible = "airoha,an7581-usb-phy"; + reg = <0x1fac0000 0x10000>; + + airoha,usb2-monitor-clk-sel = <1>; + phys = <&scu AIROHA_SCU_SERDES_USB1>; + + #phy-cells = <1>; + }; + diff --git a/MAINTAINERS b/MAINTAINERS index 21c0ef0b9ce5..932044785a39 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -771,6 +771,12 @@ S: Maintained F: Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml F: drivers/spi/spi-airoha-snfi.c +AIROHA USB PHY DRIVER +M: Christian Marangi +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml + AIRSPY MEDIA DRIVER L: linux-media@vger.kernel.org S: Orphan -- 2.53.0