Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp378169rdb; Sat, 17 Feb 2024 12:36:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCxiWMlsrMulcn9dhWdjzoUopfr+7A4q9/WgN3saNy6VyAwqDm8BzJwS5DCIOl0xzL+9ySqBvFyFirCs6mY5qKNgaS9Ow10ftTvw5y1Q== X-Google-Smtp-Source: AGHT+IFaDQUBlhJhnI/xK5q8UE79sJDDXxdJqN++sjrj4e1EaQenYVPppgZ2FWotmSAv8PkZoSZp X-Received: by 2002:a05:6a20:d907:b0:19e:c2de:422 with SMTP id jd7-20020a056a20d90700b0019ec2de0422mr9047137pzb.55.1708202190111; Sat, 17 Feb 2024 12:36:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708202190; cv=pass; d=google.com; s=arc-20160816; b=majlgBzP0ziiv9/1trBzmLAifeevOENWvDFNgIqlyUvaG3hpHwHKKqWufnOqWNX1wB uEFYjlJMsGb0wyvDyUShIvd2i8M39ldzPQpGSeFfjMINE88uuYHOqg7dQkACbW48g2/f HucQ4HDV1tehmB7fytnD4mARmj4bdWhfhUdYaSUbuKtQof1KuR6cMWgZwt5Ht5yBHMAT K8LfmR3d8/Ybj136RjmA9B5EexL//wSsSK/SUcp9XECOejTVY2cSii0mHvZYUqtkqr16 hwRbCnQaZOfRjtEvE2HRuhILa3JHgkIRJn/MVEA4T2bDrLfx/OZoLJUKprBPtH3g5Gcb r/EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gjmeiJmJSxggaez1/Qd18jjbQO/kCMJEG6JdvSrFaN4=; fh=hOMdgak3S6iMAMgzQ3yghI0L6GCV+qezqESPtbD2wYo=; b=sWOTA3EWvRd22hat1CvS8qGLchQYKvKYNbn7LBRVxEXptBmAqRCDU/KF0UzTDbYOCz Tx5sQ5q9lBorGnnlCR5T9qcHDAxrSqwGfK1wHQ5qDWsswr5mMg/Gsjj11DiUPt6vZ4Dp Xv2kqebgGshyXGUBDpHinH/gQD0QPimh2lI+3Xu1seDBl65gNwDeK44IOxJ7YnLs15A/ h8DwBihOK1u0gNkQHH3AhzkfWxqiSwyuoqY+E0c/BLHDa8ngNyj4I+ggYiBQZqIaF7lh gOyJLBnobIS+eaNv/vQ/GIHRKCb27D0xzT4k0AjKXSbAxroExvbsZN0Ilc45DWDAThp2 878Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jP09jcbj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-70075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h22-20020a170902ac9600b001d8da2362b8si1848255plr.261.2024.02.17.12.36.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 12:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jP09jcbj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-70075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7F349B20B86 for ; Sat, 17 Feb 2024 20:30:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 993557F7DB; Sat, 17 Feb 2024 20:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jP09jcbj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B62F87F484; Sat, 17 Feb 2024 20:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708201807; cv=none; b=tGTin1vQ4MJBE+4SEV0UqQRs3Ohagwz0FipPbicINJIiXsNh5q7tHQaz7vOrIP9FZEGjGjUcqvnI0p2d4y38Bb8j06plg0TBXv+xwGnpt6EBnT+E9RicUTb0+4mG9YYckgNFTOpCf7qMyXWC+c+GPjFayRYV230aA+toLUQoc9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708201807; c=relaxed/simple; bh=NnCkYxT8FeGPtNSEwGVJYueBaB6b4r61V5EUsPERHmA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Huo72p7Vua/xavs455AUq8MvmoVqffa5iD/vSIaYD1Pp5SlDNUddv9IDOC2osWNkfmjXFpM9JnTeHs3LWFCLmdKlgZjMsT4/J0qfdojgjQDE5ySp61AZ1E5dcF1yyVoUkJjjmDWrIaEdAd9q7ZEwNf0pJc8szMMEQwnPup8pI+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jP09jcbj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CE1EC433F1; Sat, 17 Feb 2024 20:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708201807; bh=NnCkYxT8FeGPtNSEwGVJYueBaB6b4r61V5EUsPERHmA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jP09jcbjLBGTLHHcaVM5/o3gafLIg0WDbIJxmF+p9IYlLS/7k+bLQfp1CvRwhu2IR eP+MRgKEiMBvX/P3WLvtLFjU9GCIlq63bcq2Oag2eYzwz2s6j4JNCDNetncAwSGbtW SpS+xs17G18YLTd+vSwo8vSI+IZqUHwhTwPYqonM4YIRy+Bqce0MFuGBYYKjeVuee1 kKlc6zz90rshc7bGyIqyPK8/OqAf8eUhZYynb1JJJU17MUtCRZN/BPMH5eoiVjK/8D 3uB3U/XfSOYlYcmPWzBwjeyXI/f2vEjoX9bFMwnDUbHx4/IMReLkYDH1wLfGszrXr5 PZ3ky0VGgq1Hg== Date: Sat, 17 Feb 2024 20:30:03 +0000 From: Conor Dooley To: Guenter Roeck Cc: Naresh Solanki , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , mazziesaccount@gmail.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dt-bindings: hwmon: tda38640: Add interrupt & regulator properties Message-ID: <20240217-studio-cytoplast-ca99a55e7a36@spud> References: <20240214092504.1237402-1-naresh.solanki@9elements.com> <20240214-trinity-delouse-6dcd0b046895@spud> <0f1665e5-bae1-4a17-a976-cc225a28dad3@roeck-us.net> <20240214-dimly-wife-5b6239d4adec@spud> <20240215-wildfire-dotted-a561e86a6054@spud> <9cc60b90-329b-4065-a3c8-74c208964d45@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="D2aeU6KpYyLQU2Qj" Content-Disposition: inline In-Reply-To: <9cc60b90-329b-4065-a3c8-74c208964d45@roeck-us.net> --D2aeU6KpYyLQU2Qj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 17, 2024 at 07:57:43AM -0800, Guenter Roeck wrote: > On 2/15/24 03:48, Conor Dooley wrote: > > On Wed, Feb 14, 2024 at 05:17:04PM -0800, Guenter Roeck wrote: > > > On 2/14/24 11:55, Conor Dooley wrote: > > > [ ... ] > > > > > > Why "vout0" if there's only one output? Is it called that in the > > > > > > documentation? I had a quick check but only saw it called "vout= ". > > > > > > Are there other related devices that would have multiple regula= tors > > > > > > that might end up sharing the binding? > > > > > >=20 > > > > >=20 > > > > > Primarily because that is what the PMBus core generates for the d= river > > > > > because no one including me was aware that this is unacceptable > > > > > for single-output drivers. > > > >=20 > > > > Is it unacceptable? If you're implying that I am saying it is, that= 's > > > > not what I was doing here - I'm just wondering why it was chosen. > > > > Numbering when there's only one seems odd, so I was just looking fo= r the > > > > rationale. > > > >=20 > > >=20 > > > Given the tendency of corporate speak (aka "this was a good attempt" = for > > > a complete screwup), and since this did come up before, I did interpr= et > > > it along that line. My apologies if that was not the idea. > >=20 > > I'm not gonna go and decree that "vout0" is unacceptable, if it was > > called that in documentation that I had missed or was convention, I was > > just gonna say "okay, that sounds reasonable to me". > >=20 >=20 > "convention" only if lack of awareness how regulators are supposed to be = named > is a convention. They're "supposed" to be named whatever the binding says they are named, but as we've discovered none of these devices actually have bindings that allow regulators in the first place. I think they should be called whatever they're called in the documentation for the device, which in this case was "vout". > > > Still, I really don't know how to resolve this for existing PMBus dri= vers > > > which do register "vout0" even if there is only a single output regul= ator. > >=20 > > I had a quick look at that series, none of the devices that I checked > > out there seem to have documented regulators at all. Some of the devices > > were only documented in trivial-devices.yaml. Relying on the naming of > > undocumented child nodes is a bug in those drivers & I guess nobody car= es > > about dtbs_check complaints for those platforms. The example that was > > linked in the other thread doesn't even use a valid compatible :( > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tre= e/arch/arm/boot/dts/aspeed/aspeed-bmc-delta-ahe50dc.dts?id=3D8d3dea210042f5= 4b952b481838c1e7dfc4ec751d#n21 > > I guess it uses the i2c device ids to probe on that platform, or have > > I missed something there? > >=20 >=20 > I think that is correct. If I recall correctly, the I2C subsystem no long= er > searches for compatible drivers by only looking at the device id in the > compatible node, so I guess one has to list "lm25066" instead of "ti,lm25= 066" > as compatible to get a match in the i2c subsystem. That is of course > completely wrong. If the driver is probing based on i2c_device_id matching, is it correct to use DT to probe the regulators? (I don't know, that's not some sort of rhetorical question). --D2aeU6KpYyLQU2Qj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZdEXSwAKCRB4tDGHoIJi 0gOYAP9P80PNTgJyncyBUxpU84sRQkXT+6oYERv+nytj6zTs+wD9FlnhbvwEkPy6 0gZXsU7X2UrgvG2+rck9hf5RjIvO9Q0= =nN+t -----END PGP SIGNATURE----- --D2aeU6KpYyLQU2Qj--