From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30BB4606A32F for ; Tue, 3 Nov 2026 19:50:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Pym4OcQK; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hT75Mwhp 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:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=J5xMolcA2jijade3hq2GliWPHkN3pbidlI2m81QLD6M=; b=Pym4OcQKERWGnT Eb89FcDXYWWU6YVGG3W0xYtYvz49dSM/y7+TGBr0U9pELu8iCEwInS4cgcc91pxAOt8VKw+cOUhVP gCBmmHy9Yn4b0hEtO+KhvUYqV37+bpveRH5eOPMa4YlCxHlzygZdFKY557XgReWmQxwiE6wZrGiOF khidFITMTv9qe9yE1C4B2huTERS7yoCzer6kfX2dhV93blakGznMlsJj7A4wTci3Ifuc3Y40agfxZ XjMXNs0dQPzl9xY7O29LnpLNGsqPjj33L8556OSZsD0CWn/pHdvwd0gxz3kWDD3WiVSb3hcdPQof2 pj0kD5q9hWxU9Qe1P6uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xOKWb-00000003ZSt-2kwr; Tue, 03 Nov 2026 19:50:29 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xOKWX-00000003ZP6-2YjA for linux-arm-kernel@lists.infradead.org; Tue, 03 Nov 2026 19:50:27 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-48dfc0421d9so3579198f8f.1 for ; Tue, 03 Nov 2026 11:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793735424; x=1794340224; darn=lists.infradead.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:content-type; bh=J5xMolcA2jijade3hq2GliWPHkN3pbidlI2m81QLD6M=; b=hT75MwhpTUfYlxJGkfeueH8+DH8yFJSDT0WuxsAjw1JYLpulyC0Heez7VCreu0UVi6 0MuUjAJtgbQqNvMcdcGJWo9hAQy7/X7qeYm0c9MtBRboF08P3KPfLT8p6GuYh1ow7Mim vZh8bq409vGReqwolM3eCX395g17grV5c3ski2t2J9SaC6Sx/Y+0MCNnTsiQTIEtXhQU NKosmrwIghNtBmpe/aY/+RLyH2duLH1+liuGfcEUuOYUS/2DlnwH8f+ogoDN3duXMrB+ cDmQ5dISHZuUctn9I35Q5FEspV/u9Y+4OsolLns/Yc/y5sRdDGirDEKczaOssRAyo8v0 5EvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793735424; x=1794340224; 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:content-type; bh=J5xMolcA2jijade3hq2GliWPHkN3pbidlI2m81QLD6M=; b=D9ZA8BGsHhyR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ObWc/DxSbg7SslcwfOHSVF3wekPLiQ22u DLEi2iTI7NXNf0zHpGtHDwOJUMI7MwemawzGXMt9RN996qiGjjfd4G9mQmG4S/tn967uJsm/T2B Sip50Zev36VJ9MJEaoltaRTs/x1/29uKU9N8vAKrQxIP0B53/3TqYYirqk8oqnbHmmBC3cz1tAF DXkXaHilGbcMo7m5LIr0/qIQ9FV9mK1n7MQ== X-Received: by 2002:a05:6000:4027:b0:48d:fbdd:4132 with SMTP id ffacd0b85a97d-48e6e4f540bmr30004149f8f.18.1793735423549; Tue, 03 Nov 2026 11:50:23 -0800 (PST) Received: from Ansuel-XPS24.localdomain (93-34-90-148.ip49.fastwebnet.it. [93.34.90.148]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-48fc9d6b0aasm417802f8f.2.2026.11.03.11.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2026 11:50:22 -0800 (PST) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY Date: Tue, 3 Nov 2026 20:49:59 +0100 Message-ID: <20261103195007.9721-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261103195007.9721-1-ansuelsmth@gmail.com> References: <20261103195007.9721-1-ansuelsmth@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261103_115025_724009_9150FEC5 X-CRM114-Status: GOOD ( 15.73 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Document support for AN7583 PCIe PHY used to make the Gen3 PCIe port work. Add the required register to configure the PCIe PHY and provide an example for it. The PHY link to another PHY (the QPHY as described in the YAML) to correctly handle Gen2 speed and mode. It's mandatory to have this PHY configured for correct functionality of PCIe. The QPHY is a unified PHY that both handle USB and PCIe PHY. It's also mondatory that the QPHY setup is done in the PCIe PHY setup and calibration phase or calibration might fail. Signed-off-by: Christian Marangi --- .../phy/airoha,an7583-pcie-gen3-phy.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml new file mode 100644 index 000000000000..a8ec5ac781cc --- /dev/null +++ b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/airoha,an7583-pcie-gen3-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha AN7583 PCI-Express PHY + +maintainers: + - Christian Marangi + +description: + The PCIe PHY supports physical layer functionality for PCIe Gen2/Gen3 port. + +properties: + compatible: + const: airoha,an7583-pcie-gen3-phy + + reg: + items: + - description: PCIE G3 analog base address + - description: PCIE G3 PMA base address + - description: PCIE detection time base address + - description: PCIE Rx AEQ base address + + reg-names: + items: + - const: g3-ana + - const: g3-pma + - const: xr-dtime + - const: rx-aeq + + phys: + items: + - description: phandle to QPHY phy for Gen2 support + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - reg-names + - phys + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + + phy@1fc7f000 { + compatible = "airoha,an7583-pcie-gen3-phy"; + reg = <0x1fc7f000 0x1000>, + <0x1fc7e000 0x1000>, + <0x1fc30044 0x4>, + <0x1fc35030 0x4>; + reg-names = "g3-ana", "g3-pma", + "xr-dtime", "rx-aeq"; + + phys = <&pcie1_phy PHY_TYPE_PCIE>; + + #phy-cells = <0>; + }; -- 2.55.0