1wire DS18b20 on Rock64?
#6
May it helps someone, finally I got 1wire work on kernel 5.x.x

Main hint was on github.com from Tonymac32 --- Many thanks!!!

This DT overly worked for me [<&gpio3 4 0> means GPIO3_A4; id100; Pin15] :

Overlay file: rockchip-w1-gpio.dts
Code:
/dts-v1/;
/plugin/;

/ {
    compatible = "pine64,rock64", "rockchip,rk3328";
    fragment@0 {
        target-path = "/";
        __overlay__ {
            w1: onewire@0 {
                compatible = "w1-gpio";
                pinctrl-names = "default";
                gpios = <&gpio3 4 0>;
                status = "okay";
            };
        };
    };
};


Compiling to binary:
dtc -I dts -O dtb rockchip-w1-gpio.dts -o rockchip-w1-gpio.dtbo



Overwriting of existing file:
boot/dtb-5.x.x-rockchip64/rockchip/overlay/rockchip-w1-gpio.dtbo

Than 1Wire can be activated in:
sudo armbian-config
(Activation before changing the overly file crashed my Rock)
  Reply


Messages In This Thread
1wire DS18b20 on Rock64? - by mypineme - 12-23-2018, 12:32 PM
RE: 1wire DS18b20 on Rock64? - by mcerveny - 12-24-2018, 07:09 AM
RE: 1wire DS18b20 on Rock64? - by {-DesT-} - 02-09-2021, 02:44 PM
RE: 1wire DS18b20 on Rock64? - by TRS-80 - 02-10-2021, 11:21 AM
RE: 1wire DS18b20 on Rock64? - by Rocky64 - 07-17-2021, 04:20 AM
RE: 1wire DS18b20 on Rock64? - by Rocky64 - 09-22-2021, 08:42 AM
RE: 1wire DS18b20 on Rock64? - by TRS-80 - 09-28-2021, 03:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Are HW design files available for ROCK64? irenek 3 4,768 12-11-2023, 09:31 PM
Last Post: tllim
  Rock64 is unreliable after 3 years of service - power problem? ReleaseTheGeese 0 329 11-23-2023, 05:05 AM
Last Post: ReleaseTheGeese
  Rock64 PoE compatbility with Pi4 Hatt recent Single Board Computer offering from PINE kharak 1 1,064 04-26-2023, 11:38 PM
Last Post: tllim
  Case for the rock64 that supports the POE hat. o1CRiMSON1o 0 623 03-21-2023, 03:48 PM
Last Post: o1CRiMSON1o
Brick Rock64 usb2.0 Power Control Floating GPIO Tutorial Files & Notes MarkHaysHarris777 6 13,219 01-15-2023, 10:36 AM
Last Post: ds00
  rock64 totally brick dakobg 2 1,741 11-07-2022, 05:45 PM
Last Post: olivercfc
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 2 3,521 08-04-2022, 01:31 AM
Last Post: Vicky Weimann PhD
  Where can I find the ROCK64 POE HAT Zoz 2 2,617 06-08-2022, 12:44 AM
Last Post: Zoz
Smile wooden case for ROCK64 killor 13 16,514 03-04-2022, 06:56 AM
Last Post: killor
Information How to Setup Serial Console Cable Over the Rock64 SBC MarkHaysHarris777 9 33,421 09-28-2021, 10:52 AM
Last Post: lewiscamron72

Forum Jump:


Users browsing this thread: 1 Guest(s)