Enable onewire on digi imx6ul

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable onewire on digi imx6ul

531 Views
avni
Contributor I

I want to use DS18B20 temperature sensor on mca pin on digi imx6ul

 

mca pin is MCA_IO6

device tree file is :

onewire@0 {
compatible = "w1-gpio";
pinctrl-names = "default";
status="okay";
gpios = <&mca_gpio 6 1>;
linux,open-drain;
}

This configuration gives reset and presence signal on gpio no other data is received

 

 

Tags (1)
0 Kudos
Reply
1 Reply

499 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @avni 

I hope you are doing well
 
Please verify the parameters for the Pad Control Register according to the sensor, i.e. ODE bit for open drain, DSE bit for drive strength, SRE bit for slew rate, etc...
The description of the Pad Control Register can be found in the reference manual IMX6ULRM.
 
One can refer to the w1-gpio.yaml and w1.txt for the device tree configuration for onewire.
 
Thanks & Regards
Sanket Parekh
0 Kudos
Reply