From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8EDC8CD5BAF for ; Thu, 21 May 2026 15:37:03 +0000 (UTC) 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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AKbRcpJVei56fyQOqAZ7glacjqY84fe4z9duLMQ4cLk=; b=GwM5EWBETT78R/ IRhQQczyZFyHkvxo5Y7NnROiAoinc/LTO1xnp74P7J7uwbKyfNR/A0kLnUxfKE2o7OkRRFdM/LjGa 7Zxpu9qVjB8u/AQ4nzki1XvqK6ePwlMQjTK4t3pnHlUF22QnbuXTxZYnI/Ag0cg5MujUxwQTeSq4O Q28HIIfob2domnh8e2vh7+5FfLdv07iiDOtpf/nJyCDdk+gblKK4/O7TtguLnzNIYjeuuZ5YsqJoZ pY539IfKF6yjwUv/ZKIUfQyGSYxYtX6z+4ZNZZnuPweanHh4ij63xR162l8DFoftIV7p6OL/IiO0j N0zjYAAXfjJTvzmyc3xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wQ5SJ-00000008LH9-19Q5; Thu, 21 May 2026 15:37:03 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wQ5SF-00000008LDW-3NSJ for linux-phy@lists.infradead.org; Thu, 21 May 2026 15:37:01 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-48ff4f8ef0dso68601655e9.3 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=lists.infradead.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=gPG732Cj5XOTGkQKmRYXAeFB9XRXKW8gVzf3CXkb0nvx+jVVJUu4Bt/QsmQ0cJuUJo h1ghoMADop66VMIrFbZ4aVOCCyPNrmFmFsEsn69LZbuqc0MttPwuVp0+t3vSHlF+Zt9r ilzudMlelfZovIFbdTBPSiKVqd4BsRdcoVmRK5Es/7lfiEqumxVu6Z7JUUpojG5Gzmgt cRqmPNB8YnDF3ALse1FyPVbAKhg94p3MknuO9sy5hclrkojf5QhV9sMDGz1Ek7r+Zto5 5lk0dLHSahR8uMohR/WuhgbRsY0xNvQHI9UbxqkO8T2aVFTabQQ/ZfQEs6LG9fZRR10k mgnQ== 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=CiQVFKCBTA7OaTY92STZfrqWzIqL7/xCU+D5GPM4tV4Isk39waCz2MqgU/L9bdl7Pl Wn/ZiOPuFqktpfyi6CPDlg10ru/r1UoK7rluOfS1eaNSuhkKQEN0UBKtc77WpJrUazW3 8PbRFER1lDl1ADF2KsOa6vURKa39XOJK/7pCsDOMNdTaT4Bxlg8F+FePuu1W2QhmemUa +ST+rYsB21wAZ1VzsfKt48J+80Ny1rCnGOXjSXGeLyAKFOGC96bIzVdWPR0WABh1vEDK qaVuaT2IHJmLo+nUDw6Zr8ME4Dcc8XOSZqZmXUvP6s2JdI7DzmL3JvvMs2aisSEgauB3 SlnQ== X-Forwarded-Encrypted: i=1; AFNElJ9a4uyDBhsLnrV6ySzzpqbbc4RkC8EYc8GZcDmUvda9hH4zPnkhjP0QppPq8Z74EGzzUMdpV6PvcsU=@lists.infradead.org X-Gm-Message-State: AOJu0YzVVysboUvJYf4vryEddPIfAQWAa4Tv/TczO7MbqFnHPuu3bFwK ktxjL7c30y1McfZF94FBD50HDC6K3VJFn8kGlpNr/HKKNXfAri544qVL X-Gm-Gg: Acq92OEMUgchp5OFgE0bfVZyc/w4KUf52iPSVstpkc5pZrSFfXqDn9979Iaf55nN7m5 xoJtu48hDBsKzbFF0N1jSZCBclnnk2PLPPeCY8lzLwHflV0DfDvWoZlopU7060As7xuABsJ6Pdc aQsXrCx1f94NcdnnKnY6yTQVyzqE/kAfCaSliSVV1AQb1CXRhH9vWcA6BdLacIN6C6XaU4IKJWt DDl2ey5DWT7xLT4lb3nFiJ8DtuWPdKIGYSKgmcHMfXMEgNVDMNpm2KU81C8VOy5+kFOvcE+RbW5 2gJ0XXWsUcKeuXGmGY4m8uXs8Y+/rlq3fWoPORlJjxX2dnpW1QyonWLGbZcz1tvPq03s0ldlsWz WKmQJ8fuFsSjTy5OIS/7BMhiiYWOp1M3+c4OeJPRmDg6p6SyPK+8D8R3sICs2xmaORDTbNdlLIo zjg27SlqdwqF+t7G2HK4OeCQbNR+65+iHArDzB1NA837KxOBGbbSGBzHYae/yXXkg= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260521_083659_894804_193410D9 X-CRM114-Status: GOOD ( 18.33 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy