On Wed, Dec 2, 2009 at 8:53 AM, Olof Johansson <olof@xxxxxxxxx> wrote: > On Wed, Dec 02, 2009 at 08:07:21AM -0700, Grant Likely wrote: > >> Oh, and speaking of GPIOs, there is a binding for describing GPIO pin >> connections in the device tree: >> Documentation/powerpc/dts-bindings/gpio/gpio.txt > > That binding is more about documenting a bank of GPIO pins, while > chips like OMAP will need something a bit more flexible. > > Given the flexibility and complexity of configuring the pins on > mobile-oriented SoCs where each function can come out a variety of > different pins, and many pins can 3 or 4 functions associated with them > (selected by software config), it will definitely bring a new level of > complexity to the device tree descriptions. Ah, you're talking about pin muxing configuration, right? Yes, that GPIO binding deals with controllers, not pin mux. Pin mux is very much an SoC specific thing that isn't mapped easily to a generic binding. On the 5200, I haven't attempted to describe pin-mux in the device tree at all, and have either expected firmware to set it up correctly, or fixed it up in the platform code. > I'm definitely not saying that it is impossible, but it might take a > little work to hash out a binding that everyone will be happy with. Right. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html