From patchwork Fri Aug 16 09:23: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: 13765818 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 A1C6EC3DA4A for ; Fri, 16 Aug 2024 09:27: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=dmHAwAuLtww6S7Kx24cCQt5tMxYWDkSMHxAXTvM1SXo=; b=L8gKHDPfajagjZc88hJW01mmi8 nSBenakQGds3A3xsLhvzfoAvKPvWSWJMXmJCOTi157AYzNezTHuy7h9HhySpNBonF+UHNLucoWN9u ULw/l114/VuQbk0NgVhKEVcW8kHAxaMTPpvC6AU5S0D6YKzArYpYIWBrE/cAoVko3wlvsN9bsMehw awTZziUTkFykpVtcbgHpJDPOB/kw2ctFQF96hv6r0tRPm2lwA5hlIXBrbvEP2ezcg1zbdvjvKFqgB NWq+uGZMimWF31HBE31xhOAjzXVjBuhDjn6jE5EJDt7e7vjdKRDWyBo9kPLAb55cuFX9pJ/k74lcj Hi0ISR4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1setF2-0000000CPP7-18xB; Fri, 16 Aug 2024 09:27:28 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1setCb-0000000COj8-14lv for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 09:24:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Eu1jfU76xLE0iEpV/S/cWBUPbBwKah/6aEDDi/+yh8vq1jMDWDXCHO6zC+i5uoIfuTirHg8DVfodZwT7YiCJ1UnLWR4yn/c5TbIAPYf1FGct2eLHglkK0qZF9jVs5FYzKse6cQNs0mCOxOWrECzdacV7R+6ds3FhbwYUIC8+thA3eqcpPzX9gvG+bCmTBU5vpqX/i6vvJ0+IOV1Xp762M+tc9V03zgMcV3xzBmp9qOSn9g6L45cWj8Bh7JJdUpLm+k8rYcm3ALnaKj94spWzYcvyO3v1n1vuUVN22ui+/8Rva5xJqa5nC+lGp0wlTsEN1MLhNHk+DPHEfQ0lQ3l4Mg== 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=dmHAwAuLtww6S7Kx24cCQt5tMxYWDkSMHxAXTvM1SXo=; b=uyILZ6Go3h9LG+RrQALnHNHU5OEvSFzsCy7CbCL1WaEsG/dO3g4fBFalxf6cOdXbN24or0/RAyKY8mJjLulkW6sdZ7HKJ1Cxiu4ALdnviL5llnDBdmCJcbAV4oFo/XZLRW2LssKnoI190PwxeQwagXKP0coBQLBgJllXdE7PAsoSYh6m94l2xhKuJlhAa/P909c+LHfTs67OBSZ+K7Kmgq4H1j8EsCgLuIE26pUb2CZllrf76sNxcnWRa3TsTbcNF/fJtmmjjmSLyxuh1a8e4uQ8h8fZhEHDFqcecjOh/7P2URRTxuOiceca/4ecL0MzKVtVrvddf61jidsWALqiHA== 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=dmHAwAuLtww6S7Kx24cCQt5tMxYWDkSMHxAXTvM1SXo=; b=iLB8rTl3Y9sxbF7cRtpcuH4aZpoMvS1vvS2Ck5U/mb3Rg6y1IXXMMNHyl4BeVY1am0sDzU7kQpn9vvyxlx2VLovJAiqrTM/rwW+D4kCUAwIs8n3ZX/aMRa68gKt2WkZFXoTtSTmy3L5EB6LDfIvAL94AiYGCVcBt3U1rlxtL1TbgVxfBlqa5elZrLxvs9ySJsll5stQFqBORSUDErqHZb8xJguGFJmcV0JWRxCTFNu6JlGLbO/l7A1H1Vg/SHFb0Zn+ufz8yJzStix4NwotY6OHkZO3MMU2kE5C59QNnIttL3aO0MVqXAsMO6JfOgftzx520xJqOnEnNeP67wbHFBQ== Received: from SI2PR01CA0054.apcprd01.prod.exchangelabs.com (2603:1096:4:193::22) by TYUPR04MB6724.apcprd04.prod.outlook.com (2603:1096:400:35c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19; Fri, 16 Aug 2024 09:24:42 +0000 Received: from HK3PEPF0000021D.apcprd03.prod.outlook.com (2603:1096:4:193:cafe::d2) by SI2PR01CA0054.outlook.office365.com (2603:1096:4:193::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19 via Frontend Transport; Fri, 16 Aug 2024 09:24:41 +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 HK3PEPF0000021D.mail.protection.outlook.com (10.167.8.39) with Microsoft SMTP Server id 15.20.7849.8 via Frontend Transport; Fri, 16 Aug 2024 09:24:41 +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 v12 03/28] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Fri, 16 Aug 2024 17:23:50 +0800 Message-Id: <20240816092417.3651434-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240816092417.3651434-1-Delphine_CC_Chiu@wiwynn.com> References: <20240816092417.3651434-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021D:EE_|TYUPR04MB6724:EE_ X-MS-Office365-Filtering-Correlation-Id: 9fda0940-abd3-4ed4-a0d9-08dcbdd54251 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: a1m+8xE/Q/4gsdnD43ce+abeqhc00EwsB4TsFXgYnVjYKp1pfeQ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yRCD0tuUnjlMZ+kl3x3fF5H4DVaZmg4i53cxHpv7M0iPowBj/LpmB5pKxVKuz5tSZnChN8v6tntoVIdBrDqTNYoptfzfIHfsnXvfAWEKAgmp7wf+Il77D6F897is7FdV5w7S4i+dq73m/qhQpB4Al/tEvvjI8Q96Dtcv6wQu8GJnp0cMnjxPy5L6s8N1lxDG0FK9LQmb0ktKNmoHfCQhLVFgTiX8JFstTkQGIrPABwVH7zt06oeNCMpRavtmxq8Qm2ToDQox8NrI938kE3sCqyuvhougAI8fgB+4Ao18tkX8T3N/Ek83ci45xIhSsIoOifgDaLoohA/j6gWPFIpkQWwhr/83hw1JnnPJ 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)(82310400026)(36860700013)(7416014)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 09:24:41.5909 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9fda0940-abd3-4ed4-a0d9-08dcbdd54251 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: HK3PEPF0000021D.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR04MB6724 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_022457_326376_23969EBA X-CRM114-Status: UNSURE ( 7.76 ) 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 0d659ee2bc19..575abdd530df 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 {