From patchwork Wed Aug 21 09:40:14 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: 13771141 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 36F4AC52D6F for ; Wed, 21 Aug 2024 09:43:50 +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=sD1VCFu+Kp14UMHJSP389ZYGAI nZIXXc3G/UW1w+sBE06AFoifgeG4VLWa4F/MP7RY3QdrEmcKKq8MQc9Dg1kDbytiN9ofM/rtHsN2s fcOG2czR59OIjGEZtx5b2mA07YhKFhbRJYxougdTHInZEQDKSoWrUzUb9//cGyjeKDjAZmPb+eXeM XOs2ClScsVct+9T4lnxiPrEu5EgEigny5bl2OYigFfdtxJ7I41walOiJIz5N93BCV8iZubVgUsiUp rswibIWxAmZHn9YuGKt911ZXkAoFxv2clCbqT2+jEenoh/eSCy1d60xcDANg3rxks4y1BHW4JMpNd +jIORgEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sghsS-00000008Hju-49eQ; Wed, 21 Aug 2024 09:43:40 +0000 Received: from mail-sgaapc01on20615.outbound.protection.outlook.com ([2a01:111:f400:feab::615] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sghqa-00000008HM6-1F17 for linux-arm-kernel@lists.infradead.org; Wed, 21 Aug 2024 09:41:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UmnqvC0Jqx6tqceXN6nTmn2XYf6y/3h8gjlWLyVsOk64fafWiG/OAGJbSROOPId0Pe3TYWc51wGoiVcClfhrhJ98w2VCAh6zosDRruXQIgu9PwBIIIUoQ4YwY+2Cbdh8KL/83TaSGlFEggOO4q+Jou3BStwDJG/lIIZE72qpxbEAoU7XSFkYcyxBFdAJW9S4wzFA+fJbfWDTCjvnZc+EkLrB1RzNI4udELmOgThkwMrmCzEAHHz2pxzT1/Q5/sLqgLxkLBwTR6BILuVCh61/wN8BOK61TKjv3vrqCeYp7h6sdN+BN8OyOAG7/YiVmuV1PuYjmq8P+jOSxhQmy0+9Ew== 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=W2Kw00DxJuXkMWZ7Os7LTxgsi/hT25438urbtEboELiOZ8O1QrAnSnmxh1tNHprBm13WicKu9Jj9m2DFyjCmDZeuzgJdZlZfWsnhFEWpQDy2pijaTJHqWWIqP88dC/1FBSIQfO9cFlgjR9GyJGgL8sl/p/zbHVF6AYmt/ayc3FKssDU6HdlLloZloo4SYbaVLiK5y3Zc1cfdb2NNqL3bClEJ0PQtPze80q9f/Pfh6gEIpCVxC8KcyiaWGwaBWz1bqvn59tgvN+tjwC31PJNr/gp4ZgpDXVBoQ4v+UoaB+dIaGRX8E4COorEnJC2r6x9foZp5U4vEOnyMLGC5g8mGNA== 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=EtwalTLTzPSDuIUCAgs0Yh3FhYiI2OhET/aRnBPPC1I956+3y8h/GbMwsNW6NJyOhVTuigGeCMxcYd3ugiiSTbjtuq7TgsCSENfLEqzMhu5qN0duEYe3JBTVDDFuFIZWyWPKn/UXt8jKQ/JDPW9NU1hI11QjnkOkPcCp8XbdCN1l32AHrzoF2P+BHPV0GDxcKeZbeMqAy7253wHVaV6Iue35MnSAa6cZTHZH9Y/nyE7hj20Rxrc/1nT3+imWYvD/1sMLvTmZp+7qLDhdIN4ZM68xRJTe29vn3gMp7zEz/VSJLzOQsRlb62P6P6AbP6TNrPsINn1yjfv14q/sgQVgbw== Received: from SI2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:195::16) by TYZPR04MB7507.apcprd04.prod.outlook.com (2603:1096:405:43::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.18; Wed, 21 Aug 2024 09:41:34 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:195:cafe::9e) by SI2PR02CA0031.outlook.office365.com (2603:1096:4:195::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.18 via Frontend Transport; Wed, 21 Aug 2024 09:41:34 +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.7897.11 via Frontend Transport; Wed, 21 Aug 2024 09:41:33 +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 v13 03/29] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Wed, 21 Aug 2024 17:40:14 +0800 Message-Id: <20240821094043.4126132-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240821094043.4126132-1-Delphine_CC_Chiu@wiwynn.com> References: <20240821094043.4126132-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|TYZPR04MB7507:EE_ X-MS-Office365-Filtering-Correlation-Id: 82489bd6-8af1-483e-58e6-08dcc1c571bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: 6c4mxe+Q+wRPFy1D68JVuIbkigXXnHq67R3jX9mMmfLH2rZ5V135PdC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IVe7jXhFkFk5fkZQOZCSQLfsRMnMZNqgbKRqjrEyF2iNDr47pWX7RIeiJqea+1laS8NRtnYlyeZ4zbWLfkGmynWVD9T4oWNmOnXcTDiQQW7M2K4bs6l92jHJvlJahEQRRgLq6rbwoSqB7NDSGn2IbPF6mC0DDbEYS4kgYbTAVG7LHjAkfydGnwkPEAUztIEnre+t9F1Jda7wEgHcvzDJ5tXWMiykVFUmNx2ohvwYtsHoNc8itl4kNvc2Pe4CquAyiqkG0TCGonAKKnTuG8m2WwMOjlmIHBqCBKluZnivSDYXCHBUS7EQ5FX/J0V1RmMfdZylaEuTaoYBDaAqc 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)(82310400026)(36860700013)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 09:41:33.4339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82489bd6-8af1-483e-58e6-08dcc1c571bb 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: TYZPR04MB7507 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240821_024144_356223_A92FBEB1 X-CRM114-Status: UNSURE ( 9.11 ) 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 {