From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 B9ECF3769FD for ; Mon, 5 Oct 2026 10:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791197755; cv=none; b=u/K3+G8SS0+r8pZ9MJ3dFsM3fcyDdV02kqe/t+RPudt8OIO1RxAfhVJruGDM67dG02NwZi1y0G1e4F7NlqzRf+qd3HlMMk0isDum7iHKSBIGknGXknciG7aAUCgjy+BtocAXFHRYtw+u8wLXnDq2IBkwSWNlIz8BKg01SKSjbjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791197755; c=relaxed/simple; bh=5UG4E5DnIc6hOxuaTW32mLMZmvC08mEQ9ojnDaMhTXE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P2z0hIMRjJkC2rg8f7tE766MnLHyO9WxzwvXKby1fpCTBG2DgPG968jrDiPM167S112mmrh3X1M5LClPY6mQWCefKpSBBsUVSMssSeqeNWBmVWQC3gkK+d8sZDIN5uF5446wpJa9QCQfcDaUVSO4hysNWmakTt2soEbE3Bey1So= 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=rCnmctme; arc=none smtp.client-ip=74.125.225.140 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="rCnmctme" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-4a1742171d5so2294535e9.1 for ; Mon, 05 Oct 2026 03:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791197748; x=1791802548; 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:content-type; bh=6jvg2zQzFo45CneV/j/IiL4jEY6i2n1nGDduqF0/0xg=; b=rCnmctme8fcKPEDAItjB+i45PF9g2XJ2g1nxebxmGAmiWXvAC/y10ajfW1AaKZVEDc LA+AEyAPU68YQvc/x8KIk48wl6o3+T7epCtGiZxv0K0twz5ZRJsV8B43T8UFVSARjK+x 54B74DFA8QbDhUSnhFN8mvpJFUQZuBAxvnIpdzwL+DrdG8fnbjK1FLlhKINuult0I5Rf QLkcLGg9342tCTPIwOKLwZkZA00fK2vdeEQ0Fz/GEWXwpCo8E+blboDC9cQM/SmxIkKU KaqOa92O/xQOqijZBLN7paWkCJiP4xHxQTGslDOuJmiKFvWtLhFP6lAnBnaZc37f36Ca DIkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791197748; x=1791802548; 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=6jvg2zQzFo45CneV/j/IiL4jEY6i2n1nGDduqF0/0xg=; b=rN0JuXqYzVAMulPygLF/jqjVHy36DyOGZOgHRxaZdDOZrR3/3g+2Azprt3sI1eyQ8u QMz6nqStqWPIDiK26KxT8FwdGtJLSjIATirk4MR5qpnSnfpVSVNKBiRWUwacF45jdmj1 cY36iQps/thJCz8z41PdyGtfw17xRRCD/hVoYj+DcrYvT2QfitYvXsBcmlSVds5JZj/L 7oYE8ADVEXKHvihC3PpTOaE8NE/PO2WR6IfYetdHbQzqBL/2/RIYLLbW/sA7Z2KvkyI5 iSAcDzNbFiZjolZrgfvLohY8Q/OGBaJRs0wfGNPEXN6rGKEVmFVDyT5g28IBKubV6uGY qUug== X-Forwarded-Encrypted: i=1; AKwUvBxgyobt0edGmG/507mpI9y9posEzvYlwiiir/ol2Ye2SwTKyTTxFm82R8qecYY/sQe8lVJr+s+UxGp28Yg=@vger.kernel.org X-Gm-Message-State: AFuF++lzqgOh5TBM5olOsRlctGelPndC+80NDwiYCEgiEsgLbBDqS3mq jBfe4xRNjFB6a74HhA/4tQdDybOPEyGH05FuQUYQpKSBFmzdJbcZnYwoLbtocQ== X-Gm-Gg: AYBFou0X8XbVRJ1GTJt39dGE0YRnIHJQtS6+MU3/qpqaphNs7CYY2P4cjb8niLsYOrf +LKLgSFKplleeWoIUxaOHyFITDA0I+JsWR0G2JvikvTF6bwNQ3Z3ecUANDyRHyJHHXTiWuq8o99 u2BlNk0xCVL1/0wSQo/N+Q4pIGJ0gSjcSZunfsZzyVLMPM+YeUsk7AI6pw6i3xktNRyfhY53XPv gLmgYczMDFQOtOWD8qj9jmvjzCNOBQecxo3Sv/Qr3DC4ZnSmEXZZPdORnkTu5bOml1kXAkiBkTr 6dHJ0t25FxPh60CBWhKWeuHW504/SChzdLNr6xc7wBwbr6OE9gbgjvrsP4XyeMRLxmn1XvT/eES ixeaFhvV1bWKTYAjKbatwJROnl6rsB3j/cCBHdfMGZz0LofyxmVguN+y4vPIgO19/DWn2lSO5wF L1khIFKQGjUFkMa7WxJgbJzWwv8fzWiuX/ygPWpkL7010qOMxzIBX+WB4+HVdWNzLW+5KF3/U/2 sIuur9HelrQ3xMZRdghGwlspDoXrDoH1ADgdCLAXDTZ/0EtI4ISwOSynBcqCtU= X-Received: by 2002:a05:600c:19d0:b0:49e:8191:e5cb with SMTP id 5b1f17b1804b1-4a02756f0c3mr166346825e9.5.1791197747443; Mon, 05 Oct 2026 03:55:47 -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-4a030326132sm270319635e9.0.2026.10.05.03.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 03:55:46 -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 v13 1/3] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY Date: Mon, 5 Oct 2026 12:55:30 +0200 Message-ID: <20261005105535.2472-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261005105535.2472-1-ansuelsmth@gmail.com> References: <20261005105535.2472-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 0570815ee980..d8cf9722f76e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -776,6 +776,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