[问题] Jetson Nano onewire communication

楼主: sss22213 (sss22213)   2020-09-20 01:43:46
大家好,最近需要透过Jetson Device读取 ds18b20温度传感器
然后看到Kernel的Documentation有一个部分
Documentation/devicetree/bindings/w1
onewire {
compatible = "w1-gpio";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
battery {
// ...
};
};
想要将上面device tree加入装置,并透过sysfs去读取传感器
但无奈看不懂<&gpio 0 GPIO_ACTIVE_HIGH>,要如何将GPIO指定到device tree当中
感谢各位
作者: leolarrel (真.粽子无双)   2020-09-28 11:14:00
这,一言难尽,你可以先学习一下dts 的语法
作者: jimmytzeng (jimmytseng)   2020-11-19 12:23:00
你要看nano里面gpio定义写法,然后在这里去引用gpio

Links booklink

Contact Us: admin [ a t ] ucptt.com