[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240617071842.GA4832@francesco-nb>
Date: Mon, 17 Jun 2024 09:18:42 +0200
From: Francesco Dolcini <francesco@...cini.it>
To: Shawn Guo <shawnguo2@...h.net>
Cc: Vitor Soares <ivitro@...il.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Vitor Soares <vitor.soares@...adex.com>, devicetree@...r.kernel.org,
imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1] arm64: dts: imx8mm-verdin: add TPM device
Hello Shawn,
On Mon, Jun 17, 2024 at 10:33:50AM +0800, Shawn Guo wrote:
> On Thu, Jun 13, 2024 at 02:41:50PM +0100, Vitor Soares wrote:
> > From: Vitor Soares <vitor.soares@...adex.com>
> >
> > Add TPM device found on Verdin iMX8M Mini PID4 0090 variant.
> >
> > Signed-off-by: Vitor Soares <vitor.soares@...adex.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 16 +++++++++++-----
> > 1 file changed, 11 insertions(+), 5 deletions(-)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> > index 4768b05fd765..c9ae5f0bb526 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> > @@ -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>;
>
> 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.
> > + verdin_som_tpm: tpm@1 {
> > + compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
> > + reg = <0x1>;
> > + spi-max-frequency = <36000000>;
> > + };
> > };
Francesco
Powered by blists - more mailing lists