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:murata,zpa2326 yaml conversion

Simple conversion with a few minor tweaks:
* I added 1MHz max for spi-max-frequency
* I have give myself as the maintainer. This driver was written by
Gregor Boirie but I don't have an up to date email address for Gregor.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201031134110.724233-7-jic23@kernel.org

+62 -29
+62
Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/pressure/murata,zpa2326.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Murata ZPA2326 pressure sensor 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + Pressure sensor from Murata with SPI and I2C bus interfaces. 14 + 15 + 16 + properties: 17 + compatible: 18 + const: murata,zpa2326 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + vdd-supply: true 24 + vref-supply: true 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + spi-max-frequency: 30 + maximum: 1000000 31 + 32 + required: 33 + - compatible 34 + - reg 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + pressure@5c { 45 + compatible = "murata,zpa2326"; 46 + reg = <0x5c>; 47 + interrupt-parent = <&gpio>; 48 + interrupts = <12>; 49 + vdd-supply = <&ldo_1v8_gnss>; 50 + }; 51 + }; 52 + - | 53 + spi { 54 + #address-cells = <1>; 55 + #size-cells = <0>; 56 + pressure@0 { 57 + compatible = "murata,zpa2326"; 58 + reg = <0>; 59 + spi-max-frequency = <500000>; 60 + }; 61 + }; 62 + ...
-29
Documentation/devicetree/bindings/iio/pressure/zpa2326.txt
··· 1 - Murata ZPA2326 pressure sensor 2 - 3 - Pressure sensor from Murata with SPI and I2C bus interfaces. 4 - 5 - Required properties: 6 - - compatible: "murata,zpa2326" 7 - - reg: the I2C address or SPI chip select the device will respond to 8 - 9 - Recommended properties for SPI bus usage: 10 - - spi-max-frequency: maximum SPI bus frequency as documented in 11 - Documentation/devicetree/bindings/spi/spi-bus.txt 12 - 13 - Optional properties: 14 - - vref-supply: an optional regulator that needs to be on to provide VREF 15 - power to the sensor 16 - - vdd-supply: an optional regulator that needs to be on to provide VDD 17 - power to the sensor 18 - - interrupts: interrupt mapping for IRQ as documented in 19 - Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 20 - 21 - Example: 22 - 23 - zpa2326@5c { 24 - compatible = "murata,zpa2326"; 25 - reg = <0x5c>; 26 - interrupt-parent = <&gpio>; 27 - interrupts = <12>; 28 - vdd-supply = <&ldo_1v8_gnss>; 29 - };