Florian Fainelli e19c1272c8
spi: bcm2835: Restore native CS probing when pinctrl-bcm2835 is absent
The lookup table forces the use of the "pinctrl-bcm2835" GPIO chip
provider and essentially assumes that there is going to be such a
provider, and if not, we will fail to set-up the SPI device.

While this is true on Raspberry Pi based systems (2835/36/37, 2711,
2712), this is not true on 7712/77122 Broadcom STB systems which use the
SPI driver, but not the GPIO driver.

There used to be an early check:

       chip = gpiochip_find("pinctrl-bcm2835", chip_match_name);
       if (!chip)
               return 0;

which would accomplish that nicely, bring something similar back by
checking for the compatible strings matched by the pinctrl-bcm2835.c
driver, if there is no Device Tree node matching those compatible
strings, then we won't find any GPIO provider registered by the
"pinctrl-bcm2835" driver.

Fixes: 21f252cd29f0 ("spi: bcm2835: reduce the abuse of the GPIO API")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20250401233603.2938955-1-florian.fainelli@broadcom.com
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-04-02 12:55:32 +01:00
..
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2025-02-03 19:24:44 +00:00
2024-11-20 12:23:06 -08:00
2024-09-30 01:12:21 +02:00
2025-03-11 13:11:29 +00:00
2024-12-09 13:14:36 +00:00
2024-10-07 14:53:15 +01:00
2025-02-12 17:38:46 +00:00
2024-10-07 14:53:15 +01:00
2024-09-30 01:12:21 +02:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2024-09-30 22:43:40 +01:00
2024-10-07 14:53:15 +01:00
2025-03-13 14:15:54 +00:00