TRay
Members
-
Joined
-
Last visited
Solutions
-
TRay's post in I2C not working on Orange Pi Zero2 was marked as the answerI confirm that armbian-config has problem with add ovelay prefix to overlays= please look on:
https://github.com/armbian/configng/issues/592
So i must add manually devices in amrbinaEnv.txt and for OZPI v3 to use I2C i have
overlay_prefix=sun50i-h616
overlays=i2c3-ph
-
TRay's post in OrangePiZero 3 and w1-gpio for DS18B20 was marked as the answerI used simple dts file as possible :
/dts-v1/; /plugin/; / { model = "OrangePi Zero3"; compatible = "xunlong,orangepi-zero3", "allwinner,sun50i-h618"; fragment@0 { target-path = "/"; __overlay__ { w1: onewire@0 { compatible = "w1-gpio"; pinctrl-names = "default"; gpios = <&pio 2 7 0>; status = "okay"; }; }; }; };
compiled:
armbian-add-overlay w1-gpio.dts
and works 🙂 with armbianEnv.txt
user_overlays=w1-gpio
param_w1_pin=PC10
param_w1_pin_int_pullup=0
demsg show
[ 5.015541] Driver for 1-wire Dallas network protocol.
[ 5.019754] gpio-74 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[ 5.046831] w1_master_driver w1_bus_master1: Attaching one wire slave 28.03165129ecff crc 24
and
cat /sys//bus/w1/devices/28-03165129ecff/w1_slave
76 01 4b 46 7f ff 0c 10 d3 : crc=d3 YES
76 01 4b 46 7f ff 0c 10 d3 t=23375
SBC DS18B20 VCC (3V3) Pin 1 ---------- VCC DS18B20 | R1 = 4k7 | GPIO74 Pin 26 --------- Data DS18B20 GND Pin 6 ---------- GND DS18B20