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:temperature:maxim,max31856 yaml conversion.

Simple txt to yaml conversion of this binding.
Paresh Chaudhary's email is bouncing so for now I've listed
myself as maintainer.

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

+54 -24
-24
Documentation/devicetree/bindings/iio/temperature/max31856.txt
··· 1 - Maxim MAX31856 thermocouple support 2 - 3 - https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf 4 - 5 - Optional property: 6 - - thermocouple-type: Type of thermocouple (THERMOCOUPLE_TYPE_K if 7 - omitted). Supported types are B, E, J, K, N, R, S, T. 8 - 9 - Required properties: 10 - - compatible: must be "maxim,max31856" 11 - - reg: SPI chip select number for the device 12 - - spi-max-frequency: As per datasheet max. supported freq is 5000000 13 - - spi-cpha: must be defined for max31856 to enable SPI mode 1 14 - 15 - Refer to spi/spi-bus.txt for generic SPI slave bindings. 16 - 17 - Example: 18 - temp-sensor@0 { 19 - compatible = "maxim,max31856"; 20 - reg = <0>; 21 - spi-max-frequency = <5000000>; 22 - spi-cpha; 23 - thermocouple-type = <THERMOCOUPLE_TYPE_K>; 24 - };
+54
Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/temperature/maxim,max31856.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX31856 thermocouple support 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf 14 + 15 + properties: 16 + compatible: 17 + const: maxim,max31856 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + spi-max-frequency: true 23 + spi-cpha: true 24 + 25 + thermocouple-type: 26 + $ref: /schemas/types.yaml#/definitions/uint32 27 + description: 28 + Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted). 29 + Use defines in dt-bindings/iio/temperature/thermocouple.h. 30 + Supported types are B, E, J, K, N, R, S, T. 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - spi-cpha 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/iio/temperature/thermocouple.h> 42 + spi { 43 + #address-cells = <1>; 44 + #size-cells = <0>; 45 + 46 + temp-sensor@0 { 47 + compatible = "maxim,max31856"; 48 + reg = <0>; 49 + spi-max-frequency = <5000000>; 50 + spi-cpha; 51 + thermocouple-type = <THERMOCOUPLE_TYPE_K>; 52 + }; 53 + }; 54 + ...