Skip to contentSkip to conversation

add NETCMIX block control support on i.MX95

PATCH Superseded Wei Fang 3 participants 9 messages Jul 9, 2024 – Jul 10, 2024

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Wei Fang

author
#0 lore raw

cover add NETCMIX block control support on i.MX95

The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, such as MQS, SAI and NETC. So add the NETCMIX block control support on i.MX95 platform.

Wei Fang (3):
dt-bindings: clock: add i.MX95 NETCMIX block control
clk: imx95: enable the clock of NETCMIX block control
arm64: dts: imx95: Add NETCMIX block control support

 .../devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml |  1 +
 arch/arm64/boot/dts/freescale/imx95.dtsi             | 12 ++++++++++++
 drivers/clk/imx/clk-imx95-blk-ctl.c                  |  1 +
 3 files changed, 14 insertions(+)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 1/3 dt-bindings: clock: add i.MX95 NETCMIX block control

Add 'nxp,imx95-netcmix-blk-ctrl' compatible string for i.MX95 platform.

---
 Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/clock/nxp,imx95-blk-ctl.yaml +1 -0
index 2dffc02dcd8b..b0072bae12d9 100644
@@ -17,6 +17,7 @@ properties:
           - nxp,imx95-display-csr
           - nxp,imx95-camera-csr
           - nxp,imx95-vpu-csr
+          - nxp,imx95-netcmix-blk-ctrl
       - const: syscon
 
   reg:
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH 2/3 clk: imx95: enable the clock of NETCMIX block control

In reply to Wei Fang

The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, so enable the clock of NETCMIX to support the configuration.

---
 drivers/clk/imx/clk-imx95-blk-ctl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk-imx95-blk-ctl.c +1 -0
index 74f595f9e5e3..07c70c0a53d4 100644
@@ -419,6 +419,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-netcmix-blk-ctrl", },
 	{ /* Sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, imx95_bc_of_match);
Signature · 1 line
2.34.1
author
#8 lore raw

PATCH 3/3 arm64: dts: imx95: Add NETCMIX block control support

In reply to Wei Fang

Add NETCMIX block control support.

---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/freescale/imx95.dtsi +12 -0
index 1bbf9a0468f6..6e86aa98b431 100644
@@ -1188,5 +1188,17 @@ pcie1_ep: pcie-ep@4c380000 {
 			power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>;
 			status = "disabled";
 		};
+
+		netcmix_blk_ctrl: syscon@4c810000 {
+			compatible = "nxp,imx95-netcmix-blk-ctrl", "syscon";
+			reg = <0x0 0x4c810000 0x0 0x10000>;
+			#clock-cells = <1>;
+			clocks = <&scmi_clk IMX95_CLK_BUSNETCMIX>;
+			assigned-clocks = <&scmi_clk IMX95_CLK_BUSNETCMIX>;
+			assigned-clock-parents = <&scmi_clk IMX95_CLK_SYSPLL1_PFD1_DIV2>;
+			assigned-clock-rates = <133333333>;
+			power-domains = <&scmi_devpd IMX95_PD_NETC>;
+			status = "disabled";
+		};
 	};
 };
Signature · 1 line
2.34.1
reviewer
#4 lore raw

RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

In reply to Wei Fang
Quoted 25 lines

Subject: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, so enable the clock of NETCMIX to support the configuration.

---
 drivers/clk/imx/clk-imx95-blk-ctl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/imx/clk- renamed from drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0

imx95-blk-ctl.c
index 74f595f9e5e3..07c70c0a53d4 100644

drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
@@ -419,6 +419,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 },

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id imx95_bc_of_match[] = { · line 422

Quoted 1 line
drivers/clk/imx/clk-imx95-blk-ctl.c +1 -0
+	{ .compatible = "nxp,imx95-netcmix-blk-ctrl", },

This should not be added here if no real clocks are included.

Regards,
Peng.

Quoted 5 lines

{ /* Sentinel */ },
};
MODULE_DEVICE_TABLE(of, imx95_bc_of_match);
--
2.34.1

author
#5 lore raw

RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

In reply to Peng Fan
Quoted 25 lines

-----Original Message-----
From: Peng Fan <[email protected]>
Sent: 2024年7月9日 22:13
To: Wei Fang <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

Quoted 12 lines

Subject: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, so enable the clock of NETCMIX to support the configuration.

---
 drivers/clk/imx/clk-imx95-blk-ctl.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id · line 424

Quoted 12 lines
(quoted diff) +0 -0

b/drivers/clk/imx/clk- imx95-blk-ctl.c index
74f595f9e5e3..07c70c0a53d4 100644

drivers/clk/imx/clk-imx95-blk-ctl.c +1 -0
@@ -419,6 +419,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-netcmix-blk-ctrl", },

This should not be added here if no real clocks are included.

