From patchwork Thu Jan 4 13:45:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13511138 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 2FD16C47079 for ; Thu, 4 Jan 2024 13:48:17 +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:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TA1INbI5MK2t/7a2TpbKiis1/vb3OkJQ6X56MUGbAuQ=; b=d6RLW8K0AKeNcB Y5HuODTrIm/mdduVTk+G4uaTyQ6SepgXX0EYLn+eBRFC50VfJtNz/SG/Cm9gS1YvhH8FgOvlPlSAH 3q6zV5di98Eio5DNyNHnnYGs6Zq6RQwsd+27SSZAijrQ3cFld6Iw3g74kRE1O3iFhNYo+pbnTIfKu StgPzJ9pxMlOgOrt/uxZ58wgFAFPaksEMSJjkBAcbk3qOvHb/d8mif3dELBkDv6Y+34kCVSV3rdGJ uW4zgWa2xGsacmBP3R2KykapsDiDtB2lkh0twpb0BYH5MPL5ld7hyabvoYXhipqMepuRX80fv6fBP WxN2ONg2HNzkecScCzJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLO4h-00EDnE-02; Thu, 04 Jan 2024 13:47:55 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLO4d-00EDja-1j for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 13:47:52 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d4a2526a7eso3264005ad.3 for ; Thu, 04 Jan 2024 05:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704376070; x=1704980870; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7+fqIWtBV/T+80XSNaZFcmZX/ftnbYEEAJ0ueKG+0WM=; b=J2+0V/ZdRRoFAg5FflV7tOWTg4uaXY5gkjFP96SzDaV0JbXHt1Iww0NH6y0kx+FwhP z17SS4DGZ8P/EhYDZ4AAgLneSh8I0iUlFTkyIAJcNsi0p/s2/U7Vi1FoVUWMuGbwTskK EEoJ9MDKMKSE+CiWkpPu5XM6iqnAkMvDxptkXSSzhuOAJPLiGKPq6NHFbGLEup31EDvp jKEQEKweg/uU0387Us3l6cM1CyeGrlJ5CdomsVeb+tIGnP+NZ3kpZZJt1oHV3abbYvWs HcJ6IQW9yKUEHxlfjoCMi3o1MaL4EkLdou+/ES+fUFEeysp5nvX4v6KXkaPi0Gh+K4Sm o3ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704376070; x=1704980870; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7+fqIWtBV/T+80XSNaZFcmZX/ftnbYEEAJ0ueKG+0WM=; b=QX+1Ssfbk9ROuLalZaJ8FyUdhUNa4BYKFh4/p7rlQU/2WaaxJYLiE6E7b9/Nbh/gjm YZ82HYFcHYeBayXD43Wdv+rpMdfxohKeaLZKAbVoZy85WgbVkONb7iH3VQ9hdqWWXsBc 2KQDSkZyEncG/IBZKKJzgj7yzU7WO6JzHz+pZR9Z72vFECyuTsI0upwAUJHSKqdPC4l2 5ZMFyGWWnMIyrjwC+Sh9w1ncK13zZLOkrPhkqhInXyFR2t1g4WoNSFd2vtlltQ5YevsT 55N+QRtcvSsRH0tL8NpEsuvN01Bn86Q6mKGRADnBDOr6XP4P9qHKnvlFjo8lcupJUSIZ tGWQ== X-Gm-Message-State: AOJu0YwQVUqigmQSlM2WfOTPh4U4uvYVD9PtkKlr8HEx6CxWKdmOFCUA ETbpPvC6nM0nCi9XX2KQvyY= X-Google-Smtp-Source: AGHT+IHBxBwSpW28GZdntaZFG1A80qvbNoZ957AWOQCPnqqsFROz+rNn2v5UlOyhSbVyKo80+N6cXw== X-Received: by 2002:a17:903:120a:b0:1d3:beea:972b with SMTP id l10-20020a170903120a00b001d3beea972bmr514003plh.93.1704376069727; Thu, 04 Jan 2024 05:47:49 -0800 (PST) Received: from peter-bmc.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id a22-20020a1709027d9600b001d425d495c9sm22990550plm.190.2024.01.04.05.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 05:47:49 -0800 (PST) From: Peter Yin To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] ARM: dts: aspeed: Harma: Add spi-gpio Date: Thu, 4 Jan 2024 21:45:31 +0800 Message-Id: <20240104134532.536793-6-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240104134532.536793-1-peteryin.openbmc@gmail.com> References: <20240104134532.536793-1-peteryin.openbmc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240104_054751_577754_0F41837C X-CRM114-Status: GOOD ( 10.52 ) 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 Add spi-gpio for tpm device. Signed-off-by: Peter Yin --- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index 36aad01dda20..ca3052cce0e0 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -28,6 +28,8 @@ aliases { i2c29 = &imux29; i2c30 = &imux30; i2c31 = &imux31; + + spi1 = &spi_gpio; }; chosen { @@ -67,6 +69,25 @@ led-2 { gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>; }; }; + + spi_gpio: spi-gpio { + status = "okay"; + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>; + + tpmdev@0 { + compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; }; // HOST BIOS Debug