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: bmp085: Add SPI interface

The BMP{2,3,5}80 and BME280 devices have an SPI interface, so include it
in the device-tree.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20241209233845.29539-2-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Vasileios Amoiridis and committed by
Jonathan Cameron
4358b764 a497ac99

+29
+29
Documentation/devicetree/bindings/iio/pressure/bmp085.yaml
··· 55 55 If not set, defaults to push-pull configuration. 56 56 type: boolean 57 57 58 + spi-max-frequency: 59 + maximum: 10000000 60 + 58 61 required: 59 62 - compatible 60 63 - vddd-supply 61 64 - vdda-supply 62 65 63 66 allOf: 67 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 64 68 - if: 65 69 properties: 66 70 compatible: ··· 77 73 then: 78 74 properties: 79 75 interrupts: false 76 + - if: 77 + properties: 78 + compatible: 79 + contains: 80 + enum: 81 + - bosch,bmp085 82 + - bosch,bmp180 83 + then: 84 + properties: 85 + spi-max-frequency: false 80 86 81 87 additionalProperties: false 82 88 ··· 102 88 reg = <0x77>; 103 89 interrupt-parent = <&gpio0>; 104 90 interrupts = <25 IRQ_TYPE_EDGE_RISING>; 91 + reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 92 + vddd-supply = <&foo>; 93 + vdda-supply = <&bar>; 94 + }; 95 + }; 96 + - | 97 + # include <dt-bindings/gpio/gpio.h> 98 + # include <dt-bindings/interrupt-controller/irq.h> 99 + spi { 100 + #address-cells = <1>; 101 + #size-cells = <0>; 102 + pressure@0 { 103 + compatible = "bosch,bmp280"; 104 + reg = <0>; 105 + spi-max-frequency = <10000000>; 105 106 reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 106 107 vddd-supply = <&foo>; 107 108 vdda-supply = <&bar>;