This is the first phase, and we are currently prioritizing supporting the RGMII interface of ENETC on upstream. We will add support for multiplexing of the RMII reference clock later.

Quoted 6 lines
Quoted 6 lines
drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
 	{ /* Sentinel */ },

};
MODULE_DEVICE_TABLE(of, imx95_bc_of_match);
--
2.34.1

reviewer
#6 lore raw

RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

Quoted 42 lines

Subject: RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

Quoted 6 lines

-----Original Message-----
From: Peng Fan <[email protected]>
Sent: 2024年7月9日 22:13
To: Wei Fang <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected];

[email protected];

Quoted 5 lines

[email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX

block

Quoted 14 lines

control

Quoted 12 lines

Subject: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, so enable the clock of NETCMIX to support the configuration.

---
 drivers/clk/imx/clk-imx95-blk-ctl.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 8 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id · line 420

Quoted 8 lines
(quoted diff) +0 -0

b/drivers/clk/imx/clk- imx95-blk-ctl.c index
74f595f9e5e3..07c70c0a53d4 100644

drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
@@ -419,6 +419,7 @@ static const struct of_device_id
 imx95_bc_of_match[] = {
 	{ .compatible = "nxp,imx95-lvds-csr", .data =

&lvds_csr_dev_data },

Quoted 3 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id · line 423

Quoted 3 lines
drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
 	{ .compatible = "nxp,imx95-display-csr", .data =
 &dispmix_csr_dev_data },
 	{ .compatible = "nxp,imx95-vpu-csr", .data =
Quoted 8 lines

&vpublk_dev_data },

Quoted 4 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id imx95_bc_of_match[] = { · line 422

Quoted 1 line
drivers/clk/imx/clk-imx95-blk-ctl.c +1 -0
+	{ .compatible = "nxp,imx95-netcmix-blk-ctrl", },

This should not be added here if no real clocks are included.

This is the first phase, and we are currently prioritizing supporting the RGMII interface of ENETC on upstream. We will add support for multiplexing of the RMII reference clock later.

No, please include clock changes, otherwise, this is just let device tree node assigned-clock and power domains setup by platform pre-probe code, and nothing else.

Regards,
Peng.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
 	{ /* Sentinel */ },

};
MODULE_DEVICE_TABLE(of, imx95_bc_of_match);
--
2.34.1

author
#7 lore raw

RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

Quoted 59 lines

-----Original Message-----
From: Peng Fan <[email protected]>
Sent: 2024年7月10日 10:23
To: Wei Fang <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Clark Wang <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

Quoted 47 lines

Subject: RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

Quoted 6 lines

-----Original Message-----
From: Peng Fan <[email protected]>
Sent: 2024年7月9日 22:13
To: Wei Fang <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected];

[email protected];

Quoted 5 lines

[email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX

block

Quoted 14 lines

control

Quoted 12 lines

Subject: [PATCH 2/3] clk: imx95: enable the clock of NETCMIX block control

The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, so enable the clock of NETCMIX to support the configuration.

---
 drivers/clk/imx/clk-imx95-blk-ctl.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 8 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id · line 420

Quoted 8 lines
(quoted diff) +0 -0

b/drivers/clk/imx/clk- imx95-blk-ctl.c index
74f595f9e5e3..07c70c0a53d4 100644

drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
@@ -419,6 +419,7 @@ static const struct of_device_id
 imx95_bc_of_match[] = {
 	{ .compatible = "nxp,imx95-lvds-csr", .data =

&lvds_csr_dev_data },

Quoted 3 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id · line 423

Quoted 3 lines
drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
 	{ .compatible = "nxp,imx95-display-csr", .data =
 &dispmix_csr_dev_data },
 	{ .compatible = "nxp,imx95-vpu-csr", .data =

&vpublk_dev_data },

Quoted 4 lines

drivers/clk/imx/clk-imx95-blk-ctl.c static const struct of_device_id imx95_bc_of_match[] = { · line 422

Quoted 1 line
drivers/clk/imx/clk-imx95-blk-ctl.c +1 -0
+	{ .compatible = "nxp,imx95-netcmix-blk-ctrl", },

This should not be added here if no real clocks are included.

Quoted 8 lines
Quoted 3 lines

This is the first phase, and we are currently prioritizing supporting the RGMII interface of ENETC on upstream. We will add support for multiplexing of the RMII reference clock later.

No, please include clock changes, otherwise, this is just let device tree node assigned-clock and power domains setup by platform pre-probe code, and nothing else.

I saw that "nxp,imx95-display-master-csr" was added here, so I thought adding "nxp,imx95-netcmix-blk-ctrl" was also fine. Is there any difference between these two?

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/clk/imx/clk-imx95-blk-ctl.c +0 -0
 	{ /* Sentinel */ },

};
MODULE_DEVICE_TABLE(of, imx95_bc_of_match);
--
2.34.1