From patchwork Thu May 23 08:03:22 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: 13671398 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 965A6C25B75 for ; Thu, 23 May 2024 08:06:14 +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=P8TdKnhK72RBHA2kruxVeL5ldlua7ZVk4748X54lSpc=; b=eT6fQNVMy293VZ FZP3tbFwLoYfiuV2u7m6bI15fPa2ArwA6sYp+2IbC0gDU3x5kER8ebKN4DNpKWILSqmPI3Iw17aCd Rs22AYa6KgO5fRkffNZexFU14+XdP18rmBXeGJAY/rVx1IyeBtkXFPvWKV2nw4Rm9aqgfk0pVlBkN fqrmr3+THCtkl0Ru8BUU63zBIxUxy4j75GwlcDo1avmrplw0lHgnfSLP968O4ymQyu57pgslzat+p 1xc+iXLpnvRDC5fULIhPjJaff+ufTd3lBn1Ih4nvN3RhBDqZIKr4UoGaFWwUYQJBAwkwXBhFh1Jpf mre22uf84o5HwUsayrMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3SX-00000005S0i-24BB; Thu, 23 May 2024 08:05:57 +0000 Received: from mail-sgaapc01on20617.outbound.protection.outlook.com ([2a01:111:f400:feab::617] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3Rb-00000005RNG-38ka for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 08:05:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GiR8bNdG9MjWd4ojT0X9SEh7mv4AyLQpAbmntMTUeAj3ikqGXEjEb/kG3btn6cn4KBA8AYtBwQZ4DMYPTHZOSv9P5/iLfIkOvWuymYsUKtIkyfcnm+yldfECgDHNS3l/vDwmt83WWK6yZcAxm7K/1HFBF82TwbXmjnx6iVr11baxBmUUnPMwOoGnqdpb1fYdc/xWXBCwvBzje8A4JvMMOl9XjAUMes4a5YkvRHhnYh1bnM/CNTiczm4NpEVan/6LosH3IXJ6O9kSnD+IWR5zTGDjVj68uWn80g5pRbvG3fC52Aktirl8qR91WCmLBocbZAb+YaM4txAzzOO5Ar9cUA== 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=9aG2tAObnqGVyXWs4nhAzlLQoN7HCq1EYScCcl7VH/s=; b=aSOFk7FMKEBSZ/n2K77jnlvlEV+oBVzjDZ0UGqNye2gbDTUKYdM7sd1Ugxx2Nkv9EGUaxJq4sZNG860NDp9cSR1TQZBy30a6bo0SVJqbs6BK+9nGHS2G2jah/bSYA7KUnnlSumz0hoLxtUszy73AXcZtCwn5EukR1j4rDS7HPfva/ZxqJU997jhQmjnkb3BMWq+Y6UjaRIlPpX+g7zZR38bLYjK3hmXbg9IDth2ToQQYiwoj5pv+vX4VutELXMYEgkpHRfjmVuMNqRQsU3eff3/FqwGalnNfW16AiLlS0lCN3HAxP745Kbo2oBoZZ794A3Egimo4FRc2fVIsS2SaOQ== 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=9aG2tAObnqGVyXWs4nhAzlLQoN7HCq1EYScCcl7VH/s=; b=aACE/E7lR0YeUopZiDswHUYBYZFGXaik8UAnlR9ndaMtU6agfF9muxWIDg3O1/xeCuki2iV+lwoONKDM54mlJig1aHKw+80Qge2B0KwSedaHxhI/E9FzJy0Ky3bIIDo1FM6xwMfwkxVdxDjhI5Hdrc+9Mm0xXICf8/tHcllyBH/L5vGtTXwm9joAbRCfqO0egsDt/da3NJuXag6HlX3Veu1t/oQqnc7QP0m5j8pCulsY+7cSlIMzCs6lwlYjA0mnylmMjyAfT6kWQfaCicr2zvlRfv6ScCnIZpvvYXqfBFDHt9bzoCltXcbLpVOgEA/ulw64W11ejY7HNCtud6YmgA== Received: from SG2PR04CA0174.apcprd04.prod.outlook.com (2603:1096:4::36) by SG2PR04MB5915.apcprd04.prod.outlook.com (2603:1096:4:1d7::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Thu, 23 May 2024 08:04:53 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:0:cafe::cb) by SG2PR04CA0174.outlook.office365.com (2603:1096:4::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22 via Frontend Transport; Thu, 23 May 2024 08:04:52 +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.7611.14 via Frontend Transport; Thu, 23 May 2024 08:04:52 +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 v8 17/23] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config Date: Thu, 23 May 2024 16:03:22 +0800 Message-Id: <20240523080330.1860074-18-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|SG2PR04MB5915:EE_ X-MS-Office365-Filtering-Correlation-Id: 38ff4cef-f486-456e-2575-08dc7aff06d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|7416005|36860700004|376005|82310400017; X-Microsoft-Antispam-Message-Info: Bkzypt5PjO4lIETMlyX5QkCkhx5aOfJIYV4eZ00WcZKwo3jjmKcBw3/hjHnvV85zqBCk3ptG5mTIvQo7YC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9DLeh0Ze38PtZmSdzq9l/V1025kKt1oO7pbl5cjh/ym1p1TVihg0Uwx5aI5yB8DwwIkXm9e7iNvtoCnlg5FpiLUqp5G7gfEEVNKp67OJfnoxvo2RFSS3eWK0q4d8QMcHK62waru8k0ZT4o6xSIlLJCVffBrQUvMqsWHcTAYWgrHNDUblfIJBzWAsGwLmzkWcnIOExJoAH5QrJcBHYIDnOfYNVItj2YbLYWdMSvBkJUm59uTX7 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)(1800799015)(7416005)(36860700004)(376005)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 08:04:52.3283 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38ff4cef-f486-456e-2575-08dc7aff06d8 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: SG2PR04MB5915 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_010459_841443_3E88ABB4 X-CRM114-Status: UNSURE ( 8.89 ) 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 3baf1df11a81..59615a6958ec 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -1103,8 +1103,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{ @@ -1116,8 +1126,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 { @@ -1153,8 +1173,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{ @@ -1166,8 +1196,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 {