Skip to content

m1n1: Pass the A9 AOP's boot arguments and sensor calibration - #135

Open
brkosebay wants to merge 1 commit into
OrchardLinux:mainfrom
brkosebay:a9/aop-boot-arguments
Open

brkosebay wants to merge 1 commit into
OrchardLinux:mainfrom
brkosebay:a9/aop-boot-arguments

Conversation

@brkosebay

Copy link
Copy Markdown
Contributor

Problem

The A9 AOP driver on main reads apple,aop-target, apple,chip-id and apple,chip-revision from the device tree, and the motion sensor drivers read their factory calibration from properties of the same kind. iBoot puts these values in the ADT, but nothing on main copies them into the FDT. Going by the driver's probe, the A9 AOP (and with it the accelerometer, gyroscope and pressure sensor) cannot start without them. This is read from the code; main's AOP path has not been run on an A9 without this patch.

Changes

One m1n1 patch, 0021-kboot-Pass-the-A9-AOP-s-boot-arguments-and-sensor-ca.patch:

  • copies aop-target (from iop-aop-nub), chip-id (from /chosen) and chip-revision (from /arm-io) into the AOP node as apple,… properties;
  • copies each motion sensor's factory calibration from its ADT node below iop-aop-nub into the sensor child node of the same name, with an apple, prefix. Calibration that iBoot left as an unresolved syscfg/ reference is skipped.

It is the m1n1 patch from #101, unchanged. #101 landed only the kernel side.

Testing

Numbering

The file keeps the number 0021 that it has in #107, which carries the identical file. Whichever of the two lands first, the other merges cleanly, and the next update of #107 drops its copy. Until #107 lands, 0015–0020 are unused on main; the patches still apply in order.

🤖 Generated with Claude Code

The A9 AOP driver on main reads apple,aop-target, apple,chip-id and
apple,chip-revision, and the motion sensor drivers read their factory
calibration, from properties the bootloader fills in. Nothing on main
fills them in; going by the driver's probe, the A9 AOP cannot start
without them (read from the code, not run). This is the m1n1 patch that
fills them in, from OrchardLinux#101, unchanged.

Assisted-by: LLM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant