From patchwork Tue Feb 27 01:47:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13573115 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 54F36C5478C for ; Tue, 27 Feb 2024 01:48:39 +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=yc7ho2EsLqlYK8 f4af45XKokjUMgJZziQ7FtcXFZCPXPXpeUhZG+M2wlmrHQpMMFiX+C1IYFeUWhAu4vFH+sAgZ9J9n mLzdJ4Yt9m2rj8OfHaE8vlCwTQp1ZQ4sgvy0xn9Rkxwns9vUjiqZBATy6pMyi2Fzfhjp/3JTpzOOW wrlDYI9ILZW4h3HI3fgZkpIKAzs7oYzpk9Q2u1bNFbN3KJVjDButiL5h+YQG8IMwF3C9bD72NZ6NW x+do473EmCgZEInBolftWsh7EIOVviKhGH4GXXAxN+fShzpcYCnT4vy6SmbEekFdrDFk2HW7bi9/O jfeVkdV0NqxNDjJrbdzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1remZy-00000003MB2-06Mb; Tue, 27 Feb 2024 01:48:22 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1remZN-00000003LoB-0qJb for linux-arm-kernel@lists.infradead.org; Tue, 27 Feb 2024 01:47:51 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1dc75972f25so30878275ad.1 for ; Mon, 26 Feb 2024 17:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708998459; x=1709603259; 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=FdPa55x9G9hRDWEzYMLaBzeGiegssuDe307IlbzcZs5ReJZgaOa/QIBghecmZRc9ag GLnIM4FlwDFalgmfke0xNhy2+rlz/LVY3y/QifMEsHFXlJPashclAZ+D0wSdZOgkgCTe C+0T0EO3eDLJit1Dkn/fF2jO8vYA587T77ZX/lkOGRKsPMBTCQ9g4ipbsbIIjR13A2hs xSUi3tCxdYu16U9kR0ViPg6Gjf1P4Fon6LR5C2KpqlnVxitpC+D064sJY/HYQU4XlGf8 acYQUZKyD5UN72/arXQYc7aU8wPa+mhdjzCFJ/CQVyZq+vFgpK4vqDrjzWZ6mITGcmvp U0kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708998459; x=1709603259; 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=AaQI5JSSmTMu2Ebegd4UCbH2hWM3rAAL1Bb8TlJT/mRJ5eKQ89uK1MkdQIEb+QqZDa IIKjkS2e9qkyE+aQvlIJO1B1nPA3mWZKdVVOnH/AaaR2jqJ0qfGnOoJmTpObTriBH7x2 cwfs7vF1znBlqlVHm2LqIQU3kIjPcjxfGpjCCNWYcgAQMl6JwOkOg1WQfgDkJQgVoaV2 9ffH3EdkrOnTKRV7kPlDeNih+b76AiC5V3YViEpFtC0E19BEDbH1yrqYB4RlRfWner8o fKRyUR/J60RFhCJgRlDOKPf91nglD6KJPWqXChFYj/S8aRIVTaX5QFL04fkCudZZNY9Y T6JQ== X-Forwarded-Encrypted: i=1; AJvYcCWYwygL02a5JBXsa/1rvLTk+1NNsQI+UsZfcPnLTx/VjMdpuwzdUyFPZAzelwUWCyGQx1yousEIj1rElAWXjXSdlXh30O59rrPTtPqoW/KFej1SWKs= X-Gm-Message-State: AOJu0YwhSuz7/DI6WQc47bzyF0xKCRQk4Uj2cWZXQPtba0vAoDMhriGM KS3zkNKd3LxwGlsn6iNDle3hmJshZTLrLI9eocqKUQeEnsCz0g5MSLsNfCX3 X-Google-Smtp-Source: AGHT+IEZepgeDkUT9RDJvALOKsdiZXgwdG6lSfCTNXsWgnFPt2uDjmBS4/7sgyCrveGYIUTBsjSkzw== X-Received: by 2002:a17:902:9a4b:b0:1db:f952:eebf with SMTP id x11-20020a1709029a4b00b001dbf952eebfmr7108683plv.44.1708998458872; Mon, 26 Feb 2024 17:47:38 -0800 (PST) Received: from localhost.localdomain (2001-b400-e381-af24-f369-7cbc-56bf-1d54.emome-ip6.hinet.net. [2001:b400:e381:af24:f369:7cbc:56bf:1d54]) by smtp.gmail.com with ESMTPSA id kl14-20020a170903074e00b001db4b3769f6sm318893plb.280.2024.02.26.17.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:47:38 -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 v4 05/10] ARM: dts: aspeed: Harma: Add spi-gpio Date: Tue, 27 Feb 2024 09:47:14 +0800 Message-Id: <20240227014719.3037588-6-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240227014719.3037588-1-peteryin.openbmc@gmail.com> References: <20240227014719.3037588-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-20240226_174745_330185_14BF2A77 X-CRM114-Status: GOOD ( 10.88 ) 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