lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240214163116.000031b5@Huawei.com>
Date: Wed, 14 Feb 2024 16:31:16 +0000
From: Jonathan Cameron <Jonathan.Cameron@...wei.com>
To: Ondřej Jirman <megi@....cz>
CC: Jonathan Cameron <jic23@...nel.org>, Lars-Peter Clausen <lars@...afoo.de>,
	Rob Herring <robh+dt@...nel.org>, Krzysztof Kozlowski
	<krzysztof.kozlowski+dt@...aro.org>, Conor Dooley <conor+dt@...nel.org>,
	Andrey Skvortsov <andrej.skvortzov@...il.com>, Icenowy Zheng
	<icenowy@...c.io>, <linux-iio@...r.kernel.org>, <devicetree@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/4] dt-bindings: iio: magnetometer: Add DT binding for
 Voltafield AF8133J


> > > +
> > > +  dvdd-supply:
> > > +    description: |
> > > +      an optional regulator that needs to be on to provide DVDD power (Digital
> > > +      IO power, 1.8V~AVDD) to the sensor.
> > > +
> > > +  mount-matrix:
> > > +    description: an optional 3x3 mounting rotation matrix.
> > > +
> > > +required:
> > > +  - compatible
> > > +  - reg  
> > 
> > Any power supply that is required for operation should be listed here (even though
> > we can rely on the stub supplies if it isn't in the DT).
> > I used to think this wasn't necessary, so lots of bindings upstream don't yet
> > have it.  
> 
> By stub supply you mean dummy supply created when the *-supply property is not
> specified in DT? Or something else?

Ah yes. I got the term wrong.
> 
> Because DTC_CHK prints a warning if I make the proerty required in bindings and
> not specify it in DT
> 
> arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2b.dtb: magnetometer@1c: 'avdd-supply' is a required property
> 	from schema $id: http://devicetree.org/schemas/iio/magnetometer/voltafield,af8133j.yaml#

Provide one, or don't worry about that warning. 

Various discussions have taken place on this over time and end
result is bindings should require them to differentiate from power
supplies that are actually optional.

Jonathan



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