Message ID | 20240216102820.1395815-1-m.felsch@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68442-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp420058dyb; Fri, 16 Feb 2024 02:29:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1gD/1vLAkgUh533UV5Sy4LK04G7YkJJmoOSWhGmHzGMu/UInS3SmtlnNk/5Uljkm3aYf3T/h4PQ3eU29I9D2Nxpe02g== X-Google-Smtp-Source: AGHT+IFAp7tFpC/JqaxegyrG/It28cZH943ahajjoe1lLW7Sbo+GskbCyJ6K/N9WF22mgY/DbD6L X-Received: by 2002:a17:906:3b10:b0:a3d:7d05:a1b8 with SMTP id g16-20020a1709063b1000b00a3d7d05a1b8mr2586466ejf.77.1708079341372; Fri, 16 Feb 2024 02:29:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708079341; cv=pass; d=google.com; s=arc-20160816; b=eukMEkUcRmocqVAx74ooViRkN7iiI/kCycQPpbheUZwkpC4sZDtAZfIQlfFx1d+5ci kLUFlBju3MYxUWTiA4MfzE+ZR81wk4F3rDdQMOafDp9kro7L9GkO8t2W7hE4JJGFAEDB rFUBCqy1TwfSEGUHGe/LSazpjXIQQddWefwSQ5ljSE+74/yfsuoN/Zt4h0xR6anoz4gB /d3sIqiRO8/QzISTQQjkh57KW0RV0/qjZNcnjJYWJPqL15evo3OqMKf8rZNVFH94B7+i uBmkNr8u4nhjbWtlZyzHNp7FgG7dr46Guhv7306kZk6ZJbctAOoJNOZPrzimoV8IxkO/ 8AgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=fwvwhWJeddQUVSj9hYnYGpxEeNoCJeViE+GtsEH12cQ=; fh=GZ7Y1w8dudA+k6tu6VtZjuvgb4vRk6eGUlxN140LGjA=; b=JgtQjpfEm5kgcVq0RX+mh6hIAD1307xXWF5nCOjFXWcNuWnBt4ILmh91cUC+cqs+Go Fe7s7aK8nHG32BrRficeY6iHShNrkT7bh7ELSfQKnothElqJDi1JOaQUEkLNSyFX7Q1T w/L5h2+Xt+gAfeWx4zLcsbh5ZATVbX07TzbyXqCn87KdDaiRoDORxsuS64QMdUdqcoP6 LFpKd4A22nvCJ0bLoGxaBQSNVbNhJhtGUWIJ5AKS9FLIjDdHX9LM8rtw32MB2bBGdzAe qYOAGEMxb2mGwXc2sxXRiPxC6hIDkWlRyHEniDFabjG7l9EDkalGY5SE9cRQvdxVgkas xXOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-68442-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68442-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id xo15-20020a170907bb8f00b00a3dfb0b38b3si18516ejc.170.2024.02.16.02.29.01 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:29:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68442-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-68442-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68442-ouuuleilei=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id F1E7A1F21C1B for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 10:29:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42EB92C6B7; Fri, 16 Feb 2024 10:28:37 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 70F6D28E0D for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 10:28:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708079315; cv=none; b=qpPAXcdH+VXhlfa45dOtTPwk6Hb9nK8IbCoB1lVEZqAQnMge5K4eZZQ8xP7f5Oo5pkE8FDhFYowlI4epfS4X/4DRGC1IF8zB6JkvMR1o/JUCvrPdDmnmoqOGwYGA7pvgvzoHIiswkS+FCFbrs9Rejwqutm9or7VYbJDE+t4EuEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708079315; c=relaxed/simple; bh=qKpijvoPFZ5Podu7ukUIp3Fhx6uwAlh95tWbcp2qTvc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XUES5iS+ANjps29fSAEUqlgUjTQN4P4UqTVpDnYMt1SGwVxr70qnfgpNtxDeGEC/yIRLlxSOJeCjUdnq9M2x2QM+Y4xP3zIr632+erEwpqfJvj8tsNTfpmc4BsuieJX5YYfPnUCNh3+f0W+92ixAAoMnyjfXhf83aryaQ256ojk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from <m.felsch@pengutronix.de>) id 1ravS9-0006gI-H0; Fri, 16 Feb 2024 11:28:21 +0100 From: Marco Felsch <m.felsch@pengutronix.de> To: puranjay12@gmail.com, jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, thomas.haemmerle@leica-geosystems.com Subject: [RESEND PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding Date: Fri, 16 Feb 2024 11:28:19 +0100 Message-Id: <20240216102820.1395815-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790999391130287257 X-GMAIL-MSGID: 1791051003305442653 |
Series |
[RESEND,1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding
|
|
Commit Message
Marco Felsch
Feb. 16, 2024, 10:28 a.m. UTC
From: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> Add the binding to specify the vcc supply. We can't make it required since this would break the backward compatibility. Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> --- Resend since I forgot to add the DT maintainers .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On Fri, 16 Feb 2024 11:28:19 +0100 Marco Felsch <m.felsch@pengutronix.de> wrote: > From: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > > Add the binding to specify the vcc supply. We can't make it required > since this would break the backward compatibility. Given convention for supplies like this is to make them required in the dt-binding to reflect that providing power is not optional (unlikely some other supplies that might not be wired up) and not worry about the fact that we happily provide dummy supplies for them if they aren't in a particular dts, it should be fine to make it required here. Jonathan > > Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > --- > Resend since I forgot to add the DT maintainers > > .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > index 8c6d7735e875..cf7799c9734f 100644 > --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > @@ -24,6 +24,9 @@ properties: > reg: > maxItems: 1 > > + vcc-supply: > + description: provide VCC power to the sensor. > + > required: > - compatible > - reg > @@ -39,5 +42,6 @@ examples: > tmp117@48 { > compatible = "ti,tmp117"; > reg = <0x48>; > + vcc-supply = <&pmic_reg_3v3>; > }; > };
On 24-02-16, Jonathan Cameron wrote: > On Fri, 16 Feb 2024 11:28:19 +0100 > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > From: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > > > > Add the binding to specify the vcc supply. We can't make it required > > since this would break the backward compatibility. > > Given convention for supplies like this is to make them required in > the dt-binding to reflect that providing power is not optional (unlikely > some other supplies that might not be wired up) and not worry about the > fact that we happily provide dummy supplies for them if they aren't in a > particular dts, it should be fine to make it required here. Will this fact apply to all dt-bindings? I'm asking because, there are many bindings out there without having the -supply in place. Regards, Marco > > Jonathan > > > > > Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > --- > > Resend since I forgot to add the DT maintainers > > > > .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > > index 8c6d7735e875..cf7799c9734f 100644 > > --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > > +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > > @@ -24,6 +24,9 @@ properties: > > reg: > > maxItems: 1 > > > > + vcc-supply: > > + description: provide VCC power to the sensor. > > + > > required: > > - compatible > > - reg > > @@ -39,5 +42,6 @@ examples: > > tmp117@48 { > > compatible = "ti,tmp117"; > > reg = <0x48>; > > + vcc-supply = <&pmic_reg_3v3>; > > }; > > }; > >
On Fri, 16 Feb 2024 12:23:48 +0100 Marco Felsch <m.felsch@pengutronix.de> wrote: > On 24-02-16, Jonathan Cameron wrote: > > On Fri, 16 Feb 2024 11:28:19 +0100 > > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > > > From: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > > > > > > Add the binding to specify the vcc supply. We can't make it required > > > since this would break the backward compatibility. > > > > Given convention for supplies like this is to make them required in > > the dt-binding to reflect that providing power is not optional (unlikely > > some other supplies that might not be wired up) and not worry about the > > fact that we happily provide dummy supplies for them if they aren't in a > > particular dts, it should be fine to make it required here. > > Will this fact apply to all dt-bindings? I'm asking because, there are > many bindings out there without having the -supply in place. Yes in theory - in practice it's noise to do it unless we have a reason to be touching the dt-binding anyway. I don't plan to fix them up on mass. Jonathan > > Regards, > Marco > > > > > Jonathan > > > > > > > > Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > > --- > > > Resend since I forgot to add the DT maintainers > > > > > > .../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > > > index 8c6d7735e875..cf7799c9734f 100644 > > > --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > > > +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > > > @@ -24,6 +24,9 @@ properties: > > > reg: > > > maxItems: 1 > > > > > > + vcc-supply: > > > + description: provide VCC power to the sensor. > > > + > > > required: > > > - compatible > > > - reg > > > @@ -39,5 +42,6 @@ examples: > > > tmp117@48 { > > > compatible = "ti,tmp117"; > > > reg = <0x48>; > > > + vcc-supply = <&pmic_reg_3v3>; > > > }; > > > }; > > > >
On Fri, Feb 16, 2024 at 11:21:20AM +0000, Jonathan Cameron wrote: > On Fri, 16 Feb 2024 11:28:19 +0100 > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > From: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com> > > > > Add the binding to specify the vcc supply. We can't make it required > > since this would break the backward compatibility. > > Given convention for supplies like this is to make them required in > the dt-binding to reflect that providing power is not optional (unlikely > some other supplies that might not be wired up) and not worry about the > fact that we happily provide dummy supplies for them if they aren't in a > particular dts, it should be fine to make it required here. With the suggested change, Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor.
diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml index 8c6d7735e875..cf7799c9734f 100644 --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml @@ -24,6 +24,9 @@ properties: reg: maxItems: 1 + vcc-supply: + description: provide VCC power to the sensor. + required: - compatible - reg @@ -39,5 +42,6 @@ examples: tmp117@48 { compatible = "ti,tmp117"; reg = <0x48>; + vcc-supply = <&pmic_reg_3v3>; }; };