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 9E819FCC066 for ; Fri, 6 Mar 2026 19:02:16 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dNsh5JGe7LF3Fj8sWVzZAYiejDOCtCUFDDEdRjnniHk=; b=sVmBOP63rgKcoK jPQsCNz0s1EI9zTZytvETl2wC4ksQS7m5MNP+6k1JyIxyazxDc8qlZR2Dez7qZ/gNMg437aZz+fF4 GzsujYv2oc3D2lDdIQlyEJ8LD/yFE0yfX3ysXg76uaMr3jM6KtwbEsfXwE3bLqWd+bvlh1rqm68IT atUmiNnGZfHQQV97PCPSIJ/0lVmXN09eO4Z8Dc3LgGdNU/DD7Tb81pJZHol40vdOKAy5mlHeFH6dX mtDyf9BczhRwcQkaA34r/rLqP5GA+DHwiL2w+eS9aFz+V9n5FYn6CbxV1OzsAepohi34id3Ak4ald OV+BzYy/HxRBJv52FgTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyaRE-00000004Mho-1brh; Fri, 06 Mar 2026 19:02:16 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyaRA-00000004Mew-2a4A for linux-phy@bombadil.infradead.org; Fri, 06 Mar 2026 19:02:12 +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=h38h80KHifUI84SS+z6wlkgcplrzkREaoXBLQFpmips=; b=XCqvOtybykZvU0ERIOQsixq3sZ WD/SKeIXu4LV3GgZJRmfKBGRUu7STzyIQZY/bS/dMT6HBTMd8lcBC4Z/DVhW9UtxLT9Kq55XmAOt3 ae3I8HLQFBCm5OhmgtgjPDG05zRYbigRzfrqiRSNZgIOer4DO53EEbozMxfQPcO5zuw9QLGywGtRl PmZOzbvBvCVfOHec8N1k27mt9DkuykDzB/rhdilVbO53lmuCLr4hlLwJl5NPIhkEdQAxFtBbfT/k0 OFGaQPwQh2KRSFFyjg+hIT7MpwsAx9K+wQj/6PsOVyb0Jo2Drwf1Nk3Dl1dWhi2LJ9c+XcDxTPPLV rgV5oiSw==; Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyaR6-00000009UuO-2Js0 for linux-phy@lists.infradead.org; Fri, 06 Mar 2026 19:02:11 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-439b7c2788dso4296196f8f.1 for ; Fri, 06 Mar 2026 11:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772823726; x=1773428526; 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; bh=h38h80KHifUI84SS+z6wlkgcplrzkREaoXBLQFpmips=; b=RqnO2o4UvIQ9bNc+eaW+o6iFv320olsjCMBGySgZnKTKpNpou6zeuKbr4hmGkhKy8n yKDdRe2tEqjABdC3YQpVw0A7wP+a7HVmLqTZz3yD2pjS2ovCf2MZr4IGecLoLwOAnOpF AB71DZZN0yyBg+G0nH3MLQ1Vd5SjDz7e1nJnTlz8pd9Wx3VbhjLKBvlTwIgLF94SFtKo FEGugSbQ5CWIGEVjjaQSaX50Yg9dOJtunQI+fXshT4MyBVXQkGyhPw1pfPm8aS0vTiOU jxu/ylFdF5LErvD7vGaL2phdnFFMaHAFDjO3WJ5FAVQggRb1aGoRvzrOpJJzUhTOO/q3 wy7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772823726; x=1773428526; 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=h38h80KHifUI84SS+z6wlkgcplrzkREaoXBLQFpmips=; b=GxoBfygI9cE37juZQeaae6PdllD1+auZ30R4PHlvZgbKziCes/4PPSOOtdJc78bjLL UGlncNNjxPBkW53w63RZ0X+2wtUlYZOeJL3uwXvdgNztByZTjMlkJ3kJqkTHMhZQPg3t yJlBQqMf0JYmlQKlsLdjVPQ7klbnYLMNhI6ydhRuhW3tZLfmCMpOyuwBxnyw/RV9hdQJ czYJcnVHo/1bVYw0HT2GQLRByk6H5MHLX8xbzRdXUXXRL/1P5Usja+t+ZECteTAuACbd J7x9mGFQyVJS/c0WgagKKhHOARfNgiV+qC5oyzHvBUSC4z2cZOwWWvOJE7VfFTloPsTb B6Gw== X-Forwarded-Encrypted: i=1; AJvYcCXdmp2mdRcLVqsLpMCGVlqpNeRj9th/Mh95UuOgeQ7LLS+/DVXl/tdSDnIjMxBeE45zIMUn3s2S5hA=@lists.infradead.org X-Gm-Message-State: AOJu0YxGGFYw9hPCOrV5WP/gLkYrH4Woe0uL1vBEySEd+rnDiaLLzJUV 8eL774t10VlyL71Rx/hwq1y3xh+fGc8seVeec8RYibu77c/MTUegt4hGrwGAGw== X-Gm-Gg: ATEYQzwq5jTG+JZJ+Onn9LCvLX3NWh6YhhFj/2ONH7ZdY4EFRUld3r5fRP2uDnRfsUz zKz1tEIQmd9xqWJPftSfzhiHgqlj77/ToH87Kaz1Sp2dhnf0nnsIdQ9p5ebDMb7qhupza+pxy8s wUnpCSG/cn4zoML6wH48Q91FMS3QvBn/Svu7HOz3niqpHmnqy37VJYqP0VtTTEf5WwS7j+PJq6f ACkUMIPHrRHm1U+/3GzhczngObBgqnpdfJcW2iWqooEXi+Mw+gJtyGPoBRfuv2Q8KEYNvK0EVok us8J9onS6QcHSpI5JtCCFiuhJj+BUQ3N4eVCmUC8d32Ubsm5BrObewNHmT3Kwm9KShPAzeMbL5K HqJjJNZhQSs/LV9oQKe9DjkHXScPI5+FGwtQjKAiDc/1XkEMlseKMKqWEU7paHT7VKiDY+RBR44 yMAT9aTpxiyPk+Jj1bqTZqWbq3tKtOy81A6FbZOs2L4dkKnBfZWlfU0mg= X-Received: by 2002:a05:6000:26c7:b0:439:b79d:b9ac with SMTP id ffacd0b85a97d-439da67c237mr5354464f8f.45.1772823725737; Fri, 06 Mar 2026 11:02:05 -0800 (PST) Received: from Ansuel-XPS24 (93-34-88-122.ip49.fastwebnet.it. [93.34.88.122]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-439dae2ba66sm4743436f8f.20.2026.03.06.11.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 11:02:05 -0800 (PST) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , 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: Conor Dooley Subject: [PATCH v6 2/4] dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY Date: Fri, 6 Mar 2026 20:01:51 +0100 Message-ID: <20260306190156.22297-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260306190156.22297-1-ansuelsmth@gmail.com> References: <20260306190156.22297-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260306_190208_675548_2E654281 X-CRM114-Status: GOOD ( 18.18 ) 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, the "airoha,usb3-serdes" property is required. This can be either AIROHA_SCU_SERDES_USB1 or AIROHA_SCU_SERDES_USB2 and is used to identify what modes support the PHY and what register to use to setup the requested mode. The first USB port on the SoC can be both used for USB 3.0 operation or Ethernet (HSGMII). The second USB port on the SoC can be both used for USB 3.0 operation or for an additional PCIe line. Signed-off-by: Christian Marangi Reviewed-by: Conor Dooley --- .../bindings/phy/airoha,an7581-usb-phy.yaml | 71 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 77 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..ec467fb7f971 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml @@ -0,0 +1,71 @@ +# 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. + + The first USB port on the SoC can be both used for USB 3.0 operation or + Ethernet (HSGMII). + The second USB port on the SoC can be both used for USB 3.0 operation or + for an additional PCIe line. + +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] + + airoha,usb3-serdes: + description: Describe what Serdes line is attached to the USB 3.0 port. + Can be either AIROHA_SCU_SERDES_USB1 or AIROHA_SCU_SERDES_USB2 as + defined in dt-bindings/soc/airoha,scu-ssr.h + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + '#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 + - airoha,usb3-serdes + - '#phy-cells' + +additionalProperties: false + +examples: + - | + #include + + phy@1fac0000 { + compatible = "airoha,an7581-usb-phy"; + reg = <0x1fac0000 0x10000>; + + airoha,usb2-monitor-clk-sel = <1>; + airoha,usb3-serdes = ; + + #phy-cells = <1>; + }; + diff --git a/MAINTAINERS b/MAINTAINERS index 364f0bec8748..d75f59118a9a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -779,6 +779,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.51.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy