Repository navigation
Conversation
|
Thank you, @W4HO-ham, for splitting these out so cleanly, and for being clear Since this PR is where the names get settled, here is what I think "settled"
That means a driver change, and it also means moving my 7 Pro's and raven's Two smaller things for when it leaves draft:
When #162 lands, this will need a rebase onto |
4abd3d4 to
14e52dc
Compare
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham, for rebasing this now that #162 is in. It is down to its own three commits on today's omamobile, the card sits after #187's Wi-Fi regulator as we said, and CI is green, dt_binding_check and dtbs_check included.
The content is as it was on 11-05, so my list there still stands and I won't repeat it. The next step is still the small one: a short sketch here of the 9a's card node in the new form (the vendor-prefixed compatible, model in place of aoc-card-name, the links without the driver-only nodes and the DPCM flags), so we can agree the names before you write the driver side. The 7 Pro's and the 6 Pro's overlays move in the same series, and I'll run it on my 7 Pro before it merges.
Two things to fix whenever you next touch it: the card commit's message still says these bindings "have no schema yet", and the description still says the PR is stacked on #162.
Describe the Pixel 9a's Goodix under-display fingerprint sensor as Google's GPL zumapro-tegu-udfps.dtsi has it: the event line on gpa7-6 (EINT, rising edge) and the reset on gpp1-0 (active low, its previous state kept in power-down). Its SPI bus belongs to the secure world, so the node is on no bus. The pin state touches only gpp1-0; the touchscreen's reset is gpp1-1 in the same bank. Its 3.3 V, S2MPG15 LDO15S, is always on, as on stock. It is off at hand-off, and until it is on the trusted app reads chip id 0. LDO15S's selector is firmware-owned (the S2MPG15 LDOs have no voltage setting) and reads stock's 3.3 V (1.8 V + 60 x 25 mV) at hand-off, so min = max writes nothing: it records stock's value, and the core refuses the sub-PMIC's regulators if it ever reads anything else. gpp1-0's drive is stock's X1 (0). Tested on the 9a with this commit in 7.3.0-rc6-omamobile-push1-daily102-gf054c72f8707, a kernel that also carried derekross#164, derekross#124 and derekross#193, from 2026-11-21 to 2026-11-23: goodix-fp binds from the device tree on gpa7-6 with /dev/goodix_fp, and matching through the HAL unlocked the palmtop 35 times out of 47 finger-downs over 22 boots. regulator_summary on that kernel reads udfps-3v3 at 3300 mV, enabled with no consumer, and the AoC's sensor-3v3 and sensor-1v8 at 3300 and 1800 mV, held by 154b0000.aoc, with the AoC up. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
Describe the Pixel 9a's Goodix under-display fingerprint sensor as Google's GPL zumapro-tegu-udfps.dtsi has it: the event line on gpa7-6 (EINT, rising edge) and the reset on gpp1-0 (active low, its previous state kept in power-down). Its SPI bus belongs to the secure world, so the node is on no bus. The pin state touches only gpp1-0; the touchscreen's reset is gpp1-1 in the same bank. Its 3.3 V, S2MPG15 LDO15S, is always on, as on stock. It is off at hand-off, and until it is on the trusted app reads chip id 0. LDO15S's selector is firmware-owned (the S2MPG15 LDOs have no voltage setting) and reads stock's 3.3 V (1.8 V + 60 x 25 mV) at hand-off, so min = max writes nothing: it records stock's value, and the core refuses the sub-PMIC's regulators if it ever reads anything else. gpp1-0's drive is stock's X1 (0). Tested on the 9a with this commit in 7.3.0-rc6-omamobile-push1-daily102-gf054c72f8707, a kernel that also carried #164, #124 and #193, from 2026-11-21 to 2026-11-23: goodix-fp binds from the device tree on gpa7-6 with /dev/goodix_fp, and matching through the HAL unlocked the palmtop 35 times out of 47 finger-downs over 22 boots. regulator_summary on that kernel reads udfps-3v3 at 3300 mV, enabled with no consumer, and the AoC's sensor-3v3 and sensor-1v8 at 3300 and 1800 mV, held by 154b0000.aoc, with the AoC up. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
|
Picking this up again. Here is the sketch you asked for before any code: the 9a's card in the new form, so we can agree the names first. What goes, and where it comes from instead:
Files: Two questions before I write it. Should the path node sit at the top level, as here, or under the AoC's own node? And is one |
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham, for the sketch. It is what I hoped for: vendor-prefixed compatibles, model and sound-name-prefix in place of the driver's own properties, and the driver-only nodes and DPCM flags gone, with the driver working them out from the port. I checked it against what in omamobile matches the card today, and it keeps all of it working as long as the driver's name stays aoc-snd-card, each board's model is exactly today's aoc-card-name (google,aoc-snd-card on the 7 Pro, google,tegu-aoc-snd-card on the 9a, and so on), and the link names stay as they are, since UCM, WirePlumber and the speaker protection all find the card and its PCMs by those strings. The PCM numbers also have to keep matching the entry points, now from the sound-dai cell.
On your two questions, my leaning, and I'll confirm: I'd rather not have a separate path node at all. The AoC is the device that owns these ports, so the AoC node itself could carry #sound-dai-cells = <1> and the links point at &aoc; a top-level node with no registers or clocks of its own is the kind of thing a binding review pushes back on. If the driver needs its own device for the path, the AoC driver can create it. And one binding file per kind, with gs201 and zumapro as an enum, is fine by me, unless the two SoCs end up needing different properties.
Two small notes for the driver series: ti,tas2781.yaml ends in additionalProperties: false, so sound-name-prefix does need its own line there, as you said; and since the port id's top bits now carry back end, capture and no-host, please define those bits in the header too, as it becomes ABI with the binding.
|
Decision on your two design questions: no separate path node (put |
14e52dc to
80940e0
Compare
|
Pushed the series in the shape you decided (80940e0, on today's
Checks: Kept on the link: Not run yet: a kernel with this (daily104a, built) is waiting for a time the palmtop can be away from its owner for a sound test. The commits still need W4HO's sign-off. Three things for you:
|
|
Tried on the palmtop:
The kernel log at boot shows the same two lines as this morning's boots with the old series: |
The AoC (Always-on Compute) DSP on Google's gs201 and zumapro SoCs plays and captures through entry points and back-end ports that its firmware names by number. Describe its sound card as a normal card: the AoC node is the DAI provider, each link names its AoC DAI with one cell, its stream name as link-name, and a back end its codecs and wire format. The card's name is model, and codec prefixes are the codecs' own sound-name-prefix. The cells are the link ids of Google's device trees, so a driver can derive each link's kind from them. The new header names them and makes their bits ABI: bit 31 a back end, bit 30 capture, bit 29 a front end with no host buffer. One schema covers gs201 and zumapro. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
The AoC's sound card names its DAIs by the AoC node and one cell, the entry point or port from dt-bindings/sound/google,aoc.h. Allow the property on the AoC. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
The Pixel 9a has two TAS2572s on one TDM back end, so each needs a prefix for its controls and widgets. dai-common.yaml defines sound-name-prefix, but this schema ends in additionalProperties: false, so list it. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
Follow google,gs201-aoc-sound.yaml: a link gives its link-name and its AoC DAI, <&aoc PORT>, and the driver derives the rest from the cell as Google's device trees set it. A back end (bit 31) has no PCM and takes its port's stream operations and hardware parameters. A front end takes its AoC service name as the link's name and the component that serves its PCM from a table in stock's order: voice for EP5 playback and EP4 capture, compress for EP7, no-host, VoIP and in-call by their kind, plain PCM for the rest; all but the in-call family are DPCM front ends. Bit 30 makes a link capture-only, otherwise it is playback-only. The same table sorts the front ends, so the PCM number is still the entry point. The card's name comes from model, and codec prefixes from sound-name-prefix, which ASoC applies itself. The path and the PCM components lose their device tree nodes. aoc_alsa_dev_util creates their devices when it loads: the path's as a child of the AoC device, because ASoC takes a component's node from its device's parent when the device has none, which resolves <&aoc PORT> to the path's DAIs; the PCM components' by name, which the links use. For every link of the Pixel 9a's card, the old properties and the new derivation give the same link name, stream name, id, no_pcm, dynamic, direction, operations, fixup, platform, format and codecs, in the same order. The headset jack, clocks and HAC amplifier the driver also reads are left as they were; this card uses none of them. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
The AoC is the DAI provider of its sound card, one cell naming the entry point or port. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
The Pixel 9a's speakers and microphones go through the AoC: its entry points for playback and capture, and its TDM 0 back end to the two TAS2572 amplifiers (Top and Bottom, by sound-name-prefix), with the format stock uses on each back end. The model is the card name UCM and WirePlumber match, google,tegu-aoc-snd-card, each link keeps the stream name UCM finds its PCM by as link-name, and the node is sound-aoc, which is part of PipeWire's node names. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
80940e0 to
01d4833
Compare
|
Out of draft. All six commits now carry W4HO's |
aoc_compr_offload_pointer() fills a struct snd_compr_tstamp64, whose copied_total and pcm_io_frames are __u64, but its debug line still printed them with %u. clang's -Wformat flags both at W=1: aoc_alsa_compr.c:671:36: warning: format specifies type 'unsigned int' but the argument has type '__u64' (aka 'unsigned long long') Print them with %llu. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
|
CI's W=1 check failed on this branch with two |
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham. The series follows the decision exactly: #sound-dai-cells on the AoC node with no path node, one binding for both SoCs, the port bits defined in the header, and the driver name, the card's model, the node name and the link names kept, so UCM, WirePlumber and the speaker protection still find everything. Your 9a run, with the same PCMs at the same numbers as the 10-26 card and both amplifiers' widgets on under the new prefixes, is a good first check.
About the red CI: it isn't your change. The two -Wformat warnings in aoc_alsa_compr.c are in aoc_compr_pointer(), which you didn't touch: %u for copied_total and pcm_io_frames, which are 64-bit in snd_compr_tstamp64. The gate fails any warning in a file a PR touches, and you touched that file to drop its match table. If you add a one-line commit before the driver commit that makes both %llu, CI goes green and a real format bug goes away. Otherwise I'll merge past it.
Two things before it merges:
- Please add
#sound-dai-cells = <1>;to the AoC node ings201.dtsitoo, in a commit like your zumapro one. The binding now documents it for both SoCs, and the overlay in omarchy-mobile#1091 should only add the card, not describe the AoC node. #1091 can then drop its&aocfragment. - This and #1091 have to switch together: with this driver, the 7 Pro's current overlay gives no card at all, and #1091's overlay gives none on today's kernel. I'll plan that merge myself: both the same day, a 7 Pro run of the pair (card, PCM numbers, speaker, mic, speaker protection), and the device package that carries the overlay published no later than the kernel package.
On your three questions, my leaning, and I'll confirm. Leave clks, hs_jack and hac_amp out of the binding for now, rather than freezing Google's names; the 7 Pro overlay keeps clks until it has a standard form. For raven, a gs101 entry belongs in a follow-up with raven's owner, together with raven's AoC node moving from its bring-up overlay into the kernel with a label, which is what the card's phandle needs. Raven only builds this card from a local overlay, so nothing published breaks, but I'll tell its owner before this merges. And yes, #1091 goes with this.
The AoC is the DAI provider of its sound card, one cell naming the entry point or port, as on zumapro. The binding documents the property for both SoCs, so a board's overlay only has to add the card and no longer needs to describe the AoC node. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
|
Pushed I'll take the |
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham. Both points are in: the %llu commit turned CI green (it crossed with my last comment, which asked for it), and gs201.dtsi now has the AoC's #sound-dai-cells, like zumapro. I checked the two PRs together, not each alone: with your branch merged onto today's omamobile and the 7 Pro's whole overlay list from #1091 applied, the card's compatible is the one the driver matches, the AoC has its one DAI cell, and all 53 links fit the binding; only the clks record sits outside it, as we agreed for now. The gate passes merged onto today's base too.
One small fix for a message that will land: 3a56681f names aoc_compr_offload_pointer(), but the debug line is in aoc_compr_pointer().
One new thing, not of your making: #1005 merged on 11-28 with the Pixel 7's copy of the old card overlay in panther's overlay list, so with this driver the Pixel 7 would have no card either. Your new card body works there unchanged, so I've asked on #1091 for panther's file to be converted in the same step.
The rest is mine: a 7 Pro run of this with #1091, and how the kernel and device packages reach release phones together. I lean towards a versioned pair of packages and will confirm. I'll tell the 8 Pro's and raven's owners before this merges, since their cards need a zuma and a gs101 entry later.
|
Decision on how this reaches release phones: a versioned pair with derekross/omamobile#1091. The first |
The top three commits of #162, split off as asked there: the two bindings (
sound/google,aoc-snd-card.yamlandsound/google,aoc-path.yaml) andzumapro-tegu's card node. This is stacked on #162, so it shows #162's 17 commits too until that lands.As Derek noted on #162, the bindings document Google's names as they are:
google-aoc-*compatibles without the vendor comma, and unprefixed properties (aoc-card-name,codec_cfg,of_drv).writing-bindings.rstasks us not to add those, and once a binding lands it is ABI. So this stays a draft until the names are settled once, together with the driver change, for both phones (the 7 Pro's card and the 9a's). The card node, by itself, merges with #187 if the Wi-Fi regulator block there and the card here are both kept.