devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] arm64: dts: imx95: add various nodes
@ 2024-10-12 11:19 Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms Peng Fan (OSS)
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan,
	Alexander Stein

Per scmi binding doc update and i.MX extenstion supported, add the nodes
in imx95.dtsi.
Enable cpuidle for A55
Add anamix temperature thermal zone
Add lpi2c[5,6] i2c nodes and sub-nodes

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Changes in v3:
- Rebased to linux-next next-20241011
- Drop newline in patch 1
- Add R-b for patch 2
- Typo fix in patch 6 commit log
- Drop "freescale" in all patch title.
- Link to v2: https://lore.kernel.org/r/20240903-imx95-dts-new-v2-0-8ed795d61358@nxp.com

Changes in v2:
- Use generic node name "gpio" for gpio controller in patch 7
- Link to v1: https://lore.kernel.org/r/20240902-imx95-dts-new-v1-0-a1f798f4f746@nxp.com

---
Peng Fan (7):
      arm64: dts: imx95: set max-rx-timeout-ms
      arm64: dts: imx95: add bbm/misc/syspower scmi nodes
      arm64: dts: imx95: update a55 thermal trip points
      arm64: dts: imx95: add anamix temperature thermal zone and cooling node
      arm64: dts: imx95: enable A55 cpuidle
      arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property
      arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes

 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 86 +++++++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx95.dtsi          | 68 +++++++++++++++++-
 2 files changed, 152 insertions(+), 2 deletions(-)
---
base-commit: 60a03dd365b421d0ddf2d8ae873701f90f9642b7
change-id: 20240902-imx95-dts-new-fbb8ac9fca18

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-21 13:48   ` Alexander Stein
  2024-10-12 11:19 ` [PATCH v3 2/7] arm64: dts: imx95: add bbm/misc/syspower scmi nodes Peng Fan (OSS)
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

With 'max-rx-timeout-ms' property added in 'Documentation/devicetree/
indings/firmware/arm,scmi.yaml', set the value for i.MX95.

NXP i.MX95 SCMI Firmware designation does not allow timeout, it will not
recover if the Agents use timeout design. So set a large value (5000ms)
here.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index 03661e76550f4d5b8e5e706ad51d6f7620cb1dc3..9c802c2344fcfb2802e5d52c762b0178a2a88ba8 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -293,6 +293,7 @@ scmi {
 			shmem = <&scmi_buf0>, <&scmi_buf1>;
 			#address-cells = <1>;
 			#size-cells = <0>;
+			max-rx-timeout-ms = <5000>;
 
 			scmi_devpd: protocol@11 {
 				reg = <0x11>;

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 2/7] arm64: dts: imx95: add bbm/misc/syspower scmi nodes
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 3/7] arm64: dts: imx95: update a55 thermal trip points Peng Fan (OSS)
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan,
	Alexander Stein

From: Peng Fan <peng.fan@nxp.com>

Add SYS Power, BBM and MISC nodes under SCMI firmware node.

Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index 9c802c2344fcfb2802e5d52c762b0178a2a88ba8..7f4e7579cdb395177c28f41159df36b871a6384e 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -300,6 +300,10 @@ scmi_devpd: protocol@11 {
 				#power-domain-cells = <1>;
 			};
 
+			scmi_sys_power: protocol@12 {
+				reg = <0x12>;
+			};
+
 			scmi_perf: protocol@13 {
 				reg = <0x13>;
 				#power-domain-cells = <1>;
@@ -319,6 +323,13 @@ scmi_iomuxc: protocol@19 {
 				reg = <0x19>;
 			};
 
+			scmi_bbm: protocol@81 {
+				reg = <0x81>;
+			};
+
+			scmi_misc: protocol@84 {
+				reg = <0x84>;
+			};
 		};
 	};
 

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 3/7] arm64: dts: imx95: update a55 thermal trip points
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 2/7] arm64: dts: imx95: add bbm/misc/syspower scmi nodes Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 4/7] arm64: dts: imx95: add anamix temperature thermal zone and cooling node Peng Fan (OSS)
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Update the thermal trip points for automotive and extended industrial
temperature qualification processors.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index 7f4e7579cdb395177c28f41159df36b871a6384e..a96bf8e6a1a29f06741cdf5ac20e414ce71b5c03 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -346,13 +346,13 @@ a55-thermal {
 
 			trips {
 				cpu_alert0: trip0 {
-					temperature = <85000>;
+					temperature = <105000>;
 					hysteresis = <2000>;
 					type = "passive";
 				};
 
 				cpu_crit0: trip1 {
-					temperature = <95000>;
+					temperature = <125000>;
 					hysteresis = <2000>;
 					type = "critical";
 				};

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 4/7] arm64: dts: imx95: add anamix temperature thermal zone and cooling node
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
                   ` (2 preceding siblings ...)
  2024-10-12 11:19 ` [PATCH v3 3/7] arm64: dts: imx95: update a55 thermal trip points Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 5/7] arm64: dts: imx95: enable A55 cpuidle Peng Fan (OSS)
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

