From patchwork Tue Jan 23 10:29:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wadim Egorov X-Patchwork-Id: 13527167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1844AC47258 for ; Tue, 23 Jan 2024 10:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=H62IXj2mxJRhUUhJLuGhpNL4HWxyzPa0+oyRd/rUSTk=; b=LoQSieMsRf9k6n jnlce4gqJ4DqWhmIIqugTUidrqaavsltq5GBIk6xp9/umIO3FSt4EO+pbhAUKM7JhXGH9jT39RlGs i1c4qRYtFfgfagNOzzuWL3nKUgPEuGQiqVFurBCScKBeIgFIOBM1/GtCOBCdFkVu0BFH2dv5FZmZ1 UloDslIZUpKLb8Kfqup5FmP9fc+glmJdKHnI/tryE4a9AFaGFzbCd4odBVftOmh6JmbXItXPow4+X pUaLtFV2PitYYGtD6OrUrpkTlfJks4Oih6RZYNaxbxom6OdYBeJU3zLNW5lZjdTCp966S2ZZb9M7U Knqh5HFdlGGyurE9Kt0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSE2M-00Fw1i-1U; Tue, 23 Jan 2024 10:29:46 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSE2H-00Fvy4-1N for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 10:29:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1706005776; x=1708597776; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3528Bh1w1ePwVQXdFUJM6DTyJtAszP7ZqPeAoExHN4A=; b=KVSg1o47nZMwLABH1P8l2bJgdO3nZzJtzG0izWjSPacER8bgcaLR6Johmg1GeCVU 7rnFmiQwwbvq4gabidP3HkRImN69jl1wHGEcyz0FtNc2z8UuCtyDYgbhp6CTiUD6 qAZ4HB3XcE00hRDO2V4LrBApfQCJpRVSDaqBOOPlElk=; X-AuditID: ac14000a-fadff7000000290d-4d-65af95104432 Received: from berlix.phytec.de (Unknown_Domain [172.25.0.12]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id CE.4A.10509.0159FA56; Tue, 23 Jan 2024 11:29:36 +0100 (CET) Received: from augenblix2.phytec.de (172.25.0.11) by Berlix.phytec.de (172.25.0.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Tue, 23 Jan 2024 11:29:36 +0100 From: Wadim Egorov To: , , , , , CC: , , , Subject: [PATCH] arm64: dts: ti: k3-am642-phyboard-electra: Add TPM support Date: Tue, 23 Jan 2024 11:29:21 +0100 Message-ID: <20240123102921.1348777-1-w.egorov@phytec.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [172.25.0.11] X-ClientProxiedBy: Florix.phytec.de (172.25.0.13) To Berlix.phytec.de (172.25.0.12) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsWyRpKBR1dg6vpUg2VLJC3W7D3HZDH/yDlW i+WfZ7Nb9L14yGyx6fE1VovLu+awWbz5cZbJonXvEXaL7nfqFv/PfmB34PLYtKqTzePOtT1s HpuX1Hv0d7ewehy/sZ3J4/MmuQC2KC6blNSczLLUIn27BK6M7otf2Ase8FR0/t/A3MB4lquL kZNDQsBEYtfX7+xdjFwcQgKLmST2tZxhhXAeM0o8v3iZBaSKTUBd4s6Gb2AJEYFuRomTB5Yx gzjMAm2MEk8eHmAGqRIW8JaYtuAOK4jNIqAqcf3xE6C5HBy8ApYSy+YHQqyTl5h5CWQdJ1BY UOLkzCdgC5iB4s1bZzND2BISB1+8ALOFgOIvLi1ngemddu41M4QdKnFk02qmCYwCs5CMmoVk 1CwkoxYwMq9iFMrNTM5OLcrM1ivIqCxJTdZLSd3ECIoDEQauHYx9czwOMTJxMB5ilOBgVhLh vSG5LlWINyWxsiq1KD++qDQntfgQozQHi5I47+qO4FQhgfTEktTs1NSC1CKYLBMHp1QDo6eQ 7b+2P1qHjSuYG9R1Pq0wt7jttzYw4sKd0K1RB9LkLrwueaP/xnXT5s0Zk+30ZEL/HnLTexf2 8eucqsp7O/TPJ/pK/3tXoLpMKOL/tyDDTUesj8oW2dZcsOQ9VpE25eAen6OLVE/2bUtiufXz QOBCPkPRhlvzVG9H9l05mDp5u4cQ778HHkosxRmJhlrMRcWJADj06iRxAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_022941_610058_F080DB65 X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The phyBOARD-Electra populates a TPM module on SPI0 bus. Add support for the Infineon SLB9670 TPM module. Signed-off-by: Wadim Egorov --- .../dts/ti/k3-am642-phyboard-electra-rdk.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts b/arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts index 53b64e55413f..8a518a86abc2 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts @@ -159,6 +159,15 @@ AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */ >; }; + main_spi0_pins_default: main-spi0-default-pins { + pinctrl-single,pins = < + AM64X_IOPAD(0x020c, PIN_OUTPUT, 7) /* (C13) SPI0_CS1.GPIO1_43 */ + AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */ + AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) /* (A13) SPI0_D0 */ + AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */ + >; + }; + main_uart0_pins_default: main-uart0-default-pins { pinctrl-single,pins = < AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */ @@ -248,6 +257,20 @@ &main_mcan1 { phys = <&can_tc2>; }; +&main_spi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_spi0_pins_default>; + cs-gpios = <0>, <&main_gpio1 43 GPIO_ACTIVE_LOW>; + ti,pindir-d0-out-d1-in; + + tpm@1 { + compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; + reg = <1>; + spi-max-frequency = <10000000>; + }; +}; + &main_uart0 { status = "okay"; pinctrl-names = "default";