From patchwork Tue Sep 10 03:03:23 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: 13797803 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 73FE3EDE994 for ; Tue, 10 Sep 2024 03:05:04 +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: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:In-Reply-To:References:List-Owner; bh=n711xcEgwGmiAV8g2KeohqJYfUwIrqGeCPOmSGYRGa8=; b=4KDguAstGSlZ6suOxzVaygdBmM NpFJx1JA6VgiJGcBEYMVg4ndO9Oqm39kFF9VYp8xUir71UqtkK4wA2HClm5dJz69X7AZWQBP96Tt3 t1Uj5Gk4Vf+yV0jfAm9MzZHjzpoL1ghFZq3XhdFWLphnOZ0P6B+vnUGyjjCJ7VMOzxl9BCML/LJZB E+FgH8Kru+k4GpP149HiHNne3cmfyeo0YOTUg63v/Jv5sa+a5Npftc2pqcB23o8fRg+deEeByxAIo aGhLC5i81IYbM0BSI9GfRbTBw2pcc/XxwhY7fw2HI2AqiapBlnjmOhKfG9X+/AZyIkltnMQC7zXXr 8wkZ7UOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snrBV-000000041UU-2kTE; Tue, 10 Sep 2024 03:04:53 +0000 Received: from mail-tyzapc01on2062f.outbound.protection.outlook.com ([2a01:111:f403:2011::62f] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snrAT-000000041M7-48WV for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2024 03:03:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ltBadatRH+XtC9hvRR/QKWj6e2NSrHCNq5ppl4nC9DfK0ZvXcTGMejwynT/6UPpl2sCKkxNmsHYXYoCjoAAkelFm3M7Tph1iymY/3T9c/tuACLEpWhG1GU8AH7WJ8DW2JumJtcds2rEFJNhmGmZkPCIrrJ/IDskh0MXLou0IQ3BB7akm/wazqfKEDFGLcRMalCF6Qym5GITi9iV2Vp/5BbD8eTQtqfgT3SPC/+3oITnGheOnLtau7BW0rHqX5/Q14adBsZ5wDpUK9RPmXJwPQ9owd3ZjtFmxct71WMgANADPMwYqIx/9JrA8FWselxsn1Qq/pldZfW0eKuNFmTWT8w== 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=n711xcEgwGmiAV8g2KeohqJYfUwIrqGeCPOmSGYRGa8=; b=PVLmQ+redBeykvXdUSgMADWUr2Q9oxSd9KjiPgkLFemAniCpt97oQKJUyBftuvDBuF5fiZ0CSPVxFvmGr3eOdt4/tTXUwSKnmFYwjGKGq2k7CnQrNz4W8p0fmIkgs0GG8M+Z9MMfcsIuyE0CxJnhqltaAh/ntTcrkYSrTQkHApIqVqoFcB/9LT0iEPg5S++6H9kUCTjaRdo5Nb3r9twVdY6csz2pYaV7Li6MJteVSV+fro7NsYbQ3fd05U0J20l4OItK/Y1l2sjayUlM5IUxCbDVub3ed+s3eljWHIo39uGyUhfCVGWB7tqMm2lxlxg3XC1UJUaTY/tgu7QY5Edysg== 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=n711xcEgwGmiAV8g2KeohqJYfUwIrqGeCPOmSGYRGa8=; b=G3XtO9eWTCPHRfDTxWpt2IUunhQ+GP9UQdN04uIqkvCnYlOsCrzF4Xmr39YIWIJiijvv8IX2gblRAyeiXga/7VIMMBpTDIA52OGDp0eZaD3lAhBdZ7GkXzua51UsNn8ORbkU+Hqtdgd9HiiMkXCzPKmpZlLwdD2R+B0At1Aaibi2GbOljZOC5m8S7UfmBL3j8Ijm3kcAVv5NbuParEZdJ95eo50w12DOYcCDMo0TH7bSq4nepl9wiCf9xwLgjxGCX9JLfV+6NkU7J2M+RE9id2fx+GWu1xLMqb1n1sYGvvFIIwNx6FkdbsW5zPeyU9M5jMgZV/DnsaHZMGpfbytHyg== Received: from KL1P15301CA0049.APCP153.PROD.OUTLOOK.COM (2603:1096:820:3d::6) by TY0PR04MB5910.apcprd04.prod.outlook.com (2603:1096:400:214::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.23; Tue, 10 Sep 2024 03:03:27 +0000 Received: from HK2PEPF00006FAE.apcprd02.prod.outlook.com (2603:1096:820:3d:cafe::5e) by KL1P15301CA0049.outlook.office365.com (2603:1096:820:3d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.5 via Frontend Transport; Tue, 10 Sep 2024 03:03:27 +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 HK2PEPF00006FAE.mail.protection.outlook.com (10.167.8.4) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Tue, 10 Sep 2024 03:03:25 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , 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 v1] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Tue, 10 Sep 2024 11:03:23 +0800 Message-Id: <20240910030324.2256698-1-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAE:EE_|TY0PR04MB5910:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c2ed7e5-8c41-420c-d0c4-08dcd14523b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: cxWW2u1gxCWbF0d/o5bEfotsYKkKYOi79owQF5IQTSOFdWcBGfOTo9kzGHQNfsPAWAYYTkgnd8isoQLNifNw7DO51NmT+dPJzGYRtNpgpviGGdfaA7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X6If5fa6oBX47owS4Vhog7s7fMYI5qvdd9wxT317H4VqZpPHvEt8mvS8t9ofzszPX2KezHLCzAtOPL8bMq/tPVn2CBumoEkg7ydSUmWi33F9RTXXoRYn9lRA1LW3oQ4HPCYv8d2CtrnHHkryInIgfQf/T3ZESdRT2AcuuBjdFuRPRurdfE8QWntjZrs2z+KcCYPBf6ymX+eGSRm52LBJl75QMD5MAIWab8OQiVTA2ElDZc/811DLQAXrB/9dvGpzWpu7uncD3A4WGJ/u4r2 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)(376014)(7416014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 03:03:25.9490 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c2ed7e5-8c41-420c-d0c4-08dcd14523b5 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: HK2PEPF00006FAE.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR04MB5910 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_200350_031517_D3C26D53 X-CRM114-Status: UNSURE ( 7.81 ) 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 From: Ricky CX Wu Enable spi-gpio setting for spi flash in yosemite4. Add tpm device under spi. Signed-off-by: Ricky CX Wu 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 98477792aa00..fdf9040d655b 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -34,6 +34,24 @@ iio-hwmon { <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, <&adc1 0>, <&adc1 1>; }; + + spi { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + sck-gpios = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; + miso-gpios = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>; + num-chipselects = <1>; + + tpm@0 { + reg = <0>; + compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + }; + }; }; &uart1 {