AM62A3: Can not get gpio value

Part Number: AM62A3

Tool/software:

Hi TI,

I can't get gpio value, below is details:

1.get by gpio sysfs(gpio config has been added in dts )

echo 547 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio547/direction
echo 1 > /sys/class/gpio/gpio547/value

The gpio status is high checked by multimeter, and it become low by 'echo 0 > /sys/class/gpio/gpio547/value'.

But, use 'cat  /sys/class/gpio/gpio547/value', it always return 0.

2.get by gpioget

gpioset -c /dev/gpiochip1 11=1  - need to ctrl+c to stop manually

The gpio status is high checked by multimeter, and it become low by 'gpioset -c /dev/gpiochip1 11=0'.

But, use 'gpioget -c /dev/gpiochip1 --numeric 11', it return '0', and the gpio status become low checked by multimeter,

I think 'gpioget' will set the gpio as input direction.

'gpioset -c /dev/gpiochip1 11=1' - gpio become output checked by 'gpioinfo'

'gpioget -c /dev/gpiochip1 --numeric 11' - gpio become input checked by 'gpioinfo'

So, which is the right way to get gpio value? Can you give me some advices.

Thanks.

Tao