From patchwork Thu May 23 09:17:50 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: 13671516 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 CEB37C25B7A for ; Thu, 23 May 2024 09:18:59 +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=SoneRJkSW17Ey+Q4HmxAQiAiNMdYqmbL+pIA2aCYttM=; b=K4IjipXOMhWX4d AGI13FSo0UJ3DwZjJAYZezr3Y7CdRWmYL+C38i6rikb3rI3ltW0mh+aYV47LeYlMiENtjO5IaAhew Wq6OObvvEx/qdQ3S+MGYMqqDc8MjLG50nbZk3x6ha9kq3EBmiarblUB2CP3bcAxl/DtjSqudFZOql 0qxdF+dGWWpX0qH/5vbfRGRJ4ZeCb8Wu8LSh8GwtuIYfdbotcma7daD4+9aRqMq4SZa1ObKo/A/Yb +ETf/tcP04w4r7E1y2wDo096QTsnZTEPXTMsUphRhM0W3Ptg6PPoxw34Ip0RdxrtYWGkKzd29DLLs x9kSYzkBvyM4xlFPIgUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA4az-00000005dKT-3Su6; Thu, 23 May 2024 09:18:47 +0000 Received: from mail-southeastasiaazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c401::3] helo=SINPR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA4ao-00000005dBp-2tQG for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 09:18:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PDDFKEbk+UFzbzErbG959hrzafkIz8ebO/eSmeTxph5H/1RCWyOZl+K/wmlBUg7QS5qUDTOcw8ZrXyh49XW4nSYv1fp4Y0p3OEkczkEyzpPsL2t021vJq/JEbeZGmbpNH349GkGQTk5qB0Bo4RO0zj3LGWgD1lj1szQSe06ii/isOSDVgGTMyEB4ozA8HqccscSxaJXPfI0PPavTiCVIU098oerECFf1YayyCoMhalmdrQvjlo2DRXQPoK6DMhCPFs/h0IqDA86zyISi1e1HYWa6OLI3SguSxFSseULiAUZtBRrCYvlAf9VtdsN2GWc2TH3UPtPR62ttRYqhfoFE1Q== 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=6DIe7675LKkKmPyG6VqKrZMsMV8GiNtMS1alBZCvnz8=; b=oRUoWpMhT3SGtyw3xr34HFLlKGUJxVg+KZNoDSpjB2ZholzHrbL5roWDGoo3NLyUU60kERKYZqIg0uCvj1wFSeQdqlSe6vXp7Pk0h950rHCw01PAc09xigsuOB3GOjV9jdMgzo/yjG76Eymo66xxOcgrSKRbkEmZvYBfXrfw/F8H0BwxeOy51S3SVscjnhT5COK/zzC3HzwivxQBIeA3/GyToBocJwYeRh6AFeRyooDhNyShGS9q2t19zrqiVjSDO11Q91BNSZjYgYpewrsHZ/OCBZrlArpNPfgD9C82m5LZZL3li5iHaX2YudI0dC9Q/DswR94OaaVw2AVrTZXPDA== 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=s/HwLb8Gq6dd3X1MGf5lTF1t5nYN9N78krQacfHCLdXQkT4IMh/YljIZSw1Q1+reiSigzvtT6hujb1pQVDoq8G6hYYXMYIAL4gXmihTGudW/RYtJWpcUCFuCvDMVxOqkgxvcDk6am4Mf70BdBb4Of0OhrsT6ZFekiC0C/697lm6PONmu7rs0KVpToEmiJ1KoG+7QQN6jha8PXMdDcjvc9EbNkwjjb601QCDBUTOYxDY0wMxq0IaTnG7+TJNQo2OL2SKJcqJdNHQ9/N5aHIXpRDq4Juw3PJcVFwh1I5+vCnK9zlwjkM/K4mY/smZzlhdS7vILBUVvtrSA+TuKxqUVzQ== Received: from PS2PR03CA0007.apcprd03.prod.outlook.com (2603:1096:300:5b::19) by TYZPR04MB6907.apcprd04.prod.outlook.com (2603:1096:400:340::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Thu, 23 May 2024 09:18:26 +0000 Received: from HK3PEPF0000021E.apcprd03.prod.outlook.com (2603:1096:300:5b:cafe::f6) by PS2PR03CA0007.outlook.office365.com (2603:1096:300:5b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.9 via Frontend Transport; Thu, 23 May 2024 09:18:25 +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 HK3PEPF0000021E.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server id 15.20.7611.14 via Frontend Transport; Thu, 23 May 2024 09:18:25 +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 v8 03/23] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Thu, 23 May 2024 17:17:50 +0800 Message-Id: <20240523091812.2032933-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523091812.2032933-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523091812.2032933-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021E:EE_|TYZPR04MB6907:EE_ X-MS-Office365-Filtering-Correlation-Id: f9bd7012-08a0-4a79-d997-08dc7b094d1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|82310400017|7416005|1800799015; X-Microsoft-Antispam-Message-Info: yOMdTzl/PpjRiIgc9UQrVk2OC7kZDioplVd3Zcr2db+637+K6UtBmoO6gql6FNhkSJ4tLOkfLEcejus3c6siXGX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vI6vVrbXvGPa+uj5PkP+7+qkG6NTW9HtCBswMzhOJJNl1bd2DcVu4h0qCCXP14qkwxhUmiVUHU4hupIkiMWmvSlzHxzkeMkNDhZFIytd3Foe6kA9Fh71n+X9YeWU+W+kkd0pwfgrpmGiX1zzkmdnpHnCAB7CXs11OOCcBvyGRA2zG2H+B6rKCYUqHYNARhYX+kgZEcpUGu95Xv9gjg7GH/9Bw= 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)(36860700004)(82310400017)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 09:18:25.5795 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f9bd7012-08a0-4a79-d997-08dc7b094d1a 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: HK3PEPF0000021E.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB6907 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_021834_759371_A2610BFE X-CRM114-Status: UNSURE ( 8.14 ) 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 {