Jump to content

IvanD

Validating
  • Posts

    1
  • Joined

  • Last visited

  1. Hello. Sorry for maybe newbie question. I try to enable DS18B20 on my tinkerboard. The Armbian version is 21.08.1_Tinkerboard_buster_current_5.10.60. I've read the documentation about DTC, but I see no /boot/dtb/overlay directory, just /boot/dtb. I copied decompiled version of dtb from TinkerOS to this folder, compile it to rockchip-w1-gpio.dtb, but there is no /sys/bus/w1 folder. dmesg|grep w1 is empty. Here is my dts file: /dts-v1/; / { compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288"; fragment@0 { target-path = [2f 00]; __overlay__ { onewire@0 { compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <0x1>; gpios = <0xffffffff 0x11 0x0>; status = "okay"; phandle = <0x2>; }; }; }; fragment@1 { target = <0xffffffff>; __overlay__ { w1_pins@0 { rockchip,pins = <0x0 0x11 0x0 0xffffffff>; phandle = <0x1>; }; }; }; __symbols__ { w1 = "/fragment@0/__overlay__/onewire@0"; w1_pins = "/fragment@1/__overlay__/w1_pins@0"; }; __fixups__ { gpio0 = "/fragment@0/__overlay__/onewire@0:gpios:0", "/fragment@1:target:0"; pcfg_pull_up = "/fragment@1/__overlay__/w1_pins@0:rockchip,pins:12"; }; __local_fixups__ { fragment@0 { __overlay__ { onewire@0 { pinctrl-0 = <0x0>; }; }; }; }; }; Here is my armbianEnv.txt: verbosity=1 bootlogo=false overlay_prefix=rockchip overlays=i2c1 i2c4 spi2 spidev2 uart1 uart2 w1-gpio rootdev=UUID=acb95555-1de2-4b72-85c7-28b7b9d1a84e rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u Am I on a right way to activate 1-wire driver? Shall I use another method to add new device to DT on this OS version?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines