From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 746484963BF for ; Thu, 2 Jul 2026 09:38:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985109; cv=none; b=eGuyILGg+QZWAhSVMEACZThj454WEQXNno/yMNiIpRav88EIbqV7XX/je05Hji1Qq8Ww/3B3mcXOixJ7ym5nLPfliSdaqm++75WLoYABax/Vj3JfG82T2PQqfv8PgzRFHTFV8lH0HPDIzL5KS2sQoGv1g9LTUXBmS6eWRDcro8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985109; c=relaxed/simple; bh=ynuOULMP4iOziuYv2J6d3jxrIlvxTnPee/5KsaaChHA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kd4+mB2ha9Hs+neniwbd2lLks169GABzhVXCpXavbKxDoEYwX/J+RLbNzEl8f6ZlXk/x3mOPfWUXl3VVB/ZejOp9krD6dh/IPC6XozrjHLs0GV4Ckh7HgMJXZr+1qA1tkKVJVt1E+oaXoIE9p4vZS55/Ei70l0GJLKvJUgomBOA= 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=KMhwP1vF; arc=none smtp.client-ip=209.85.221.41 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="KMhwP1vF" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-474e7ba9fd6so912691f8f.1 for ; Thu, 02 Jul 2026 02:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782985106; x=1783589906; 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=mb7TOOIuiwseKoR6/vRO7kfdbaChj9w+25XESDqQWTA=; b=KMhwP1vFj+aFlEPC4EqjP7vLE/ysusCeUm0nfr6NZhQn/4U/GDZbt7cPyclzRLC5qh pVtf+XfNo9ejWJdyZdrBWT8PfbS6rilmfqHfZbM0oue7E8XDItWBdEMH1yRA6X6CZBqx +dM7xOEKLAphHOzfE+aLSi84Jn6HoLlRw2j5LIhnpPqiPSo1Lt4xASSvEv55UjzJ5C25 +FcwWzIctDMYsncY7xbOEvPLiusSmym+iD3mQPmbisIBLF8bOCMhQwzn7/yY45gpNt6E kCfG7BRWaOtt1jYOWpVh87PumM90zV5LSN0YBPtJ60ODx3Rv5opoCUAT4Fk0Cd6h/rj1 0deA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782985106; x=1783589906; 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=mb7TOOIuiwseKoR6/vRO7kfdbaChj9w+25XESDqQWTA=; b=pyq+8n6wRbiLQVI/btjjzQyHd0OuUXgudIZTp+yTwnT05Wrm8KZe9Jj9VFnA+otAsr kyM2hBSAzIpBAFwwDQJ3o9mf2r997HyDJb22pXu/+mofcM2+OKnaj9x4SeWpFZ9SHoW5 XPg6W4g8BOaDI7vbFCkD6zPWelJjVc6udI8m4y3l0bLI8p0tmVcFAGVYYuERthMH0uEp Gw+8gq9blY246j5kywOs3N6JOCXS9xhLkef/ZzKt4kuHUiiSp24sAvD2I+PNa2vSGJ9b Dc6qvsOxz/DyH958OoBEU6rs0p836a6cKiOwVq9QQokTMIf0vRfGimMLigbBbwsJi06U VAqA== X-Forwarded-Encrypted: i=1; AFNElJ8sVbyLF8IXkGr+qOuo/ZY6p88/qW8sTyuBDXB9KdkvjXIx+R0kvRLzxbVDnNjCuKV7Ml2xCSzdaCcall4=@vger.kernel.org X-Gm-Message-State: AOJu0YweKCDBptOyQTiAB40KtHFJsMIwBwh8Dwyn3IwbY1sPL9QMF626 PtcWYc0Dich6SJ3BXQnpI2WScAEeAg/UjS/cZ2L0RrNpZcDXjrTuHOE7 X-Gm-Gg: AfdE7cniPnZM0NYYlMJKHualVP++kKnr7T4+/j1jkt3BEBYu9M4/oQfCgx1TEvsc+8H Of8U1a7mVLkrqFxzYt4GcG74xbkHjvRDuy/kHe/cgAeV1s6/3dTss+hn7R3N7OkXH3ZNQneOVrS nYmi1tZSEPHo1CV0NMqkKUkUmOYRUoBrp9uySoI4y8Yl/b0FxeikxE68nDqbPceWd+b1OzYrbJX rOenrPi47eV35XDJ3ra+pw9g7LGyIa/0nGHWbyx9oOLEmlekHFrTyxoGkLWK39KPz3t4Ga/X3y4 KxLmQ66l8x8+wuqg5HjyPDKIJQkOYCiB/ypeAl+UH92nW/1Rb9MYSJsOwX3JyoAwVrJdhBwCDpb ssqKW3RaY4HqoeutMmFufsrrhGQqqLALgafVGefCiyywOXpcm/otX0/HTb7vS1SGWTYcFfwxrAo uDpntGvSbz446NM1Tn99iesltGuPYQGE99fpTejSqVgK6CpRodhDMdhu8t5IUKV7hX+c9CyTgUw kl+nA== X-Received: by 2002:a05:600c:5296:b0:492:6efc:7c60 with SMTP id 5b1f17b1804b1-493c2b99781mr72214405e9.28.1782985105669; Thu, 02 Jul 2026 02:38:25 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-52-250-217.retail.telecomitalia.it. [79.52.250.217]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-493c636c8b9sm35502285e9.10.2026.07.02.02.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 02:38:25 -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 Cc: Krzysztof Kozlowski Subject: [PATCH v10 2/5] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY Date: Thu, 2 Jul 2026 11:38:07 +0200 Message-ID: <20260702093812.15918-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260702093812.15918-1-ansuelsmth@gmail.com> References: <20260702093812.15918-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 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 1705eb823dd0..05e90c3f7fe0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -777,6 +777,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