Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1168374lqt; Fri, 7 Jun 2024 09:48:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/YonVBaMa9N8g/ljdVW4RfTNAaA9msSRbGSHOjj2vZgEtYIWEz7/2CyGD+SvPNIq0hIF2vYEM10l4ufzBRe5Rg3xGxbHRn/a1b8iJcA== X-Google-Smtp-Source: AGHT+IHqJ9/j4wnePOQuzWR7glRNYsoujqo1KeXZozQofthIVsVgHyNSgMEorOch2N+F8BmxlUMT X-Received: by 2002:a50:bb28:0:b0:57a:4c22:b3 with SMTP id 4fb4d7f45d1cf-57c5085e6ecmr2592188a12.1.1717778883148; Fri, 07 Jun 2024 09:48:03 -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 4fb4d7f45d1cf-57c68c41ee5si69191a12.377.2024.06.07.09.48.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 09:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206508-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=wafvOiCX; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-206508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206508-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 A8C7B1F20FA1 for ; Fri, 7 Jun 2024 16:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C7FF19A299; Fri, 7 Jun 2024 16:47:57 +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="wafvOiCX" Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2090.outbound.protection.outlook.com [40.107.94.90]) (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 5075C19A2AC; Fri, 7 Jun 2024 16:47:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.90 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717778876; cv=fail; b=HksXCRh627ESH9L4zQ2KxZMknjZB+KwJbyDWUy+siXropG9cLJe8zRsz/vdLOWMlorFJIsiIvEP44lmSwNqwvzp9MFRZaDrMNI4FKUXSxsxUtFwkI+r+NdFiVcNHEN5oLWA8zrUhjbCZbbNJnbDH/WV7kV9ySuLaE8Zs8DzCJU8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717778876; c=relaxed/simple; bh=OcAv1lDvtx8Cv7dKkR8ceBjCdWlb1vbrIcOm9kwXVjU=; h=Message-ID:Date:From:Subject:To:Cc:References:In-Reply-To: Content-Type:MIME-Version; b=F4/VgYkSiqaWYq3wbiAZFdxp4PJ/NjMrC1CEpCO1rPBwT3q7+OgbpKX9fOQ5vlGT3ffttT31BGxmpIOD1XXoeQ9p3bkmUKwzwDnDSQNn5d5EMEcRJpplVYbpZMOv5zpKsXKnWSyUyTwtiEMzjxWKeAp2Fd7f9/sETAYP5HuYA9w= 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=wafvOiCX reason="key not found in DNS"; arc=fail smtp.client-ip=40.107.94.90 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=WJ7H2ZP9KWxMKi96drrREq1jwEvsTLztcfie/QPXZNOLu/+8PfAv4CKC6ei/G4nNj/Sz32BQWX3Cne2KmMVCT1a0IvJu6vCJfW6U6W8Enyrmu4EMaL2C7xL2gqtwGsbaFAOdKFB8XCYPZ4jecJKPjtIT2P71sioXJCpWOWIqr8yiyMwyCXl/shFb1hjLZROVSWeowygv7ijTsDynVzkSptoWFr5VjWoVAelem6obApqwlBzS/0o2SbS0XWxmIYnu9RNgm/m9N54wh/mYZ76zvpCT5nl5rXaM1CeFO92lTWvmyWtpA0S5uF8Tb1bzmKhTzaLas0LP82of45ammxTrpQ== 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=CC8+WZ2qDUoV97sFTXJS9LY3VcfKKCug1RP6VoiOtNA=; b=OHKwX3TJQQxGAGdl+0PaLqCqTo6ow/zZ2lh6i81OAAlfDgxBxq+h/dz4qIBeCbnZAjEfWvz85QBLUPu562W5P28Kb8lgE/Kmm7ndqmjWLEahu4UupJxFbCsc/kJl97+LEOzNIUgo72qLPkK4AwnOIjcnFW6Uzh6BCCpR8gKWYhkY8cuQe0Y3s0vCgntXFbZcxWZdyqyVApcO4Z0AFCEVuv6wqHEcJiT3/tLQSTkHXoBMILtmDWPg0wWIwVs3Q5GubSuJG7rwpbdp1JZQyRRyMkSZiIsLI9iqH7Cov6IUQAZ6HGYN+5kjHTKbm5m1DA5cjwJGNFaDezF0favGAhWH7g== 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=CC8+WZ2qDUoV97sFTXJS9LY3VcfKKCug1RP6VoiOtNA=; b=wafvOiCXZuHWOjwBGtHH8fb9S1khjyxtupKda8UNeAmoNtY0QN4m31CABcLweSVr7ZmS4PqxZDe6ZMSw1pFPNGjyfr1ftw4M6Z0Xil2Xe2p/K+ADhsFGpxRTwH0KwPzg2SUewiZQQ89I9gFl+tWxnwnJDuipeiAP2JpWABI3EFg= 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 CH0PR01MB7051.prod.exchangelabs.com (2603:10b6:610:10c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.34; Fri, 7 Jun 2024 16:47:51 +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.7633.033; Fri, 7 Jun 2024 16:47:51 +0000 Message-ID: Date: Fri, 7 Jun 2024 23:47:42 +0700 User-Agent: Mozilla Thunderbird From: Chanh Nguyen Subject: Re: [PATCH v2 3/3] dt-bindings: hwmon: max31790: Add maxim,pwmout-pin-as-tach-input property To: Conor Dooley Cc: Guenter Roeck , 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-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> <8fb38eb3-bb94-49cc-b5bc-80989d7876b9@amperemail.onmicrosoft.com> <20240508-onward-sedation-621cc48fa83f@spud> Content-Language: en-US In-Reply-To: <20240508-onward-sedation-621cc48fa83f@spud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI1PR02CA0037.apcprd02.prod.outlook.com (2603:1096:4:1f6::13) 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_|CH0PR01MB7051:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c30221b-62e4-4224-7fa7-08dc87119206 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?cGxhLzF1ME1mVUgyMURrS2pwa29PZ1dqRTYvOW9pTnVqdTRoZnJheVFHMzRo?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?bTFod3VoNkJ5eUhjbkhqUXBRcnpRTVBhU0RJOGNHdHZrK3g2MkFHRzZBbTE5?= =?utf-8?B?L0ZQemJmc0l1ME96aklUL3BmYjRGSkczYVZtZE9iejAwbFE5ZkZFckFRd1VP?= =?utf-8?B?UVY1MzFoN1dxSm9nbDZPZmRvdm8zR1pzSWhXR1ppTGlGWE9hZTgyd0ZCbjRB?= =?utf-8?B?cCtvcVVGenJhUnVCZkY2MXlmUGdXOXg1aHZBeExoNG9Hcm5MN1BaOTlzd2p1?= =?utf-8?B?NlFMb1ZCVXdhUEZBbUQyQ0xpbEExQ0htcnprbWFzS01iVXB5VEhjcXpSOXAw?= =?utf-8?B?NW13Vi9ObEp5eTJMNUlWRzVKczFDN285blZDTlRML1FVakRPYlZNMmM4Wjll?= =?utf-8?B?U2hDekZQTEZTZHViUWRVN09LbG9CL2tKZ1RCQjMzRkZOcG5ObjFrSlBOWWk3?= =?utf-8?B?QjFVcWd5OUdnakRROUNhVnVaUTVCdUdwcVhrcHBhUVZlWEZaR0YxejJyYnl4?= =?utf-8?Q?ldicyhm0Fveks1QwUkpYh9s=3D?= X-OriginatorOrg: amperemail.onmicrosoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c30221b-62e4-4224-7fa7-08dc87119206 X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5947.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 16:47:51.7019 (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: fDIKC3S6b5jiQJrHO4PI65tRRNmvPMcGlX4pDbBYwB+3N9fTjNrAp0iwHbAL6X1JVV/wCVM92IUDcwoU4URNjKnw2N6UrRDU+m+q0ziFTVOIb6HMjNk5J1bNW92PdnsP X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR01MB7051 On 08/05/2024 23:47, Conor Dooley wrote: > On Wed, May 08, 2024 at 10:44:34AM +0700, Chanh Nguyen wrote: >> 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: >>>>> >>>>> 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>; >> }; > > Why are you still operating off a binding that looks like this? I > thought that both I and Krzysztof told you to go and take a look at how > the aspeed,g6-pwm-tach.yaml binding looped and do something similar > here. You'd end up with something like: > > fan-controller@20 { > compatible = "maxim,max31790"; > reg = <0x20>; > > fan-0 { > pwms = <&pwm-provider ...>; > tach-ch = 6; > }; > > fan-1 { > pwms = <&pwm-provider ...>; > tach-ch = 7; > }; > }; > > You can, as tach-ch or pwms do not need to be unique, set multiple > channels up as using the same tachs and/or pwms. > In the case of this particular fan controller, I think that the max31790 > is actually the pwm provider so you'd modify it something like: > > pwm-provider: fan-controller@20 { > compatible = "maxim,max31790"; > reg = <0x20>; > #pwm-cells = ; > > fan-0 { > pwms = <&pwm-provider ...>; > tach-ch = <6>; > }; > > fan-1 { > pwms = <&pwm-provider ...>; > tach-ch = <7>; > }; > }; > > I just wrote this in my mail client's editor, so it may not be not > valid, but it is how the fan bindings expect you to represent this kind > of scenario. > My apologies for the late reply. Thank you, Conor, for your recommendation! I spend more time checking the aspeed,g6-pwm-tach.yaml . Finally, I'll support the child nodes by having different tach-ch values. My system is designed similar to Figure 6 (8 Tach Monitors, 4PMWs). I'm going to push the patch series v3 soon. This is a brief binding. .... properties: compatible: const: maxim,max31790 reg: maxItems: 1 clocks: maxItems: 1 resets: maxItems: 1 patternProperties: "^fan-[0-9]+$": $ref: fan-common.yaml# unevaluatedProperties: false required: - compatible - reg additionalProperties: false examples: - |     i2c {       #address-cells = <1>;       #size-cells = <0>;       pwm_provider: fan-controller@20 {         compatible = "maxim,max31790";         reg = <0x20>;         clocks = <&sys_clk>;         resets = <&reset 0>;         fan-0 {           pwms = <&pwm_provider 1>;           tach-ch = <1 2>;         };         fan-1 {           pwms = <&pwm_provider 2>;           tach-ch = <7 8>;         };       };     }; As your example, I saw the #pwm-cells = . Please let me know, what's the purpose of this property? Thanks! Chanh Ng > Cheers, > Conor. > >> >> 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 >>>