Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3224857rdb; Tue, 6 Feb 2024 10:37:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IELWPnyKfk1X5MJkSm4MozkOVz7UuFvlNgK+3UfVo/cb3eVyzbLrKY4ZWmg662uJ5GHQHO1 X-Received: by 2002:a17:90a:2f47:b0:296:a375:cb86 with SMTP id s65-20020a17090a2f4700b00296a375cb86mr377409pjd.14.1707244637848; Tue, 06 Feb 2024 10:37:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707244637; cv=pass; d=google.com; s=arc-20160816; b=W2To+TglhUW8DriwLeGy/H0edw11fAfbBbpYGQp0/Ugn4YpyH+MrTGWjb7uSCTjdRj +n7Qrzr3MmnKWu5G8ExXe7I6nGWPUeBSfRQ6wegXkjGdHidiLq5DLjDLYL+Nf6/J1lSh Bk2B2LRLlw/79Pj73gTbCTOKaL0PVSVSW1gOIkf0PcCBT3c8gZwGjd1Ph+IpkFQ2gJGx l03zUZs8YE/LuqIlEAP6Ze+Sh0CGn7aQlC/fAh2diVNpnx804OmDMUSmg5RCOx380LMR PIXkFMDCYZBH5rnc4Yi1WJTgck5u0LAhg102zkMaLX5yzXIepv/nGL4i8KzlERpT3cpP 8+/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature; bh=am4Gfl/dMYoJTXjOuFfFs7MGZX49MaaHbJnO0r0rWZU=; fh=hbokdIQZvZ8QDIjIXqBejPLJlyMZ7ph971Iw6iHwUxQ=; b=vsR4GRkj/YczzSkMeFq/5ahCwcnCbDkUBl4BsAe8w8F6VEFvBxYXsr8zaKDSd39Nkm 0Yoe4EzmvDO9UTmPe8GhcnI1itKkv3bEyWRfKeAIphoIJEiarlNv3RHN9GuvDj4kiiJT 9kNGCoqAjtVt9Lu81RfP236xHXsB9OXykWsU37XIkDxk1rLpnhKcQfJkEiO0bT1jt3TQ O+yqhkdgpAuxE08XJjw70gtiP47f0nfj8lvV7r45nEd/XLRRUhooSskoU+xiirEwLXX9 gODT/XPKrcicsoHEQ/6HCCuFqgoJ8Y8H2GeaK/1S0+8zaf8uCGaizKebJTHM+GbUpfop z50g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=fVkMdGUL; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-55461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it X-Forwarded-Encrypted: i=2; AJvYcCUJdRtR6/uKAZeyqJYqPpy5EiJ1PSTwmK2bHso6sD7abeDeq99Dnx7foigctaLsG6lAshmUf+Ybin9s89Cv7X8R8ghouoVFol/A7Cje+A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fw11-20020a17090b128b00b00293e1a93496si1500749pjb.63.2024.02.06.10.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:37:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=fVkMdGUL; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-55461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 73AF5B23304 for ; Tue, 6 Feb 2024 18:37:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A93C134BC; Tue, 6 Feb 2024 18:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="fVkMdGUL" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B240613AC7; Tue, 6 Feb 2024 18:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707244620; cv=none; b=ndjcfDzGloTC11g6ft3ZdB7y/vbLLCOKaioXofHGxlQI2Q7wH/vLfSACvT4/8Zbu+1KtcDcX8n7BGgZQ3SWf1BhL/x3+mFoLnMBe2I2X8npW3w5L8TiWCWRsrblFwYSY/Y8LqT4y2N+FLasaNutL3W2eBF7C1CP2U3ewQcW7C24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707244620; c=relaxed/simple; bh=P+vXSlwDpmhtaUOyJDpWrnf7rOSka48e/3C8lNI4rdo=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=lwIXzPD/64wTWSEs7B53QrFDDgBM1ZHwf/Lfu+LR6YXVFaWUe7GpH3Faz4ZE2hrgRdEbZiSbwUy3Mm1yhMoSnHIJiiz+PBzuFcXdaJ5PcHhJsjGEbrAIfqcJjQGqkapuYa/VRbsAzhejVW6HQTBDie6BPEVzOY+P9YQ6tJpQgvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=fVkMdGUL; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from [127.0.0.1] (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 0A0CF22A99; Tue, 6 Feb 2024 19:36:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1707244614; bh=am4Gfl/dMYoJTXjOuFfFs7MGZX49MaaHbJnO0r0rWZU=; h=From:To:Subject; b=fVkMdGULQ25Km7zP8Z5L5Jhajz5vUQhbmduI4vjmk+/K+aZg7oSIqWlY5FB3w14eu ENZfqvlWmW8fhapWcnyKb1dSNvAEb+TzleFf+/hqpy6zoKZc6vfhEZ24q6rKy5PoF8 yKRd/nLi1DubCupbPOocksup04kPFd6vQdGFd552f8EnIKmWXvjvoPjyAWLVv2jhiz jdDSQgpff71RyKH84qXpYzASDvkVMp33uTbaBVX0ZSrWzor0jiQKOPixnOSFji7SPU 3oFHgjb00bonM068A3pIw8HvqPWu2YAUwENxmdMXlBaKQ4B+XCxNAIhZKWt1Goe2Ur 1xRiDNt1trWjQ== Date: Tue, 06 Feb 2024 19:36:53 +0100 From: Francesco Dolcini To: Andrew Davis , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Francesco Dolcini , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] arm64: dts: ti: verdin-am62: mallow: add TPM device User-Agent: K-9 Mail for Android In-Reply-To: <65a24f21-4cc6-4843-b838-b1c7020ca45d@ti.com> References: <20240126165136.28543-1-francesco@dolcini.it> <65a24f21-4cc6-4843-b838-b1c7020ca45d@ti.com> Message-ID: <26F9C286-606C-40C6-994E-EABDFFCDFDC4@dolcini.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Il 6 febbraio 2024 19:29:13 CET, Andrew Davis ha scritto: >On 1/26/24 10:51 AM, Francesco Dolcini wrote: >> From: Francesco Dolcini >>=20 >> Add TPM device to Mallow device tree file, the device is connected to >> the SoC with SPI1/CS1, the same SPI interface is also available on an >> extension header together with an additional CS0 signal=2E >>=20 >> Signed-off-by: Francesco Dolcini >> --- >> arch/arm64/boot/dts/ti/k3-am62-verdin-mallow=2Edtsi | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >>=20 >> diff --git a/arch/arm64/boot/dts/ti/k3-am62-verdin-mallow=2Edtsi b/arch= /arm64/boot/dts/ti/k3-am62-verdin-mallow=2Edtsi >> index 17b93534f658=2E=2E77b1beb638ad 100644 >> --- a/arch/arm64/boot/dts/ti/k3-am62-verdin-mallow=2Edtsi >> +++ b/arch/arm64/boot/dts/ti/k3-am62-verdin-mallow=2Edtsi >> @@ -127,6 +127,16 @@ &main_spi1 { >> <&pinctrl_qspi1_cs2_gpio>; >> cs-gpios =3D <0>, <&main_gpio0 12 GPIO_ACTIVE_LOW>; >> status =3D "okay"; >> + >> + tpm@1 { >> + compatible =3D "infineon,slb9670", "tcg,tpm_tis-spi"; >> + reg =3D <1>; >> + pinctrl-names =3D "default"; >> + pinctrl-0 =3D <&pinctrl_qspi1_dqs_gpio>; >> + interrupt-parent =3D <&main_gpio1>; >> + interrupts =3D <18 IRQ_TYPE_EDGE_FALLING>; > >Just a heads-up, the SLB9670 datasheet says this device uses >an active low interrupt (IRQ_TYPE_LEVEL_LOW)=2E Using TYPE_EDGE >here can cause missed interrupts if the line stays low for >multiple interrupts=2E The driver interrupt handler would need to take care of it, if needed=2E The SOC does not support level interrupt, so there is no other solution, a= m I wrong? =20 Francesco