From nobody Wed Apr 8 09:27:27 2026 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.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 F249439890F for ; Fri, 6 Mar 2026 19:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772823734; cv=none; b=Is2oiQZ8W4MD3IDzHGic5kTyqKoqUBN5AQL+/1XYd3mbrO8J894hXjHVNh2bLLTg7OlvxnWkCSV9LEkVAMMy7MSceg3UmYf3LUi3cNwg1+VemkNFkm+XR1reMLcQoe5nkJu1oiXe6BFi0G/h31fLvRpjjMkSMtyT95c7u6JwTvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772823734; c=relaxed/simple; bh=H1e4gqaV2JetLMM4A8QT65Ya0OhayTEFoaSkzjmmcGA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VuPehMz+1plGI+qUo5SyTYnernOgUoQNb88t+SfVKMWSsklWFslA4By8cAc0+elxsQAl3q3MFqe8JBr9HFc2DUuB18G+xXpOi1xytBx99SOQYBxiLv9u5ZfNsCpOw+JGECGe1anHTPWt2pl9WMoFvzMi7Zp1zbRPmuJUYnyBPdQ= 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=ZCVmjgpo; arc=none smtp.client-ip=209.85.221.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="ZCVmjgpo" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-439b7c2788dso4296197f8f.1 for ; Fri, 06 Mar 2026 11:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772823726; x=1773428526; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h38h80KHifUI84SS+z6wlkgcplrzkREaoXBLQFpmips=; b=ZCVmjgpoFsh7ObCq2VbX/duLr8drysISlkYJX+O40zlH/RmeJdDLKAFdg51Nl1vRw+ k8DPqcnhUSd1gQ97qwL7dxMwrllFKcnlQK7+UhOcmTjSB/pKt+30EicOkX2b2hKLrIoO wEn3eBsAu8juzyPclF95elSx8t7+mNu3AETdnNU7F9rZayEUcTSVIojUXPPIFC4Dw1wX Fet8EIf8euUsGHwrgTV1OYch6ukyP5WP+jrI2bdJGuCfSqAzL+gkbz7zt0mvKmK+8sO0 +i2qRm07ZJyVuSyp5AuqSqtA2qPaX96B93yxTWOdbcunqekRIEwPGR3SRZVB/j3JPV5u ewTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772823726; x=1773428526; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=h38h80KHifUI84SS+z6wlkgcplrzkREaoXBLQFpmips=; b=m72qDXLu8V4PeAnBlFiiCwkwf7YgKv7oiBffSKnEixEnLSA8fVXhQSstckmuelc29C gBYohH98jcfH3zswSrd0CRftjLlhSwF0NpgZ+z2fubXMvI26qwc0HvJkFb12IB/0IwD2 jTbdMgFRwhssu4TcIBCWPROo8DnRfVQKhBIcyqK//GVGfy5ReI/lUqYhVgh3qFf1/2je KGNW/VvqMwLhQyJw6/syznikXeIFKy0Wd5yx9NdHx4byOi0J2jxyYpXUQEKp9OF69lDe k9DVK7EP7LC6ie6QK4HNyEIkVtZYB2UC64iQd4pLOfYC3xInrFU9qAxm+BgI1RcNYaaY kETQ== X-Forwarded-Encrypted: i=1; AJvYcCWisBIIHR3eEpMJt1rUOdlEW7NJTqhhCNcbTtD+UwLruOkMI0YAbWGwVKgjd1pJG5uvM/MgApFcAq/SOSA=@vger.kernel.org X-Gm-Message-State: AOJu0YzvkfPe5CKQhrHzM5rK9UzOKCZDlxq7P1elZVBs5wulv8uXZMmR nDynLz6/sm2LX6AEfsZkVrkCpIoh6Yyn9vb7WQkpO3bPAJvgFZTap65Z X-Gm-Gg: ATEYQzw0LNOBf+nVtq+f5gKoEBDo8/PLmWyg3WsC6lqaGmrHndCYP6d9EuhlscvNQ1G MTMRhdgkTqtsxYEOni8vd7duhtJPiWIXduQ7JIiigH1qFfKnLn622lKbjcDh12oU6gHuX6+Nq+C vw90eYyZukIkVFPpIQ8kcGsfq+N6f79EdkS/KYsaLW2zyi4vIRnLwPIFlw+LNnZ0ELD89m8yh+H kc1+WD1NeCRFPQEIwE9v3tyHJsNkZ+zqnf5w6ODTq9W6JAfyY23MGNrFqeN5PFOgz7fomf1NJB2 18EGGi9wbQ8wI0V1xoZQidBcFLqdy4lw1J+9iIZ95WQgok57koYETP2YNLt6bmqqWonVLBQClue UASGYX1kpUtUPfz7CfAJgtnQxkl7MyEHrpazsf7bG61JK8XvePoYK7yaYFKVXNTFgH4tJ0O9xBC WB9uz5BQAhoeGjDF/5F/q6oGOhV8isjrRwCwWFqYv9mxWFawX9QFnhFUw= X-Received: by 2002:a05:6000:26c7:b0:439:b79d:b9ac with SMTP id ffacd0b85a97d-439da67c237mr5354464f8f.45.1772823725737; Fri, 06 Mar 2026 11:02:05 -0800 (PST) Received: from Ansuel-XPS24 (93-34-88-122.ip49.fastwebnet.it. [93.34.88.122]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-439dae2ba66sm4743436f8f.20.2026.03.06.11.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 11:02:05 -0800 (PST) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Conor Dooley Subject: [PATCH v6 2/4] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY Date: Fri, 6 Mar 2026 20:01:51 +0100 Message-ID: <20260306190156.22297-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260306190156.22297-1-ansuelsmth@gmail.com> References: <20260306190156.22297-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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, the "airoha,usb3-serdes" property is required. This can be either AIROHA_SCU_SERDES_USB1 or AIROHA_SCU_SERDES_USB2 and is used to identify what modes support the PHY and what register to use to setup the requested mode. The first USB port on the SoC can be both used for USB 3.0 operation or Ethernet (HSGMII). The second USB port on the SoC can be both used for USB 3.0 operation or for an additional PCIe line. Signed-off-by: Christian Marangi Reviewed-by: Conor Dooley --- .../bindings/phy/airoha,an7581-usb-phy.yaml | 71 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/airoha,an7581-usb= -phy.yaml diff --git a/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.ya= ml b/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml new file mode 100644 index 000000000000..ec467fb7f971 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml @@ -0,0 +1,71 @@ +# 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 controll= er. + + 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. + + The first USB port on the SoC can be both used for USB 3.0 operation or + Ethernet (HSGMII). + The second USB port on the SoC can be both used for USB 3.0 operation or + for an additional PCIe line. + +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] + + airoha,usb3-serdes: + description: Describe what Serdes line is attached to the USB 3.0 port. + Can be either AIROHA_SCU_SERDES_USB1 or AIROHA_SCU_SERDES_USB2 as + defined in dt-bindings/soc/airoha,scu-ssr.h + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + '#phy-cells': + description: The cell contains the mode, PHY_TYPE_USB2 or PHY_TYPE_USB= 3, + as defined in dt-bindings/phy/phy.h. + const: 1 + +required: + - compatible + - reg + - airoha,usb2-monitor-clk-sel + - airoha,usb3-serdes + - '#phy-cells' + +additionalProperties: false + +examples: + - | + #include + + phy@1fac0000 { + compatible =3D "airoha,an7581-usb-phy"; + reg =3D <0x1fac0000 0x10000>; + + airoha,usb2-monitor-clk-sel =3D <1>; + airoha,usb3-serdes =3D ; + + #phy-cells =3D <1>; + }; + diff --git a/MAINTAINERS b/MAINTAINERS index 364f0bec8748..d75f59118a9a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -779,6 +779,12 @@ S: Maintained F: Documentation/devicetree/bindings/spi/airoha,en7581-snand.yaml F: drivers/spi/spi-airoha-snfi.c =20 +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 --=20 2.51.0