From patchwork Wed Nov 1 10:06:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13442721 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 82244C0018C for ; Wed, 1 Nov 2023 10:07:26 +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=0lp9ZoPtUrSem4WkbcAMCaY3cFvHdTQ5NfoPPW0XqQM=; b=hLl/kCjnKGK1+N 3f+TWPHgLIzkra+rW37UVVSFAW4EBmsUul1xh4aIYWpVsCMpw2jtq9ENzS9DH7NNkuFXOj7tZUD5p 7EuH8IYDeD18k2BtLRopmSWA7qwuUbCUqDPni7/1EtfKiN4O4S4kMhbJcAPm8I78TjGuikesljywF h3FwfJhx1lGC8gbajVdUSVIA8gdPxphGGylwKgGt8mnBsP6Zcplg/Kht+fMV/zIvfHa+bP59OkR0A BEuiMIBx8lkUWOThztWtDQJ9uCB+IQ7u0T+ul+18a3MdzIx8Qz2Fi1KueTGW6ShNSWIGMx0xaxTEE K1567TycR57CfQ528m9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qy87T-0070Bb-0H; Wed, 01 Nov 2023 10:06:39 +0000 Received: from mail-psaapc01on20628.outbound.protection.outlook.com ([2a01:111:f400:feae::628] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qy87Q-00709g-2W for linux-arm-kernel@lists.infradead.org; Wed, 01 Nov 2023 10:06:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FpZ25wFj40yYsZOFrWcOdYBDc/iwsMaL3PvWTjl5vQpQB009YBEakSdIYQuL90owPGG5eprZEQS61YppPaQ+EzgT1rkpfndZfrj6s0meQFa+ycN1dNhCOPkpy7ADmIRAHFeQi1ZoWBebpXX7fcgFvkTmwUGG7N0bZ5twh1oZ7jWPGAaF+CItqrNMLOWt+ce11N+9bzzSSfwjdAlusOsa4d4hIoIE1bILwrmMIl34M9Ij7m0KSZTLhQ3h/16vF40NMzE3XBXMFvm+H6vdu4ISuy0LFDOWe/XtAblSeERX70yx++wRWDgDnF/9hWiaBUiTi89ij/A6ktY9ezgMtIeN5A== 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=vs37e3uLYionywV8nQy++I8XXaMF93EjkJaduQZOeZk=; b=oLPugBPQK3xzGAr5UnapKxFmmXYtm9rR0rzEp0HxuGEAn4TF4EGqDXD/3FTGoZDnK1IZLloP9mKb2YQ766FEezVonONiw5sfw5baFdKFlko65eITTJ3eWfdYTpicJHW6pwk2CpD0Wouxqbr/e4tPkrbFBe55eeYQ3QV7IAii1vlNi62A0C7Ub7mT+PyduBARm2NBhC/a0CpcANLLLCnF0/F9fo55uoFi38ZLiFDBbh5p18XIa7XvoSBtFL7oCXT7wN4F+fO9J3Y07eSw1pytaLzYO/EhAZBcTmSItik87EAvVNtvHkHhe+g0eQNEcO+yLqcmqgS5MpQ4x8IdGt3I3Q== 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=vs37e3uLYionywV8nQy++I8XXaMF93EjkJaduQZOeZk=; b=kD62R5mJxFTO2Nc/kczNFFdc9fie3VSsjRscRnGzRf42EouiYKlfgFIjVRDx/B+PtAc8PQCFdJOn9D/ik4TeW17kL7147jBSt4NZy4XBN6MeU97vIjP6qn3vKfSZ/0/CTExUMxd4PObK8dyb7FrUdQnQvu/a9qeSmFtBfpPkYA5Nu6NQen7aT1burE6S5lmjV3e1KgEVLVsmVaGktl8n4pqxshfJWCXtGRGAKWYFrz35JAVy+6rZD0vIm6Ne4XsbvJhdoLjVOsBLARRdMQi1yngEhjUJBdzy/X3lnwWVcU3PYkwPKIzYTFLLI75r8krAgb6L8hKSz6ZwJ42YgNes7A== Received: from PS2PR01CA0071.apcprd01.prod.exchangelabs.com (2603:1096:300:57::35) by JH0PR04MB7070.apcprd04.prod.outlook.com (2603:1096:990:30::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Wed, 1 Nov 2023 10:06:22 +0000 Received: from HK3PEPF0000021C.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::15) by PS2PR01CA0071.outlook.office365.com (2603:1096:300:57::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 10:06:21 +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 HK3PEPF0000021C.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server id 15.20.6838.22 via Frontend Transport; Wed, 1 Nov 2023 10:06:21 +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 v1 03/10] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Date: Wed, 1 Nov 2023 18:06:00 +0800 Message-Id: <20231101100609.2516844-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> References: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021C:EE_|JH0PR04MB7070:EE_ X-MS-Office365-Filtering-Correlation-Id: cc02f7bd-8253-4289-1366-08dbdac2330d X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BgV04OlS/tGbcnR8FgHuRFTwP8RIzWIY0hQB3gvfdgF3Mu9xeWGfVv+3j836QvgAJ2iX3+yXMuwTUsTpfG341zxJpmOoRy0uB6w3we+B/b7+8oEcpt21fnJY10xm/sqlFiqBPuz/eBGOVSNnEjvS8fsZuqJOPBaMI511eaeqstnYV00SA/1JEJSF+M/iE+gPeoTxXaIVZIWxvL12Yfi6W2HZ3CMrFpr+EtXaWqqr7KBrB8JEoIXHtys8she8al7XhtdP8T7MXYw2Uae6u+b/vmsEePH55Pm+XQsi3m2X4Eq6i5Y4TxYPQIWITcXaNN1O+y4kxbDo56DicYVDjA7ZiRoL6p+GRtfmtmJFWLhjkiZapVZG/LyhsFlUza92MTaJxISsVbYF2pWuxVvihRYwUYPhk+y1B0Ioi395DtA1pMkFJbLfcPsfFW14I/j00oWJ9uLpItFv6IVZpFZXu+oLbCr7BIroY8fiml2Qnvz48wRX+ETq6oYbZTZiiRuocT9MVtvascAlbZwJ7c4/0NCGtnFk0BJSfEN5+rDAvN+tYAcCu/2hNRxN1XHkH0Z4unenaUkbvMe1GZ1MhBmGnEDcZY1YIDt9zpsOJDosBsABIJz+Z7w1hcnKLWaRBgDUeIeqgFxk+/nj5CZoezb4OTEBkvLKwxWljEkxtCi43p6YuvCNgSOJT4RHcMD/MpZ59G/2acu7I4pOqBSGlNqZPrTF0g== 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)(6069001)(4636009)(376002)(39860400002)(396003)(136003)(346002)(186009)(1800799009)(82310400011)(64100799003)(451199024)(46966006)(36840700001)(36736006)(36860700001)(316002)(41300700001)(47076005)(8936002)(82740400003)(8676002)(86362001)(70586007)(70206006)(2906002)(4326008)(110136005)(6486002)(478600001)(40480700001)(81166007)(7416002)(336012)(5660300002)(356005)(36756003)(6512007)(1076003)(26005)(2616005)(956004)(6666004)(6506007)(9316004);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 10:06:21.5875 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc02f7bd-8253-4289-1366-08dbdac2330d 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: HK3PEPF0000021C.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB7070 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231101_030636_819898_992475C8 X-CRM114-Status: UNSURE ( 8.80 ) 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 c540523d5588..20aded2d1be6 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 {