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 C881FCA5FC1 for ; Wed, 30 Sep 2026 07:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jaOi9SgQBlcEjje0pSLuoVl2zNe4f+4W9jub/av1TQM=; b=iMw55oCgsALbJ0wez9VHZ0zioc x9bsWrnbk3y+cUMHQqVZcxn7V3S6OfJEMik7K5PjbeMe7p8fLDzIAGTkUoY9MzgSWcAbcLqSPL72F a31SUZETu7lDBzSIbsTO4J6fTKe6NjKLUVWoHXdQgCM3JhrUK4p1YdOr82tV7WX6DeIIkmlgkLpJj r5l/OrDy3R/mayP9bPbK9+0YvVZ3T3JrizbFtYNavcgA/ANZ9a0J+Gu839CW2rTyqHppf0nTvJekT Jrj3RAkbb3vJXRy33uP1vfo5bmtjvlWfghSz9jsDbRzGOyBgS9SIy7vByo7soZzZug31woFnFZoAC /EQQeJiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xBoaZ-00000005FmK-0vNe; Wed, 30 Sep 2026 07:18:51 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xBoaQ-00000005Fj7-0Wkk for linux-arm-kernel@bombadil.infradead.org; Wed, 30 Sep 2026 07:18:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=jaOi9SgQBlcEjje0pSLuoVl2zNe4f+4W9jub/av1TQM=; b=RNQ1CNa2GyGxzeKz9EgPVrA0Nz r7+eVxD8nfo2+zsJcmV3OQY/jCpBGLb/BHeMZsJRPtSbwuzaaFAlD9tIZoKUtNZDCV80L8xR5v6QQ z+sSA8PiAHCgyTyxrUb6abh8g3dxvU2zdUvjTNxNl5bVldoHq4kRLSJQQPsaZI4/V3kytrriAQjDU kqpxF/c0bqo4hnBdLsVvyB9elzRDGZGW2Gun1TVaYbdDbr8mN1zasuf4fflnVJfGBG3zIJSUSI1Pu V+l9NTiYzNRYy4v9I8XmKOwlXyrZWMamTCjQoF9Yrk+vAaVszmbBllWA8K0Ohwd+J3kEImwqlK0Z5 LMrX02dA==; Received: from mail-wm2-x10.google.com ([2a00:1450:4864:31::10]) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1xBoaM-00000003Sgc-2ol6 for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2026 07:18:40 +0000 Received: by mail-wm2-x10.google.com with SMTP id 5b1f17b1804b1-4a003bd18e5so16331525e9.0 for ; Wed, 30 Sep 2026 00:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790752717; x=1791357517; darn=lists.infradead.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:content-type; bh=jaOi9SgQBlcEjje0pSLuoVl2zNe4f+4W9jub/av1TQM=; b=IpTZ0OdHzPQ5uzmpwWtldITwrNEUVUXp7NPnQimt4AjBTryvNuxQ+BWPBV3sMF7bw2 pGrUL9FB573yvcbxvMJFat594/ahOrpgeLbb5TSqYSEcyUJuvkbxzNdu5I71i2kp/JMK tKgbEs4ZiWmhCR3l6zLYOmsaeyHRsOque3pUdNrOXNJWpU9rvH1mBNruG11cxt2lTuDz EEwlETsN3/5aP6tB05ZzzDV0MPYipTxDE2PoFEFx9Eo8PntrvJpIA107DH1s0Unr8zzD a1TS++o9SLBWHwI9/l+R7FEvxWj06xXNkB/vPLvdVZvCkZ5zk8azNz1VCtdz70+LZ+x/ xy1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790752717; x=1791357517; 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:content-type; bh=jaOi9SgQBlcEjje0pSLuoVl2zNe4f+4W9jub/av1TQM=; b=YR/8bmre9HWIF2cOn94VuKAUOPVFSDX1wtvMKiE83Z0F+khoN1UPq1XbYdSoP7dwZg LcoF0wKSwwri8Di9GcdvDYQ3ZxOzYS76tv8xFMvGE4AvH0FIoFQJ5w+omw0JIYGcBo7o D5VTguGgEVrg/zspVvgHxjJpJqRyyTN3a5MP7hV9hsvYJcG2ZUpP6oPWwn7fB0a46H/e 45OypT8VuVdVK8KF+pr4PspLT0v0Dh4SPIhBZJDjghvECIvVNsQzRiVvMEL1w/WSbMkj dLIfKmU3vMykeAmGe6SSz/kwJBRCytrplIt3KybzZ0mGv+wr+r1l1SvvkQoZmTOqGyxd L/8w== X-Forwarded-Encrypted: i=1; AKwUvBy/1p37if6aACe+0uVe8emVefZeVzXEX1BTuXmu1zt+NknOzvy8lIHmgQvcBlc+3DcX9+CMblOpduXrM1+c9Cx8@lists.infradead.org X-Gm-Message-State: AFuF++kS1FK4mXKlgAboP/IgCPGbxjCsNkSB6c87rIG6jrY/iL/0qhCG 4gfdfbpZl+qmskVf1x47P3xUmZcor1t7QSY2635vDBziMMX0yZKd0+Xh X-Gm-Gg: AYBFou0iiCn5yeeHt3lcVfMyvS4+xb0wQs19QHzZDrAOTmuhtDhhn3grxd6AC8V0Yxv PZT7eccPKaiAcsyrLS5/kwxc7sYNTErIeFWAmXR9dgDIwYw74w6uFMKZ4B2DnNIFaeHSzQJYHZP RsZb6qmN5ND54nXyD7jKA7klpk4QxX2c+8kvIwt3MOHAcp/FjCQca+iSxRPTTDgmB+sV2fdcUAV MWBSwQ+56y8U/kPP2w1N6HIvUyIyjGPuw0iTbqT9jeD3eaHOXzXqz24Dmxnc8o4f2pS+XbFOORf 4FNgn5vv73BOQTLWovEttQPN1P6CopOiQhweMdN5y4gc+2NLAvBOyRZ5S9IY+yAHRqNtw21PgMt qP2IhUlM/2XKVAQusQ2pwqFZjniga9zsyUM+MN3prXwDYViG44DbVdAOOtnTQ5lzEsKxWhMNoXm /gCVTukU5aaalEI/nHEJuGytqxSzUcjAIV0J1O9NoT968yTxS1X//3hyRKiVJikSWka/ZgXHCxZ YvbSuq4/AtQTbrEaXCtaVxXGob+bYULRQ9+wSLOdZAWxtdfOu92yc/tNp3HdQmH X-Received: by 2002:a05:600c:6815:b0:49f:f963:7093 with SMTP id 5b1f17b1804b1-4a01b00d679mr6300785e9.23.1790752716700; Wed, 30 Sep 2026 00:18:36 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-82-57-191-234.retail.telecomitalia.it. [82.57.191.234]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4a01b1e79e4sm10590905e9.2.2026.09.30.00.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 00:18:36 -0700 (PDT) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , 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: Krzysztof Kozlowski Subject: [PATCH v12 1/3] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY Date: Wed, 30 Sep 2026 09:18:17 +0200 Message-ID: <20260930071826.48811-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930071826.48811-1-ansuelsmth@gmail.com> References: <20260930071826.48811-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260930_081838_945380_E754C266 X-CRM114-Status: GOOD ( 21.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 Reviewed-by: Krzysztof Kozlowski --- .../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 70a11f2ff61d..0b9946c532af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -785,6 +785,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.55.0