From patchwork Mon Aug 26 06:23:37 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: 13777116 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 06CACC5321E for ; Mon, 26 Aug 2024 06:27:56 +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=sk5mezAOtl/1U7W8/r5zvTzahK x08TSs9UUeHkUorJIY8dcW0+TARmsOdYhYjaJILZ7Ap21352kz4NM2g6Ps03VoGViFj3H8BUIFyGW 8cL3LlHe1caGLuIZUi+JBj2HbE9cOFtgYXWL0JmNcn+vD0qAYSFpDMkphWXTtnz9n0lhdm9nIcLyX Mt3hVddRxWDG835NiLVmm8z5cxnq+MySSldivFMR73+p4sziLOi4xu1UhuP9aPrSvV6YhVhkArmhM TaBG/eZvJ3KO27qFuSXMYklucUXiRr+Tb51xLMUtktPMQX4ikc1DnY+k+lcDVF/zlPn1QYCV2GaH1 auLhvZKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTCa-000000061BG-2MSv; Mon, 26 Aug 2024 06:27:44 +0000 Received: from mail-sgaapc01on20607.outbound.protection.outlook.com ([2a01:111:f400:feab::607] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siT9e-0000000609e-3jOO for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 06:24:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gjrYmWjZeSdksw8ETbciDNL+rpHxOsvKXg+NKDghSbLsHVsdDCpqw4Izeu8Ms67klSOLSHJePHVV2/GI0caOpBiH/lyrFjK7wJQN6tFzrOfocWHMWLzJg3LKznfTVyxb0Ipyt4amf7A4lXeo1CLXLU7yxDz5vGZkyhtX3Hg27nFc1nG0aq95dZJs709VNmmJfUylYgGwIlc06FZJ0m9IxSnVE0q4nLoyFk4I5yI4iKJPt2+6zUDSduhUBflltQvDfN5n8o94WQyNZU1b5b7F2vuJwaZ4GZVUS3ZwRP3depktk7QTGeXTxKCMTPtAFsajyez1M8b6ndDNG9El3CIRIw== 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=K995UXyr68bd6IcIslqcrrJ7arUezaET88gIU/eI7lknx81T/9jBnxzukOu4eFe0YKkuRkrBHiWqHfr4Cw8s3A9nwQN7ejF+df8lFmcdlZZHLNTTi0V1c/nGhNR8Ol1QR/8IGPd9lUvqy3sZRTNSy3Xv4r+gRGYBubSSYrX0Z7sDgJTnNhWi7Ol+J2RQVHQjLMpZyOVrofXjapBcESyop+KXXxNWlisG4iiccUZW3FgaV4/glTO4P/LU+PwSYqfgFaVAjp7NyQ54hp0+g9d7X+L9iwWWrCiz3xVNNQ0gnGlngByzUR8dqbNOQxxaY6ReXRgKI5astb7bzRnyKWE36A== 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=JrtBwP3RJzgkNwhvBoxGwzI9kiE7X6u40Do/lcNv9nILVgG1hIMiHiQgeacO+t0ToF47sJTKmZdE7hGzeEFYoXFOw77+L8GyqvSbQ1ddwv76zk6TtBzW9/MKzdLvRcUnJZ5TcfAG1cYoRDvFP5l9hpLbZqK8pDE9Lo0hMEFpJMzMnGWPWEIaUD7DAXgKmyCoC2UzdR6+7A1HnLbOOpbbYVxKV5JwxV5k0jqZsLkOrStmkUJOE4WVA5dW2tu/GpZ+I9PKlVo63OvGGaWWgEFQGfGyG29Iu4p9+u4G8o+OsiXgur/aW/noEXSxwy3Nt6NTE32HKyxRyua7U6Juji4xvg== Received: from PUZP153CA0018.APCP153.PROD.OUTLOOK.COM (2603:1096:301:c2::14) by SEZPR04MB8215.apcprd04.prod.outlook.com (2603:1096:101:230::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.23; Mon, 26 Aug 2024 06:24:30 +0000 Received: from HK2PEPF00006FB0.apcprd02.prod.outlook.com (2603:1096:301:c2:cafe::ef) by PUZP153CA0018.outlook.office365.com (2603:1096:301:c2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.14 via Frontend Transport; Mon, 26 Aug 2024 06:24:30 +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 HK2PEPF00006FB0.mail.protection.outlook.com (10.167.8.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Mon, 26 Aug 2024 06:24:30 +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 v14 03/31] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Mon, 26 Aug 2024 14:23:37 +0800 Message-Id: <20240826062408.2885174-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240826062408.2885174-1-Delphine_CC_Chiu@wiwynn.com> References: <20240826062408.2885174-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB0:EE_|SEZPR04MB8215:EE_ X-MS-Office365-Filtering-Correlation-Id: db6276b7-534d-4687-947a-08dcc597be74 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: U9x4mpP83cXWbCwbpV/B8zF3sK7BOIjRR4FNkRL1oVBJppzLokA23b5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TQGcIidoU7pnsDuex3m340UsUS7TUtBdY1m/NiVk9jYX8UIgdVIdq+vrdirdVogviuTpCvKFmxukrNFp/GrLH91lmDVZaXXat6IXpfuccR8R34hYzxyXE68QByKKVc9kpHZVfj3hkVLA2+eAj4rQ6mmcPI1Cu3DTXBoaEHKS4RBFhGENG1djNRiljgWBrXRFNn+toXeSsvh7DP7JDigGe+owehYgmF4bNQakHRFRdMhz7si/pFAhvNS56K68NercEq9nZjaL+3TNy4LAND/MM8KvIc5GsICwOdwc1kX9ZGxG6VtVMgiyUD7gjzUccYOPO2xXI2JfmWuVD8sn2MpOm0Y6k18C 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)(1800799024)(7416014)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 06:24:30.3625 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: db6276b7-534d-4687-947a-08dcc597be74 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: HK2PEPF00006FB0.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB8215 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_232443_004404_EAE61C03 X-CRM114-Status: UNSURE ( 7.69 ) 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 {