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_thermocouple.txt to maxim,max31855k.yaml

Given we already have another maxim thermocouple driver that isn't
covered by this binding it seems a better idea to chose to name it
after a specific part.

I added an additional example for the maxim,max6755 to illustrate
the need for spi-cpha for that part.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Link: https://lore.kernel.org/r/20201031134110.724233-29-jic23@kernel.org

+76 -24
+76
Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.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,max31855k.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX31855 and similar thermocouples 8 + 9 + maintainers: 10 + - Matt Ranostay <matt.ranostay@konsulko.com> 11 + 12 + description: | 13 + https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf 14 + https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf 15 + 16 + properties: 17 + compatible: 18 + description: 19 + The generic maxim,max31855 compatible is deprecated in favour of 20 + the thermocouple type specific variants. 21 + enum: 22 + - maxim,max6675 23 + - maxim,max31855 24 + - maxim,max31855k 25 + - maxim,max31855j 26 + - maxim,max31855n 27 + - maxim,max31855s 28 + - maxim,max31855t 29 + - maxim,max31855e 30 + - maxim,max31855r 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + spi-max-frequency: true 36 + spi-cpha: true 37 + 38 + required: 39 + - compatible 40 + - reg 41 + 42 + allOf: 43 + - if: 44 + properties: 45 + compatible: 46 + contains: 47 + enum: 48 + - maxim,max6675 49 + then: 50 + required: 51 + - spi-cpha 52 + else: 53 + properties: 54 + spi-cpha: false 55 + 56 + additionalProperties: false 57 + 58 + examples: 59 + - | 60 + spi { 61 + #address-cells = <1>; 62 + #size-cells = <0>; 63 + 64 + temp-sensor@0 { 65 + compatible = "maxim,max31855k"; 66 + reg = <0>; 67 + spi-max-frequency = <4300000>; 68 + }; 69 + temp-sensor@1 { 70 + compatible = "maxim,max6675"; 71 + reg = <1>; 72 + spi-max-frequency = <4300000>; 73 + spi-cpha; 74 + }; 75 + }; 76 + ...
-24
Documentation/devicetree/bindings/iio/temperature/maxim_thermocouple.txt
··· 1 - Maxim thermocouple support 2 - 3 - * https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf 4 - * https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf 5 - 6 - Required properties: 7 - 8 - - compatible: must be "maxim,max6675" or one of the following: 9 - "maxim,max31855k", "maxim,max31855j", "maxim,max31855n", 10 - "maxim,max31855s", "maxim,max31855t", "maxim,max31855e", 11 - "maxim,max31855r"; the generic "max,max31855" is deprecated. 12 - - reg: SPI chip select number for the device 13 - - spi-max-frequency: must be 4300000 14 - - spi-cpha: must be defined for max6675 to enable SPI mode 1 15 - 16 - Refer to spi/spi-bus.txt for generic SPI slave bindings. 17 - 18 - Example: 19 - 20 - max31855@0 { 21 - compatible = "maxim,max31855k"; 22 - reg = <0>; 23 - spi-max-frequency = <4300000>; 24 - };