Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1000359lqo; Thu, 9 May 2024 01:29:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhO99M2RiYDXnskvskHXGpQp/5FKRdcIq9L6ipBVKecLgGgoUlwgOI1FArjRXezYqfmGBULM9N2VPEmYW40edwHtWbLHwvDwzzw62oow== X-Google-Smtp-Source: AGHT+IHt3iklxSf0uV5F9AAKHJtopj22mjW3an/xE8T+w22FPDp9DXc6SvTi0NE+5ukWHRshY5Mc X-Received: by 2002:a05:690c:fd0:b0:61b:69f:4c24 with SMTP id 00721157ae682-62085c5eb13mr59159417b3.20.1715243388543; Thu, 09 May 2024 01:29:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715243388; cv=pass; d=google.com; s=arc-20160816; b=i92IVeV81XMHq8wEFqC7qo1Foc/o1yS+NQKFnI6eu/wyteSFfSIjKjBFYkREGUZ+4R +2j0iVZDz7GJ2xVupSe9eTzOO21qvw708jju5Q63hicMj6now5+oxXAKCGs9U00F5yAS BYsEtgYq2fJtx6JC36rnXvswiv84mciuZjwNE9Un5Ttwx+n/w0h5tGFqWyFltXI/7SQO rKnn3F1CZDm5VtO0wEhfNmENJLnP+y0YFn4L1NKm/zlhtO3XSRTW93TsqBtOVxHevLJV 5lmtKbgxjD7q5zaA4Tv3HeLSB0QV/tF5YqSgwIyxJ2d0+bdGMiQrlIANY+216gK7wMy0 aIMQ== 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:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=hMLp8AiHMhJ0KZlIbzXsouNCXcq5N+tUnfpKJC3oGdU=; fh=BHRYeMPURFgTb4xW8jRZ5Q5mNpuVvSTITOC8saDk3ME=; b=yV5XLIvDkunkH1h5sQ5Z9nWBOFflkXF/mwbin4E7Rmya4YPPe1ttbBSJ+Z3ETMGOpo HyoqqM33ovhDLyWk05X6I8tBtmTrd6h/tOTHCURxl/ABa9i8F3zK0NRO/pkKsJ6eCkkm TpTW7zWsHDs97HfrcH6a7riUlA6FZT9cFOYKJ/jdYv/elWXrdnmb7sIz8cFqTafXMJnA fwuxyj7eLL0o/GY98R3hDzHZlZZKBpWBCS77t8OnaHVMS074oK7doDsbAhVIqsPcCTxP 887hPG04QBhHv2P0QEflYb+eS+bkRgHQ6n7Q+NdXI7K70/fvZjnoeK+rgyjvkoV1ivfH ApVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h44dSdFj; 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-174288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df56ed061si8794031cf.788.2024.05.09.01.29.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 01:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h44dSdFj; 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-174288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174288-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 352681C209B2 for ; Thu, 9 May 2024 08:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CB84149E0E; Thu, 9 May 2024 08:29:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h44dSdFj" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 EC7FC13D27C for ; Thu, 9 May 2024 08:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715243377; cv=none; b=s9Xm+sS+LOWBxE269vL3REVkjR1wgRpEN5niM/v6eBs/zeCp2pl3eYOIW5hh0UFLDXG+EwB857hiJXsJXFp7CMJiNR5w8vehOmfUNbyct/eFl1TJP2OJLuYFDZ2M/dFyiFKsoSDUIDD3MtM39OR2NheaNmpQkn95+2tQTayZhng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715243377; c=relaxed/simple; bh=IRGjeXM1KNxqqYh4Ik3MFrABRQcli/7ofMMTYRmjaCU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kUth07tjGBkuvwgSmkL7UBEgHJitxJ8SeP00eSU0yMJRo4OXNFjjeafhr6CUrNNfJGWPcW3g70/YZi8wbPCGWY+InXAGelD9YtEPNhDnao8w0NucW0KNhR5J1a/9GUvdADpuoWpZsKxWDcruQUER8lpecvfhWlRYMDziclOig2c= 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=h44dSdFj; arc=none smtp.client-ip=209.85.218.50 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-f50.google.com with SMTP id a640c23a62f3a-a59e4136010so133859466b.3 for ; Thu, 09 May 2024 01:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715243374; x=1715848174; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=hMLp8AiHMhJ0KZlIbzXsouNCXcq5N+tUnfpKJC3oGdU=; b=h44dSdFjZEskNhPLk2IPSDa2UPOssm+rQU4yPG7EKBXkfcFEl3X5AHD+rl4+bIaJzk ULb77x0hI0e+7VbiJ+a/R2WoPInappvUhh1yakiCpCia9NRSu3aMqOiwyxPEpK6Sas2w y3xVi0Sy3RxIN9b7QshjVshncScmFTJcy42YsAcxwuRqNlRh8c/br1P3MOosJYu3SMU7 A6JiITP75uTQqCZrM+Fn5LZaJeCw/dr3/ZNIhUwt68G1WfSpJDKPGfWec/LfVheX2A7e S54phTQN4dSSeL4jwo2t4+ceH9gyEGrF0Aht1/9S6I3PJpjfUCPPesuDdyh1QsI92znh LEng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715243374; x=1715848174; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from: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=hMLp8AiHMhJ0KZlIbzXsouNCXcq5N+tUnfpKJC3oGdU=; b=SawwsNx1UJUe4NpLR0dFbmhiDTold3oH07FrqmJh/HhN1LXi1PVa6h4qgvK76O2Y1n DjsY7i72YH5V7NYDI2lzXL2MbcSFfuttb07ezJY25QNS6LfRTpUN58UIO5DN9FVVPyq1 kHuX43ggFzhBZsFowzZCoZL41eYUMQI8c8T0EXEx00CAQQJSEH3I3OqGSo8mWquarU0Z vP16/SHTj6SZFAk5aYRUwShzDofc+K+f4hzIlCosoSPh07nDiJAN8gEG+Pg8RuRYAPzb U9jdI0Q9h0nOKasKU9UJqDkOXSUnpQ8QcpAnPMwCxHWvfNGq+GGOIyBG9JSedKpKlnGZ zMfQ== X-Forwarded-Encrypted: i=1; AJvYcCV3iUVAqygEEfSxY/+DWAWXG3vGLbKvi3NhwqqvIvgQ6+IMjme8tCq/KF3oKkP9Gmxgzsnm4yePV6fX9rz4hWxBDpjwAhuPFuMOpj1D X-Gm-Message-State: AOJu0YzTbUMz1PxxgPvH8aNuR8cS4mVdTj5TKozns79aLMwbv72shJKu V1ijwI7Nms2lNMxRdNIiPDm3yvkXtlxGU9+MsthAO49+WCIy4nwXVt0tQJsoQQ0= X-Received: by 2002:a17:906:714f:b0:a59:ba2b:590e with SMTP id a640c23a62f3a-a59fb9dbcb9mr285672966b.48.1715243374175; Thu, 09 May 2024 01:29:34 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm48748366b.111.2024.05.09.01.29.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 01:29:33 -0700 (PDT) Message-ID: Date: Thu, 9 May 2024 10:29:31 +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 , Guenter Roeck , Conor Dooley Cc: 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> <8fb38eb3-bb94-49cc-b5bc-80989d7876b9@amperemail.onmicrosoft.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyva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O+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <8fb38eb3-bb94-49cc-b5bc-80989d7876b9@amperemail.onmicrosoft.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 08/05/2024 05:44, Chanh Nguyen wrote: >>>>> >>>> >>>> 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. > And what is wrong in described common tach-ch property? I think we explained it three times and you did not provide any arguments, what's missing. Instead you say "I want something like this in DTS" which is not an argument and does not help discussion. Best regards, Krzysztof