Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

How to set pull-up of the FirePrime's GPIOs ?

410

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
410

How to set pull-up of the FirePrime's GPIOs ?

Posted at 2/2/2018 20:43:45      View:3770 | Replies:6        Print      Only Author   [Copy Link] 1#
Hi,

I want to use the pins 23, 25, 27 and 29 of the FirePrime S as GPIO (GPIO1 A5, A4, A2 and A1). For my project, I need 2 IN and 2 OUT so I decided to use A1 and A2 as outputs and A4 and A5 as inputs.

For now, I am able to export these pins from user space (echo 33 > /sys/class/gpio/export) and the outputs work like a charm but I can't set the pull-up resistor for the inputs.

I tried to change:
  1. rockchip,pull = <VALUE_PULL_DEFAULT>;
Copy the code
to
  1. rockchip,pull = <VALUE_PULL_UP>;
Copy the code
in the pinctrl node for GPIO1_A1...GPIO1_A5 but it didn't change anything.

Then I tried to control the GPIO from user space using mmap (/dev/mem) but in the Technical Reference Manual I couldn't find the registers for setting pull up, pull down or pull none. Just, in chapiter 5 (grf), I found the registers for enable/disable pull up/down.

Is it possible to change this setting ? How to proceed ?

Reply

Use props Report

129

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
129
Posted at 1/14/2026 19:20:01        Only Author  2#
Your article was a breath of fresh air, thank you for sharing it. Best wishes to everyone! Agentforce-Specialist exam flashcards test questions are now available for free.
Reply

Use props Report

134

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
134
Posted at 1/25/2026 16:00:16        Only Author  3#
Reading this article, I have gained a completely new understanding of the issue. Here are the Latest CMMC-CCP version questions for free! Best of luck to all candidates!
Reply

Use props Report

135

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
135
Posted at 2/4/2026 08:10:06        Only Author  4#
Wollen Sie, ein ITer, durch den Erfolg zu IT-Zertifizierungsprüfungen Ihre Fähigkeit beweisen? Und heute besitzen immer mehr Ihre Freuden und Kommilitonen die IT-Zertifizierungen. Und in diesem Fall können Sie weniger Chancen haben, wenn Sie keine Zertifizierung haben. Und haben Sie sich entschieden, welche Prüfung abzulegen? Wie sind Amazon Prüfungen? Oder Amazon CLF-C02 Zeritifizierungsprüfung? Amazon CLF-C02 Zeritifizierungsprüfung ist wertvoll und hilft Ihnen unbedingt, Ihren Wunsch zu erreichen.
Reply

Use props Report

132

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
132
Posted at 2/10/2026 21:10:37        Only Author  5#
This article is simply incredible, thank you for sharing! The material in Exam 220-1101 pass guide is extensive and offered freely to support your learning goals.
Reply

Use props Report

135

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
135
Posted at 2/12/2026 23:18:56        Only Author  6#
The viewpoints in the article have sparked many new ideas in me, and I’ve greatly benefited. The Authorized C_S4CPB_2508 test dumps helped me climb the career ladder and earn a raise. Now, I’m sharing it for free with all of you. Wishing you success!
Reply

Use props Report

120

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
120
Posted at 2/24/2026 04:04:11        Only Author  7#
Thank you for your thought-provoking article, it deeply impressed me. Get free CIS-PA Real Exams to improve your IT knowledge. Wishing you success!
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list