Skip to content

Pinephone Pro: Set GPIO4_PD3 as input#193

Closed
antoniprzybylik wants to merge 5 commits intoTow-Boot:developmentfrom
antoniprzybylik:released
Closed

Pinephone Pro: Set GPIO4_PD3 as input#193
antoniprzybylik wants to merge 5 commits intoTow-Boot:developmentfrom
antoniprzybylik:released

Conversation

@antoniprzybylik
Copy link
Contributor

Good afternoon,

Setting GPIO4_PD3 as input is necessary for STK3311 sensor driver to function properly. That's what megi is doing in levinboot -- https://xff.cz/git/levinboot/commit/?id=6de55d9d4e991e9f261b4e323dfa8b0682cbe9e0

I did not have a chance to test it yet, will keep you informed about any progress on this.

Antoni Przybylik

@samueldr samueldr marked this pull request as draft September 21, 2022 18:23
@samueldr samueldr changed the base branch from released to development September 21, 2022 18:23
@samueldr
Copy link
Contributor

Hi,

  • Set as draft until tested
  • Changed branch to development, don't worry about the documentation changes not in development

STK3311 driver expects this pin set as input.

Signed-off-by: Antoni Przybylik <antoni.przybylik@wp.pl>
@antoniprzybylik
Copy link
Contributor Author

I tested my previous patch. It didn't work, it didn't even compile. After that, however, I made some changes. You can see them in the history ("antoniprzybylik force-pushed the released branch from 318ce50 to bc7ccc2").

Now it works: It compiles. What's more, I tested it on real hardware, it works. What's more, the bug is fixed!!! STK3311 driver functions perfectly with my fixed tow-boot.

@antoniprzybylik
Copy link
Contributor Author

I changed name of this branch in my Tow-Boot repo to stk3311 fix. I had to open new pull request -- #195 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. type: enhancement Accepted new feature

Development

Successfully merging this pull request may close these issues.

2 participants