[From nobody Thu Jun 25 05:55:42 2020
Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544])
 by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux))
 id 1j5yo4-0003aA-E7
 for openwrt-devel@lists.openwrt.org; Sun, 23 Feb 2020 21:28:57 +0000
Received: by mail-ed1-x544.google.com with SMTP id p14so9539432edy.13
 for &lt;openwrt-devel@lists.openwrt.org&gt;; Sun, 23 Feb 2020 13:28:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=pI527tJocYP/MsxutXBiNNUhMbP2oUiispaeukDAJBg=;
 b=b9S8yNitwEKWCCA/ulAc+0ML40XGFTgszcoYkvmwQjqAAvsnyxsRWmbNAS0MVK4Pzs
 xr4uOUWBCW3EfQ2ODD1EX54NHhDJ95iorQwkMN7a7B7xKmJuzFOL+Hi3TPDkIqQBljfZ
 wKxh5W8w1w3KeuVA9LfTzfcI9sCMQu4Ho+dEsLOAif6aWD+z7+2jOVyjmRaTzw7rBQsL
 rJ4AkYMBiS0xeAWpSqFiNxlsxYaj9VkZeBiYnKvCtYciblfn9b//ipvby/J3r9UiXYF0
 P7ek5NUZ/yEnD/FPvIiTgiEQx7ifGZuyDwNcY7kkzS5jo27aFnYBFYDHdWXHmXYUO84b
 PRJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=pI527tJocYP/MsxutXBiNNUhMbP2oUiispaeukDAJBg=;
 b=pMFg09jUjQWq2JzHCPiVslX+ayL1vwiosES6fDky1c4WtcoOhWWfTd0IQREiXb2nUJ
 3s+RvS7eCxE0vDQX4qbhlt+f37ugnN9yN1H4IuvfUHHMS0eHdXP499HxyXPvaRsXgyZO
 OTo8INvpIDq2UWoj0oSUs6hmRirhiP9nmGHzxN/2tMM6hz6IoHeCQg45obmDoqOwczcY
 tTMR5SFSnaNnmiTQSZjDRBhqVaP2qlCE74Oe9G/RuWuGakUT7e9d35XgvYU2+f7qBtIi
 JCMw70S1e5yc/Iwishu1mVwcWpwC1Vfcj02O+/h3co4JvdGnY3PBy6k5ZGzSxuVmZFi5
 f0cw==
X-Gm-Message-State: APjAAAVjoh5xgV7+fYauPubWNkcHr1xsrX7W5hRuoKaMEbdi60Qq4Jtw
 bxM0VCREY8yz6LYkfyFD2UxdPF9htojAsA2R6Pc=
X-Google-Smtp-Source: APXvYqzt8bmL2vyU+wuBynBDaPoUSSdjBIk+3KKdN1SJFgARBr3aW2F9OpYI7rEdbmI/z/RE4+8+53nXhcUlME06enE=
X-Received: by 2002:a05:6402:1a4e:: with SMTP id
 bf14mr41693308edb.365.1582493333988; 
 Sun, 23 Feb 2020 13:28:53 -0800 (PST)
MIME-Version: 1.0
References: &lt;002e01d5ea82$ac0e8b20$042ba160$@adrianschmutzler.de&gt;
In-Reply-To: &lt;002e01d5ea82$ac0e8b20$042ba160$@adrianschmutzler.de&gt;
From: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Date: Sun, 23 Feb 2020 22:28:43 +0100
Message-ID: &lt;CAFBinCDCCoFrmKBCovCVBVPz3gdRza3jZ7JMh+rLpkjCeNfw4g@mail.gmail.com&gt;
Subject: Re: [OpenWrt-Devel] gpio-export,output and GPIO_ACTIVE_*
To: mail@adrianschmutzler.de
Cc: openwrt-devel@lists.openwrt.org
Content-Type: text/plain; charset=&quot;UTF-8&quot;
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20200223_132856_500185_81EDEB1D 
X-CRM114-Status: GOOD (  10.99  )
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:544 listed in]
 [list.dnswl.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider [martin.blumenstingl[at]googlemail.com]
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain

Hi Adrian,

On Sun, Feb 23, 2020 at 8:52 PM &lt;mail@adrianschmutzler.de&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; when defining gpio-export nodes, I'm never really sure about how the values for &quot;gpio-export,output&quot; and GPIO_ACTIVE_HIGH/LOW in gpios have to be set up correctly in relation to each other.
&gt;
&gt; I also was not able to retrieve a particular system in how this is set up currently (for different devices).
&gt;
&gt; It would be nice if somebody could elaborate this to me (I've found several shorter explanations in the PR comments throughout GitHub, but they unfortunately were never comprehensive.)
I don't know about gpio-export

&gt; (And I assume the same logic will apply to gpio-hogs with output-low/high and gpios parameter?)
for gpio-hog there is documentation inside the kernel sources:
Documentation/devicetree/bindings/gpio/gpio.txt

I don't know why there are output-low, output-high, input properties
and if they are optional (meaning for example output-high can be
omitted when setting GPIO_ACTIVE_HIGH). when in doubt, ask on the
linux-gpio mailing-list


Regards
Martin

]