element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Whether can GPIO bind a pinctrl-single device?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 315 subscribers
  • Views 342 views
  • Users 0 members are here
Related

Whether can GPIO bind a pinctrl-single device?

aersean
aersean over 8 years ago

Hello,

I fond pinctrl-single device in Xilinx document. So I want to use it bind a GPIO pin, and then control the pinctrl device. But I don't know whether this way is right.

if you know please tell me. Thank you!!

 

Best regards,

Aersean

  • Sign in to reply
  • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Aersean,

    Could you please refer me to the xilinx document in which you found the pinctrl-single device.

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aersean
    0 aersean over 8 years ago in reply to jafoste4

    Hello Josh,

    Thank you at first.

    I was task for BPS, and I have never worked for device tree before. I only read some user guide for device tree, so I am a beginner for this. 

    Now we have a new project that is research the ZYNQ-7000 serial. I have a PicoZed-7030 development board. I read the Xapp-1078. In this document, the CPU1 can't directly access GPIO ps pin (share resource). So I want to add a device into Petalinux, and access the GPIO ps pin.

    Last time, you give me some help for LED, it is success. In fact, I think we maybe need a general GPIO ps pin controller, so I found  pinctrl-single device. I hope use it can control GPIO ps pin input/output and get the interrupt when the level is changed.

    The document for  pinctrl-single is:

    https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt

     

    Thanks for your help!!

    Best regards,

    Aersean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Aersean,

    You may find more success asking this quesion over at the xilinx embedded linux forum.

    https://forums.xilinx.com/t5/Embedded-Linux/bd-p/ELINUX

    In the mean time here are some resources for you to start with:

    https://forums.xilinx.com/t5/Embedded-Linux/Accessing-PS-GPIO-through-Petalinux/m-p/679232/highlight/true#M15253

    https://forums.xilinx.com/t5/Embedded-Linux/Test-zynq702-gpio-on-ps/m-p/259680/highlight/true#M4581

    https://forums.xilinx.com/t5/Embedded-Linux/Zynq-PS-interrupt/m-p/516363/highlight/true#M10450

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aersean
    0 aersean over 8 years ago

    Hello Josh,

    Thank you. I will reseach it again. If you have some suggestion please tell me.

    BR
    Aersean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube