[OpenWrt-Devel] [PATCH v2] ath79: use gpio_hog instead of gpio-export

Enrico Mioso mrkiko.rs at gmail.com
Tue Nov 5 17:06:48 EST 2019


BTW, being able to toggle on and off USB power is essential in some cases. Can this be done with hog? Thanks!
E
 



> Il giorno 5 nov 2019, alle ore 17:44, Adrian Schmutzler <mail at adrianschmutzler.de> ha scritto:
> 
> Hi,
> 
>> -----Original Message-----
>> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org] On
>> Behalf Of Bjørn Mork
>> Sent: Dienstag, 5. November 2019 17:38
>> To: Adrian Schmutzler <freifunk at adrianschmutzler.de>
>> Cc: openwrt-devel at lists.openwrt.org; Birger Koblitz <mail at birger-koblitz.de>
>> Subject: Re: [OpenWrt-Devel] [PATCH v2] ath79: use gpio_hog instead of gpio-
>> export
>> 
>> Adrian Schmutzler <freifunk at adrianschmutzler.de> writes:
>> 
>>> This patch converts all DTS files with settings that normally do
>>> not need user interaction, e.g. power for external USB ports, to
>>> gpio_hog.
>> 
>> Wouldn't it be better to map these as fixed regulators?  Then you could
>> eventually link them to the connected ports/controllers, and allow them
>> to be automatically turned off when not needed.
> 
> I'm no expert for this stuff.
> 
> But, based on the discussion here, the opposite has been identified as superior solution (discussing nand subtarget):
> https://github.com/openwrt/openwrt/pull/2184#discussion_r342136635
> 
> Despite, I remember a comment that fixed regulators won't be available on all SOCs...
> 
> Best
> 
> Adrian
> 
> 
>> 
>> 
>> Bjørn
>> 
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel at lists.openwrt.org
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list