Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: pressure: Add Sensirion SDP500

Sensirion SDP500 is a digital differential pressure sensor. It provides
a digital I2C output. Add devicetree bindings requiring the compatible
string and I2C slave address (reg).

Signed-off-by: Petar Stoykov <pd.pstoykov@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://patch.msgid.link/20240725-mainline_sdp500-v4-1-ea2f5b189958@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Petar Stoykov and committed by
Jonathan Cameron
0302c9dc 371f778b

+46
+46
Documentation/devicetree/bindings/iio/pressure/sensirion,sdp500.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/pressure/sensirion,sdp500.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: sdp500/sdp510 pressure sensor with I2C bus interface 8 + 9 + maintainers: 10 + - Petar Stoykov <petar.stoykov@prodrive-technologies.com> 11 + 12 + description: | 13 + Pressure sensor from Sensirion with I2C bus interface. 14 + There is no software difference between sdp500 and sdp510. 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - items: 20 + - const: sensirion,sdp510 21 + - const: sensirion,sdp500 22 + - const: sensirion,sdp500 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + vdd-supply: true 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - vdd-supply 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + i2c { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + pressure@40 { 42 + compatible = "sensirion,sdp500"; 43 + reg = <0x40>; 44 + vdd-supply = <&foo>; 45 + }; 46 + };