Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1656235rbb; Mon, 26 Feb 2024 17:48:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGn/7boBfJyO94C0AHnOHpE/ZUgCnfiUXvkQj1pFlPhyKQPoqEt9wTAyt9rhUhizPB30gvDlA3026KOs1ISWQYqXVq5EcdhBWHFqICBw== X-Google-Smtp-Source: AGHT+IH+e2pQ7tx+3mCErmdQxE0BEvQgk2KM5hNAevWhtqz5iMBP/w5W77C0ZU1G+MtnBeDGLCng X-Received: by 2002:ac8:7fc1:0:b0:42e:7814:4564 with SMTP id b1-20020ac87fc1000000b0042e78144564mr8951974qtk.6.1708998510770; Mon, 26 Feb 2024 17:48:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708998510; cv=pass; d=google.com; s=arc-20160816; b=nbEY2dIOvIfRnUM13iy42/6bH95xAKw9tgxQ2XMD734KQhcm5ENrDdIhhxEih6G0gM pfcQTTSDT89g/PqYeUFRCF/PyeXdRhpclrQKtz6QMTM0x8UUl+U7Q2PhTvYvuwcBzWh/ 5xnewV7T2jTyOktgyAxcZuCOaV7pXWO5M2qVBL8M6MG2eZfzjV/wVA52o2DSz8g2E+rC xchjptty625h2adExbHby5bksMUoB7uaAALqgcg22AURYkqMyHf9FYb6tR+xPVuoxvHK pA2ejRh+ec1C/q+MhTKzZvYMm4R1Fnpaa8yOqcD3pEjo9JqhgSdLu0Nzqc7UAwCHr0WS 9mNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=7+fqIWtBV/T+80XSNaZFcmZX/ftnbYEEAJ0ueKG+0WM=; fh=29vEBG28sMzvoM3kAPJWoi/B4lmFUeeJsXK9lPh9f3w=; b=NTPwFTU/MmD9UnIqAJzA8sK87QA8cu2iDt/ia4qplZxKRQhsUlVYAN8DE4q4fnuzgm aVCcw2CaUY8UarKb8+rTwNIP5GbAqXFRHm9yZrhRUZ97us8kYgwB094wTZcQHsGoQixP ugorT+uDhrQhFM3lWMpkNYxvxY3nBuQDDxTILe6cXul6Oo1WNMOudTUcgI5NdqoXZsYD NTnk0C3vsxFk1ALXkyq2mKfTvXpE1tTltjdk/zQXueAlNax2hKgONmuIDZOw7OSg7LpH wDc70C28Sx6iAgklDsijKlv4oBE2ZuMKRelIBOyawhK6BtJbzbjE2tZ4NAqNJhCR6CxA ejhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bZ23hbzS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-82557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w10-20020ae9e50a000000b00787b7fb88b9si6297042qkf.630.2024.02.26.17.48.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:48:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bZ23hbzS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-82557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8774B1C25F8F for ; Tue, 27 Feb 2024 01:48:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD1C8F9F0; Tue, 27 Feb 2024 01:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bZ23hbzS" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F4C03717B; Tue, 27 Feb 2024 01:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708998460; cv=none; b=pWJalRYNMfgUitZVXJV3cLrIkboPjIZ8Sjz1K3qaGk7CCywXGTeiUOaT56zahpAAH1J3Qu/kkyj3wsc06h5Ksc4xlx7VKrUobeR1uT5Q+jhhuTPo0l/0q+IUnGMgvpQfzwm5QF0mWU2G3P4oVHs2yXfK13Pzt+9V+5yUddQWfl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708998460; c=relaxed/simple; bh=9WADVJJVD9uJ1S9KzLlikKR0zghswLsvPBCUmK13lFQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S+5Lpzbq0vpy5ShTaajVdvBZ94o5V2V9gbpN6r3tmigkShuWz42NrwEw91hvB/9mgAoYNNb8rQLRiutrxUqGvqxeWx7civE1JgBmUHAYJHg0isSzYP7EL7u8ooA8XOwRf95l3OQlvbqhGo12iiMXYnQhlQrQ0563CfZbww4wKA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bZ23hbzS; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1dc1ff697f9so30447565ad.0; 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=vger.kernel.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=bZ23hbzSd7Wxer/c6T4de6vRv6x9CV3qKLcqjPqoywDXni/uP6DG1jUxFXUkfXUDTh 17a82Oe0iead9pd6ME7NdMGcHx2vNfbOFK+M+56xbh0lgep042Tf4zA5xxvuO01ywXei LijC6YCKN2HG7Ch+3CTnSjdMN2KvUyJ0jSpKid7iuz61L5qvUZ+UN0MA7w9kn1iuChNh dKnVQse4DZ1Iq4k3opF9dUVVWvO8e6IAL227oPa45Nj4Oe1zzBCT8OcE892rOAFXw6Zi +61lDx1UyW69vGY2Q9LKdXmEqbzGoNAUfMdh6s+mHN62Lp3hMyxjKnbymyhPLUi0uwVD m67g== 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=BzhucXy2LNHedcwyz4gfFH7G1XeaU51LrP1Ri1lrzjeaBMwpCpcqVgYQf4RfVjXVG/ Trshr/0TtbZa/sF59XzmUlVWyFDNrRCkkqhrujd9UXa0rJ/B/S+DHXfbrcLZqN6A2Lxz 26DANXH5PPRH9hgpjcBt3x3lk+Q39VxCeBLDDEXttRHHqRaccSDeCtT3BDmA5soc/nk5 +oARrnWiODGa1o4UPIsWAuyu7WDAC30ET9ClNLPQL6zapdKlNSzPJUleXG0bvSmgDnFd +/O9dIvX2ZU1V5okU426EnvKyoqSdTKSuTXSRnV03riN5rqnsimGs3P8kZTSvxNYut+o 87og== X-Forwarded-Encrypted: i=1; AJvYcCVJCW0kKdh0xzo3r6q3YpkrxL40odCbYs/P+TdS1ouQzxBv4RfsyGlu7M8zbkUZpaTAolnrfczzl3RuiVPhWZ4215f6ixXpmh5VPGWJooEU9jo2YilBFAplGxlVyDTW7G1eUJ/LIgZcRA== X-Gm-Message-State: AOJu0YyVbihSch/NjlbHu39Psee2Rm4RHwvmhNuU8C6hiD3oyHobzEvr lkuX+AwEBV9AnHZfY4+pL9W+INapsdKRWIYFMpM6K4nECeC86QsX 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.25.1