Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp254200lqo; Tue, 7 May 2024 20:45:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJvs2DxKTO2hKMCBTBCiYV5JjP3ttziKKOydFyydv9Qh28DVdjEZohDwmM7dE9Wu4uTT5J13rngypqf2gY23ciODmT01+z6YmQETb5Wg== X-Google-Smtp-Source: AGHT+IGZPeS6pzS9vj/dO3/Q6R7XVxlfzGa5q8j8AiWyfjl0t589Xw9hZKH78jIEz7AvxhX+jL81 X-Received: by 2002:ac2:5f16:0:b0:51c:43de:b18c with SMTP id 2adb3069b0e04-5217c46907cmr729493e87.27.1715139912480; Tue, 07 May 2024 20:45:12 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r9-20020a056402018900b005722fd860f9si6419867edv.343.2024.05.07.20.45.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 20:45:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@amperemail.onmicrosoft.com header.s=selector1-amperemail-onmicrosoft-com header.b=kxXhRseP; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-172663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172663-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0D72A1F261A6 for ; Wed, 8 May 2024 03:45:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DC1E14AA8; Wed, 8 May 2024 03:45:04 +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="kxXhRseP" Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2126.outbound.protection.outlook.com [40.107.244.126]) (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 BC10314A83; Wed, 8 May 2024 03:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.126 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715139902; cv=fail; b=kFmSvqmn5Uv3eFbbXtx8MwbcnyUN3LjUjU/UbrPNmS5O7kxIGbsjqXXGdsekRow5WEvXpkLlcyJh8XqdV6vx/xSF/l/X80Q9XhSieb39+PFimaENLAZAGPZvlFDLrBYGmestXLlOzOFlXn17eqZ9hBejLRGO2S8JYY8DV5fEsGA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715139902; c=relaxed/simple; bh=DzHHXYDtPqpP0N4h5Ay32ah4eT9HtWoNR+k+etRAr+E=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=uyK1jTkCSqQMYhd/a3fYovkygO18ZayyUt1OsSPkzkeawI84Ry/WVb7K2Tv78g5H2HZOOY9pLZZ7nTysJdXYY7UmKvYcDLujH3oQj8tVJ9kHvb95RoB6IPZQLZ2P7sWdUAC2EmWBtx4RqrE8dyj14ZCVURDeLom9TIb3M+U0gQs= 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=kxXhRseP reason="key not found in DNS"; arc=fail smtp.client-ip=40.107.244.126 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=EI7oWgikU1TUupROG4onmRBF08jo7KQZ6/4LquHO5ymTkh3sMeK56lH/bTlyI5qnvB4353Y63PrBj7Y+5CNsSEFhccOIA8h/o5yP0M4i/Nhe0dhTA3zgSMMU03pBlWgWGf5+rtVslXY8UN18kfzWtBcTQVWqu7kZ1IuFGoMmKQq9KgyDIo0fQPk0q/X9d4RW2Ut9FKQBv0JPF2ariPP3gxW1mAzoe92+DAZzhhSH/HDegP67qNkb/8DF4PgiQTc8GsETsk7wkOm2YyL74UIA9WWw2INo29JqXA2TIqy9vn+cAD+R/PHzoxu0ByPAosTfsCiAbqW4Xpb/xEcrBw8gUA== 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=F8RcYaEhikUoeCvpPEECP6qhrkeydziPkD3rYN6+o/c=; b=f9LPj2VSI8xsXXPG9ZaD3x1nWUri/1SFzuuRn3iuiGEtfGBlGqknxWHmCrtYvE5zpcfY172TqRMOadh+K0gYkApyr376n6UzL3EllE03m5lRTU5vUxkdgUH7PCAxultctBJy3pwAgQnLJqr/V/XbkLSfhQzSUzp9/8u1CtFBcXoeV6n1qqKDD9weXlVkJ9hrC9dlmTxwi/+rI/X0bhmmWY4/XLTuJoHiOVWxSUmY+f0iIU01XjA1F1d6/xK+1FG2VZc3PnSZIk9lXCfOadFm8AstEGWRAQFOCGIbl7fyHNypT4RJ9Dyi1F0lZ1ienVhU4ThpPkodaM0qZPnsv2U8Qw== 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=F8RcYaEhikUoeCvpPEECP6qhrkeydziPkD3rYN6+o/c=; b=kxXhRsePJaXIzVA694ls+50NZRgbbZahqx/UDVZVzW1xdJY2qwi1v1EA2JW1A1V26xVoFBmxM4rmVAzaercMenW5YK7MixMaOvLTXMgK/yzzVTl1HYOX1s0Ekn3EFUj76/aIsQm9AHK5+YlSWrI8hQwRg7xufnUgDydLXFVUYLU= 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 SJ0PR01MB6477.prod.exchangelabs.com (2603:10b6:a03:29b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.43; Wed, 8 May 2024 03:44:55 +0000 Received: from DM6PR01MB5947.prod.exchangelabs.com ([fe80::919c:7d6a:2069:b0ca]) by DM6PR01MB5947.prod.exchangelabs.com ([fe80::919c:7d6a:2069:b0ca%3]) with mapi id 15.20.7544.041; Wed, 8 May 2024 03:44:46 +0000 Message-ID: <8fb38eb3-bb94-49cc-b5bc-80989d7876b9@amperemail.onmicrosoft.com> Date: Wed, 8 May 2024 10:44:34 +0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] dt-bindings: hwmon: max31790: Add maxim,pwmout-pin-as-tach-input property To: Guenter Roeck , Conor Dooley Cc: Krzysztof Kozlowski , Chanh Nguyen , Jean Delvare , 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 , 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> <065243cc-09cf-4087-8842-bd4394fb324f@amperemail.onmicrosoft.com> <20240423-gallantly-slurp-24adbfbd6f09@spud> <396b47f5-9604-44ab-881f-94d0664bcab8@roeck-us.net> <0dcc8788-604a-49c1-8c6b-fdbfa9192039@amperemail.onmicrosoft.com> Content-Language: en-US From: Chanh Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR06CA0011.apcprd06.prod.outlook.com (2603:1096:4:186::16) 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_|SJ0PR01MB6477:EE_ X-MS-Office365-Filtering-Correlation-Id: 55455886-7ce9-4945-cf2f-08dc6f113440 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?U1h2d2tTSXA4amxjbkR6ZjBOUXYxaU5yMjVrdVhBSnVaaG5TaGVaL0xkVktu?= =?utf-8?B?blZTcTBmWmNvNmExQnJCZFhYZTB1dmxtdUVuNHEvNUtkL3ZwbnJGalcxS0w5?= =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TnZaeTVid0R1?= =?utf-8?B?VWZIZS9vRElxWWR3ZHJyTVpZcU15c1dSZ2pMV3NPWDkzNjIyWG9URThlMG9z?= =?utf-8?B?c0xlL3VCMWl0L0kyRHQ5S0kzVE9ObXlaMEFGQUltR2UxUk1ONWNpb1ZuYUJh?= =?utf-8?B?OTROWllTM1M1MkErMkNkQ0I2UEVYQzZBM0h3WTNHL1c3a0tvTkE0MFViY0s1?= =?utf-8?B?MzdobCtYRG1FWm0vaWFpY3lmYUptWlRnMXA4SE9jb3NJNUhkd0VIaE1YU2JS?= =?utf-8?B?TzZmRnQxaGoxc1FDTU1ZV3FwRWZpdXhiekh3MjdmY1B6QWV0QUFDdWFNK1Jr?= =?utf-8?B?YjBzM08vUTVzaWFzRys0d2V1cDBoaExQdXJwMFE1RE9XTHErTXRkWEVEUlg1?= =?utf-8?B?ZXNkSzFkWFk2aWZpN29LVVl5cXduNWlUSlR1eFJCZDEvUTJvMU5aQk1LWkJs?= =?utf-8?B?NmVQS0Jrd2FEekRMZ3I4RHpTcmZWRVJsNC9uNEJqYURxVENBZEp4VWVwdVEy?= =?utf-8?B?UHpzeHJvL0hmR3dyTjUrZkFna2pKS2ZSRkNjR05nU2xPZDlWN3dqbGpaL2ha?= =?utf-8?B?N2pUZ005TnEveisrdmZzN2lWRjM3NXVXT0dIQ1Q2MnQ2d3RNZjYrWWZ0UmR3?= =?utf-8?B?azFLNi95ekp4cEIyWTZ4eCs3aUI4NWc9PQ==?= 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)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?am1WSlo3N3NSK05hS2ZiN0tqTWhHTEVQMVZmMzBhWXAxK0VBa1hLMG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HN2TklSd0RRbFh6TGU3RXBqTFdPMGlsdlN5ZUx1RGlMRjFiR3dW?= =?utf-8?B?UGM1cDZMd1dsUEs0NG9FMW10OU9JVjhBTzhBVGhPQlpGOVY3YUZrQXdIZUhV?= =?utf-8?B?TEVZL2hka0tFcjJScHVpNTNuWUdRUFNIcHpNbTZ6c1FHaG1zYWFGOUpLTTBY?= =?utf-8?B?Yzhaa0JwN3VGOVpyNUl5UUs2eFBSUTdIUXVzbW9KYVNVZ1RFVm84SllRNXVO?= =?utf-8?B?dEV2UDBjNTI5MUVjSjY3aERyS3UyNkRqK1N4VTRIQWJoQStNZlkzRkVIOXR0?= =?utf-8?B?NEh5cmM2QzYxTDc0Vy9PU1c0UXUyRnhxd0lyc1RIc3JzODkyZ2x4YXJ0MFdS?= =?utf-8?Q?nVdNRjKda1RatMMpMoN69R8=3D?= X-OriginatorOrg: amperemail.onmicrosoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55455886-7ce9-4945-cf2f-08dc6f113440 X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5947.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 03:44:46.8150 (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: NsYwhlfb3MlzVLgkj0UiV/O3fbwx2HUICEZtkbe6tggEEIQq4PYjyvsQdmhB6LyWBKxKGgQRs9lYWwBT1Q7rT4nB+yF0CXEvX8bsXtu/CfqzPRZJhQCuM2quTQuQ56bp X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR01MB6477 On 05/05/2024 22:40, Guenter Roeck wrote: > On 5/5/24 03:08, Chanh Nguyen wrote: >> >> >> On 25/04/2024 21:05, Guenter Roeck wrote: >>> On 4/25/24 03:33, Chanh Nguyen wrote: >>>> >>>> >>>> On 24/04/2024 00:02, Conor Dooley wrote: >>>>> [EXTERNAL EMAIL NOTICE: This email originated from an external >>>>> sender. Please be mindful of safe email handling and proprietary >>>>> information protection practices.] >>>>> >>>> >>> >>> The quote doesn't make much sense. >>> >>>> Sorry Conor, there may be confusion here. I mean the mapping of the >>>> PWM output to the TACH input, which is on the MAX31790, and it is >>>> not sure a common feature on all fan controllers. >>>> >>> >>> I think the term "mapping" is a bit confusing here. >>> >>> tach-ch, as I understand it, is supposed to associate a tachometer input >>> with a pwm output, meaning the fan speed measured with the tachometer >>> input >>> is expected to change if the pwm output changes. >>> >>> On MAX31790, it is possible to configure a pwm output pin as >>> tachometer input pin. >>> That is something completely different. Also, the association is fixed. >>> If the first pwm channel is used as tachometer channel, it would show >>> up as 7th >>> tachometer channel. If the 6th pwm channel is configured to be used >>> as tachometer >>> input, it would show up as 12th tachometer channel. >>> >>> Overall, the total number of channels on MAX31790 is always 12. 6 of >>> them >>> are always tachometer inputs, the others can be configured to either >>> be a >>> pwm output or a tachometer input. >> >> Thank you, Guenter, for your explanation. That is also my >> understanding of the MAX31790 feature. >> >> So, I think we should introduce a vendor property to configure the pwm >> output pins to become tachometer input pins. We shouldn't use the >> tach-ch property. Because they are completely different, I think. >> >> What's your idea ? Please help share me, Guenter >> >> >>> >>> pwm outputs on MAX31790 are always tied to the matching tachometer >>> inputs >>> (pwm1 <--> tach1 etc) and can not be reconfigured, meaning tach-ch for >>> channel X would always be X. >>> >>>> I would like to open a discussion about whether we should use the >>>> tach-ch property on the fan-common.yaml >>>> >>>> I'm looking forward to hearing comments from everyone. For me, both >>>> tach-ch and vendor property are good. >>>> >>> >>> I am not even sure how to define tach-ch to mean "use the pwm output pin >>> associated with this tachometer input channel not as pwm output >>> but as tachometer input". That would be a boolean, not a number. >>> >> >> Thank Guenter, >> >> I reviewed again the "tach-ch" property, which is used in the >> https://elixir.bootlin.com/linux/v6.9-rc6/source/Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml#L68 and https://elixir.bootlin.com/linux/v6.9-rc6/source/drivers/hwmon/aspeed-g6-pwm-tach.c#L434 >> >> That is something completely different from my purpose. >> > > Based on its definition, tach-ch is associated with fans, and it looks > like the .yaml file groups multiple sets of fans into a single > fan node. > > In the simple case that would be >     tach-ch = <1> > ... >     tach-ch = <12> > > or, if all fans are controlled by a single pwm >     tach-ch = <1 2 3 4 5 6 8 9 10 11 12> > > The existence of tachometer channel 7..12 implies that pwm channel > (tachometer > channel - 6) is used as tachometer channel. That should be sufficient to > program > the chip for that channel. All you'd have to do is to ensure that pwm > channel > "X" is not listed as tachometer channel "X + 6", and program pwm channel > "X - 6" > for tachometer channels 7..12 as tachometer channels. > Hi Guenter, I applied the patch [2/3] in my patch series (https://lore.kernel.org/lkml/20240414042246.8681-3-chanh@os.amperecomputing.com/) My device tree is configured as below, I would like to configure PWMOUT pins 5 and 6 to become the tachometer input pins. fan-controller@20 { compatible = "maxim,max31790"; reg = <0x20>; maxim,pwmout-pin-as-tach-input = /bits/ 8 <0 0 0 0 1 1>; }; The sysfs is generated by the max31790 driver are shown below. We can see the PWM5 and PWM6 are not visible, and the fan11 and fan12 are visible. And all FAN devices are on my system, which worked as expected. root@my-platform:/sys/class/hwmon/hwmon14# ls device fan12_input fan1_target fan2_target fan3_target fan4_target fan6_enable of_node pwm2 pwm4 fan11_fault fan1_enable fan2_enable fan3_enable fan4_enable fan5_enable fan6_fault power pwm2_enable pwm4_enable fan11_input fan1_fault fan2_fault fan3_fault fan4_fault fan5_fault fan6_input pwm1 pwm3 subsystem fan12_fault fan1_input fan2_input fan3_input fan4_input fan5_input name pwm1_enable pwm3_enable uevent Please share your comments! > Hope this helps, > Guenter >