From patchwork Thu Mar 21 02:12: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: 13598324 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 EC412C54E58 for ; Thu, 21 Mar 2024 02:14:59 +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=3sYRmHOTv5lBbHAD1kd/hgXsDW7NEQJyRfU3dLQk8Xg=; b=U+WpJqlrp6U2Ub WZteabq9hQ3vYcCX3dKaknmTx1v+98veiK+QqAq2XviREZTx0yzvPq+7mCNWeaN/bAXeQKvaN9D1/ bGEMzVOZP0ln6MfvGPzFaK+/DCpi024gAtJ65u4mE3Nz4DooV5a3P8923KIRw/O6i/p+zcmxM2L2w Tb90tuJyaOXUmCwQ68yg5wRzRGK0iBWTwqfhmH8PD4M/88nZLJK2TgPvoQkHWGo1Ft2VLeCidcXv/ FffX6nDv7EQL01iAD9FFOnLy5hK/aIXHj74p5Fnf1hmhhzm/teZNutO3xItoX7mLJ0zrBoeY2qOeq aSSB7fSqivt6H06rJMTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7x7-00000001XU7-0nHQ; Thu, 21 Mar 2024 02:14:45 +0000 Received: from mail-sgaapc01on20616.outbound.protection.outlook.com ([2a01:111:f400:feab::616] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7w4-00000001WlW-23Mj for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 02:13:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emOXueRR4Bq2NlE5t10N/mJ1qA23/OVKg5v+T9etU6Rs8dTsGq6nQWXC+guGO+YB9pCbD8Vr3smFRVmUxHuw5F6NPeHWx21WBMpJFYS1DnrDGorGPm80U4wwni6HEvqzVvouTzTDoKHCBoyjUp52FwNXAc2Q+d5Quo6EsammuUdI5YQYctxxkSE2Lht9Zc8x1Bbf9iQbOTyVJ6RekCyABs+LOJZzLUEJbZPUy80Jjdefc90soglDW8oMpQ4WYvE2HXSB9uiz8z54ZFqiB0ls72kkVcZ+Zoju15d4gyryQL/pAOCR0M7/zXuR2VFJOoA57J472mwpz12VRPD/MZ7oxQ== 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=rIGRINpXvZ/agGqhwhiOkaRypFxsGAOVYlXlhpD7bj0=; b=kZWIrfajvNmOdGzXDrzj1zuo3drnSgTJYe6XD07CX3V5N36ihZOk5/pw/cO4u0Cxaqcnt22Hipxe/uBVjAAR1+zJ8tR0QNvnJvoDC95d9uZDu+ZtGDiP+o4WAH2wJ47oHXRYsq3w+/ui52WJ6Rr42t3oWGa6sNZzE+wzFKaVk2iZ1cH/4Y+YIvDS0L0mjhD219hRzpt9/FyuLRY1BQ9qJB1VDAY6+OkRU4MlYLNXy60Csg/XaVPLvfErlcrioWHo0HkBUuiVTuGqD9ZQv2M4RVv24cEIw2m/nKxdBUC7H0hQXahH0KoVLrAAd0o+JeaexeWGpIMmANQ7kts19BeyGg== 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=rIGRINpXvZ/agGqhwhiOkaRypFxsGAOVYlXlhpD7bj0=; b=AbBhFBUHujDEEq541cKhs/DWNmPfJVMixiky8qzsUtGKHwR/29BEKKOcZDcuqY9ly2Z2cFY1FAfESTEqnAtrFUKVOo58XFAjTd6uxBWQgyc6vBJOMDgyS5zj03e+iSt61LLarsL1ToZ0z5WXY+pO9f0/GUlCuysKMN/EzfJvoSXVk+xf8tEEAKa6yJWnYaqkvSd+YpEKog11n9zQ7r2FyKHAn0PCD+MF5hhYwtc0zcSyJa1yITI5ZjZrKZsFCoPMA8TLutsi3aiJCWxe5y/10VCWENOxx5MKEY96ajv3Ols52PWylpg91iCB+zohN5c4UZzMQHzi2q303ljW6SOzdQ== Received: from PU1PR01CA0023.apcprd01.prod.exchangelabs.com (2603:1096:803:15::35) by SEZPR04MB6172.apcprd04.prod.outlook.com (2603:1096:101:ce::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.35; Thu, 21 Mar 2024 02:13:30 +0000 Received: from HK3PEPF0000021F.apcprd03.prod.outlook.com (2603:1096:803:15:cafe::3a) by PU1PR01CA0023.outlook.office365.com (2603:1096:803:15::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend Transport; Thu, 21 Mar 2024 02:13: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 HK3PEPF0000021F.mail.protection.outlook.com (10.167.8.41) with Microsoft SMTP Server id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 02:13: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 v7 17/22] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config Date: Thu, 21 Mar 2024 10:12:29 +0800 Message-Id: <20240321021236.1823693-18-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> References: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021F:EE_|SEZPR04MB6172:EE_ X-MS-Office365-Filtering-Correlation-Id: 19a930f1-af41-4b74-1ee8-08dc494c80a6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SKk+PfKOzpzlAVnpKOtc8ap/k+0ISTEbuVswvW/LfnWTice8NLFWydyxa0QcbZvQduFsl4BcmD8L5AVu8T13oXos6H2pEm/q796j+JL+pMhmAmtc2zFg2NpHpwxq8XZIVWttqHiUIaCRPjdaI0aNYqS628LH156i1BAxpBcrv+bF/NaYjG4iuTe9o1o91Bwx/SNtp2vPsuYAwMgWk5n0a+kZD258qmw25QzCn2Aai2SxqTUz6qwEMpGU6hSffFmHJM883/USMPy6HxHEmqqS9jco1AuihJWoDjjaruzyl6nqtQutAepr3f9EvaLos7bADvAyDfNS5Xpck1wDERNEuhj0q2C3eFhvHOMOccR8RSGXYESdPAvS6bfCoTwRBZ/qPyiNgZhhSTrf+m8ydVmP8DjtWITRfoYT/km6pQVzZ1EHrMJbwmCZCc5edN+5msVB7odr3OAStv6sO6t7LPWGYxcHFrJLUnQQ/hCI5BY2T5vI181iRnC6nBi7m2WE+pTubaF8qdN9WzV0NevJGlVtNOmnjMKKKK0jWI4MBCI/7o9NWXUtebaa3P+lWvJvlUjR5rJ1AuNgTFhBL9eLmS15PMlY7QjrpKg24FcCjfqqdFQBhk3B9pWgOUsfa0Ihg3AaB5L9tY4LViFhIcflcpf0pdY67EJ7DFqOJcl9EPKGk2jgl+2R/4CK2hfDCWeQSLHAI5snflK1foLEo3wn0NjKE20cQHcx3UiZHqQGujZTfX4z36dWrlFi3fDEBWCCrRgS 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)(36860700004)(82310400014)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 02:13:30.2292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19a930f1-af41-4b74-1ee8-08dc494c80a6 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: HK3PEPF0000021F.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6172 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_191340_695118_BC132097 X-CRM114-Status: UNSURE ( 8.93 ) 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 Revise fan tach config for max31790 driver change Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 48 +++++++++++++++++-- 1 file changed, 44 insertions(+), 4 deletions(-) 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 d59542a9ef75..e0ca0f7b65ea 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -1095,8 +1095,18 @@ adc@1f { pwm@20{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ @@ -1108,8 +1118,18 @@ gpio@22{ pwm@2f{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 { @@ -1145,8 +1165,18 @@ adc@1f { pwm@20{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ @@ -1158,8 +1188,18 @@ gpio@22{ pwm@2f{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 {