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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
PicoZed Hardware Design Picozed  GPIO for linux userspace
  • 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 2 replies
  • Subscribers 339 subscribers
  • Views 547 views
  • Users 0 members are here
Related

Picozed  GPIO for linux userspace

kemaangu
kemaangu over 7 years ago
Hi 
I am using Picozed board . Here are details:
PicoZed FMC Carrier Card V2 (http://zedboard.org/product/picozed-fmc-carrier-card-v2) 
SOM as Picozed 7015/7030 ( http://zedboard.org/support/documentation/4736)
 
As per hardware guide of carried board and SOM, found that under section "User I/O", PS_MIO47, PS_MIO50, PS_MIO51 connected on carrier board at PS_LED1, PS_LED2 for LEDs and PS_PB1 (SW6) for push button.   Hope this is correct.  
Please let me know which is the gpio pins for LEDs and SW6 push button and how to test LED blinking and catching push button event from linux's userspace.     
 
Here are other information from Linux's side: 
 
The sample kernel (4.9) supports zynq GPIO driver(CONFIG_GPIO_ZYNQ). 
 
From /sys/class/gpio/gpiochip906 (xlinx-zynq) which has 118 pins for exporting at user-space (range:906 - 1023).      
 
Also possible to toggle (on and off) LED (D10) of Carrier card where the gpio  pin number is 953. Below are commands:  
 
   echo 953  > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio953/direction
    echo 0 > /sys/class/gpio/gpio953/value
    echo 1 > /sys/class/gpio/gpio953/value
   
  But  couldn't identify gpio pin for other LED (D11)  amd push button PS_PB from Linux's userspace.   
Thanks & Regards
Manjunatha Srinivasan N
 
  • Sign in to reply
  • Cancel
  • kemaangu
    0 kemaangu over 7 years ago

    Hi 

    Please let me know any inputs on this.  

    TIA.  

    Regards

    Manjunatha Srinivasan N

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

    Hello Manjunatha Srinvasan N,

    Please take a looka t the following posts

    http://www.zedboard.org/content/gpio-controllerskernel

    http://zedboard.org/content/writing-gpio-linux-application-microzed

    http://www.wiki.xilinx.com/Linux+GPIO+Driver

    --Josh

    • 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