Re: [PATCH v3 1/3] dt-bindings: spi: apple,spi: Add binding for Apple SPI controllers

From: Mark Kettenis
Date: Sat Nov 02 2024 - 04:40:54 EST


> Date: Sat, 2 Nov 2024 10:36:56 +0800
> Content-Language: en-MW
>
> On 2/11/2024 03:26, Janne Grunau via B4 Relay wrote:
>
> [...]
> > +properties:
> > + compatible:
> > + items:
> > + - enum:
> > + - apple,t8103-spi
> > + - apple,t8112-spi
> > + - apple,t6000-spi
> > + - const: apple,spi
> Apple A7-A11 SoCs seems to use a Samsung SPI block, so apple,spi is too
> generic. Fallback to something like apple,t8103-spi instead.

Well, if that is a Samsung SPI block it probably should have a
"generic" compatible that starts with "samsung,". The M1/M2
controllers have a different SPI block (presumably) designed by Apple
themselves. So I think it is (still) appropriate that that one is
"apple,spi".

Also, (upstream) U-Boot already uses the "apple,spi" compatible. So
changing it for purity sake just causes pain.