Dear experts,
I see here quite a few questions about GPIO configuration, so hope this one will be easy to answer.
We need to configure a pin R1 (ball or whatever) of AM335 as PWM. This is mode 3, according to the mux table.
The catch is that we also must set this pin to pull-up state so that it is HIGH when PWM is not driving it.
The pin must be output, pull-up and in mode 3.
But no matter what we do, the electrical state of the pin remains low.
Is this possible?
We have following statements in the dts file:
am33xx_pinmux: pinmux@44e10800 {
pinctrl-names = "default";
pinctrl-0 = <&clkout1_pin &mmc1_pins &wlan_pins>;
i2c0_pins: pinmux_i2c0_pins {
pinctrl-single,pins = <
0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
0xa0 (PIN_OUTPUT_PULLUP | MUX_MODE3) /* THIS PIN <<<<< value 0x13 */
...........................
We tried also disable the pullup and changed the last line so:
0xa0 (PIN_OUTPUT | PULL_DISABLE | MUX_MODE3) /* THIS PIN <<<<< value 0x1B */
Please advise, is it possible to achieve our goal?
Thanks in advance,
S.