This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:iio-adc:ad7192 [08 Feb 2019 14:25] – [Device tree support] Mircea Caprioru | resources:tools-software:linux-drivers:iio-adc:ad7192 [08 Feb 2019 14:51] (current) – [Device tree support] Mircea Caprioru | ||
---|---|---|---|
Line 133: | Line 133: | ||
</ | </ | ||
+ | ====== Device tree support ====== | ||
+ | Device tree is the new method for describing non-discoverable hardware in Linux. This replaces former structure based method. For configuring a device using this drivers please follow the example bellow: | ||
+ | |||
+ | < | ||
+ | /dts-v1/; | ||
+ | /plugin/; | ||
+ | |||
+ | / { | ||
+ | |||
+ | fragment@0 { | ||
+ | target-path = "/"; | ||
+ | dvdd: fixedregulator@0 { | ||
+ | compatible = " | ||
+ | regulator-name = " | ||
+ | regulator-min-microvolt = < | ||
+ | regulator-max-microvolt = < | ||
+ | regulator-boot-on; | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | fragment@1 { | ||
+ | target-path = "/"; | ||
+ | avdd: fixedregulator@1 { | ||
+ | compatible = " | ||
+ | regulator-name = " | ||
+ | regulator-min-microvolt = < | ||
+ | regulator-max-microvolt = < | ||
+ | regulator-boot-on; | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | fragment@3 { | ||
+ | target = <& | ||
+ | # | ||
+ | # | ||
+ | status = " | ||
+ | |||
+ | ad7190@0 { | ||
+ | compatible = " | ||
+ | reg = <0>; | ||
+ | spi-max-frequency = < | ||
+ | spi-cpol; | ||
+ | spi-cpha; | ||
+ | # | ||
+ | interrupts = <25 0x2>; | ||
+ | interrupt-parent = <& | ||
+ | dvdd-supply = <& | ||
+ | avdd-supply = <& | ||
+ | |||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | adi, | ||
+ | }; | ||
+ | }; | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | <note important> | ||
+ | </ | ||
====== Adding Linux driver support ====== | ====== Adding Linux driver support ====== | ||