From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.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 58DDE367283 for ; Thu, 21 May 2026 15:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779377821; cv=none; b=s5tg2Qu1ZaX8GlIYkbhJr+yWUh/oyISZs1xJ9uX9M+506wEAATOmEScuLYzZccmyp2R41p4HtNt/2WeZ0Isf0z9+Mi7PEaPBgd4uiRZ9XUEo3HtOwT8J59bO7FnwUuOllQvOS1F0o5BMlDgJ8QDZDxstUar1pN1uG29ow6aXwMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779377821; c=relaxed/simple; bh=qnJ6lEJILLeq57ziFnJ/tdvg1mnErt8MEYpEx0zbJC0=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CM/Qq6gGgRTDNMA3WOakM5/6MjX67y9qHvj4OowyPFrp9LKCL/DPCaz+zWIUlaH23frGf8vQVKOyHJ7K50mdPQkJ/eg4rmcjlUeQ6pDCvBhlHnwAbofQfVFwqdadbOz0AvessoIS+cbM8NncrRlQSGzL8KWvs0/gdkvE45ibgvg= 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=PMnKmljp; arc=none smtp.client-ip=209.85.128.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="PMnKmljp" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4903fd19957so1815995e9.1 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=vger.kernel.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=PMnKmljpni5bSAgnAmd12bY/0kGesC+W0bZ7T/0tQ/18D0mNv17neyXjg6FuguFFfS o0J5Z4UmHOdaN9630DNQQuzGtUqj6oumbvXgmdLxpQ/s6YEFqxl5Y0yJCn5IjHNyMb8a 2Kg8PUZui6kEVKMZ0k9T1JLq+GIusBpOLm6/k2auobsjPezHkfF/5N5ZR+xVTdhXtnoP z9pGYX9hlCwQNfixV2/UlMZ5RrhlBQXJnTqbZQBwr//3ZI2qrzfAIR41Zakq1DgphxEu IyDNetVvlznotNp5cU06F1xKTlNpbxltRtVZsYL69iA5LDjYpB2xprxKUTz44VIzFN7Y nQ9w== 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=UywoI7FQHlklx5d83XSqFR2uNs8cpGr5JiossQhxS1HgAn1FHIsSWR0jaHqWF9VYI6 UeQU9oPUy3R2sxTsaGu8FfNraK3fYZJK0r3XnZyS6qj+FrX8PdeRu6kizA/Q+i61CDhg XYuc6enW/SeRa9FZlVfzk+bifIZc1gn2QkeYlYoCZVfI9QqFRlDfFp6pKXJf2NYv9DvX hnctac9dGppGvic1vS2dl0yihZ8+jkejx2qXpu/2TlWehU55KBvkW9KDRboqg7Iyh3f5 wRPlfjNet3EdzqB/YAVszZTTUUqhZN9TavSla7o3cgtdgbpeuSwjHxmgfzar/5PjZV5T LeUA== X-Forwarded-Encrypted: i=1; AFNElJ+PacjJ1vBal0KBJRrHrFwI8VQBeEWU6qRp1vPQmFP5tvagoJZ0ebVGzdik3VAJvG/+uTTSJ7Vn1ds=@vger.kernel.org X-Gm-Message-State: AOJu0YyhHiV+rvu07KAkqpc9gOl7yHc/v5Oz4Dt9NIQpHobN0+4K05jn pXQt9ZE8X7ZLme59o4iOgXVA/KI0y5/FUolokgmfue6fQf9sHasYDfFLgELYHQ== X-Gm-Gg: Acq92OFKdFMEIpCiraULQFg8tmqma9WCyDpJixHBB0RBbnx5Tu93oyDxithY2ejm36V j71zwRzxNO9Yk9oZBiYaiHC18tQ4YX/DeAu6MrnStLxxU/Lqc6mGwLGwyagK95IK9NAt9v2OsSf rCRG7YgVUvQXZAI9rZGVD6AnEAmoX5jv84qR8QGsXKrIw9InqCWJqWN+lCZ7iPe2Lqt7vvRrkFI n5+v0U7sOvwU3mn4tFjc3wKYRVOuv5B/miHi3o6JhCi+fXJ/TFem+NBHJfV9NLgvEnKLeWdMA7q OLdtUzDPLv/UVQ/5VFF7Xo87MOcrjGdqsUWVIA16yohKKuOdX4HuJBJOHFuRF9SwAGVunu9ksxi SrnVGMZnbUeiw9guM0BX+M6vC1b9CMKuhfEuacXbAhdAUWaLVd0ffjO1X8DmNmButRGuxa4avRC MQfwMuRNkerIB5gBVUd/14frzg4SSXABvti0/38R4f6z+ficht2tUQtNIsJWER7Hs= 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> Precedence: bulk X-Mailing-List: linux-clk@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 --- .../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