Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2603723rda; Wed, 25 Oct 2023 07:27:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvb+nBbiUSDAyAiX+epSY50SuccV/xLTsI1HhFRZ/nUFIeDHNbzgo4rKoWNNJa94AipLJ6 X-Received: by 2002:a81:7389:0:b0:5a7:c4be:3af7 with SMTP id o131-20020a817389000000b005a7c4be3af7mr15646028ywc.44.1698244076816; Wed, 25 Oct 2023 07:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698244076; cv=none; d=google.com; s=arc-20160816; b=csrXglAlyU+cnM4mWGhW1exFl7gdCN8nBx6JKUeXMHns5U3BIxqYtOxeyLD2wRz2WS 6f0/xF/cl0zeARvhExJHrfySmUPmSimIoSe7NDPKmXg7MqvCsXfe06fgjwhqVEGINyHy /O2b0pAMnLBJ9CK/39ygjpcEq2JaHWKsvKcjbe0v0t7aSV4/V6Kk3qIfNNQ3jmytxGe+ qUTDtpr/MKQkgjf5oFT/lK+W/NUSKz2M5C0mPWl4w3PSxypWYcEHVaoVrtInDTH5jvLu uUtWWcLiUT2Yk4AKhB+iBCanGKpIf2aJhcEUVaPntva/rYSDMwU6XdLsv61K+cWHxWxh ErBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=W11BoROAQ6O+AQAgJsTMh4mnP5mkkAOTryMggiaMy/Y=; fh=NRLgUTZFv4MrVvWvzeIiyJsXeGB/8WNfWRpg0QbpX7E=; b=s1afKCvr4sJQc4JgHwXiulZ3Z/gfXnAzVhThHX1fgsP0Y79dUL7X0Bm/wqfgjQZHwF gU20FFYkelvy4vgS+luao7fOibJ/nqjI2bi4ean6kncMoGCcGSk9DkG2RHOYgAUjbpvU l4J9zXl/wJYxmr/i13uNpNA4Q1wd5oH10BXD+d25L/L547QHwAKndZvpkFB2KpjoIi8L Vvth1tEfDieT58Yb9zor0cV76ruJ8RUOf+JgS15YCJH84BwetTMKvmcxouK5PYsPWm3q bGFbckjJt8gRaSHiT2sUtwHwjID1UJvlU2kDRvMTfD6fi999THlYozfJ39m4WZJuz+fd 2nZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNshRAxW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k66-20020a0dfa45000000b005a204618ad3si10841430ywf.505.2023.10.25.07.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNshRAxW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9B505802692E; Wed, 25 Oct 2023 07:27:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344903AbjJYO13 (ORCPT + 99 others); Wed, 25 Oct 2023 10:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234031AbjJYO1Z (ORCPT ); Wed, 25 Oct 2023 10:27:25 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8B9189 for ; Wed, 25 Oct 2023 07:27:22 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-540105dea92so6617185a12.2 for ; Wed, 25 Oct 2023 07:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698244041; x=1698848841; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=W11BoROAQ6O+AQAgJsTMh4mnP5mkkAOTryMggiaMy/Y=; b=cNshRAxWpNTmmooh0A5GBsdJ9T15FxCRjZ2yieEGodIHrrQyJRuV4VxnmYQFSGF9Lk MHEGbxOLFAWspv4laXbvWG0vFTEeOxNM9lKEXB0QNWeeaZ5pcYYqB43Gpr9jWcIeJ65S iZbLJBYUs0hemXmAG+v6e2pCZrQ2wZsvBBf5enakw7aBC5xweurelMViP0Kq8DbfnKEH ZQe+USNFE1QGTQhxiyyFBNu5MB2s2A8dEuvo19hTFyW8sUJr4clRZiPK3Zq597scgM3U qKrHTkC+g5E4AMMSsCVwh1wJVjT9fZ12R1Y71taS1LknAEJGsU7ZyOcFvE1E8Ppeyzpt Xy4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698244041; x=1698848841; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W11BoROAQ6O+AQAgJsTMh4mnP5mkkAOTryMggiaMy/Y=; b=rDl0iGmYNYASlbZ+8ZvtxGIxDqfqHyoXSklyENBEr1AP7/v09nN48lh7N3iO52vVNj vQzaMi5myzok4crfOoY7J5ltJYxqqIDBeBWrqGGFwSkO+emC+kzdj7fEQUUZuO5jT/g2 I/ovVELoPZQIAqVkquQp6YkMXgWiNpDpWIpE692rVOX669NLMsh2kDyJvTS+JWOVRgP/ HRRS4PLfvI93+mdH+qE5JRWCzl2JxT6XOlr0JtXjT0IFvjj7zOE92PJzMaT8BE1QpFFF s1hCkbMDLrn55SSKIyijfnmO+PWgqKJPD1EW9DVFZTL5QT43N1KhUIBPJnl0IeUjqBIn Kztw== X-Gm-Message-State: AOJu0YzKKlwL/bhnz+ugcG7q6VmJ5Bymnyjl3MdXKZCkYUTe/nC+W6kN JDeqTcGRPnwCHFK0tmNC4unsbw== X-Received: by 2002:a05:6402:11cf:b0:540:346c:7b2f with SMTP id j15-20020a05640211cf00b00540346c7b2fmr8191641edw.40.1698244041113; Wed, 25 Oct 2023 07:27:21 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id n25-20020a509359000000b00530bc7cf377sm9761788eda.12.2023.10.25.07.27.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 07:27:20 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2023 16:27:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] dt-bindings: hwmon: add ti,ina238 Content-Language: en-US To: Richard Leitner Cc: Conor Dooley , Guenter Roeck , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org References: <20231025-ina237-v1-0-a0196119720c@linux.dev> <20231025-ina237-v1-2-a0196119720c@linux.dev> <20231025-hut-omnivore-f4b44a7b928d@spud> <20231025-eatery-backup-ad85c043cb01@spud> <8cd5c34e-f733-445d-bc1e-d4dea1bcb47d@linaro.org> <2syaha4sapfpegvdsvef76egcqfebkuapxok6uripdbrgbk2vn@2xq5oi33zz2j> 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/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng473E8ZFhXfrre+c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2xq5oi33zz2j> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:27:47 -0700 (PDT) On 25/10/2023 16:23, Richard Leitner wrote: > On Wed, Oct 25, 2023 at 04:18:31PM +0200, Krzysztof Kozlowski wrote: >> On 25/10/2023 16:11, Conor Dooley wrote: >>> On Wed, Oct 25, 2023 at 04:07:31PM +0200, Richard Leitner wrote: >>>> On Wed, Oct 25, 2023 at 03:00:01PM +0100, Conor Dooley wrote: >>>>> On Wed, Oct 25, 2023 at 10:34:12AM +0000, Richard Leitner wrote: >>>>>> The ina238 driver is available since 2021 but lacks a dt-bindings file. >>>>>> Therefore add the missing file now. >>>>> >>>>> Seemingly it is documented in Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml >>>> >>>> Thanks for the feedback. True. So is it fine if it's left there or >>>> should it be removed from ti,ina2xxx.yml as this is a separate driver >>>> with different properties? >>> >>> Merging them would seem like the most straightforward thing to do, no? >> >> Sorry folks, I don't quite get what do you want to merge or move and >> why. Drivers are not related to bindings. The point is the compatible is >> already documented, so is anything wrong with existing documentation? > > ina238 is a separate driver which doesn't evaluate the same properties as > the ina2xx driver. So I thought it would be reasonable to split those > bindings and therefore reflect the drivers capabilities. I do not see different properties in the bindings, so what do you mean that it evaluates something else? Anyway, whatever driver does is rarely good argument for change in bindings, because we focus here on the hardware, not on one, chosen OS implementation. > > If it's fine if there are additional properties in the dt-bindings which Where are they? Or rather which additional properties? > are not evaluated by the driver then it's of course fine with me to just > add the ina327 compatible in ina2xx.yaml. Depends. What driver does, might not matter in some cases. What matters is if these properties are applicable to this hardware. Best regards, Krzysztof