gpio-line-names in the DT and several mcp23s08

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have two MCP23S17 at one SPI CS. That means that one SPI client node in my DT creates two gpiochip instances. I cannot assign names to the GPIO lines, though, because each of these gpiochips actually uses just one common DT node:

 gpio gpiochip3: names 32 do not match number of GPIOs 16
 gpio gpiochip4: names 32 do not match number of GPIOs 16

I've already fixed a similar problem (several instances of a single subsystem struct within one SPI client) for regmap and pinctrl and gpiochip debugfs entries, but I don't know how to proceed here. There's a very good reason for mcp23s08 to register two separate gpiochip instances, after all. About the only thing which I can think of is walking the list of names once more from within mcp23s08_probe, or perhaps adding another DT property to also silence that warning. Or maybe changing my userspace code so that it does not use GPIO names :).

Thoughts?

With kind regards,
Jan

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux