From patchwork Fri Apr 12 09:15:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13627425 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 9327CC4345F for ; Fri, 12 Apr 2024 09:19:04 +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=Q8RQIHWZhIwIeX loeG+C/qvEArrRdJIggu5Xg53IHOCl77IFycu4yXiQjLIUUQvSorpZaDO0VYosOiYAPKropDcMSuE Lji+1oqbUJ9uZSSNhH20ZGBDXDULDEcP3ivQ8R8S4jNHVxWv/WUzpTAllBUXsuSTlC2Mg2CskIY8V 7UtnJ8CHLlF/pVkuW7KFGPHHM582sqzbPE44DVTXh4ZEinB4yrBHC8zC+ArTwifPI4xqaZQCGVIn6 5isKXw3C3ICCmiOpFL0IPCcqb0J/MQlKDoC68MHjQcJA/QVAU7b5ZhEmlXhbln+yPEHxDGkpW/WJO sO8xBmzCH3VMMOYutLhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvD3b-0000000GOKF-3cxX; Fri, 12 Apr 2024 09:18:51 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvD3C-0000000GO1j-257z for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2024 09:18:36 +0000 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6ea22016864so427156a34.3 for ; Fri, 12 Apr 2024 02:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712913498; x=1713518298; 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=ek7iA67Ca5OtXgMd64LzOnAYfYa1VQpR7Cb0ecxuMGLg9kW36FaDJWL+HGVrWmUeaM 1sb8IluRUjI3X8k9wezFPJ9Qj7/z6bheb7xmk9y7KTL9Hmpzc61Lq8F2kSuaXTrYSMqG kfujbfktgcVNWlJ2KNUdj4c9uNt0qwin1wPi6fmXjZsNtg9yDoNd5Gu/Oumgr7EqqhpT Dxy0vIY92of+dVpF4M/wz4bGNaOSMMXf/LlP5V1CK3nnkgV4/Gr/l9JCvBMcpjMEVUM2 SqhNhFk52ddMl5kz9vmUlbI5IfhkK+9MtVrU+NkWlpZJDFwLQzdmNgun6ZxLi7kSNi7K Gr5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712913498; x=1713518298; 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=XCH/p9AulCZF8jPMPw+dDnTHW+yJJLwAGQpAAPdTZgonhirox9odrQxXKOktg0nQVW QDiep3Wgc1M7s7NGrJHh9TI1T8DdKyvIN0VjVo0jEhx+c+LKgp0h7XpC+FuEeQ1qGnab uRNWtNxk80Pw/02DEN+DsNU9uH4z2wN5qOo2NtAjYPmdf2IowiEZTwpouhNXvDCGZcEE Cv34mT9bswghu/tkCYuAMjpIvLz4JU4tl+bveEzT77khBslZbeJbRIqTnqQ4d+6mfIqo Ys10F1CCAmZoJjgz2NPwZW7oXz3wvpxd7ikiYncVHUxZ57HLiu/oha+X2pajTkkIoYm7 hzGQ== X-Forwarded-Encrypted: i=1; AJvYcCXyy6l8xN/zQMsIHRKwy9gxmyyrRnXIheBS5Uo1dEIJeEgDhb8Fqe658H++ZNSMQVnjBiDhtoWF6MVEhMByYoYOkmngo6bUa6+OyOJTU+eJMMNm1Sg= X-Gm-Message-State: AOJu0YwK4/Y+kdug2Xdx6f+qRO+jNbUDHbQ6cv7tNDEG0Eo4i7hMdDw0 +zadp0M2EIkY4UnoRiR1MZgRwcK5yNabDH2DpzSxmcZp56Zkb4G7 X-Google-Smtp-Source: AGHT+IF7wJIWrxBXDGre2KaDfG+Umj6T8KelYCmPYrslfD82jg2/QK85jfSzGd5FWv0aHhTq77ZZPQ== X-Received: by 2002:a05:6830:1692:b0:6ea:d43:9db2 with SMTP id k18-20020a056830169200b006ea0d439db2mr2024550otr.4.1712913497944; Fri, 12 Apr 2024 02:18:17 -0700 (PDT) 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 b25-20020a63a119000000b005e840ad9aaesm2332711pgf.30.2024.04.12.02.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:18:17 -0700 (PDT) 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 v5 05/12] ARM: dts: aspeed: Harma: Add spi-gpio Date: Fri, 12 Apr 2024 17:15:53 +0800 Message-Id: <20240412091600.2534693-6-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240412091600.2534693-1-peteryin.openbmc@gmail.com> References: <20240412091600.2534693-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-20240412_021830_668227_5F1C0DD0 X-CRM114-Status: GOOD ( 10.42 ) 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