Re: [PATCH v2 1/2] dt-bindings: spmi: Add Google LGA SPMI controller
From: Doug Anderson
Date: Wed Nov 25 2026 - 15:26:24 EST
Hi,
On Sun, Nov 15, 2026 at 10:02 AM vamshi gajjela
<vamshigajjela@xxxxxxxxxx> wrote:
>
> +allOf:
> + - $ref: spmi.yaml#
> +
> +properties:
> + compatible:
> + const: google,lga-spmi
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + resets:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - resets
> +
> +unevaluatedProperties: false
Looking at downstream usage, we may also want to add:
power-domains:
maxItems: 1
Since at least some instances of this IP are power-gated by a domain.
We probably also want to add:
interrupts:
maxItems: 1:
Even though the driver can work with polling (and I guess that's what
you do now), the interrupt should be wired up and the DT should
describe the hardware.
Neither of the two should be listed in "required".
> +examples:
> + - |
> + #include <dt-bindings/spmi/spmi.h>
> +
> + spmi@14853000 {
> + compatible = "google,lga-spmi";
> + reg = <0x14853000 0x100>;
Should the example address match an actual instance of the SPMI on
lga? From what I see, it could be:
reg = <0x3a1b0000 0x200>
...you'd want to update the unit address on the node name too, then.
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -25243,6 +25243,12 @@ T: git https://github.com/cschaufler/smack-next.git
> F: Documentation/admin-guide/LSM/Smack.rst
> F: security/smack/
>
> +SMARTDV SPMI CONTROLLER DRIVER
> +M: Vamshi Gajjela <vamshigajjela@xxxxxxxxxx>
> +L: linux-kernel@xxxxxxxxxxxxxxx
> +S: Maintained
> +F: Documentation/devicetree/bindings/spmi/google,lga-spmi.yaml
Instead of a separate maintainer entry, maybe just add this under
"GOOGLE TENSOR SoC SUPPORT" ?