Jump to content

bananapi r2 pro gpio


Ace Space

Recommended Posts

i want to use led on/off 7 pin (gpio 40 header) but it doesn’t work.

ssggpio.thumb.jpg.022623d35816827478efbc7645bd4c0c.jpg

IMG_20230818_204553_5282.thumb.jpg.c8c7148dd61158c96a1f2e4b00b890b5.jpg

Others work fine:

 

echo 20 > /sys/class/gpio/export
echo 23 > /sys/class/gpio/export
echo 40 > /sys/class/gpio/export
echo 42 > /sys/class/gpio/export

echo out > /sys/class/gpio/gpio20/direction
echo out > /sys/class/gpio/gpio23/direction
echo out > /sys/class/gpio/gpio40/direction
echo out > /sys/class/gpio/gpio42/direction

echo 1 > /sys/class/gpio/gpio20/value
echo 1 > /sys/class/gpio/gpio23/value
echo 1 > /sys/class/gpio/gpio40/value
echo 1 > /sys/class/gpio/gpio42/value

 

image.png.fa2df1caff01c02603c7d8d8450f6135.png

May be problem in pwm10

               pwm10 {

                    pwm10m0-pins {
                            rockchip,pins = <0x03 0x0d 0x05 0xab>;
                            phandle = <0x9d>;
                    };

                    pwm10m1-pins {
                            rockchip,pins = <0x02 0x01 0x02 0xab>;
                            phandle = <0x1f5>;
                    };

dts attached from firmware - https://www.armbian.com/bananapi-r2-pro/

r2pro.dts

Edited by Ace Space
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines