Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2607062rda; Wed, 25 Oct 2023 07:32:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvuaU/HwlsyxTjknRk2YyDl0ShRhevKUJJVj4NYsX5on3eZYmzkztc4SuhXK0ked7J2pGx X-Received: by 2002:a25:3489:0:b0:d7a:d716:233c with SMTP id b131-20020a253489000000b00d7ad716233cmr14625752yba.41.1698244357766; Wed, 25 Oct 2023 07:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698244357; cv=none; d=google.com; s=arc-20160816; b=ZezgH2sYBh7KfRLMbHLQcZ+qQl6LcvlAFM1IMYPAVCbnYyAZzwdM4Z4R0nKy1bWKRh ox4RVlZATAdkmqg3uiFJQmmyeci6NFMFQT+L3AONDNGRrRDr96NYKZmbwjaHuw3PBAAz FveneYhS56JWO3+tymtfMjlCQHMxFKxFz9sndlZwQe4n74+qjiDYr1/zb8sMxvoVIU7E pj/uwv9yTb+k+11xz1TMrIrRlUVvpE1fC/9CMuES5locNRY2Al6L+6vj3pdOlWNeEjFG SozJHAa0dn++bKBht4C05pplKU5KUOByrguqtDd/B1dz7nccrn7NDdgCaibxCOB+t0+o SsWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=K9yGXZx56wLrs8zZugE5T99ylar+sw5kaIHcBk8ebDs=; fh=AZ8bM0SjFcBzHmSdTzVY2HfqT2jLxhzhn6x/w/NIQiQ=; b=SKZmOxqm0yb84mPM8M3c/VDf8lQykwn10wMRxuD6v5COaPvCgYGEhkY2sPKpg3cNDu 0QLeukn0X5sGy1Cr8B3pM6iAnfIUhePt/N/hpoTAVCWi8KwK8sOYqG4lDoccVtRnXzUF ASJZ52BJXOfc3U26FaSvVFeaFSpeyqYhDPd9Do2Z+6MKZe1NdgtSLRmAHpCrWFmXnXTD A7eNhAEIwLGVuDW5kM+Vq5SRfmHdzxrlyFcG5fVhuJeiujYn2gy/VQ0GtKeG3/zLgL1i 9yHHbtzYhAZhTuBVXMXOeiRfd4YIUfHTAqh4jEGYN76+7mKsE11UabdWz+lcX1inLqbi jxcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ayJEVYsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id 130-20020a251988000000b00da086e8ae9esi1041486ybz.714.2023.10.25.07.32.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:32:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ayJEVYsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4C5EB801CCD9; Wed, 25 Oct 2023 07:32:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbjJYOc3 (ORCPT + 99 others); Wed, 25 Oct 2023 10:32:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234863AbjJYOc2 (ORCPT ); Wed, 25 Oct 2023 10:32:28 -0400 X-Greylist: delayed 1490 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 25 Oct 2023 07:32:26 PDT Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DF16132 for ; Wed, 25 Oct 2023 07:32:26 -0700 (PDT) Date: Wed, 25 Oct 2023 16:32:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698244344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K9yGXZx56wLrs8zZugE5T99ylar+sw5kaIHcBk8ebDs=; b=ayJEVYsKgQ2CMX2xDldH60OW+42hcVYvNKzt4hM8njPcv9pnKikJkWQaWdQmXULjYqQovx r94PExUjXSLnrG3hqFtcXqsKAoVhAOsZOGaoUU/MYyPmrXYZuWTQc+WmMpVxA4Nfiu+K2K wc9vLce5trfBa3Q0S3/0sqc6DnGSNMQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Richard Leitner To: Krzysztof Kozlowski 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 Subject: Re: [PATCH 2/4] dt-bindings: hwmon: add ti,ina238 Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT 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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:32:35 -0700 (PDT) On Wed, Oct 25, 2023 at 04:27:18PM +0200, Krzysztof Kozlowski wrote: > 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. Understood. > > > > > If it's fine if there are additional properties in the dt-bindings which > > Where are they? Or rather which additional properties? For example the "shunt-resistor" property described in ina2xx.yaml is not evaluated in ina238.c. > > > 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. Thanks for that explanation. That makes things clearer to me. The properties described in the ina2xx.yaml are applicable to the ina237 and ina238 hardware, but are not implemented in the ina238.c driver. So I will just add the ina237 compatible to the ina2xx.yaml and drop the ina238.yaml from that series. Would that be fine from your side? regards;rl > > Best regards, > Krzysztof >