From patchwork Tue Jan 2 04:44:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PeterYin X-Patchwork-Id: 13508805 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 BC8DDC46CD2 for ; Tue, 2 Jan 2024 04:46:56 +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=slOEeUNVUAtS79aEv7IYu7nXLvMq0K6d+MLlgpi44gE=; b=jM0cAL+j2tZGKE W+rmklBMW8LbDH93RblaZAZBJOK+veiOSSYssGP79pQj+RLD2I1sXTs3uc285xCMio+QrLFftvqwv 3xQvjdJLWcj4NNetXUvqVeDClDDXlOjFU6OJT36yabGqkdHQlzHSH+0BzQLMLyqXeV8OfUpCl7Gew 667qpe6v4e6kY+LeOc5Yem4j3vbqXbDYqjOel49tvwcWXMEPaF6DgvHUdz15DgZFYQs0wHlu1Ahc5 XNGty8Yd25i0yYtKWqcqNCi1Snv8rwzkjEFtCwuat/ByyYn2ubKVMsnlAWHIV+hVMHaU6EtaXVbYG E7RlW4nFRe7CAsI6h6ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKWfd-0074kk-3B; Tue, 02 Jan 2024 04:46:29 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rKWfZ-0074iA-2d for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2024 04:46:28 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-28c075ad8e7so6445432a91.2 for ; Mon, 01 Jan 2024 20:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704170785; x=1704775585; 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=tfJIsodrpZIIAMpybgAC7qz4iEokdxJ5UnhS1fS4za0=; b=F/f0hcIRSKr/oa4LK2riQYC4vThRjOyS/h5LOmvYkodqPBYgeJfW/Ix05uLieTbi4v MwanUpunOaZHD39wr1YwbK8KVZdvVW9fCsUvNJPTFI7hv649mlMGbWNy4haxvAHFTwUb PM8EVWgpnrK/eo8K1C5JOQCp7vysovhcEdsksTom//z6Gqx91izFBwfjzLl4nb088AMB mI56v9qxv8/xFC2jS2vv6+zGw2lGg5/gl/+rsZpepLJrlaLuSTR4vw/TjNzajXz0hZ87 ksiOoQlhALImif6YTURom3VzEjGIkWos+uhyNZ5Vtv0qKuMgOWWCowaOyRtMBNHRsEma wGiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704170785; x=1704775585; 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=tfJIsodrpZIIAMpybgAC7qz4iEokdxJ5UnhS1fS4za0=; b=XoHj+LmsgDuPC28viM/7JqdvyzCisNcv1VJ3MAviKk98p04I02azZ855QfUR05RxnU K53FaT9+OVc/bc2OHuL2gjYqqOjk8ljAmII/b45zKfNbYUuGVcHyWmh/4TO+m5Y3tTMs x4YPDYH1zA7FhpNm+IFbw9L6fcZenNfPihnjJh53zPqwBTxXcYlcbLL1gpl7p0ffbDGb XHL3v64ue3CY4+l8TivbsBnbz5s/ZAxMyL1UMU0PyAxZjsAjXbdUUEsQb05O49xmD2/c 06/ryC4xDOu8w5XEVTGsj3Fihdh3ZrifA8AGvMXB41MXF6oJ16GdRPx5i5Y6c3ahAfuB qObw== X-Gm-Message-State: AOJu0YxtINUkGhw8LBPjko6C8ug/tvXs+z6ZbcnMSnPdKSrfSwQFFyNA XKqKGql9mzFM/GkQDjwMiu8= X-Google-Smtp-Source: AGHT+IHqRXcCWjxv7N4EPqiNsAsagi/uGM9jN5nqeDXbh3ZChgvTzpXvqFuFgkHctP21eOphDhuWJQ== X-Received: by 2002:a17:90b:1b41:b0:28c:2e37:bd97 with SMTP id nv1-20020a17090b1b4100b0028c2e37bd97mr7354431pjb.80.1704170784753; Mon, 01 Jan 2024 20:46:24 -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 d21-20020a17090abf9500b0028c2b2b76c0sm17308392pjs.22.2024.01.01.20.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 20:46:24 -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 v1 5/5] ARM: dts: aspeed: Harma: Add spi-gpio Date: Tue, 2 Jan 2024 12:44:09 +0800 Message-Id: <20240102044409.3810873-6-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240102044409.3810873-1-peteryin.openbmc@gmail.com> References: <20240102044409.3810873-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-20240101_204625_866010_B8665FCE X-CRM114-Status: GOOD ( 11.04 ) 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..25ae044cd176 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 = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; }; // HOST BIOS Debug