onewire device tree overlay
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 26 Aug 2020 06:06:17 +0000 (08:06 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 26 Aug 2020 06:06:17 +0000 (08:06 +0200)
w1-2.dts [new file with mode: 0644]
w1-2.dts.dtb [new file with mode: 0644]

diff --git a/w1-2.dts b/w1-2.dts
new file mode 100644 (file)
index 0000000..6e2dfeb
--- /dev/null
+++ b/w1-2.dts
@@ -0,0 +1,26 @@
+/*
+
+Example for additional w1 bus on different pin, it just needs to have unique name 
+
+On Rasperry Pi, it also needs 4.7k pull up on DQ pin of DS18B20
+
+*/
+
+/dts-v1/;
+/plugin/;
+
+/ {
+       compatible = "brcm,bcm2835";
+
+       fragment@0 {
+               target-path = "/";
+
+               __overlay__ {
+                       ds18b20_temp@2 {
+                               /* Documentation/devicetree/bindings/w1/w1-gpio.txt */
+                               compatible = "w1-gpio";
+                               gpios = <&gpio 17 0>;
+                       };
+               };
+       };
+};
diff --git a/w1-2.dts.dtb b/w1-2.dts.dtb
new file mode 100644 (file)
index 0000000..6fdb859
Binary files /dev/null and b/w1-2.dts.dtb differ