Jump to content

1-wire sensor and buster on tinkerboard


IvanD

Recommended Posts

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?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines