[問題] 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