Hi,experts:
In the recent TDA4 project, after we configured a gpio in uboot dts, we measured it with a multimeter until it was always 0.5v low, and the gpio function we finally wanted to implement was configured to be high.
Please help to see if the configuration is correct? And how to configure PRG1_PRU1_GPO9 and PRG1_PRU1_GPO10 to be high in uboot dts?
Here is a block diagram of the connection between the GPIO and TDA4 to be configured:
The following is the configuration of PRG1_PRU1_GPO9 and PRG1_PRU1_GPO10 in TDA4 uboot dts:
//k3-j721e-common-proc-board.dts
sensor_power_n_pins_default: sensor_power_n-pins-default {
pinctrl-single,pins = <
J721E_IOPAD(0x7c, PIN_OUTPUT_PULLUP, 7) /* (AF21) PRG1_PRU1_GPO9.GPIO0_30 */
J721E_IOPAD(0x80, PIN_OUTPUT_PULLUP, 7) /* (AB23) PRG1_PRU1_GPO10.GPIO0_31 */
>;
};
&main_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&sensor_power_n_pins_default>;
};
After gpio configuration, use a multimeter to measure 0 ohm resistance R356 and R357: the display is always 0.5
Using the gpio command in the uboot tool to see that the status is always low level 0, and the final gpio configuration I want is high level 1:
=> gpio status 30
30: input: 1 [ ]
30: input: 0 [ ] //(AF21) PRG1_PRU1_GPO9.GPIO0_30
30: input: 0 [ ]
=> gpio status 31
31: input: 0 [ ]
31: input: 0 [ ] //(AB23) PRG1_PRU1_GPO10.GPIO0_31
31: input: 0 [ ]
I originally wanted to use the 'gpio set' command to manually configure PRG1_PRU1_GPO9 and PRG1_PRU1_GPO10, but the 'gpio set 30' shows that the first one is executed, and I want to configure the second one:
=> gpio set 30
gpio: pin 30 (gpio 30) value is 1
=> gpio status 30
30: output: 1 [ ]
30: input: 0 [ ]
30: input: 0 [ ]
The question asked is not very professional, I will try to improve it, thank you very much!