Fix charger and fuel gauge part numbers to match the shipped hardware - #422
Open
munzzyy wants to merge 1 commit into
Open
Fix charger and fuel gauge part numbers to match the shipped hardware#422munzzyy wants to merge 1 commit into
munzzyy wants to merge 1 commit into
Conversation
Signed-off-by: Cole Munz <colemunz@gmail.com>
munzzyy
added a commit
to munzzyy/flipperone-docs
that referenced
this pull request
Jul 23, 2026
Address review feedback on the docs validator:
- Resolve image references the way Archbee actually resolves them: try
the referencing page's own directory first, then fall back to the
docs root. Fixes false positives on the three ::Image[] directives in
cpu-software/How-to-install-linux-image.md, without breaking the one
image in the docs that legitimately uses "../" relative to its page
(hardware/GPIO-Modules.md).
- Add --check {anchor,path} so each check can run, and fail, on its own.
- Wire both into validate.yml as separate steps.
- Drop the part-number check. A part number is basically a proper noun,
and that's a job for a dedicated linter like vale.sh, not this script.
The actual BQ25/BQ28Z/MT7921 mismatches are handled in flipperdevices#417/flipperdevices#419/flipperdevices#422.
Signed-off-by: Cole Munz <colemunz@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two of the three mismatches from #420, the two that turned out to be provable from this org's own code.
The charger is a BQ25792: the MCU firmware ships a driver for exactly that part (
flipperone-mcu-firmware/lib/drivers/bq25792/), and the device tree in your u-boot fork declarescompatible = "ti,bq25792"(dts/upstream/src/arm64/rockchip/rk3576-flipper-one-rev-f0b0c1.dts, thecharger@6bnode). So Tech-Specs had it right and Heatsink.md's BQ25798 was the stale one.The fuel gauge is a BQ28Z620: same firmware has
lib/drivers/bq28z620/, and the DTS comment on the gauge node says it outright:compatible = "ti,bq28z610"; /* really bq28z620: tbc if we need a new compatible */. So Power-subsystem.md had it right and Tech-Specs' BQ28Z610 was stale. I left the DTS compatible string out of the docs since that's a kernel binding detail, and the pages name physical parts.I didn't touch the battery energy number (the third item in #420). The DTS gives 3100 mAh design capacity with a 6.0 to 8.65 V window, and both 22.9 Wh and 24 Wh fall out of that depending on which nominal cell voltage you use, so that one still needs a call from someone who knows the cell's rated spec.