mtr46

  • Content Count

    9
  • Joined

  • Last visited

  1. The problem has been solved. I rewrote the DTS as follows: / { w1 { compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_gpio_pins>; gpios = <&gpio0 17 0>; }; }; &pinctrl { onewire { w1_gpio_pins: w1-gpio-pins { rockchip,pins = <0 17 0 &pcfg_pull_up>; }; }; }; I am now able to use 1-wire. results: root@tinkerboard:/sys/bus/w1/devices# ll total 0 drwxr-xr-x 2 root root 0 Apr 23 19:49 . drwxr-x
  2. I'm not sure. It simply describes the DTS as follows: / { model = "Rockchip RK3288 Asus Tinker Board S"; compatible = "asus,rk3288-tinker-s", "rockchip,rk3288"; onewire { compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_pins>; gpios = <&gpio0 17 0>; }; }; &pinctrl { w1_pins: w1-pins { rockchip,pins = <0 17 0 &pcfg_pull_up>; }; }; If this is read at boot time, dmesg will print the following error: [8.225790] Driver for 1-
  3. I'm starting to understand. A closer look at dmesg showed the following error. [3.768101] Driver for 1-wire Dallas network protocol. [ 3.768532] rockchip-pinctrl pinctrl: unable to find group for node w1_pins [3.768554] w1-gpio: probe of onewire failed with error -22 I think I'm writing the DTS wrong way, so I'm going to review it.
  4. dmesg says [ 2.453319] Driver for 1-wire Dallas network protocol.
  5. Yes, lsmod displays wire, w1-gpio and w1-therm.
  6. I tried to apply a new patch like this: --- diff --git a/arch/arm/boot/dts/rk3288-miqi.dts b/arch/arm/boot/dts/rk3288-miqi.dts index c41d012c8..70c0b6365 100644 --- a/arch/arm/boot/dts/rk3288-miqi.dts +++ b/arch/arm/boot/dts/rk3288-miqi.dts @@ -37,6 +44,14 @@ }; }; + onewire { + compatible = "w1-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&w1_pins>; + gpios = <&gpio0 17 0>; + status = "okay"; + }; + vcc_flash: flash-regulator { compatible = "regulator-fi
  7. Yes, I patched like this: --- diff --git a/arch/arm/boot/dts/rk3288-tinker-s.dts b/arch/arm/boot/dts/rk3288-tinker-s.dts index 970e13859..4fff9467d 100644 --- a/arch/arm/boot/dts/rk3288-tinker-s.dts +++ b/arch/arm/boot/dts/rk3288-tinker-s.dts @@ -10,6 +10,32 @@ / { model = "Rockchip RK3288 Asus Tinker Board S"; compatible = "asus,rk3288-tinker-s", "rockchip,rk3288"; + + fragment@0 { + target-path = "/"; + __overlay__ { + w1: onewire@0 { + compatible = "w1-gpio"; + pinctrl-names = "default
  8. Hi, I want to use 1-wire on TinkerBoard with the latest Linux Kernel. I created dtb with rk3288-tinker-s.dts patched with reference to RaspberryPi w1-gpio.dts, but it didn't work. When I run "cat /sys/kernel/debug/gpio", (w1) is not displayed. Is there any good workaround? Regards, Additional: I wrote a line 'fdtfile=rk3288-tinker-s.dtb' in /boot/armbianEnv.txt