devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml
Guenter Roeck
maintainerQuoted 16 lines · Chris Ruehl
Add documentation for the newly added DTS support in the shtc1 driver. To align with the drivers logic to have high precision by default a boolean sensirion,low_precision is used to switch to low precision.
Signed-off-by Chris Ruehl <[email protected]>--- .../bindings/hwmon/sensirion,shtc1.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yamlDocumentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +0
-0
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +10
-0@@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,shtc1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SHTC1 Humidity and Temperature Sensor IC + +maintainers: + - [email protected]
Did Jean agree to maintain this file ?
Quoted 14 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +14
-0+ +description: | + The SHTC1, SHTW1 and SHTC3 are digital humidity and temperature sensor + designed especially for battery-driven high-volume consumer electronics + applications. + For further information refere to Documentation/hwmon/shtc1.rst + + This binding document describes the binding for the hardware monitor + portion of the driver. + +properties: + compatible: + enum: + - sensirion,shtc1
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml line 34
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +10
-0+ - sensirion,shtw1 + - sensirion,shtc3 + + reg: I2C address 0x70 + +Optional properties: + sensirion,blocking_io: | + bool, if set the i2c bus hold until measure finished + sensirion,low_precision: | + bool, if set aquire data with low precision (not recommend)
recommended
It might make sense to mention that the default is expected to be high precision if not specified.
Quoted 22 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +19
-0+ +required: + - compatible + - reg + +additionalProperties: false + +Example: + &i2c1 { + status = "okay"; + clock-frequency = <400000>; + + shtc3@70 { + compatible = "sensirion,shtc3"; + reg = <0x70> + sensirion,blocking_io; + status = "okay"; + }; + };Signature · 1 line
2.20.1
Hi Guenter,
Quoted 21 lines · Guenter Roeck
Quoted 20 lines · Chris Ruehl
Add documentation for the newly added DTS support in the shtc1 driver. To align with the drivers logic to have high precision by default a boolean sensirion,low_precision is used to switch to low precision.
Signed-off-by Chris Ruehl <[email protected]>--- .../bindings/hwmon/sensirion,shtc1.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+)create mode 100644
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yamlDocumentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +4
-0@@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,shtc1.yaml#
Quoted 8 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SHTC1 Humidity and Temperature Sensor IC + +maintainers: + - [email protected]Did Jean agree to maintain this file ?
I thought its OK to set the maintainer from the list shown with
get_maintainer.pl here. I don't mind take care of this file - there will be small changes only in case the dt-schema change and requires updates.
I put me here, if that is acceptable.
Chris
Quoted 53 lines
Quoted 15 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +14
-0+ +description: | + The SHTC1, SHTW1 and SHTC3 are digital humidity and temperature sensor + designed especially for battery-driven high-volume consumer electronics + applications. + For further information refere to Documentation/hwmon/shtc1.rst + + This binding document describes the binding for the hardware monitor + portion of the driver. + +properties: + compatible: + enum: + - sensirion,shtc1Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml line 34
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +10
-0+ - sensirion,shtw1 + - sensirion,shtc3 + + reg: I2C address 0x70 + +Optional properties: + sensirion,blocking_io: | + bool, if set the i2c bus hold until measure finished + sensirion,low_precision: | + bool, if set aquire data with low precision (not recommend)recommended
It might make sense to mention that the default is expected to be high precision if not specified.
Quoted 22 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +19
-0+ +required: + - compatible + - reg + +additionalProperties: false + +Example: + &i2c1 { + status = "okay"; + clock-frequency = <400000>; + + shtc3@70 { + compatible = "sensirion,shtc3"; + reg = <0x70> + sensirion,blocking_io; + status = "okay"; + }; + };Signature · 1 line
2.20.1
Signature · 6 lines
GTSYS Limited RFID Technology 9/F, Unit E, R07, Kwai Shing Industrial Building Phase 2, 42-46 Tai Lin Pai Road, Kwai Chung, N.T., Hong Kong Tel (852) 9079 9521 Disclaimer: https://www.gtsys.com.hk/email/classified.html
Guenter Roeck
maintainerQuoted 33 lines · Chris Ruehl
Hi Guenter,
Quoted 21 lines · Guenter Roeck
Quoted 20 lines · Chris Ruehl
Add documentation for the newly added DTS support in the shtc1 driver. To align with the drivers logic to have high precision by default a boolean sensirion,low_precision is used to switch to low precision.
Signed-off-by Chris Ruehl <[email protected]>---
.../bindings/hwmon/sensirion,shtc1.yaml | 53 +++++++++++++++++++1 file changed, 53 insertions(+)create mode 100644
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yamlDocumentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +4
-0@@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,shtc1.yaml#Quoted 8 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml line 10
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +6
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SHTC1 Humidity and Temperature Sensor IC + +maintainers: + - [email protected]Did Jean agree to maintain this file ?
Quoted 3 lines
I thought its OK to set the maintainer from the list shown with
get_maintainer.pl here. I don't mind take care of this file - there will be small changes only in case the dt-schema change and requires updates.
No, it isn't. Jean and I are the maintainers for the hwmon subsystem, but that doesn't mean or suggest that we should be listed as maintainers in individual files.
Quoted 2 lines
I put me here, if that is acceptable.
Either you, or none.
Thanks,
Guenter
Quoted 56 lines
Chris
Quoted 53 lines
Quoted 15 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +14
-0+ +description: | + The SHTC1, SHTW1 and SHTC3 are digital humidity and temperature sensor + designed especially for battery-driven high-volume consumer electronics + applications. + For further information refere to Documentation/hwmon/shtc1.rst + + This binding document describes the binding for the hardware monitor + portion of the driver. + +properties: + compatible: + enum: + - sensirion,shtc1Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml line 34
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +10
-0+ - sensirion,shtw1 + - sensirion,shtc3 + + reg: I2C address 0x70 + +Optional properties: + sensirion,blocking_io: | + bool, if set the i2c bus hold until measure finished + sensirion,low_precision: | + bool, if set aquire data with low precision (not recommend)recommended
It might make sense to mention that the default is expected to be high precision if not specified.
Quoted 22 lines
Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml new file +19
-0+ +required: + - compatible + - reg + +additionalProperties: false + +Example: + &i2c1 { + status = "okay"; + clock-frequency = <400000>; + + shtc3@70 { + compatible = "sensirion,shtc3"; + reg = <0x70> + sensirion,blocking_io; + status = "okay"; + }; + };--
2.20.1