Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change state of Panther X2 SX1302 reset and enable GPIO pins #2308

Open
atrips opened this issue May 8, 2024 · 0 comments
Open

Cannot change state of Panther X2 SX1302 reset and enable GPIO pins #2308

atrips opened this issue May 8, 2024 · 0 comments

Comments

@atrips
Copy link

atrips commented May 8, 2024

Device Information | 设备信息

  • SOC: [rk3566]
  • Model [Panther-X2]

Armbian Version | 系统版本

  • Kernel Version: Linux armbian 6.6.28-ophub Support VFD #1 SMP Thu Apr 25 12:07:24 EDT 2024 aarch64 aarch64 aarch64 GNU/Linux

  • Release: [jammy]

Hello,
I have a strange issue to not able set some specific GPIO states.

Here is an output from trying set GPIOs :

armbian:lora_pkt_fwd:# echo "151" > /sys/class/gpio/export              
armbian:lora_pkt_fwd:# echo "129" > /sys/class/gpio/export
armbian:lora_pkt_fwd:# echo "151" > /sys/class/gpio/export               
armbian:lora_pkt_fwd:# echo high > /sys/class/gpio/gpio120/direction    
armbian:lora_pkt_fwd:# echo high > /sys/class/gpio/gpio129/direction    
armbian:lora_pkt_fwd:# echo high > /sys/class/gpio/gpio151/direction    
armbian:lora_pkt_fwd:# cat /sys/class/gpio/gpio120/value                
0
armbian:lora_pkt_fwd:# cat /sys/class/gpio/gpio129/value                
0
armbian:lora_pkt_fwd:# cat /sys/class/gpio/gpio151/value                
1

As you can see gpio151 is changed but 120 and 129 not.

Output of /sys/kernel/debug/gpio

gpiochip0: GPIOs 0-31, parent: platform/fdd60000.gpio, gpio0:
 gpio-27  (                    |led-status          ) out lo 
 gpio-28  (                    |led-pwr             ) out hi 
 gpio-29  (                    |led-eth             ) out lo 
 gpio-30  (                    |led-wifi            ) out lo 

gpiochip1: GPIOs 32-63, parent: platform/fe740000.gpio, gpio1:

gpiochip2: GPIOs 64-95, parent: platform/fe750000.gpio, gpio2:
 gpio-73  (                    |reset               ) out hi ACTIVE LOW

gpiochip3: GPIOs 96-127, parent: platform/fe760000.gpio, gpio3:
 gpio-97  (                    |snps,reset          ) out hi ACTIVE LOW
 gpio-120 (                    |sysfs               ) out lo 

gpiochip4: GPIOs 128-159, parent: platform/fe770000.gpio, gpio4:
 gpio-129 (                    |sysfs               ) out lo 
 gpio-151 (                    |sysfs               ) out hi 

Here same output from "stock firmware" using same way to change GPIO 120 and 129 and there is no issue.

....
gpiochip3: GPIOs 96-127, parent: platform/fe760000.gpio, gpio3:
 gpio-97  (                    |mdio-reset          ) out hi    
 gpio-120 (                    |sysfs               ) out lo    

gpiochip4: GPIOs 128-159, parent: platform/fe770000.gpio, gpio4:
 gpio-129 (                    |sysfs               ) **out hi**    
 gpio-151 (                    |led-board           ) out hi    

gpiochip5: GPIOs 255-255, parent: platform/rk805-pinctrl, rk817-gpio, can sleep:

May someone help with troubleshooting issue ?
Regards.

@atrips atrips changed the title Some specific GPIOs cannot be set. Cannot change state to Panther X2 reset and enable GPIO pins May 8, 2024
@atrips atrips changed the title Cannot change state to Panther X2 reset and enable GPIO pins Cannot change state of Panther X2 reset and enable GPIO pins May 8, 2024
@atrips atrips changed the title Cannot change state of Panther X2 reset and enable GPIO pins Cannot change state of Panther X2 SX1302 reset and enable GPIO pins May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant