arm64: dts: imx8mm-verdin: add TPM device
Subsystems (2)
PATCH 1/1 arm64: dts: imx8mm-verdin: add TPM device
From: Vitor Soares <[email protected]>
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +11 -5
@@ -227,15 +227,16 @@ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>; }; -/* Verdin CAN_1 (On-module) */ +/* On-module SPI */ &ecspi3 { #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi3>; + pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_pmic_tpm_ena>; status = "okay"; + /* Verdin CAN_1 */ can1: can@0 { compatible = "microchip,mcp251xfd"; clocks = <&clk40m>;
@@ -245,6 +246,12 @@ can1: can@0 { reg = <0>; spi-max-frequency = <8500000>; }; + + verdin_som_tpm: tpm@1 { + compatible = "atmel,attpm20p", "tcg,tpm_tis-spi"; + reg = <0x1>; + spi-max-frequency = <36000000>; + }; }; /* Verdin ETH_1 (On-module PHY) */
@@ -807,8 +814,7 @@ &iomuxc { pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>, <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio7>, <&pinctrl_gpio8>, - <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>, - <&pinctrl_pmic_tpm_ena>; + <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>; pinctrl_can1_int: can1intgrp { fsl,pins =
Signature · 1 line
2.34.1
Quoted 17 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
Signed-off-by Vitor Soares <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -227,15 +227,16 @@ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>; };
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi &ecspi2 { · line 236
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +3
-3-/* Verdin CAN_1 (On-module) */ +/* On-module SPI */ &ecspi3 { #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi3>; + pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_pmic_tpm_ena>;
Would it make more sense to have tpm pinctrl in node tpm@1 below?
Shawn
Quoted 32 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +8
-2status = "okay"; + /* Verdin CAN_1 */ can1: can@0 { compatible = "microchip,mcp251xfd"; clocks = <&clk40m>;@@ -245,6 +246,12 @@ can1: can@0 { reg = <0>; spi-max-frequency = <8500000>; }; + + verdin_som_tpm: tpm@1 { + compatible = "atmel,attpm20p", "tcg,tpm_tis-spi"; + reg = <0x1>; + spi-max-frequency = <36000000>; + }; }; /* Verdin ETH_1 (On-module PHY) */@@ -807,8 +814,7 @@ &iomuxc { pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>, <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio7>, <&pinctrl_gpio8>, - <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>, - <&pinctrl_pmic_tpm_ena>; + <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>; pinctrl_can1_int: can1intgrp { fsl,pins =Signature · 1 line
2.34.1
Hello Shawn,
Quoted 18 lines · Shawn Guo
Quoted 17 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
Signed-off-by Vitor Soares <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -227,15 +227,16 @@ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>; };
Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi &ecspi2 { · line 236
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +3
-3-/* Verdin CAN_1 (On-module) */ +/* On-module SPI */ &ecspi3 { #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi3>; + pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_pmic_tpm_ena>;Would it make more sense to have tpm pinctrl in node tpm@1 below?
It's the pinctrl of the SPI Chip Select pin, not something about the TPM, I think it's correct to have it into the ecspi node.
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi can1: can@0 { · line 255
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +5
-0+ verdin_som_tpm: tpm@1 { + compatible = "atmel,attpm20p", "tcg,tpm_tis-spi"; + reg = <0x1>; + spi-max-frequency = <36000000>; + }; };
Francesco
Quoted 33 lines · Francesco Dolcini
Hello Shawn,
Quoted 18 lines · Shawn Guo
Quoted 17 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
Signed-off-by Vitor Soares <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -227,15 +227,16 @@ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>; };Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi &ecspi2 { · line 236
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +3
-3-/* Verdin CAN_1 (On-module) */ +/* On-module SPI */ &ecspi3 { #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi3>; + pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_pmic_tpm_ena>;Would it make more sense to have tpm pinctrl in node tpm@1 below?
Quoted 2 lines
It's the pinctrl of the SPI Chip Select pin, not something about the TPM, I think it's correct to have it into the ecspi node.
The name pinctrl_pmic_tpm_ena seems confusing then.
Shawn
Quoted 34 lines · Shawn Guo
Quoted 33 lines · Francesco Dolcini
Hello Shawn,
Quoted 30 lines · Shawn Guo
Quoted 17 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
Signed-off-by Vitor Soares <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -227,15 +227,16 @@ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>; };arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi &ecspi2 { · line 236
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +3
-3-/* Verdin CAN_1 (On-module) */ +/* On-module SPI */ &ecspi3 { #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, <&gpio4 19 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi3>; + pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_pmic_tpm_ena>;Would it make more sense to have tpm pinctrl in node tpm@1 below?
Quoted 4 lines
Quoted 2 lines
It's the pinctrl of the SPI Chip Select pin, not something about the TPM, I think it's correct to have it into the ecspi node.
The name
pinctrl_pmic_tpm_enaseems confusing then.
I agree (this is coming from the schematics net name, let's blame the HW folks).
With that said, let's rename this to pinctrl_tpm_spi_cs. Vitor?
Francesco
Quoted 41 lines · Francesco Dolcini
Quoted 40 lines · Shawn Guo
Quoted 38 lines · Francesco Dolcini
Hello Shawn,
Quoted 25 lines · Shawn Guo
Quoted 24 lines · Vitor Soares
From: Vitor Soares <[email protected]>
Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
Signed-off-by Vitor Soares <[email protected]>---
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++---- -1 file changed, 11 insertions(+), 5 deletions(-)arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +0
-0@@ -227,15 +227,16 @@ &ecspi2 { pinctrl-0 = <&pinctrl_ecspi2>; };arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +1
-1-/* Verdin CAN_1 (On-module) */ +/* On-module SPI */&ecspi3 {
#address-cells = <1>;
#size-cells = <0>;Quoted 8 lines
Quoted 6 lines
- cs-gpios = <&gpio5 25
GPIO_ACTIVE_LOW>;
+ cs-gpios = <&gpio5 25GPIO_ACTIVE_LOW>, <&gpio4 19GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ecspi3>;
+ pinctrl-0 = <&pinctrl_ecspi3>, <&pinctrl_pmic_tpm_ena>;Would it make more sense to have tpm pinctrl in node tpm@1 below?
It's the pinctrl of the SPI Chip Select pin, not something about the TPM, I think it's correct to have it into the ecspi node.
Quoted 6 lines
Quoted 1 line
The name
pinctrl_pmic_tpm_enaseems confusing then.I agree (this is coming from the schematics net name, let's blame the HW folks).
With that said, let's rename this to
pinctrl_tpm_spi_cs. Vitor?
I will prepare a v2 with this small change.
Vitor Soares
Quoted 3 lines
Francesco