i.MX95 has two on-chip temperature sensors, one is inside anamix block.
This is to add the anamix temperature thermal zone and its cooling
device.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index a96bf8e6a1a29f06741cdf5ac20e414ce71b5c03..ae8e09203ef431d8869fdce79df9f31a3e55971c 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -371,6 +371,38 @@ map0 {
 				};
 			};
 		};
+
+		ana-thermal {
+			polling-delay-passive = <250>;
+			polling-delay = <2000>;
+			thermal-sensors = <&scmi_sensor 0>;
+			trips {
+				ana_alert: trip0 {
+					temperature = <105000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+
+				ana_crit0: trip1 {
+					temperature = <125000>;
+					hysteresis = <2000>;
+					type = "critical";
+				};
+			};
+
+			cooling-maps {
+				map0 {
+					trip = <&ana_alert>;
+					cooling-device =
+						<&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						<&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						<&A55_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						<&A55_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						<&A55_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+						<&A55_5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
+		};
 	};
 
 	psci {

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 5/7] arm64: dts: imx95: enable A55 cpuidle
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
                   ` (3 preceding siblings ...)
  2024-10-12 11:19 ` [PATCH v3 4/7] arm64: dts: imx95: add anamix temperature thermal zone and cooling node Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 6/7] arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property Peng Fan (OSS)
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Add cpuidle node and enable cpuidle for A55.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index ae8e09203ef431d8869fdce79df9f31a3e55971c..62bb526ba507b9fefc8d90743d653e9dadf030ef 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -22,12 +22,27 @@ cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		idle-states {
+			entry-method = "psci";
+
+			cpu_pd_wait: cpu-pd-wait {
+				compatible = "arm,idle-state";
+				arm,psci-suspend-param = <0x0010033>;
+				local-timer-stop;
+				entry-latency-us = <10000>;
+				exit-latency-us = <7000>;
+				min-residency-us = <27000>;
+				wakeup-latency-us = <15000>;
+			};
+		};
+
 		A55_0: cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a55";
 			reg = <0x0>;
 			enable-method = "psci";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 			power-domains = <&scmi_perf IMX95_PERF_A55>;
 			power-domain-names = "perf";
 			i-cache-size = <32768>;
@@ -45,6 +60,7 @@ A55_1: cpu@100 {
 			reg = <0x100>;
 			enable-method = "psci";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 			power-domains = <&scmi_perf IMX95_PERF_A55>;
 			power-domain-names = "perf";
 			i-cache-size = <32768>;
@@ -62,6 +78,7 @@ A55_2: cpu@200 {
 			reg = <0x200>;
 			enable-method = "psci";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 			power-domains = <&scmi_perf IMX95_PERF_A55>;
 			power-domain-names = "perf";
 			i-cache-size = <32768>;
@@ -79,6 +96,7 @@ A55_3: cpu@300 {
 			reg = <0x300>;
 			enable-method = "psci";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 			power-domains = <&scmi_perf IMX95_PERF_A55>;
 			power-domain-names = "perf";
 			i-cache-size = <32768>;
@@ -98,6 +116,7 @@ A55_4: cpu@400 {
 			power-domain-names = "perf";
 			enable-method = "psci";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 			i-cache-size = <32768>;
 			i-cache-line-size = <64>;
 			i-cache-sets = <128>;
@@ -115,6 +134,7 @@ A55_5: cpu@500 {
 			power-domain-names = "perf";
 			enable-method = "psci";
 			#cooling-cells = <2>;
+			cpu-idle-states = <&cpu_pd_wait>;
 			i-cache-size = <32768>;
 			i-cache-line-size = <64>;
 			i-cache-sets = <128>;

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 6/7] arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
                   ` (4 preceding siblings ...)
  2024-10-12 11:19 ` [PATCH v3 5/7] arm64: dts: imx95: enable A55 cpuidle Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-12 11:19 ` [PATCH v3 7/7] arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes Peng Fan (OSS)
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Add 'nxp,ctrl-ids' for SCMI firmware to configure the board ctrls as
wakeup sources.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
index 37a1d4ca1b2079880f6a0397027c22c5e471bd40..5101cd171e095fb5209464055a52ebdfa7dc5a61 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
@@ -8,6 +8,15 @@
 #include <dt-bindings/pwm/pwm.h>
 #include "imx95.dtsi"
 
+#define FALLING_EDGE			1
+#define RISING_EDGE			2
+
+#define BRD_SM_CTRL_SD3_WAKE		0x8000	/* PCAL6408A-0 */
+#define BRD_SM_CTRL_PCIE1_WAKE		0x8001	/* PCAL6408A-4 */
+#define BRD_SM_CTRL_BT_WAKE		0x8002	/* PCAL6408A-5 */
+#define BRD_SM_CTRL_PCIE2_WAKE		0x8003	/* PCAL6408A-6 */
+#define BRD_SM_CTRL_BUTTON		0x8004	/* PCAL6408A-7 */
+
 / {
 	model = "NXP i.MX95 19X19 board";
 	compatible = "fsl,imx95-19x19-evk", "fsl,imx95";
@@ -357,6 +366,14 @@ &usdhc2 {
 	status = "okay";
 };
 
+&scmi_misc {
+	nxp,ctrl-ids = <BRD_SM_CTRL_SD3_WAKE	FALLING_EDGE
+			BRD_SM_CTRL_PCIE1_WAKE	FALLING_EDGE
+			BRD_SM_CTRL_BT_WAKE	FALLING_EDGE
+			BRD_SM_CTRL_PCIE2_WAKE	FALLING_EDGE
+			BRD_SM_CTRL_BUTTON	FALLING_EDGE>;
+};
+
 &wdog3 {
 	fsl,ext-reset-output;
 	status = "okay";

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 7/7] arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
                   ` (5 preceding siblings ...)
  2024-10-12 11:19 ` [PATCH v3 6/7] arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property Peng Fan (OSS)
@ 2024-10-12 11:19 ` Peng Fan (OSS)
  2024-10-21  9:24 ` [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan
  2024-10-22  1:31 ` Shawn Guo
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-10-12 11:19 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Add LPI2C[5,6] and the gpio expander subnodes.
Since we are at here, also add the alias for all lpi2c and gpio nodes.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 69 +++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
index 5101cd171e095fb5209464055a52ebdfa7dc5a61..6086cb7fa5a0e14882be3a8c609725e15c179392 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
@@ -22,6 +22,19 @@ / {
 	compatible = "fsl,imx95-19x19-evk", "fsl,imx95";
 
 	aliases {
+		gpio0 = &gpio1;
+		gpio1 = &gpio2;
+		gpio2 = &gpio3;
+		gpio3 = &gpio4;
+		gpio4 = &gpio5;
+		i2c0 = &lpi2c1;
+		i2c1 = &lpi2c2;
+		i2c2 = &lpi2c3;
+		i2c3 = &lpi2c4;
+		i2c4 = &lpi2c5;
+		i2c5 = &lpi2c6;
+		i2c6 = &lpi2c7;
+		i2c7 = &lpi2c8;
 		mmc0 = &usdhc1;
 		mmc1 = &usdhc2;
 		serial0 = &lpuart1;
@@ -241,6 +254,42 @@ i2c4_gpio_expander_21: gpio@21 {
 	};
 };
 
+&lpi2c5 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_lpi2c5>;
+	status = "okay";
+
+	i2c5_pcal6408: gpio@21 {
+		compatible = "nxp,pcal6408";
+		reg = <0x21>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		vcc-supply = <&reg_3p3v>;
+	};
+};
+
+&lpi2c6 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_lpi2c6>;
+	status = "okay";
+
+	i2c6_pcal6416: gpio@21 {
+		compatible = "nxp,pcal6416";
+		reg = <0x21>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_pcal6416>;
+		vcc-supply = <&reg_3p3v>;
+	};
+};
+
 &lpi2c7 {
 	clock-frequency = <1000000>;
 	pinctrl-names = "default";
@@ -427,6 +476,20 @@ IMX95_PAD_GPIO_IO31__LPI2C4_SCL			0x40000b9e
 		>;
 	};
 
+	pinctrl_lpi2c5: lpi2c5grp {
+		fsl,pins = <
+			IMX95_PAD_GPIO_IO22__LPI2C5_SDA			0x40000b9e
+			IMX95_PAD_GPIO_IO23__LPI2C5_SCL			0x40000b9e
+		>;
+	};
+
+	pinctrl_lpi2c6: lpi2c6grp {
+		fsl,pins = <
+			IMX95_PAD_GPIO_IO02__LPI2C6_SDA			0x40000b9e
+			IMX95_PAD_GPIO_IO03__LPI2C6_SCL			0x40000b9e
+		>;
+	};
+
 	pinctrl_lpi2c7: lpi2c7grp {
 		fsl,pins = <
 			IMX95_PAD_GPIO_IO08__LPI2C7_SDA			0x40000b9e
@@ -446,6 +509,12 @@ IMX95_PAD_GPIO_IO35__HSIOMIX_TOP_PCIE2_CLKREQ_B		0x4000031e
 		>;
 	};
 
+	pinctrl_pcal6416: pcal6416grp {
+		fsl,pins = <
+			IMX95_PAD_CCM_CLKO3__GPIO4_IO_BIT28			0x31e
+		>;
+	};
+
 	pinctrl_pdm: pdmgrp {
 		fsl,pins = <
 			IMX95_PAD_PDM_CLK__AONMIX_TOP_PDM_CLK				0x31e

-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* RE: [PATCH v3 0/7] arm64: dts: imx95: add various nodes
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
                   ` (6 preceding siblings ...)
  2024-10-12 11:19 ` [PATCH v3 7/7] arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes Peng Fan (OSS)
@ 2024-10-21  9:24 ` Peng Fan
  2024-10-22  1:31 ` Shawn Guo
  8 siblings, 0 replies; 11+ messages in thread
From: Peng Fan @ 2024-10-21  9:24 UTC (permalink / raw)
  To: Peng Fan (OSS), Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree@vger.kernel.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Alexander Stein

Hi Shawn,

> Subject: [PATCH v3 0/7] arm64: dts: imx95: add various nodes
> 

Any comments?

Thanks,
Peng.

> Per scmi binding doc update and i.MX extenstion supported, add the
> nodes in imx95.dtsi.
> Enable cpuidle for A55
> Add anamix temperature thermal zone
> Add lpi2c[5,6] i2c nodes and sub-nodes
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
> Changes in v3:
> - Rebased to linux-next next-20241011
> - Drop newline in patch 1
> - Add R-b for patch 2
> - Typo fix in patch 6 commit log
> - Drop "freescale" in all patch title.
> - Link to v2: https://lore.kernel.org/r/20240903-imx95-dts-new-v2-0-
> 8ed795d61358@nxp.com
> 
> Changes in v2:
> - Use generic node name "gpio" for gpio controller in patch 7
> - Link to v1: https://lore.kernel.org/r/20240902-imx95-dts-new-v1-0-
> a1f798f4f746@nxp.com
> 
> ---
> Peng Fan (7):
>       arm64: dts: imx95: set max-rx-timeout-ms
>       arm64: dts: imx95: add bbm/misc/syspower scmi nodes
>       arm64: dts: imx95: update a55 thermal trip points
>       arm64: dts: imx95: add anamix temperature thermal zone and
> cooling node
>       arm64: dts: imx95: enable A55 cpuidle
>       arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property
>       arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes
> 
>  arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 86
> +++++++++++++++++++++++
>  arch/arm64/boot/dts/freescale/imx95.dtsi          | 68
> +++++++++++++++++-
>  2 files changed, 152 insertions(+), 2 deletions(-)
> ---
> base-commit: 60a03dd365b421d0ddf2d8ae873701f90f9642b7
> change-id: 20240902-imx95-dts-new-fbb8ac9fca18
> 
> Best regards,
> --
> Peng Fan <peng.fan@nxp.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms
  2024-10-12 11:19 ` [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms Peng Fan (OSS)
@ 2024-10-21 13:48   ` Alexander Stein
  0 siblings, 0 replies; 11+ messages in thread
From: Alexander Stein @ 2024-10-21 13:48 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	linux-arm-kernel
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan,
	Peng Fan (OSS)

Am Samstag, 12. Oktober 2024, 13:19:08 CEST schrieb Peng Fan (OSS):
> From: Peng Fan <peng.fan@nxp.com>
> 
> With 'max-rx-timeout-ms' property added in 'Documentation/devicetree/
> indings/firmware/arm,scmi.yaml', set the value for i.MX95.
> 
> NXP i.MX95 SCMI Firmware designation does not allow timeout, it will not
> recover if the Agents use timeout design. So set a large value (5000ms)
> here.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  arch/arm64/boot/dts/freescale/imx95.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
> index 03661e76550f4d5b8e5e706ad51d6f7620cb1dc3..9c802c2344fcfb2802e5d52c762b0178a2a88ba8 100644
> --- a/arch/arm64/boot/dts/freescale/imx95.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
> @@ -293,6 +293,7 @@ scmi {
>  			shmem = <&scmi_buf0>, <&scmi_buf1>;
>  			#address-cells = <1>;
>  			#size-cells = <0>;
> +			max-rx-timeout-ms = <5000>;

Acked-by: Alexander Stein <alexander.stein@ew.tq-group.com>

Best regards,
Alexander
>  			scmi_devpd: protocol@11 {
>  				reg = <0x11>;
> 
> 


-- 
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 0/7] arm64: dts: imx95: add various nodes
  2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
                   ` (7 preceding siblings ...)
  2024-10-21  9:24 ` [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan
@ 2024-10-22  1:31 ` Shawn Guo
  8 siblings, 0 replies; 11+ messages in thread
From: Shawn Guo @ 2024-10-22  1:31 UTC (permalink / raw)
  To: Peng Fan (OSS)
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, devicetree,
	imx, linux-arm-kernel, linux-kernel, Peng Fan, Alexander Stein

On Sat, Oct 12, 2024 at 07:19:07PM +0800, Peng Fan (OSS) wrote:
> Peng Fan (7):
>       arm64: dts: imx95: set max-rx-timeout-ms
>       arm64: dts: imx95: add bbm/misc/syspower scmi nodes
>       arm64: dts: imx95: update a55 thermal trip points
>       arm64: dts: imx95: add anamix temperature thermal zone and cooling node
>       arm64: dts: imx95: enable A55 cpuidle
>       arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property
>       arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes

Applied all, thanks!


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-10-22  1:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-12 11:19 [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan (OSS)
2024-10-12 11:19 ` [PATCH v3 1/7] arm64: dts: imx95: set max-rx-timeout-ms Peng Fan (OSS)
2024-10-21 13:48   ` Alexander Stein
2024-10-12 11:19 ` [PATCH v3 2/7] arm64: dts: imx95: add bbm/misc/syspower scmi nodes Peng Fan (OSS)
2024-10-12 11:19 ` [PATCH v3 3/7] arm64: dts: imx95: update a55 thermal trip points Peng Fan (OSS)
2024-10-12 11:19 ` [PATCH v3 4/7] arm64: dts: imx95: add anamix temperature thermal zone and cooling node Peng Fan (OSS)
2024-10-12 11:19 ` [PATCH v3 5/7] arm64: dts: imx95: enable A55 cpuidle Peng Fan (OSS)
2024-10-12 11:19 ` [PATCH v3 6/7] arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property Peng Fan (OSS)
2024-10-12 11:19 ` [PATCH v3 7/7] arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes Peng Fan (OSS)
2024-10-21  9:24 ` [PATCH v3 0/7] arm64: dts: imx95: add various nodes Peng Fan
2024-10-22  1:31 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).