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:meas,ms5611 yaml conversion.

One addition here was to put in a 20MHz maximum for the SPI bus
as specified in the datasheets of both support parts.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Tomasz Duszynski <tduszyns@gmail.com>
Link: https://lore.kernel.org/r/20201031134110.724233-8-jic23@kernel.org

+57 -19
+57
Documentation/devicetree/bindings/iio/pressure/meas,ms5611.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/meas,ms5611.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Measurement Specialities ms5611 and similar pressure sensors 8 + 9 + maintainers: 10 + - Tomasz Duszynski <tduszyns@gmail.com> 11 + 12 + description: | 13 + Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - meas,ms5607 19 + - meas,ms5611 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + vdd-supply: true 25 + 26 + spi-max-frequency: 27 + maximum: 20000000 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + i2c { 38 + #address-cells = <1>; 39 + #size-cells = <0>; 40 + 41 + pressure@77 { 42 + compatible = "meas,ms5607"; 43 + reg = <0x77>; 44 + vdd-supply = <&ldo_3v3_gnss>; 45 + }; 46 + }; 47 + - | 48 + spi { 49 + #address-cells = <1>; 50 + #size-cells = <0>; 51 + pressure@0 { 52 + compatible = "meas,ms5611"; 53 + reg = <0>; 54 + vdd-supply = <&ldo_3v3_gnss>; 55 + }; 56 + }; 57 + ...
-19
Documentation/devicetree/bindings/iio/pressure/ms5611.txt
··· 1 - MEAS ms5611 family pressure sensors 2 - 3 - Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. 4 - 5 - Required properties: 6 - - compatible: "meas,ms5611" or "meas,ms5607" 7 - - reg: the I2C address or SPI chip select the device will respond to 8 - 9 - Optional properties: 10 - - vdd-supply: an optional regulator that needs to be on to provide VDD 11 - power to the sensor. 12 - 13 - Example: 14 - 15 - ms5607@77 { 16 - compatible = "meas,ms5607"; 17 - reg = <0x77>; 18 - vdd-supply = <&ldo_3v3_gnss>; 19 - };