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

From: Linus Walleij
Date: Tue May 12 2020 - 08:22:16 EST


On Thu, May 7, 2020 at 4:39 PM Doug Anderson <dianders@xxxxxxxxxxxx> 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...

Yours,
Linus Walleij