From patchwork Fri Jul 19 05:58:32 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: 13736880 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 0D1FFC3DA5D for ; Fri, 19 Jul 2024 06:01: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=6DIe7675LKkKmPyG6VqKrZMsMV8GiNtMS1alBZCvnz8=; b=kvMwWR+fISNtsSBz02HXGNdu3C nQe7oo+YTXNUt9RO1ABahVPFfUcySZSuQNfwjo/vKCfGRxtvaXrftY6qQqyKk5hTNPBvMqB7LQkpO hH+Vzvr1utVPb/xzBGyj4Wx6UZrzXIdEbavKmwBo2xy1dyTLEp23niPhaANTmtNm6jIW7hMIQHXCR Wv83Nrx4842AUrIjFIuADX9pphgQ6XwgWJs4ZqkNJ5D4ZMSvazbyCwtUJp68FKgCl5kZFDMFuEOvN I2QNsBpi7v7aV1VrBR4TkZZ1t5QylrhlQYxspj0i4OEekAej8LwEaYTKHow8tIlhWnEwBehAKcfJ7 sgMAVlPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUggG-00000001iUB-3Jwp; Fri, 19 Jul 2024 06:01:24 +0000 Received: from mail-psaapc01on2061f.outbound.protection.outlook.com ([2a01:111:f400:feae::61f] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUgec-00000001hkC-3iSN for linux-arm-kernel@lists.infradead.org; Fri, 19 Jul 2024 05:59:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zSGnlx6nBjyGfNEdmJ5QMyoXx9oEjwEhkeKK32LhQqywzfWb5UzIdP6bjw3WVUU0BhRtVfAVWLw0Y5wWjXnjdUXBqJiZ3UMKp9a6v2hxapiWx7Tx9Q2G4PIK8q/d8pUtbWDxi49FQhQU7qn0UFBqxP2tBgXYo9dhuYdl4IPBY9wCfx3X6CXYt9DhhP3DhVFVp02lPthdfvRmsUPuvbucYxtLGqiGYys60/pCWrhLne2SB6SlRi3ptjiKuuGEWMKZCKJTzNbKqsw31bMZKO5sImHkG9hlowdCq41wN6WtAZVZNNSoFZ9eOFNS7MHQp/dUhjKj/0yml/rvbh1DAjQ/vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=6DIe7675LKkKmPyG6VqKrZMsMV8GiNtMS1alBZCvnz8=; b=aeVX5d0IWcoBXZasHnt+sfhrYxNnRw29czKBD81vrX2gGSQPPa3xKMOLabTC0JT5vziVma1DiafRAcx/RutRGZmX0DvAzULwRW5f17G6NOH6uJQetO56cKEIRJrWoNGN71f63rK44uHlipOfZzgnmhDiBbeZAELtq4mWVVOrpHI0LvVMOfS/TCCs00LqR768K0z3RohT812loBToHRuAudYvI9K50U22oxkSyR1OdEzFx1FbpLvYY+CeVSMYLC9Vd7/Z74W5VVk9YxFAni0EuiFk5clbMqPRcvovwdlfrXMlvL6nbp7VYk0xs56OOE8zrQg4FNXj3cEFFvPE4cloqQ== 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=6DIe7675LKkKmPyG6VqKrZMsMV8GiNtMS1alBZCvnz8=; b=TgV5e2rkgCyrWg4bN7H0RMQY5RxDLFdYcQgQLx1pbekDwhnK2g2Kxk6EbRarJN/hcenuYl+dH1mOxSWbrH2bOq1YsZpVYzygUeGA1WpUmCZBwn7+G6ZIr+QuYjTpduF+wuk3we74GuJMhgBWhNkeCuY7Q57YpZuCZaYw+1wYJa76BuI5kOoyLxaNwMTDTbuu0P487UX6svvc5P65WzcHWpKHXiI8/lpKkQTtRv7zzLIJYtpxj6hTJAq3w4MwoBHEPcw0akvR81gzo6/Ep88rl0QZD0YRAJfbsr2gcPNZzU1Cjn34c5D/qv4kh5Jx6Qp2UCDJUTuZYevM/jvkzWkakg== Received: from KL1PR01CA0075.apcprd01.prod.exchangelabs.com (2603:1096:820:2::15) by SEYPR04MB7600.apcprd04.prod.outlook.com (2603:1096:101:1e3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.18; Fri, 19 Jul 2024 05:59:29 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:820:2:cafe::45) by KL1PR01CA0075.outlook.office365.com (2603:1096:820:2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 via Frontend Transport; Fri, 19 Jul 2024 05:59:28 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.7784.11 via Frontend Transport; Fri, 19 Jul 2024 05:59:28 +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 v10 03/27] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Fri, 19 Jul 2024 13:58:32 +0800 Message-Id: <20240719055859.4166887-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240719055859.4166887-1-Delphine_CC_Chiu@wiwynn.com> References: <20240719055859.4166887-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|SEYPR04MB7600:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c8806e4-5d91-4a9f-6d7e-08dca7b7f38f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|34020700016|1800799024|7416014|376014|82310400026; X-Microsoft-Antispam-Message-Info: eXfSWLsqcO2b4JTKXA8Jsk0EWlwuhM5CqTO6vBQwxF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tbsPEyWKVpJkK2GntZ555y4k6xAj1RqaFudR+yKKmvyGz5R5gFupD+HbPMokHq1a698QjzoaZhduMacq3mUL5S4EqnnRHJOrCEpNE2H2ADIExKjL7nwNmApBxwZ0oRgWaERSRnJI2uxsyp5JXOfeU6+KYo3/9LpCsupKM2O5AsseQM6L6QEGhI6DFFmctNvemiZtOcgAGnu/UbDs/mYb7+WBcFS8TcgESd8UaMnymrp+CbjNnOfZUuP/iohglsctxjajUotgc4gMxzEEmUEs4Mg9Q9vRarrxbPwC0ay89KKJr5Ut4y6Z7oWE9d4aFQcRGpiA= 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:(13230040)(36860700013)(34020700016)(1800799024)(7416014)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2024 05:59:28.4697 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c8806e4-5d91-4a9f-6d7e-08dca7b7f38f 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB7600 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_225942_949847_AC9818C0 X-CRM114-Status: UNSURE ( 8.04 ) 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 dd88be47d1c8..effc2af636a4 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 {