Hi,
I am using Jetson Orin Nano with L4T 36.4.4 in my custom bsp.
I want to set GPIO3_PQ.05 to ACTIVE HIGH OUTPUT. So i made below changes:
I use this pin to realize 1-weire temperature sensor DS18B20. So I need it as bidirectional I/O.
Pinmux:
GPIO3_PQ.05 Bidirectional Drive 1
dtsi:
onewire@0 {
compatible = "w1-gpio";
gpios = <&gpio TEGRA234_MAIN_GPIO(Q, 5) GPIO_ACTIVE_HIGH>; /*PQ-05*/
pinctrl-names = "default";
//pinctrl-0 = <&w1_pins>;
status = "okay";
};
Also made required defconfig macros enable.
CONFIG_W1=y
CONFIG_W1_SLAVE_THERM=y
When I see the generated dtb file, I see this changes present. even in pinmux dtsi files I verified.
However, When I flash I do not see the GPIO3_PQ.05 as active HIGH and also my sensor is not getting listed.
rev3:~$ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 348-511, parent: platform/2200000.gpio, tegra234-gpio:
gpio-348 (PA.00 |regulator-vdd-3v3-sd) out lo
gpio-453 (PQ.05 )
I tried to set this GPIO using busybox, but I do not see any changes.
busybox devmem 0x02430100
0xFFFFFFFF
write openration has no effect:
busybox devmem 0x02430100 w 0x004
busybox devmem 0x02430100
0xFFFFFFFF
Please help what can be done here, also let me know my offset values for busybox command are correct or not.