From patchwork Tue Sep 3 07:59:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxing Zhu X-Patchwork-Id: 13788257 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 0A25C205E13 for ; Tue, 3 Sep 2024 08:28:21 +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=1725352103; cv=none; b=JLxn2A+zpzt3U95TxmDhdd81o/qMtFY84/AM7jlNMsS9hsmh1MXEuzTLqHVOjo1jz1w2L6huw5TCs7mnKdUdlEc1XyVI9OGWfQOQBbMQ7RM0tvqBipo41VLqSU/eyGgmqUadTUcWIcREkDjBuwao9jZe87IzuwcBuhFkn1xGowA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725352103; c=relaxed/simple; bh=8oFiYCS5Ioy2hxq4sF3xkTJ/UPpmhNLp2U2xYW3Ieio=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=uH+aYEStL30qdJ+UWzqG3X7U2hbloKWAsoDYpTRGhRhluBxV3FQdYPSICXsON89ByiD7ovm3g00ekr4yMrolKeJf4Sa+g6NQkrVdbhIG+d1ooldjOzIoauuQ0psbuhnP7JmtG27OVJbK7NOJtq/vrwjf0fpYRi8tANG1c3R4Lz4= 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 94CCA203174; Tue, 3 Sep 2024 10:21:11 +0200 (CEST) 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 571C4201D69; Tue, 3 Sep 2024 10:21:11 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 9AE821834898; Tue, 3 Sep 2024 16:21:09 +0800 (+08) From: Richard Zhu To: abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, imx@lists.linux.dev, kernel@pengutronix.de, Richard Zhu Subject: [PATCH v1 1/2] dt-bindings: clock: nxp,imx95-blk-ctl: Add compatible string for i.MX95 HSIO BLK CTRL Date: Tue, 3 Sep 2024 15:59:56 +0800 Message-Id: <1725350397-19527-2-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1725350397-19527-1-git-send-email-hongxing.zhu@nxp.com> References: <1725350397-19527-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Add compatible string "nxp,imx95-hsio-blk-ctl" for iMX95. Signed-off-by: Richard Zhu --- Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml index 2dffc02dcd8b..638241f6749f 100644 --- a/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml +++ b/Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml @@ -17,6 +17,7 @@ properties: - nxp,imx95-display-csr - nxp,imx95-camera-csr - nxp,imx95-vpu-csr + - nxp,imx95-hsio-blk-ctl - const: syscon reg: From patchwork Tue Sep 3 07:59:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxing Zhu X-Patchwork-Id: 13788255 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 A3A0F45003 for ; Tue, 3 Sep 2024 08:27:07 +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=1725352029; cv=none; b=ZGRmcC7ibwAYrKKdCpf5JE3Y6qGQ5dHRzwJs3KbJqmmYJfwogVlaWjhEryS5WpUMLTUgXs9Vhql3Ftv4oFLj7uiJuLqjsTGPGfi33VxORTu2yi/2c1IPSv15/e8flzkOzaTBFbYyb4ZKkUyaKkL+sKiyizzKo3UbLFrVSQw7LLo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725352029; c=relaxed/simple; bh=B/hCxLhjub2nypBSSZVrDGszhKTLf905h/PokcOroWA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=qrNKTRc6Q12MKxy5GYIh2z6hlsmL+0ky/BQ/cWsp0QFAI7jq0pZhg4eMUdR0Hmqq4gWXZXB4QbcB1lD7Npr+6TC7eSZ2gcpeorhVpaDGkAe6VUKds66cvBEizWfCIEXGIXcY8eybp/8ScAk/Y1kvD2UR8PvBr2/PmE6LiDtFtYQ= 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 B910F1A31B0; Tue, 3 Sep 2024 10:21:12 +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 7F8E71A0387; Tue, 3 Sep 2024 10:21:12 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id D1A3D180031E; Tue, 3 Sep 2024 16:21:10 +0800 (+08) From: Richard Zhu To: abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, imx@lists.linux.dev, kernel@pengutronix.de, Richard Zhu Subject: [PATCH v1 2/2] clk: imx95-blk-ctl: Add one clock gate for HSIO block Date: Tue, 3 Sep 2024 15:59:57 +0800 Message-Id: <1725350397-19527-3-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1725350397-19527-1-git-send-email-hongxing.zhu@nxp.com> References: <1725350397-19527-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: CREF_EN (Bit6) of LFAST_IO_REG control i.MX95 PCIe REF clock out enable/disable. Add compatible string "fsl,imx95-hsio-blk-ctl" to support PCIe REF clock out gate. Signed-off-by: Richard Zhu --- drivers/clk/imx/clk-imx95-blk-ctl.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/clk/imx/clk-imx95-blk-ctl.c b/drivers/clk/imx/clk-imx95-blk-ctl.c index 74f595f9e5e3..2c4b01038ebb 100644 --- a/drivers/clk/imx/clk-imx95-blk-ctl.c +++ b/drivers/clk/imx/clk-imx95-blk-ctl.c @@ -248,6 +248,25 @@ static const struct imx95_blk_ctl_dev_data dispmix_csr_dev_data = { .clk_reg_offset = 0, }; +static const struct imx95_blk_ctl_clk_dev_data hsio_blk_ctl_clk_dev_data[] = { + [0] = { + .name = "hsio_blk_ctl_clk", + .parent_names = (const char *[]){ "hsio_pll", }, + .num_parents = 1, + .reg = 0, + .bit_idx = 6, + .bit_width = 1, + .type = CLK_GATE, + .flags = CLK_SET_RATE_PARENT, + } +}; + +static const struct imx95_blk_ctl_dev_data hsio_blk_ctl_dev_data = { + .num_clks = 1, + .clk_dev_data = hsio_blk_ctl_clk_dev_data, + .clk_reg_offset = 0, +}; + static int imx95_bc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -419,6 +438,7 @@ static const struct of_device_id imx95_bc_of_match[] = { { .compatible = "nxp,imx95-lvds-csr", .data = &lvds_csr_dev_data }, { .compatible = "nxp,imx95-display-csr", .data = &dispmix_csr_dev_data }, { .compatible = "nxp,imx95-vpu-csr", .data = &vpublk_dev_data }, + { .compatible = "nxp,imx95-hsio-blk-ctl", .data = &hsio_blk_ctl_dev_data }, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, imx95_bc_of_match);