From patchwork Tue Mar 12 06:15:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13589542 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 61795C54E58 for ; Tue, 12 Mar 2024 06:16:43 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hCLw79mrPmDyIZs8WvpUxJAbIaLhTC+QoyPCngI7Scg=; b=ET4HUpbzm3sPFL PsjbnKPjYdFPlLi+9bRTdTbj5vXIhCXUWea1GnM2xaoKolN/dF+rU+QO3IGruBVzw5NJPwLc3+evz 4iQMPKTqT0nEF8d96r60BlxaEkxZxF3qjYjeSw5RPp54APJNRkBSvc0Tj3G7+jbBzt8SPLcBw735/ LYHa/UGAFhj1/YKVQeZCsvx+iX8NnC7x1OIJ18lMw9wOI7r0DXtqZd4TfeRnC9h3y24svguQDIBZV Bb01PIDZnfYt7a18Qh2BYtEK/iZ+UEvitPFCjWjSALb+Ub2VeTi4fPO+3PTh5ORvWe8+dNR/tQn3M ojQYLbu8PwapxyRqzw5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjvR8-00000004WWW-3YlT; Tue, 12 Mar 2024 06:16:30 +0000 Received: from mail-psaapc01on20626.outbound.protection.outlook.com ([2a01:111:f400:feae::626] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjvR0-00000004WSf-2xXE for linux-arm-kernel@lists.infradead.org; Tue, 12 Mar 2024 06:16:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GX6PcF0BuB+7+P/x8g9OGughP9wHp/f9Hkz0rZxli2d3xgfo2nAkuGiwuP+Xb9Qc8JuP3jE1KlV0tZheqkpXpj0Z/bT9s1En9BPoxlzdmd+6vKvMBCrgrrN0S4F+2f9x7TdVCcK2LetOJqmyvQ5R7V7EfyyX4p721jmOeBvxDjwM2z383cT0vjlKDN/Dvv2o2wdkNS4oPS+kQTYSOmNmQK230JSj9sPT1s4ErbiKswPLwbwDpGRDO4L/g3hhwgbYJLmPj0N6YI+rmbBYCNxfgYEbdZSQd3yS+5/GoybwRyLG0JQjctNqCtbed/cTsVzsLr0encV7AJoN6m0dUmfOqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MXS/IBxr+oV5K2cp3jW9e7qRwk8DHsYfz2fJN3Mk/J8=; b=CLdtUYjV1s05fmvicmAHvL51pOXWJU3j8LTCLUfOi1Gk2nZAvQItIUR9E0Dn3noUvx8snYOeHo8o4+9Z6Pw/Lmpioh3yvAHVNDa9Q4SLLlSCqt3/sKy1bjk9cC4C163Dk7ZIi7gLNKTmqV1ECsogq81FCesoqoJWQ93EpW+CuFF25WFWkJVnBhjzH9mO9hTzOSvgNuuG7iR5/l7a+LW+UHPDcEM6rjiYelziwyDYNud/InbMbhIx/ZrJg4OSFBCl1/KqNMs3mVjHrF9D0EtU7jyFI4RiUo35Z3cSkozg6VedmDNGASGelBpIudVg/hDIX9AlI7+LUmcDiRowPbfOnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 211.20.1.79) smtp.rcpttodomain=stwcx.xyz smtp.mailfrom=wiwynn.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=wiwynn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiwynn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MXS/IBxr+oV5K2cp3jW9e7qRwk8DHsYfz2fJN3Mk/J8=; b=p7lZoLeyMY0EkvHy0UNMMdM11g1decax0Ta2LlHQr+r5hW2dPCaOnzuBhtfoiBdwb+AVibweP3YQtdVFu87XmSzSrsL3Mw/1o+lfQHkqwCfhW878MCPLoIXJC3tP53z3RpfPIZis053THs0XNssYG/VTLt/GVixwi5KxGlpfexL82azLUESNsLJe/71/SxPVsI4AiqtkXB3BSj8F9X0DZvBLHvT7PEHFwjYYfkysbvjfs4kd6I0FW9IwUkjj2YjZgLLDZcU0FzWFZqUkWgZFM/51EVOIaXdvp83WItSHs5DVygUN37BujsWlqSUZUTRnZIGnizFQBk95BglOM3g0hw== Received: from PS1PR03CA0021.apcprd03.prod.outlook.com (2603:1096:803:3d::33) by TYSPR04MB7715.apcprd04.prod.outlook.com (2603:1096:405:5e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Tue, 12 Mar 2024 06:16:15 +0000 Received: from HK3PEPF00000220.apcprd03.prod.outlook.com (2603:1096:803:3d:cafe::1a) by PS1PR03CA0021.outlook.office365.com (2603:1096:803:3d::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.17 via Frontend Transport; Tue, 12 Mar 2024 06:16:15 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 211.20.1.79) smtp.mailfrom=wiwynn.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=wiwynn.com; Received-SPF: Fail (protection.outlook.com: domain of wiwynn.com does not designate 211.20.1.79 as permitted sender) receiver=protection.outlook.com; client-ip=211.20.1.79; helo=localhost.localdomain; Received: from localhost.localdomain (211.20.1.79) by HK3PEPF00000220.mail.protection.outlook.com (10.167.8.42) with Microsoft SMTP Server id 15.20.7386.12 via Frontend Transport; Tue, 12 Mar 2024 06:16:13 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Delphine CC Chiu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 03/22] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Tue, 12 Mar 2024 14:15:35 +0800 Message-Id: <20240312061556.496605-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240312061556.496605-1-Delphine_CC_Chiu@wiwynn.com> References: <20240312061556.496605-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000220:EE_|TYSPR04MB7715:EE_ X-MS-Office365-Filtering-Correlation-Id: e235132f-9689-4e92-d2cf-08dc425beb3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AXaq9GWJdcSBEO3L7S+J/6DRQwt1pSXwqoeLZzFNlfDukcEkvFqZLkjgkokLkG804w5HKxZIv0OzuL/aCY57WVs2wB5S9QjZ3c/73SbsOWi7tyH/Ojw7RvPke/iyMyRpSGNiaWE25hI+ZMt9jdKm+vBjp50HOn+oIp47Tqfwtw0rGFdLLU5SWan15+rT9e1dFtDWXGogD1mwKHZBDM9R1wUXZ8tyTWeQVXziOsnyW3xid/+pcuWf3F///3y2M99DNSHjxabKMFp2M1pfyzqdWpqsvnNjwNvNMfnRHgtNW2gu087BQD7EL69QQ89GbEptNnO/OXfvJEZNH6ZoKslKYaKvToxOb1NKvneqrhTHefrYF9JylGmipHj2WIjfIcwLiRq48D7Tca9Tx8cf3TznY6GNB9gpqrm1mI4Ir4rxz3Mg5qcTcKfhLMWeZc4g4PclvynUFFo1ou3ItwZ9NuK3xZf9vGr09/RisZhkWBXew4Tt7BSkXddKCdxx0w7g5cRFJXrS6dhO/2SXsLwjDgRBSPUMbDT91E3DMeut80LydA6OQBc1/7DCswWfaihyMRpOY1qy51DoxkAKU4gG6zssKOGxRt53mu6XMmEUfeZcp/J7duXeAV+869VyK3+ArV+BTVLtOMLNmGDczM4oY+6WMWyNUIA0287BMp4KLrDrXIATPvJSlLX4yi/c4Lrux3thb9WkRBq9J36vbO2HSR8fLzTRM8ssy9crK/CtnI31O3DVGKfeuLhYweV+3Oj+PKiC X-Forefront-Antispam-Report: CIP:211.20.1.79;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:localhost.localdomain;PTR:211-20-1-79.hinet-ip.hinet.net;CAT:NONE;SFS:(13230031)(376005)(1800799015)(82310400014)(7416005)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2024 06:16:13.3538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e235132f-9689-4e92-d2cf-08dc425beb3a X-MS-Exchange-CrossTenant-Id: da6e0628-fc83-4caf-9dd2-73061cbab167 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=da6e0628-fc83-4caf-9dd2-73061cbab167;Ip=[211.20.1.79];Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: HK3PEPF00000220.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR04MB7715 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_231622_794203_752252C9 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. 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 enable spi-gpio setting for spi flash Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts index 6846aab893ad..ea8fd3ec0982 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -53,6 +53,24 @@ iio-hwmon { <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, <&adc1 0>, <&adc1 1>, <&adc1 7>; }; + + spi_gpio: spi-gpio { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>; + + tpmdev@0 { + compatible = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; }; &uart1 {