Fu-. 0 Posted January 17, 2022 I want to use Pin #7(GPIOB0) as 1-wire like a RaspberryPi. Drivers(wire,w1-gpio,w1-therm) are loaded. But, Pin #7 does not appear to be working correctly. I modified a little on rk3399-tinker_board_2.dts like this: / { : (SNIPPED) : w1 { compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_pin>; gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; status = "okay"; }; }; &pinctrl { pinctrl-0 = <&gpio_init &test_clkout2 &w1_pin>; : (SNIPPED) : w1pin { w1_pin: w1-pin { rockchip,pins = <RK_GPIO0 RK_PB0 RK_FUNC_3 &pcfg_pull_up>; }; }; }; --- dmesg says, [ 5.245994] Driver for 1-wire Dallas network protocol. No devices detected. gpio readall says Pin#7(GPIO 8) is GPIOB0, NOT CLKOUT. Does anyone know a better way? Regards, Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted May 16, 2022 Hi @Fu-.: Please reference the following information. About gpio readall says Pin#7(GPIO ? is GPIOB0, NOT CLKOUT. --> You need to modify the /boot/config.txt by the following to enable test_clkout2 #intf:test_clkout2=off --> intf:test_clkout2=on ##### Hardware Interface Config ##### ## Note: uart4 and spi1 are the same pins. Set the latter one while both on. ## intf:fiq_debugger=on #intf:uart0=off #intf:uart4=off intf:i2c6=on #intf:i2c7=off #intf:i2s0=off #intf:spdif=off #intf:spi1=off #intf:spi5=off #intf:pwm0=off #intf:pwm1=off #intf:pwm3a=off #intf:test_clkout2=off Share this post Link to post Share on other sites