Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp798253lqp; Sat, 13 Apr 2024 23:07:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQJaZ1sPXYxiSbynd/Bq4p8t/5Q7JumxUEB8ykDVp6iUUK7574f8iVCXmKCFukqmNGY2l2lMUG89Ey8hZXZNsDUOVxB/gs2riRup7e8g== X-Google-Smtp-Source: AGHT+IH6zq6zmCBdrwkmu2psfVPowjbHslA5HOEDSHvHTrskK7ljntYs6qE7v7Cag/r7MveoBdv7 X-Received: by 2002:a17:907:7756:b0:a52:56e8:725a with SMTP id kx22-20020a170907775600b00a5256e8725amr1347629ejc.0.1713074843318; Sat, 13 Apr 2024 23:07:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713074843; cv=pass; d=google.com; s=arc-20160816; b=mLsyKpTm++sz5YzRNDybIrdRHXFo3zOhkOFoXiCE+KS3sdIcpujLJ8XUkgE4jGfq7h xB7DogTeIKqKduXwpud8CcGrA6MDyoflQBW6EgaUI5b2XY3MNWIu8GyWepCkw5XNL8IL TnLstdrCH+l8dM8I2GVUHxPi8d1Cytsm6RP6LA8YpU0qA0cFq97CI88ShdQe+6G/0IHx MnwnYiH0J5jeLi0Ms0fVI26nkcLn7gQ4QCPSD3WKx9y6MhOMFMTtC/x1i5Yn9rW9nTHB OO89OBdb9YF0KALxLcJK8KpBfckYSQ3R0PX8iFhnqx16BAXz8PTaqAS7f0r1D8zTzK8V Wyug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=birczs2n38bj+qt5ct4BeQZrHZlbkYfeLVY4PLvG/PE=; fh=GGsUicRs+w+C5tphKL0oH6K5qT3KpeZKv4ojODqbYEU=; b=lTFeRTpvfVw1gANhX3pL22ZiedHqggGcKI/vTtj22qmH5Dam7QTU28366juCkJoRvW s3Wt0xhDSycSX+DFtupbjxA9pPtNn7V73lNGVPhOZO+8e3zE/m8SLOjWY0cx+JD7HyLS HzEu0lUhf6WMSDwhZ3mQ5TZeb/BrdK7pYhPhWhnMlQIkfKi8cTPui0dfDMdyEcwhpFLp kkDIBvZ7XNhAjtjfVyJNBDQpIsnJ9NQPtBh8un9xbPcHGPzY7PCvOYgjs3IbKvkE5Ztf Gajgyi8lmoT78zN95H4uFk5EQqkUj5vsUmhsq90CWqPtmC+nE6XlO3x4a9r3SxClCXfR U9nA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dVd/1JLG"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gf9-20020a170906e20900b00a51d9eb383dsi3267815ejb.453.2024.04.13.23.07.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 23:07:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143992-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=pass header.i=@linaro.org header.s=google header.b="dVd/1JLG"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 DF7AB1F213A5 for ; Sun, 14 Apr 2024 06:07:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 130051C68F; Sun, 14 Apr 2024 06:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dVd/1JLG" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08BAD1BF35 for ; Sun, 14 Apr 2024 06:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713074836; cv=none; b=m8whcgA7oYPak/zF/NPVMNDiqtFf/4iV6If57uoKz1yDMS+L2ZP/aasQi/3mSoPq7N/7Qe6q27+eGkpIU/zY0d0q4fcr9lAfMZPky7c9+0Va+ZYKOotuuuJk97TJS3OBhybeCgOUJU+AaYE9lCY36vEVIKZIyuaFgT7ldAPbjlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713074836; c=relaxed/simple; bh=rgUmJRNE583FfwwKk7ImcN7Q38hAoqx0XrUkO1ukD60=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jFs2F07z0BwNekIn4iZ0l8VjCz3k7I4nNZ1/bSVmBLpV55ytjlj1NWdahpsIGOwuIJqJtOKwBvV4rJ4D++ZE55KDZ05jY/r/NE1Wl2kfBFWl0xW4G+Ok0xLh88g8SPmaocFKVgxYG87e36Yac6MEUM+sAIt/stM6x9p66+o2DYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dVd/1JLG; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so350796566b.1 for ; Sat, 13 Apr 2024 23:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713074831; x=1713679631; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=birczs2n38bj+qt5ct4BeQZrHZlbkYfeLVY4PLvG/PE=; b=dVd/1JLGtdaSD8GeGmiy1E/j175K0CLtYCiV7+QT2d/WzCQx395lMo0Yj0avJEq/rB bjUjTJKlZLSLXjWIj/YEOnSi9vK9aKUZQYwbrbqbGXJwEnXrJlQYS4KynCNfLRJf2dKu DNtTSpLvPJby2YDkzNPR81cVYvojOwiNd7jtG3nqOISI57DUCazlhX/LHxWj22BZXZZl N7Ka8CJz2PFmy1i/MduMezlIgW3B8gWw4+VmEKhxwn8I0vldGN78GymplTrw0cOvnnZm D5f4186i6CcG/OjvK2nn4lRY6bRVYcoYXDQensvbUVJFRmadjbk+FseG+2L0cQ/ON+cU 9Qlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713074831; x=1713679631; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=birczs2n38bj+qt5ct4BeQZrHZlbkYfeLVY4PLvG/PE=; b=LivrL+/YtWlFbYawhx5Y8Vg+usRpAPO+TUJHSEg+jEoCxwWDF+BDxMI4xzUB3ytu7L Rn6GJPBoA7PDHnk2iKAVVNW/zOVQzxHSUf6srC4pb7bFBOIgIHZrEIW1fhPFbDohvFug kFrEcdv2s1AyvebLCwlrVol8+yxZLpWDTIhK4MoS9RBr36RdGqpc3kqvLOBcLxKneYFy WwZzKNLAGrClD8Fe0FxpKJNTKMLhcRKQBPdb2w6o1G3TX57215z38coSMJpeuHhOuIXT B6L2NFifhU0wWrY3DD2yh1DbtHehny2jdZPaJxJKqua1R2AE//xk4G+b1z15KkyI7W1/ eYzw== X-Forwarded-Encrypted: i=1; AJvYcCVAaMqHDulIHV2p4/44eS0SXwUmSbhdWl2vtnYBvRY6eR4VQO+Z5wALl+yN8XEXSoOovbiBJbv8IWESq83HeZBmoR9pomGFz1KJmew/ X-Gm-Message-State: AOJu0Yy01ggIpx5Vxuwmdcbh9n32J3URQWyl7R0fjRPnHiB9kWd7ZHeO TysmMz5uQoj7j9+7/6DGdjXXxrZ6R6NC+nwvY3fZBTU/81KDvTaoi1r2ehowPhs= X-Received: by 2002:a17:907:72c8:b0:a52:51ce:3703 with SMTP id du8-20020a17090772c800b00a5251ce3703mr2468366ejc.2.1713074831322; Sat, 13 Apr 2024 23:07:11 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id rs6-20020a170907036600b00a4e6626ae21sm3811546ejb.0.2024.04.13.23.07.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Apr 2024 23:07:10 -0700 (PDT) Message-ID: <13b195e6-cbbd-4f74-a6fa-d874cb4aaa45@linaro.org> Date: Sun, 14 Apr 2024 08:07:09 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] dt-bindings: hwmon: max31790: Add maxim,pwmout-pin-as-tach-input property To: 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> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2Anj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ggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240414042246.8681-4-chanh@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > --- > .../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. Best regards, Krzysztof