Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5564

Device Tree • Re: i2c_stub and device tree overlay

$
0
0
Sorry, but I don't get you!

Code:

                        adc3101_a: adc3101@18{                                compatible = "ti,tlv320adc3101";                                reg = <0x18>;                                reset-gpios = <&gpio 7 1>;                                clocks = <&adc3101_mclk>;                                gpio-controller;                                #gpio-cells = <2>;                                ti,dmdin-gpio1 = <0>;                                ti,dmdin-gpio2 = <0>;                                ti,micbias1-vg = <2>;                                ti,micbias2-vg = <2>;                                #sound-dai-cells = <0>;                        };
is the DT overlay code fragment provided by you. This has a single tlv320adc3101on address 0x18, with RESET signal coming from GPIO7.

In case you have multiple devices - which will need to have different addresses - why can't they have their dedicated RESET signal? Having multiple instances of the driver should be no problem.

Statistics: Posted by aBUGSworstnightmare — Thu May 30, 2024 6:42 am



Viewing all articles
Browse latest Browse all 5564

Trending Articles