From patchwork Fri Sep 6 06:26:29 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: 13793354 X-Patchwork-Delegate: geert@linux-m68k.org Received: from HK3PR03CU002.outbound.protection.outlook.com (mail-eastasiaazon11011037.outbound.protection.outlook.com [52.101.129.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6125814A09C; Fri, 6 Sep 2024 06:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.129.37 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725604042; cv=fail; b=bu9/3Zh92bJz5K0TLF7EoTIO1MwGQUlIlMNcjcknr6SxeNl8uUN+l4IWglVyx4JigIvTkvu25MTJAlAeY52zSPuVEr2lXzcZEPuJIS9IUeKQK+d1/62UvvDJTI3r7JVuDU1rgloGSglqbu4rW/ibag0EWzs6g1aq8UIbAO0YGTo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725604042; c=relaxed/simple; bh=8kUwonoYyYB6FHmWPqpT9IgUk9yz6V38DdWLkRxT/ZY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=k1dMWTOmtLHObf4wyYI15bInKgdf94QqFvK/qD45O4HhfvEzMefK6QxXVpQezsjzRMeUX8rbcm8GOw0c/z3UMwhZs5KhI6ON/K1pbg22239viUxYuJoB9Ha0GJmJ+4N3SvRfwG+Lhd/aTq94SjEAl3pqiL1oKAo2v+HC3ZUje8o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; spf=pass smtp.mailfrom=wiwynn.com; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b=eBSlZztl; arc=fail smtp.client-ip=52.101.129.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="eBSlZztl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=U1yvAZx1LdLLqV94PdSilHmx7KJ/p0rLwU8OfFNp80gw1vtt4Kqn9kW7UccfwrdZA8g7cdX1vjyTwWxMchpyySms6O6T5NsDdLfRmuORemiAFbw4ng9SmVDeSa68/mmChKzjpgac8zUUE4lYnL39YHKIvWmGRIgHez06qYSbIcB1GnfOaDXaDvdvDIkeS/KIfNA4NIK6BLpIAtluwAgnoWXmNR2gLgKmUQPoP8g0ukJ8gBYV2tLVa3r1q64mSibMEt/VmBfVlL4vGotwRU7fYvXlUFg2xu3kLcvwYb4yjYB/AOhCxRE6c1BajaqcvaKuN7l4Zyj3CDfDVcBS97R1bw== 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=tqbkpzLmJ0div8MjzMcwmmselbb7dp0nwMXjMcBC76zHnDaDwBQ851F12LQFvxa9WXs8kctjCP9M4yLzreztb75lsoLwHp669Fk/zK07t2550Gn2qkx76YxCA5zpylRyQc6G8htFvLV9TQ142jUR+9/zL1HPft7mk8K9zT1InN1qRJ9K4xBsLY/QBU5yITaCDRftM4ym+6K3NGoIFV0GKPPEt66D09BbHbORbKCXXllkM2nNDErv1iGVGLo+5rgKrojID4cXSgc8EcucCVHKa8/OHDnrMZhCqawJdDBVdjBTdrQ4EoItDLXc9MMd3OCWSRyzIF0xiKzBo8ERBK/8Dw== 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=eBSlZztliPrLgAORIue/D/+C5OB9fk14E8IclYSmKF0qYVCYUs+XFWzPHBzliRt7S3GETyz4oQqfbSy4AwmaDi10/q/BwpKMRYdIaKnh7DWHVGPC0UDd9cng8faaOiT88ECCWIa8SfCwZIIjAQdktpTYEvu/hhxET0GlPoxcNjNdSIcZlLOzJKOy46gGReSQGpS26wgQEzU1iQUK8FowIMn67KrzN8swIRTYyjFGMK6+TNXg1F0bcarrnk4zKv8JpAPO1OyNc5A4EkEpUVMFOkRY1IABeJo+xi1UyovSxtjB6urHkJHaDbIzwHRgqHKqV1Z6004HkHp6csHYMfxQxg== Received: from PU1PR01CA0005.apcprd01.prod.exchangelabs.com (2603:1096:803:15::17) by KL1PR04MB6645.apcprd04.prod.outlook.com (2603:1096:820:da::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.28; Fri, 6 Sep 2024 06:27:17 +0000 Received: from HK2PEPF00006FB4.apcprd02.prod.outlook.com (2603:1096:803:15:cafe::55) by PU1PR01CA0005.outlook.office365.com (2603:1096:803:15::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 06:27:16 +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 HK2PEPF00006FB4.mail.protection.outlook.com (10.167.8.10) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 06:27:16 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Delphine CC Chiu , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v15 03/32] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Fri, 6 Sep 2024 14:26:29 +0800 Message-Id: <20240906062701.37088-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906062701.37088-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906062701.37088-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB4:EE_|KL1PR04MB6645:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c1bafa7-7d55-4ae0-ea74-08dcce3cf3f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|7416014|82310400026|1800799024; X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xQcSE8lQncztpjU0XIrKLGzxYw72fkYifadkovH/PL+1HXvEhscR6wCMBt0+ju3xlno2ZjRuGoxyow51OoqNduHU1UpjIWGa12Z6Ir02COgaLN4U8Kuseq6EZ8sAcQ32NVi2pEUzihaLIurQ38JH2tOWfkRQasR2mATQRdPOEBlxu2HTDBTeAVcPpj39YtYhpp2rAy6tl/uNgNd40wjOQ6dgwfEhevryHn8I1ALkfZpzzx+iMOEBf2nleW+4VZe6EA5Pmu/s15jDM+TGlahfA+fjpIlueU/F+2cKuJ4Q25jt6+YXQU07QthQYC+5NjQa5Y6IdT9lBIir2Jd3xXTA8LLneXmKxZlS+PNgtedLTXaYzr6D4LKcoD4pvm4IqnZcGNIUrwTi4XD2Jw/urwBRRK 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)(376014)(7416014)(82310400026)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 06:27:16.2563 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c1bafa7-7d55-4ae0-ea74-08dcce3cf3f1 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: HK2PEPF00006FB4.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB6645 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 {