Re: [PATCH 2/9] dt-bindings: soc: google: Add Google Tensor CPM binding
From: Chen-Yu Tsai
Date: Thu Nov 12 2026 - 22:57:29 EST
On Fri, Nov 13, 2026 at 11:48 AM Brian Norris <briannorris@xxxxxxxxxxxx> wrote:
[...]
> If I do keep these as literal firmware IDs: does that mean you'd prefer
> these not be in dt-bindings/? Many of them (especially the IRQ IDs
> you're pointing at) are not needed at all in the kernel side; they serve
> more as naming documentation than anything else. I can just inline them
> into the DTS. But I'd prefer having macro names for LPCM IDs and
> similar, as it vastly helps DTS readability.
I think Krzysztof said as much when we added macros for MediaTek pinctrl
numbers. They are just symbolic names for easier reference. OTOH a binding
is a contract between the device tree and the software implementation.
And if it's not a binding, then it doesn't belong in the bindings directory.
What MediaTek did was put the header files together with the .dts files.
Hope that helps.
ChenYu