[PATCH v4 1/6] drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Linux

Linus Walleij linus.walleij at linaro.org
Tue May 12 12:22:00 UTC 2020

On Thu, May 7, 2020 at 4:39 PM Doug Anderson <dianders at chromium.org> wrote:

> One suggestion that came off-list is to change the code to make the
> numbering match up better with the datasheet.  Right now if you want
> GPIO 2 you have to refer to it like:
> hpd-gpios = <&sn65dsi86_bridge 1 GPIO_ACTIVE_HIGH>;
> That's because the code right now numbers things starting at 0 even if
> the datasheet numbers things starting at 1.

This is the hallmark of mixed-mode IC engineers at work.
They are at heart analog IC designers so of course they
enumerate everything starting at 1.

Digital IC designers are like programmers and start on 0.

Never the twain shall meet...

Linus Walleij

More information about the dri-devel mailing list