summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-mpc52xx.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-03-28 14:15:30 +0200
committerMark Brown <broonie@kernel.org>2021-03-29 17:29:07 +0100
commit413c601e8fd0e4adab67e0775dd84e63be6d803e (patch)
treed7e52b95fcdb17476bfae40b033bb207aeb0fff7 /drivers/spi/spi-mpc52xx.c
parent85c0ed12f72f1f39df76aefcfe3184c62cf47c3c (diff)
spi: pl022: User more sensible defaults
When using the device tree, which must be considered normal these days, in order to get some kind of normal functionality out of the PL022 users have to actively go into the device tree and edit the SPI clients like this: spi { compatible = "arm,pl022"; num-cs = <1>; cs-gpios = <&gpio 0 GPIO_ACTIVE_LOW>; foo@0 { compatible = "foo"; reg = <0>; pl022,interface = <0>; pl022,com-mode = <0>; }; }; Otherwise the PL022 will come up as a client (slave) and using polling mode. This is quite unintuitive and many users will get their device trees wrong. Alter the defaults such that we come up in host mode (master) and use interrupt mode. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20210328121530.1983081-1-linus.walleij@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mpc52xx.c')
0 files changed, 0 insertions, 0 deletions