Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp948089lqo; Wed, 8 May 2024 23:16:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLMK/TLM/nWJS2Ge4iM1gKPfKfzkNZA4Ly6y9v0z4KignJg5VafixmeOmkbxXQ73Cs4RFrg6oBxXnjSHPudqIkFHAkf0Tqc9SU7zNPUA== X-Google-Smtp-Source: AGHT+IF/qjuYJwGy2XNXpEUyn/blOs2SBZQWNjT9sbAjmdTg7y+a8YZhl4iXMh1iH2xXly5vdHyg X-Received: by 2002:a17:902:ec88:b0:1e7:d482:9e09 with SMTP id d9443c01a7336-1eeb01825b5mr63126125ad.7.1715235392066; Wed, 08 May 2024 23:16:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715235392; cv=pass; d=google.com; s=arc-20160816; b=sAulkQwJQSTqxCineyGuM8avBN/JgWMzaL6e+qlsa5tNtBmjX5IHbcwl0yuXXSRsyz JoeWsYj/VPjb6aoblE5rl4ikuZd/vdceXRK0j4NEZtypS/IIza1rQIQeWJaRgDzVmE2r KrppWbf6RPHTmhFmmEBduAfoUuvmUn9ExQraLcIsCaekZviCNXrDgP510hs4UVBDm1nG zFA9Tvt1HQNgcJnqfzvAsyx9nsd42hlDED9g1AH92Cp2nsOsTA17dH7vFapnMkpOGmJj HfHlRjb4GHTKxCgiPTszoTwFLByCuJ/5MeSd92pIDAs5beufohifDWislOnUvNKtk33k Cbsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=f4Yqc30UxHqAHeWHuMCtc2YgCzQvfgLobFtxFCBqa2E=; fh=6JNnxDfEnr7o579DMPRTsQZxS8rnesbXYQmdjTKdPbk=; b=s1RyPOAwQ5ewX1AHy3mVHowlOAM4uYkpiyaAmIbLBv1ojFDOr6Vo8cn1wJ/Oh2dKyU Pwe4WTFgBOqZZ31E2aUFUZMN9WQ+uRGeDxQXrVfZelflmtp0FX6HiiFmynrqUql6/RE6 Edyp32ytMu1HqvWWNPaPH0CFF70dlDQNxe9BLJCbUVnx901d7Gdsf9i6iLjxqX1Iit/h 7b9T8TLel+briBmgf1R4aY+fE85A+oH/m+Gdwln3AzYrhEmrW0SPhBGbp1AaULXjZSEw daB/ZPpNRWhOiqAUnFU5sc1UnQ1v/93cHVrtfCGTYSfokQiqK3XUd1gkQ9t9yu8oyDQr SQdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-174185-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bad473csi7495825ad.184.2024.05.08.23.16.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 23:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174185-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-174185-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5E6F9282B9B for ; Thu, 9 May 2024 06:16:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A7EF149C59; Thu, 9 May 2024 06:15:54 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 092CC149E01; Thu, 9 May 2024 06:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235353; cv=none; b=ix7wnG31EQZbfHeXtx3sN+/nxhgLVJh+90KuUAsMfUQ5QqkAeHNzovwmF3jky7zABu3LwcvrVQXFZstZR+6M3xDyhdJJRhNyEkum36w8FE5PduGlRSVjlc0giZo0kB/Vu809h2PfBkjKD48oeeRH7yaZpbNdd4Oe0uo7m43J5Ww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715235353; c=relaxed/simple; bh=ThKVGa3d/Z0vLgTeLU9vkg+jHMgQCwzahfmHqGQoftw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=t4Oiwf5mFw5LLcbZTkdrWBLHqNSUsatjyrggStUrvyb8PbIR706MFBJt5wWQS65OZoUpTdmeXGck+PcsPqlNAc/QQNcQWhxGdbi55kuUbrA3Cf5D2tv1rUbMOhNOk6bjVXLf9L8WLdUXPftjSmz2B28tYO2wnYuL/DAk2f37xNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 52E981A1F47; Thu, 9 May 2024 08:15:41 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 090291A1F45; Thu, 9 May 2024 08:15:41 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 111D4183486A; Thu, 9 May 2024 14:15:39 +0800 (+08) From: Richard Zhu To: conor@kernel.org, vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, frank.li@nxp.com, conor+dt@kernel.org Cc: hongxing.zhu@nxp.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, imx@lists.linux.dev Subject: [PATCH v4 1/3] dt-bindings: phy: phy-imx8-pcie: Add header file for i.MX8Q HSIO SerDes PHY Date: Thu, 9 May 2024 13:56:19 +0800 Message-Id: <1715234181-672-2-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1715234181-672-1-git-send-email-hongxing.zhu@nxp.com> References: <1715234181-672-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add lane index and HSIO configuration definitions of the i.MX8Q HSIO SerDes PHY into header file. Signed-off-by: Richard Zhu Reviewed-by: Frank Li --- include/dt-bindings/phy/phy-imx8-pcie.h | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/include/dt-bindings/phy/phy-imx8-pcie.h b/include/dt-bindings/phy/phy-imx8-pcie.h index 8bbe2d6538d8..8f65a77fca09 100644 --- a/include/dt-bindings/phy/phy-imx8-pcie.h +++ b/include/dt-bindings/phy/phy-imx8-pcie.h @@ -11,4 +11,33 @@ #define IMX8_PCIE_REFCLK_PAD_INPUT 1 #define IMX8_PCIE_REFCLK_PAD_OUTPUT 2 +/* + * Regarding the design of i.MX8QM HSIO subsystem, HSIO module can be + * confiured as following three use cases. + * + * Define different configurations refer to the use cases, since it is + * mandatory required in the initialization. + * + * On i.MX8QXP, HSIO module only has PCIEB and one lane PHY. + * Define "IMX8Q_HSIO_CFG_PCIEB" for i.MX8QXP platforms. + * + * +----------------------------------------------------+----------+ + * | | i.MX8QM | i.MX8QXP | + * |-------------------------------|--------------------|----------| + * | | Lane0| Lane1| Lane2| Lane0 | + * |-------------------------------|------|------|------|----------| + * | IMX8Q_HSIO_CFG_PCIEAX2SATA | PCIEA| PCIEA| SATA | | + * |-------------------------------|------|------|------|----------| + * | IMX8Q_HSIO_CFG_PCIEAX2PCIEB | PCIEA| PCIEA| PCIEB| | + * |-------------------------------|------|------|------|----------| + * | IMX8Q_HSIO_CFG_PCIEAPCIEBSATA | PCIEA| PCIEB| SATA | | + * |-------------------------------|------|------|------|----------| + * | IMX8Q_HSIO_CFG_PCIEB | - | - | - | PCIEB | + * +----------------------------------------------------+----------+ + */ +#define IMX8Q_HSIO_CFG_PCIEAX2SATA 0x1 +#define IMX8Q_HSIO_CFG_PCIEAX2PCIEB 0x2 +#define IMX8Q_HSIO_CFG_PCIEAPCIEBSATA (IMX8Q_HSIO_CFG_PCIEAX2SATA | IMX8Q_HSIO_CFG_PCIEAX2PCIEB) +#define IMX8Q_HSIO_CFG_PCIEB IMX8Q_HSIO_CFG_PCIEAX2PCIEB + #endif /* _DT_BINDINGS_IMX8_PCIE_H */ -- 2.37.1