avia-hx711.yaml: transform DT binding to YAML
Andreas Klinger
maintainerPATCH v2 1/1 avia-hx711.yaml: transform DT binding to YAML
replace avia-hx711.txt by avia-hx711.yaml as yaml devicetree documentation for avia hx711 iio adc sensor
Signed-off-by Andreas Klinger <[email protected]>
--- .../devicetree/bindings/iio/adc/avia-hx711.txt | 24 -------- .../devicetree/bindings/iio/adc/avia-hx711.yaml | 66 ++++++++++++++++++++++ 2 files changed, 66 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
Documentation/devicetree/bindings/iio/adc/avia-hx711.txt deleted +0 -24
@@ -1,24 +0,0 @@ -* AVIA HX711 ADC chip for weight cells - Bit-banging driver - -Required properties: - - compatible: Should be "avia,hx711" - - sck-gpios: Definition of the GPIO for the clock - - dout-gpios: Definition of the GPIO for data-out - See Documentation/devicetree/bindings/gpio/gpio.txt - - avdd-supply: Definition of the regulator used as analog supply - -Optional properties: - - clock-frequency: Frequency of PD_SCK in Hz - Minimum value allowed is 10 kHz because of maximum - high time of 50 microseconds. - -Example: -weight { - compatible = "avia,hx711"; - sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; - dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - avdd-suppy = <&avdd>; - clock-frequency = <100000>; -}; -
Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.11.0
Quoted 11 lines · Andreas Klinger
replace avia-hx711.txt by
avia-hx711.yamlas yaml devicetree documentation for avia hx711 iio adc sensorSigned-off-by Andreas Klinger <[email protected]>--- .../devicetree/bindings/iio/adc/avia-hx711.txt | 24 -------- .../devicetree/bindings/iio/adc/avia-hx711.yaml | 66 ++++++++++++++++++++++ 2 files changed, 66 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
Reviewed-by Rob Herring <[email protected]>
Jonathan Cameron
maintainerQuoted 6 lines · On Mon, 1 Apr 2019 20:47:19 -0500 Rob Herring <[email protected]> wrote:
Quoted 5 lines · Andreas Klinger
replace avia-hx711.txt by
avia-hx711.yamlas yaml devicetree documentation for avia hx711 iio adc sensorSigned-off-by Andreas Klinger <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing.
Thanks,
Jonathan
Quoted 8 lines
Quoted 6 lines
--- .../devicetree/bindings/iio/adc/avia-hx711.txt | 24 -------- .../devicetree/bindings/iio/adc/avia-hx711.yaml | 66 ++++++++++++++++++++++ 2 files changed, 66 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/avia-hx711.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/avia-hx711.yamlReviewed-by Rob Herring <[email protected]>