Re: [PATCH 3/3] ARM: spitz: Use software nodes for the ADS7846 touchscreen
From: Linus Walleij <hidden>
Date: 2024-05-02 08:13:56
Also in:
linux-arm-kernel, linux-devicetree, linux-spi
From: Linus Walleij <hidden>
Date: 2024-05-02 08:13:56
Also in:
linux-arm-kernel, linux-devicetree, linux-spi
On Tue, Apr 30, 2024 at 9:04 AM Linus Walleij [off-list ref] wrote:
Convert the Spitz to use software nodes for SPI CS and the ADS7846 touchscreen following the pattern used in the TI platforms. The Spitz is the only user of the wait_for_sync() callback in the platform data, so define that this is a separate GPIO in the device tree bindings (previous patch) and handle this directly inside the ADS7846 driver instead. Add some infrastructure to the PXA boardfile common code to handle software nodes attached to the SPI bus instead of platform data. The SPI core will investigate the numner of GPIO handles to figure out the number of chipselects used on the platform, so no explicit encoding of the number of the number of chipselects is needed. Signed-off-by: Linus Walleij <redacted>
Andy's patch series makes the Spitz SPI much cleaner to begin with so I will hold this off and rebase on top of Andy's stuff once that is in. Yours, Linus Walleij