* gpio-mcp23s08 DT usage with shared chip select
@ 2016-07-01 2:11 Nathan Williams
0 siblings, 0 replies; only message in thread
From: Nathan Williams @ 2016-07-01 2:11 UTC (permalink / raw)
To: linux-gpio@vger.kernel.org
Hi,
I'm using gpio-mcp23s08 for two MCP23S17 chips that use the same SPI
chip select (and different addresses).
My device tree contains:
&spi0 {
status = "okay";
bus-num = <0>;
num-cs = <2>;
cs-gpios =
<&portc 2 0>,
<&portc 3 0>;
gpio@1 {
compatible = "microchip,mcp23s17";
gpio-controller;
#gpio-cells = <2>;
microchip,spi-present-mask = <0x03>;
reg = <1>;
spi-max-frequency = <1000000>;
};
};
The driver registers both gpiochips but both are labelled "mcp23s17" and
I can't differentiate between the chips without probing the hardware.
I'd also like to be able to give each GPIO a name with gpio-line-names.
What's the best way to achieve this? Add support to the driver for child
DT nodes for each gpiochip?
Regards,
Nathan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-01 2:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01 2:11 gpio-mcp23s08 DT usage with shared chip select Nathan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).