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

Bjørn Mork bjorn at mork.no
Tue Nov 5 14:01:04 EST 2019


"Adrian Schmutzler" <mail at adrianschmutzler.de> writes:

> 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

That's missing the point. Regulators are superior if there is
controlling driver. E.g.
https://www.kernel.org/doc/Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt

See arch/arm/boot/dts/armada-385-linksys.dtsi for a nice, OpenWrt
relevant, example using this with a fixed regulator.

If you don't link anything to the regulator, then I agree that you might
as well use gpio-hog.  But I still don't see how you can call that a
superior solution.  It doesn't suck more or less.  I thought the ath79
conversion was all about using devicetree to document the boards ;-)



Bjørn

_______________________________________________
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