From patchwork Thu May 23 08:03:08 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: 13671384 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 105C5C25B75 for ; Thu, 23 May 2024 08:04:45 +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=SBbs/ziB6kymce 4Unue5KdTC01bvwAGgGzUQ70CCt7HPgzrfAJT5+2j4nVIWZjhTMn9yzyyFS74re0dUIh3F2VqtZZz cUApLzRlX+XtUzUsPdI5gRj/r2GWMw3fk9OI+oy/oPAuckpEFJ3xMCX3f/mCsogzZB0eJxruszz4S wUHl7ZBfdvPk0nroQVrWVhZL/3DZBDoiZceKtVA7DSnac5tw2+obVzwkRPf93zpBuOW8R/8UEBic8 ylKT2qhs/myzFBzongriRY+JKI3nejlrw3sOLyptP2S36AyrhiCZqZ5xqpofYkgMPppmCiQPcBY4G VT3IwunKAxUaZwX/7a8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3R2-00000005R0J-36jn; Thu, 23 May 2024 08:04:24 +0000 Received: from mail-tyzapc01on20600.outbound.protection.outlook.com ([2a01:111:f403:2011::600] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3Qn-00000005QpF-2ixa for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 08:04:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H6IDZQpxIRXVXzuhqZ8cuMr14Gl9qoazF4s+i9qtvZTgAn3QFFdeJXPgjMA47fjw88Lq5YUPoUYuLYY65bke9F+58c+YqNu5COtNoLOvy6oYoregyPZWqu5Au62yFNm48Zmc8Kq+u2mjCuJiXSsknGPpFTw8yCIounuAF55MoAVmwkvQU/lUE1kfTHm5z21gMmkAzQNzfzn6Ee/FUmqcluPMW80r2qGZY3oO9ceUKx/HTP0DMHTFTWbEtS1nowFw+CBPYyHTGDvkNrWQ8JRrAEQgmDTt2U08/wYZz3YQHSWpQkvOt87/czNIN3DOvNJMhXbJWAFl/bBR297UP9VlRw== 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=hYCNFtZWJjpJSNjMf9dGB9XWc1KeVHXm6fSgRNKET3g/pFTk6t/jN1FixpDnDsuBHDAj5EvPQXIMmCvHj3jBHMxaB5SHr+vJLd9ed2YOGEVDCiYKqMHb/hNoNI1nijW90TCFs3PF/A7eBHpfQ3u3utfCbsR2Il1F/H3GddE7CwHwgVHV1OnvzAu/bmzDC/gqH47lkbWaZV4/UfZZnhmt0H9heA5H1D+EaraPYbsj8xUshYRSef2Rm/KepVbrglfBMyzD/V8hXo9/1EoYgSzmHsZwPIOIz0hDvalDJUSk8ZCeQ6sogDd7ROm+ZpjxML3l9E8FdrL/QroNqa3B1pgydg== 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=Q6AKZOCfIQHkZV2miPwifTX4HAxo7kOkW9gflC54dRj7mTInwY9wUFmI9VVRIsaR21HzzniVITx2rho/n9oMrTkSTnqJsJN231Lq8NE48jddDonCc7avAWOBJG0rUAskvQjHNqZXPk/calEPHuQnIsaM8mfXoJ+XuV3ivdMweSkSsOyeJGOnPeyhE2sywcNarXXV8xQ5EjNpzQMpZ3BnE4dRZ+DJYOg3ocQy3jDMny6Zif0onnV2OAhOK48Gb46sFmFY8d1A/gUQqdpROyom9iP8JuXmSoxgswNzXsyWZIH87kzD9RgvzINyWG0/e1NoWxqXZtX74unSWaLSB4XYuA== Received: from SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) by TYZPR04MB8054.apcprd04.prod.outlook.com (2603:1096:405:ba::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 08:04:02 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:0:cafe::fd) by SG2PR04CA0161.outlook.office365.com (2603:1096:4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22 via Frontend Transport; Thu, 23 May 2024 08:04:02 +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 SG2PEPF000B66CB.mail.protection.outlook.com (10.167.240.24) with Microsoft SMTP Server id 15.20.7611.14 via Frontend Transport; Thu, 23 May 2024 08:04:01 +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 16:03:08 +0800 Message-Id: <20240523080330.1860074-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|TYZPR04MB8054:EE_ X-MS-Office365-Filtering-Correlation-Id: 2782b897-adc1-4cc8-b169-08dc7afee8ad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|7416005|376005|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: 4dh3Q4+cBBRQONdJPgXIjJFOCWsA4VELgOAfGmBCluyBndyFXpYCuxMeGFX67evwd7q1CObnu4DIP4uI+Ymq/3B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zssLb38G/ziMgUDkFKBJXF5czvVUeMTZk6gGeK6P0785oMxQmNjtdqbuEFrewsBQ07xWWC7Yy5KZyAtSWysrWED0+HqFKrOY0BfDfw0NYI99aTvVCwjK1cAa6PMHB/lbtp1WTNkQq8iosbnPzfRRWYESTAnvXS8mn0UEXTWnFqra+tn5AhS6BZbz0d0y0lMrtyQ74z4NCcQA5LgCdw1LkzpV4+go= 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)(36860700004)(7416005)(376005)(1800799015)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 08:04:01.7184 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2782b897-adc1-4cc8-b169-08dc7afee8ad 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: SG2PEPF000B66CB.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB8054 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_010409_748870_4FC9B71E 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 {