From: Shawn Guo <shawnguo2@yeah.net>
To: Vitor Soares <ivitro@gmail.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Vitor Soares <vitor.soares@toradex.com>,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] arm64: dts: imx8mm-verdin: add TPM device
Date: Fri, 28 Jun 2024 10:39:58 +0800 [thread overview]
Message-ID: <Zn4ifj63+OwQPXx7@dragon> (raw)
In-Reply-To: <20240627104839.645778-1-ivitro@gmail.com>
On Thu, Jun 27, 2024 at 11:48:39AM +0100, Vitor Soares wrote:
> From: Vitor Soares <vitor.soares@toradex.com>
>
> Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
>
> While adding the node, rename `pinctrl_pmic_tpm_ena` to
> `pinctrl_tpm_spi_cs`.
>
> Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
> ---
> v1->v2
> - rename `pinctrl_pmic_tpm_ena` to `pinctrl_tpm_spi_cs`.
>
> .../boot/dts/freescale/imx8mm-verdin.dtsi | 18 ++++++++++++------
> 1 file changed, 12 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> index 98544741ce17..6e066bd5d982 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> @@ -228,15 +228,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_tpm_spi_cs>;
> status = "okay";
>
> + /* Verdin CAN_1 */
> can1: can@0 {
> compatible = "microchip,mcp251xfd";
> clocks = <&clk40m>;
> @@ -246,6 +247,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) */
> @@ -808,8 +815,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 =
> @@ -1111,7 +1117,7 @@ pinctrl_sai5: sai5grp {
> };
>
> /* control signal for optional ATTPM20P or SE050 */
> - pinctrl_pmic_tpm_ena: pmictpmenagrp {
> + pinctrl_tpm_spi_cs: pmictpmenagrp {
The node name should probably be updated to match pinctrl label?
Shawn
> fsl,pins =
> <MX8MM_IOMUXC_SAI1_TXD7_GPIO4_IO19 0x106>; /* PMIC_TPM_ENA */
> };
> --
> 2.34.1
>
prev parent reply other threads:[~2024-06-28 2:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 10:48 [PATCH v2] arm64: dts: imx8mm-verdin: add TPM device Vitor Soares
2024-06-28 2:39 ` Shawn Guo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zn4ifj63+OwQPXx7@dragon \
--to=shawnguo2@yeah.net \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=ivitro@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=vitor.soares@toradex.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).