Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1843953lqp; Mon, 15 Apr 2024 21:53:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXi8FrW9Kd+fXI4gbF4BpjI+HgQk7SyQoTju+8GMrZtGkpJ6mwpvAd4QocV3/tU6+sCqQOOJ81MydqFBBPePZsTe78tTwy/SMrNs4C1LQ== X-Google-Smtp-Source: AGHT+IEGj6Jm6kIofRNcPonGG7TW/KjkzziRAO19DmzQNZh02okjz5BO3y3gkSrQRqwTbf7MR3bL X-Received: by 2002:a17:90b:3c3:b0:2a6:db3:1aa5 with SMTP id go3-20020a17090b03c300b002a60db31aa5mr11868962pjb.18.1713243211789; Mon, 15 Apr 2024 21:53:31 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s3-20020a17090a5d0300b002a20a09e5c8si10964678pji.10.2024.04.15.21.53.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@amperemail.onmicrosoft.com header.s=selector1-amperemail-onmicrosoft-com header.b=NtfbO6kx; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-146242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146242-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6B437B2299A for ; Tue, 16 Apr 2024 04:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E6D638FA1; Tue, 16 Apr 2024 04:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=amperemail.onmicrosoft.com header.i=@amperemail.onmicrosoft.com header.b="NtfbO6kx" Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2123.outbound.protection.outlook.com [40.107.94.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C3C91642B; Tue, 16 Apr 2024 04:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.123 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713243198; cv=fail; b=J/d7V2r+/ZTjBkZZtkagIzhwmoi3h6NcrDB7rQqZ0aWlp+kAdVaNj8R83URw2QW8BDvVXePnU/dad/S8TAqFNHs0EbdcX1uOE+mW1fdhCQoSSZPtTotwpIkD94ZJJ/Ffi/aMsSAYYh29XM9ylFwmJgQZn2/NsSPz5mka5H7+oDo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713243198; c=relaxed/simple; bh=HcuE2YnfQtvfN/V95uWThbxlCtchpTiR9tcF8CrIwbc=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=mF7k92bcNSUwm3rENOEpoSopihHbOMgvniSFGhTxOQIWoIxY5nO7hq1xuZvWjyIKY3BziLdMW6yxa0YB1GRMrHgmNTkg2jTB6WdahS0s5QzDjKf5ObbR7lergGFiHGu3Oos+82x/2n2215nDZQt0kH4Hcbu5E5FgB+sAGHv89sc= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=amperemail.onmicrosoft.com; spf=pass smtp.mailfrom=os.amperecomputing.com; dkim=fail (0-bit key) header.d=amperemail.onmicrosoft.com header.i=@amperemail.onmicrosoft.com header.b=NtfbO6kx reason="key not found in DNS"; arc=fail smtp.client-ip=40.107.94.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=amperemail.onmicrosoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=os.amperecomputing.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QWpbD/LoHA8E68QRGJv6EgFGMFg/uoEzKTQcB9EIpy6zbRJaPYUJyMJbjXz6KBD++sDIGPZw1FI5eKUq1EryVA0P0XPMtDOVz+MFeAp24d4RGe9Nrw95wYvgvthZflD+6F/1Ocg9UnznFIXIxSHh6ciXbQdkLDgyzeo83NeYhRWrhEmqZ6Kk82J5QvGvjEKW9mU5okwSMAXglrUMwbYlwHRVSE49nkzGNm91zbQPSolPf/YYwLvFo14MKR9YIsSru46BlKoGJ4shHggAOe6td/0vfkXRu6y0AtqgcemQeyFdMztM4udrgY4k27BPjfDe6YJYcyU+vZutbkAUs+sgAw== 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=dFC+o19vnPmICcPBAaWJMd5FI+HCTkR4zp2/S/q7qm8=; b=FB0uReHh+UBFfhjnVm/YiqCpigLSP1x5Z+DOYL7bIwKNsJGQqTOhmUudxUIQQlOesEjo6iyHIol31q/LxoCcuhh3xIoaV8pvAF3PXzHJZTZmtgaqEQTyTLytv2a5rc/mK7vYGZZhcNodrBfMnWPGB7Z+6dEbx11wUpr/QV8tSECZZPK6muNmlWArqzLs5UjiEF7Vx3CCabUXFfpzMZHOBLZQoWbsTA3uqDDoR0e19AeVo8BDNtBOgSB69ak1ZFlqSLS8r7CVZTLE98xSD2fANhanFm9+dI7xvQJ6RzE+xEvj5XpGmfjFGP0XOOcycSvodN03fFsqEwfqR5Xkadk0bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=amperemail.onmicrosoft.com; dkim=pass header.d=amperemail.onmicrosoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amperemail.onmicrosoft.com; s=selector1-amperemail-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dFC+o19vnPmICcPBAaWJMd5FI+HCTkR4zp2/S/q7qm8=; b=NtfbO6kxvn+/3VPal0V3NMjfj4NWxLDwhS7nisYUMr5AmKCfLdGOlNeEOVcpI8FX6tonxGoSN5opumbZMUVfMkYbKsVke5VheAHMQUjiOGgNHrZic6LmR7ZUUoIpUX/MOYY5ISupdcn8hI9uCCFvM8lIxOaLuY6onAXWQIAOJhc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amperemail.onmicrosoft.com; Received: from DM6PR01MB5947.prod.exchangelabs.com (2603:10b6:5:1dd::12) by SJ0PR01MB8182.prod.exchangelabs.com (2603:10b6:a03:4e6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr 2024 04:53:11 +0000 Received: from DM6PR01MB5947.prod.exchangelabs.com ([fe80::b557:13cd:8a29:ae08]) by DM6PR01MB5947.prod.exchangelabs.com ([fe80::b557:13cd:8a29:ae08%4]) with mapi id 15.20.7452.049; Tue, 16 Apr 2024 04:53:11 +0000 Message-ID: <065243cc-09cf-4087-8842-bd4394fb324f@amperemail.onmicrosoft.com> Date: Tue, 16 Apr 2024 11:52:58 +0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] dt-bindings: hwmon: max31790: Add maxim,pwmout-pin-as-tach-input property To: Krzysztof Kozlowski , Chanh Nguyen , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Justin Ledford , devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, OpenBMC Maillist , Open Source Submission Cc: Phong Vo , Thang Nguyen , Quan Nguyen References: <20240414042246.8681-1-chanh@os.amperecomputing.com> <20240414042246.8681-4-chanh@os.amperecomputing.com> <13b195e6-cbbd-4f74-a6fa-d874cb4aaa45@linaro.org> Content-Language: en-US From: Chanh Nguyen In-Reply-To: <13b195e6-cbbd-4f74-a6fa-d874cb4aaa45@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CY8PR19CA0001.namprd19.prod.outlook.com (2603:10b6:930:44::22) To DM6PR01MB5947.prod.exchangelabs.com (2603:10b6:5:1dd::12) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR01MB5947:EE_|SJ0PR01MB8182:EE_ X-MS-Office365-Filtering-Correlation-Id: 46423229-9995-4785-a908-08dc5dd11e1d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CQTkD0vxQMh7yuIue4gRsI5fyZs7GCF07iRP2TyyUIVQbywGc4RfMzYwH2o9N9tHEW7N0RF/9o/sx6Zr8K+PoXkgdM3/usdmzqtZDSEUf55OkGgwqmYWZ9/LY35OTKj5Jel9pnccKqCAIaLETiMoGi3ECsEzh9X2RDORbJVXoU0AWIOXi9jswn2lu7ZVpJhWv72ezDk+23WaSnUnu4C6KaLwcEsk/crH26Okp1FuT+DUQVZORO8gGdCbBm6fviAU96swKldYWktG0tXv37KKARH/ApW//rqwW40qPA8TykGn8hwavFRtY8+Sg8fVFiK9Hp/ZuceTlXiq5Omq2XXGmRZE8/EZmDXNEmKXYpw3MRLx5dz3mCX1lwPnKCDTbKZr5hokPlmBCCH7gnTMNcFttzCJpeisBeKsm4ZP5lbTwKDDg79fyGw+Cggnca7iy5roMKRuLcCHo7PK4A2CHNDAhWuX6x+qzqQ12FzkqsThKOWdE1jq+VSrp1qI5T2kmJ3+L6Lhur2TKqWwMCwDbLqfbZYLvpegpjUCmuOLgdqYgMNar4F4x+6z0+rXH77vs7EKLF4z85NDCbqFHqnTVoRvZewxVKEJ/IU6UTPXZN93EmGzckmrVHFPm/si4J6OQsdUqcDsBYsFSuWgFBHLaIzeqWysTHh3OWUL91T7ie9oxG8HcCSksTr37KWOtG0iC+B73QyIoCqOmR/Ilrj6jkOk7w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR01MB5947.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(366007)(376005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Si9DWGhEVno5OXZ1NE9VelRxUGhGenBuWDF3ckl4cnU5MDFwKzNVbmEwNEx4?= =?utf-8?B?NnYvVHB5U0EyRnhlNEREaXRXVDRTNXBNTWFKWU9LOTFBV3FBdUNzL0ZqSDVh?= =?utf-8?B?N2pxK2doRUtWYnhwZ3BlSkNRVm5RNHVpWWpmRmxPc25YSDliUmZiRThKaExM?= =?utf-8?B?SFZrcXFkR01TaXFkU1FjaVJtQWwrY0trcGFrTDRONWxTeEhTQyszdFdsLzVh?= =?utf-8?B?WktNY0VGZnZTdkxNQUdURUE5MCtERWE2cU43N3RZcC8vYndzTCtOYU1IRzdG?= =?utf-8?B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xZVorQXdMbzJhVWFsVkZJS1NpcUZFWVdydkVsbGZP?= =?utf-8?B?TzZTd093THJJR3pDZHE5c1JWQmpNZzlrNFhTUTVCdFhpd3NEaE9lQkpvNlJ1?= =?utf-8?Q?l9RtCINBemgcO9wD4+NcHlc=3D?= X-OriginatorOrg: amperemail.onmicrosoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46423229-9995-4785-a908-08dc5dd11e1d X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5947.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2024 04:53:11.5978 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VWtZadn1zTS95l6PMaZqudrSYQ6IHY684CzmbqQ0+3KaRedBwNPZSXopkom3L9vwJHZhSjTDlvtwKFK0c7E+SO7rP6hSTFVntR9ik0EHzPoO8uUeAU+zjhcvsexdHqZm X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR01MB8182 On 14/04/2024 13:07, Krzysztof Kozlowski wrote: > On 14/04/2024 06:22, Chanh Nguyen wrote: >> The max31790 supports six pins, which are dedicated PWM outputs. Any of the >> six PWM outputs can also be configured to serve as tachometer inputs, >> allowing for up to 12 tachometer fans to be monitored. >> >> Add a new vendor-specific property, 'maxim,pwmout-pin-as-tach-input', >> to allow PWMOUT to become a TACH input. >> >> An array of six integers responds to six PWM channels for configuring >> the PWM to TACH mode. When set to 0, the associated PWMOUT produces >> a PWM waveform for control of fan speed. When set to 1, PWMOUT becomes >> a TACH input. >> >> Signed-off-by: Chanh Nguyen >> --- >> Changes in v2: >> - Update the vendor property name to "maxim,pwmout-pin-as-tach-input" [Rob] >> - Update commit message [Krzysztof] > > Please put binding before its user. > Hi Krzysztof, I'll drop this [Path 3/3] in the patch series v3. My patch series will only be two patches. They are "dt-bindings: hwmon: Add maxim max31790" and "hwmon: (max31790): Support config PWM output becomes TACH" >> --- >> .../devicetree/bindings/hwmon/maxim,max31790.yaml | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml >> index a561e5a3e9e4..2d4f50bc7c41 100644 >> --- a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml >> +++ b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml >> @@ -30,6 +30,16 @@ properties: >> resets: >> maxItems: 1 >> >> + maxim,pwmout-pin-as-tach-input: >> + description: | >> + An array of six integers responds to six PWM channels for >> + configuring the pwm to tach mode. >> + When set to 0, the associated PWMOUT produces a PWM waveform for >> + control of fan speed. When set to 1, PWMOUT becomes a TACH input >> + $ref: /schemas/types.yaml#/definitions/uint8-array >> + maxItems: 6 >> + minItems: 6 > > tach-ch solves your case. You define which inputs should be used for tach. > Agree Krzysztof. I'll use the tach-ch property from the fan-common.yaml to solve my case. So I will not need to define a new vendor property as "maxim,pwmout-pin-as-tach-input". I'll drop this [Path 3/3] in the patch series v3. > Best regards, > Krzysztof >