Skip to content

iio: aop_als: report colour temperature as IIO_COLORTEMP - #779

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
als/colortemp-abi
Nov 2, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
als/colortemp-abi

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

The AOP ambient light sensor on Redbird (VD6286) machines reports a firmware-computed colour temperature, and the driver exported it as an IIO_CCT channel, in_cct_input. That type has no entry in the IIO ABI documentation and no other driver uses it. Userspace that wants an ambient colour temperature reads the documented in_colortemp_* attributes, which hid-sensor-als also provides, so it never found this sensor.

This reports the same Kelvin value as a processed IIO_COLORTEMP channel, in_colortemp_input. Lux, the report decoding and the CT720 and CT817 parts are unchanged. The driver ABI note, the driver documentation and the J616s parity collector move to the new name.

Consumers updated alongside: the opt-in GNOME ambient white point and iio-sensor-proxy patches read in_colortemp_input only, and aurora-diag reads the new attribute.

Testing

  • J616s, 7.3.0-aurora-fleet14c, runtime module swap: before, in_cct_input 4171 K and in_illuminance_input 100.7 lux. After, in_colortemp_input 4168 to 4179 K, in_illuminance_input about 102 lux, no in_cct_input. iio-sensor-proxy with the ColorTemperature patch followed the new attribute for 10 minutes.
  • The M2 also exposes the colour channel, so it moves to the new name too. The Neo (CT817) has lux only and is unaffected.
  • Host tests: tools/asahi/aop-als-channel-tests.py passes, and all its mutations are caught.
  • W=1 module build with Rust, no warnings.

🤖 Generated with Claude Code

The Redbird colour temperature was exported as an IIO_CCT channel,
in_cct_input. No other driver uses that type and the IIO ABI does not
document it, so userspace looking for an ambient colour temperature
(for example an ambient white point policy) reads in_colortemp_*, the
documented channel that hid-sensor-als also provides.

Report the same firmware-computed Kelvin value as a processed
IIO_COLORTEMP channel, in_colortemp_input. Lux, the report decoding and
the CT720 and CT817 parts are unchanged. Update the driver ABI note, the
driver documentation and the J616s parity collector to the new name.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged. Gates on a test merge of aurora-wip c243830 with the other open aurora-wip PRs: the full kernel build (7.3.0-aurora-prr1103) is clean, aop-als-channel-tests.py passes and catches all its mutations, and the apple-dcp host selftests stay at the base count (84/86 against 83/85, the same two failures). The runtime check is the J616s module swap in the description. aurora-diag (merged PR 8) reads either name, so the fleet tools keep working across the rename.

@RyanTheTide
RyanTheTide deleted the als/colortemp-abi branch November 2, 2026 13:58
notmysegv pushed a commit to notmysegv/linux that referenced this pull request Nov 4, 2026
…nto integration/aurora

Bring integration/aurora up to the aurora-wip tip 9ff2b9a. After this
merge the two branches have the same tree.

The range contains the fleet14o source c243830 (aurora-silicon#857, aurora-silicon#858, aurora-silicon#795,
aurora-silicon#859), which was promoted on all four machines on 2026-11-02 and 03, and
the merges after it: aurora-silicon#861 (apple-dcp selftest stubs for aurora-silicon#858), aurora-silicon#860
(SEP keybag in the shared xART window, the aurora-wip copy of aurora-silicon#856),
aurora-silicon#724 (J616s boot NOR, both parts), aurora-silicon#779 (ALS colour temperature ABI),
aurora-silicon#862 (J700 GD25UF16E boot NOR, the Neo bless fix), aurora-silicon#863 (J616s ANE H16
start stall), aurora-silicon#797 (T6000 DCS whole-word writes) and aurora-silicon#803 (G17 keeps
innocent clients alive across another client's recovery).

aurora-silicon#858 and aurora-silicon#860 make the same changes integration/aurora already had as
aurora-silicon#855 and aurora-silicon#856, so they merge without conflicts.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
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