Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp934404lqh; Fri, 29 Mar 2024 01:27:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPTBPm6dwiFRjzrGdyu9C52Jr/tiJIFEuYNKnRWJhK8aHgMOiuaXxp3679X21WHJfj7dhOTZRY/BZbIEvTc80qQcoM+qitNWVQbfWBYQ== X-Google-Smtp-Source: AGHT+IHt/Z7yoJI8jx2xsvKwXJHgrtClJM7dbzn0mHg6cKylTUWz3FA58hquTJy4jicZRU9ix46O X-Received: by 2002:a05:6a00:c8c:b0:6ea:bdbc:614 with SMTP id a12-20020a056a000c8c00b006eabdbc0614mr1794270pfv.13.1711700837120; Fri, 29 Mar 2024 01:27:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711700837; cv=pass; d=google.com; s=arc-20160816; b=Sn4hM7GZle6dTyl9Qd97W1t/DeIvyyjPO80Cs13oOD+dkE29cPs8Ad2WtDcDAAJqCv NZxfB0jf9oPJR37dBlSqGgQb3aC5buuP/a1fB5NzHU1pM5cOc6em6Z4eZl7NUi3bMm9G vSKy69cqpACm07EWBzzv7L2wnUinCw3luhDGjUWOVwP2R7Jb55otIuWKDfwOQ46+B0e5 QmWHR7RPByUUddTn68detc02Jc9PAwrj2I3o0xHs9V+2C3i4i32jFvVD8dpCe0j1ehI5 AAMUQ7njHt26zxgBLqoLuiBovEkOCGyP5YSArpHYaOC86pUL2IGqoR/ml7qpU1GR/n1g pIJw== 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=VCkk8oxDQSCQgVeLw/2t4xhPhh2EpisKrSqwdkVPHWU=; fh=QbzdpRFQtgXjk8BbRZ31LI8MeFC+g12+sHTKs6Lo0EA=; b=JoxFZK1cV+4a1963T35yYm578yQDMXIQk2YVDGTw84QM4qn/fA5wsAP8ZFST2/22Fr ub/slaa8VHWPPwGzRyenQQkCc3uSkQWtr7E0IZ96ywaiY4UhyQRsI0vYm7DoScz1zrX7 rRRV2ToUWaEMMr1R9b0dHGej3u6xNjFw8So0T57lxHYXcml9EYfZVq+XikSK1fLVz7B7 ByC6x5eA0/UAPxVvTP5n+Bk1hySD3FcHAT3nNstNZU/r9m+h6xXO9odRo+MasO9HkBlD crcAh0hU/LmQ0/HV08UbjJs1XuGBDrybA80UMYuT8cJKTuhMEkzwkFLDJX+SYVFyzMw/ Klqw==; 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-124293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124293-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 h2-20020a056a00170200b006ea872dac2esi3256580pfc.292.2024.03.29.01.27.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 01:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124293-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-124293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124293-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 ABEE1288270 for ; Fri, 29 Mar 2024 08:27:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79BC951C2E; Fri, 29 Mar 2024 08:26:54 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (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 6D1834C600; Fri, 29 Mar 2024 08:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711700814; cv=none; b=sLMILKhlQ4Li8HSiq/qvQMdNAoQXcaszgG1D1dXGQAHRgh0GRjV0PnTwTZgFXV61bVfAnh+VWFriPgkoDiSqGcGHOgQkjgrvqdHVavUjImsijmp/5aKoucylh6jiyXwR55fQ83JmnPY67ide+C/m+zzP3YV9awUdUsrP/tzHmgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711700814; c=relaxed/simple; bh=ALaE+zcSQMtY5KqTM7PnPkfpveagz52jI+cnc103xNU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Xl7uQvsXxrw/XAUW+J+5kdkvBBSVp4wf6210Kq4HCTQGCZUWkcbcHyOYLjv7r2Jp+mE/SvlXSlI0GnfKAjCK9bmJupA8xNj0dFCH8zHLEn3B1XCKYPAUiVIBIQ+tB1x8vmW4VkoJnQ8H/INWj91xsWmwGcSbBHo/aOLdO1GchBE= 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.21 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 inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E04E3201349; Fri, 29 Mar 2024 09:26:50 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 962CC2008FA; Fri, 29 Mar 2024 09:26:50 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 9DB1E180222F; Fri, 29 Mar 2024 16:26:48 +0800 (+08) From: Richard Zhu To: vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, frank.li@nxp.com 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, linux-imx@nxp.com Subject: [PATCH v1 2/3] dt-bindings: phy: phy-imx8-pcie: Add binding for i.MX8Q HSIO SerDes PHY Date: Fri, 29 Mar 2024 16:09:49 +0800 Message-Id: <1711699790-16494-3-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1711699790-16494-1-git-send-email-hongxing.zhu@nxp.com> References: <1711699790-16494-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 binding for controller ID and HSIO configuration setting of the i.MX8Q HSIO SerDes PHY. Signed-off-by: Richard Zhu --- include/dt-bindings/phy/phy-imx8-pcie.h | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/dt-bindings/phy/phy-imx8-pcie.h b/include/dt-bindings/phy/phy-imx8-pcie.h index 8bbe2d6538d8..5cd5580879fa 100644 --- a/include/dt-bindings/phy/phy-imx8-pcie.h +++ b/include/dt-bindings/phy/phy-imx8-pcie.h @@ -11,4 +11,30 @@ #define IMX8_PCIE_REFCLK_PAD_INPUT 1 #define IMX8_PCIE_REFCLK_PAD_OUTPUT 2 +/* + * i.MX8QM HSIO subsystem has three lane PHYs and three controllers: + * PCIEA(2 lanes capapble PCIe controller), PCIEB (only support one + * lane) and SATA. + * In the different use cases. PCIEA can be binded to PHY lane0, lane1 + * or Lane0 and lane1. PCIEB can be binded to lane1 or lane2 PHY. SATA + * can only be binded to last lane2 PHY. + * Define i.MX8Q HSIO controller ID here to specify the controller + * binded to the PHY. + * Meanwhile, i.MX8QXP HSIO subsystem has one lane PHY and PCIEB(only + * support one lane) controller. + */ +#define IMX8Q_HSIO_PCIEA_ID 0 +#define IMX8Q_HSIO_PCIEB_ID 1 +#define IMX8Q_HSIO_SATA_ID 2 + +/* + * On i.MX8QM, PCIEA is mandatory required if the HSIO is enabled. + * Define configurations beside PCIEA is enabled. + * On i.MX8QXP, HSIO module only has PCIEB and one lane PHY. + * The "IMX8Q_HSIO_CFG_PCIEB" can be used on i.MX8QXP platforms. + */ +#define IMX8Q_HSIO_CFG_SATA 1 +#define IMX8Q_HSIO_CFG_PCIEB 2 +#define IMX8Q_HSIO_CFG_PCIEBSATA 3 + #endif /* _DT_BINDINGS_IMX8_PCIE_H */ -- 2.37.1