This is becoming big; can we please split this thread into 3 separate issues? AFAICS there's the original request to have DT audio nodes for Teres-I, then a discussion about gpio/pinctrl properties, and one about formal device tree verification. Nonetheless I'll add to points 1 and 3 here :) On Thu, Feb 14, 2019 at 01:12:44AM +0100, Harald Geyer wrote: > Hi Maxime! > > Maxime Ripard writes: > > On Wed, Feb 13, 2019 at 12:43:46PM +0100, Harald Geyer wrote: > > > Maxime Ripard writes: > > > > On Tue, Feb 12, 2019 at 08:37:36PM +0100, Harald Geyer wrote: [ GPIO discussion ] > I believe it should be possible to tell if a DT is valid, just be looking > at the binding documentation. Without looking on the linux source code > or other side channel information. > > As you write below, people are putting DTs into ROM. Which means that > IMO the DTs should actually be OS independent, so that people can use > different OSes on their equipment. This in turn requires the binding > documentation to be comprehensive. >From my view device trees are maintained in the linux kernel source just because it's the most active, vivid community, with established procedures on how to review and make changes. So yes, DTs should be OS agnostic, and ideally comply with a binding spec (sic!). It's simply pragmatic to do this on kernel.org. And yes, some DT formal verification spinning off of this would be a really good idea, to take ARM (et al.), Linux, and U-Boot further. [...] > > > > > But we need a way to control the mux from userspace and aside from > > > > > unbinding the ideas proposed thus far are: > > > > > > > > > > a) control the gpio directly > > > > > b) control the gpio via leds-gpio > > > > > > > > > > (a) was dismissed because we can't set a default from DT > > > > > (b) was dismissed because some rogue app might try to blink it Hey, this is a debugging hack. If some rogue app tries to blink it, so be it. > I suspect some distributions will pick up the patch I posted anyway, if > it doesn't get merged mainline. (This is how I forgot missing backlight > support - it just worked for too many people ...) If we ship > sun50i-a64-teres-i.dts with the proper nodes (but disabled), their > patches will be much easier to maintain as the official DT evolves. As I wrote (held by the list admin), I consider the whole console mux GPIO an U-Boot hack, and would put it into sun50i-a64-teres-i-u-boot.dtsi. (As a LED, see above :-) Would you care to submit a patch version without that GPIO handled? I think it's very useful and has the pontential to be agreed upon. Torsten