Message ID | 20250213204044.660-1-wachiturroxd150@gmail.com |
---|---|
Headers | show |
Series | spi: s3c64xx: add support exynos990-spi to new port config data | expand |
On Thu, Feb 13, 2025 at 2:41 PM Denzeel Oliva <wachiturroxd150@gmail.com> wrote: > > Add "samsung,exynos990-spi" dedicated compatible for the SPI controller > on Exynos990 SoC. This ensures proper representation of the hardware > in the device tree. > > Signed-off-by: Denzeel Oliva <wachiturroxd150@gmail.com> > --- Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> > Documentation/devicetree/bindings/spi/samsung,spi.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/spi/samsung,spi.yaml b/Documentation/devicetree/bindings/spi/samsung,spi.yaml > index 3c206a64d..1d3c95bd2 100644 > --- a/Documentation/devicetree/bindings/spi/samsung,spi.yaml > +++ b/Documentation/devicetree/bindings/spi/samsung,spi.yaml > @@ -24,6 +24,7 @@ properties: > - samsung,exynos4210-spi > - samsung,exynos5433-spi > - samsung,exynos850-spi > + - samsung,exynos990-spi > - samsung,exynosautov9-spi > - tesla,fsd-spi > - items: > -- > 2.48.1 > >
On 2/13/25 8:40 PM, Denzeel Oliva wrote: > - Added a default "fifo_depth = 64" to prevent crashes when "fifo-depth" > is missing in the device tree (avoids divide-by-zero issues). no, you shouldn't use fifo_depth as a fallback, it's misleading. fifo_depth shall be used only if all your SPI instances use the same FIFO size. If that's not the case, as in yours, you specify the FIFO depth via DT. You need to determine whether your IP works with 0 sized FIFOs and if not, make the the DT fifo-depth mandatory and check that its value is > 0. If the IP works with 0 sized FIFOs, you need to update the driver to allow that and let the fifo-depth property optional in DT.