Hi,
I am trying to configure RTD_ADC AD7124-8 on Flex-builder lsdk 2012 yocto version running on LS1028A processor
I have configured the fsl-ls1028a-rdb.dts as below
&dspi2 {
bus-num = <2>;
status = "okay";
compatible = "fsl,ls1021a-v1.0-dspi","fsl,ls2085a-dspi";
mram@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "everspin,mr25h40";
reg=<0>;
spi-max-frequency = <10000000>;
status = "okay";
partition@0 {
label = "SPI.MRAM_User Partition";
reg = <0x0 0x40000>;
};
};
adc@1 {
compatible = "adi,ad7124-8";
reg = <1>;
spi-max-frequency = <4000000>;
refin1-supply = <&adc_vref>;
clocks = <&ad7124_mclk>;
clock-names = "mclk";
spi-cpol;
spi-cpha;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
diff-channels = <2 3>;
adi,reference-select = <0>;
adi,buffered-positive;
};
channel@1 {
reg = <1>;
diff-channels = <4 5>;
adi,reference-select = <0>;
adi,buffered-positive;
};
channel@2 {
reg = <2>;
diff-channels = <6 7>;
};
channel@3 {
reg = <3>;
diff-channels = <9 10>;
};
channel@4 {
reg = <4>;
diff-channels = <12 13>;
};
};
adc@2 {
compatible = "adi,ad7124-8";
reg = <2>;
spi-max-frequency = <3000000>;
refin1-supply = <&adc_vref>;
clocks = <&ad7124_mclk>;
clock-names = "mclk";
#address-cells = <1>;
#size-cells = <0>;
spi-cpol;
spi-cpha;
channel@0 {
reg = <0>;
diff-channels = <2 3>;
adi,reference-select = <0>;
adi,buffered-positive;
};
channel@1 {
reg = <1>;
bipolar;
diff-channels = <4 5>;
adi,reference-select = <0>;
adi,buffered-positive;
adi,buffered-negative;
};
channel@2 {
reg = <2>;
diff-channels = <6 7>;
};
channel@3 {
reg = <3>;
diff-channels = <9 10>;
};
channel@4 {
reg = <4>;
diff-channels = <12 13>;
};
};
};
On the kernel configuration, I added the AD7124 driver as module.
After compilation, I connect to the system and then observed the kernel prints for spi device as below :
Please do help me resolve this error and to debug further.