From mboxrd@z Thu Jan 1 00:00:00 1970 From: kaloz@openwrt.org (Imre Kaloz) Date: Wed, 22 Jun 2016 12:21:03 +0200 Subject: [PATCH] ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000 In-Reply-To: References: <1466509358-25498-1-git-send-email-zajec5@gmail.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 21 Jun 2016 17:23:18 +0200, Rafa? Mi?ecki wrote: > On 21 June 2016 at 16:29, Imre Kaloz wrote: >> On Tue, 21 Jun 2016 14:26:11 +0200, Rafa? Mi?ecki >> wrote: >> >>> On 21 June 2016 at 14:22, Imre Kaloz wrote: >>>> >>>> Is there any reason you are not handling this properly as a regulator >>>> with >>>> usb-nop-xceiv? >>> >>> >>> We can't use USB NOP PHY as we need a specific PHY driver for >>> Broadcom's >>> USB. >> >> >> I see. That shouldn't stop you from addressing the regulator part, tho >> ;) > > How? Be more specific please. > Instead of blindly enabling a GPIO, you should define that GPIO line as a fixed regulator and make the USB phy driver handle it. Take a look at http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7776ab70d75ff9857343e44e428744d81c30ce1b for example. Imre From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Imre Kaloz" Subject: Re: [PATCH] ARM: BCM5301X: Set GPIO enabling USB power on Netgear R7000 Date: Wed, 22 Jun 2016 12:21:03 +0200 Message-ID: References: <1466509358-25498-1-git-send-email-zajec5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed delsp=yes Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Florian Fainelli , Pawel Moll , Ian Campbell , Hauke Mehrtens , Russell King , open list , Rob Herring , "open list:BROADCOM BCM5301X ARM ARCHITECTURE" , Kumar Gala , "open list:BROADCOM BCM5301X ARM ARCHITECTURE" List-Id: devicetree@vger.kernel.org On Tue, 21 Jun 2016 17:23:18 +0200, Rafa=C5=82 Mi=C5=82ecki wrote: > On 21 June 2016 at 16:29, Imre Kaloz wrote: >> On Tue, 21 Jun 2016 14:26:11 +0200, Rafa=C5=82 Mi=C5=82ecki =20 >> wrote: >> >>> On 21 June 2016 at 14:22, Imre Kaloz wrote: >>>> >>>> Is there any reason you are not handling this properly as a regula= tor >>>> with >>>> usb-nop-xceiv? >>> >>> >>> We can't use USB NOP PHY as we need a specific PHY driver for =20 >>> Broadcom's >>> USB. >> >> >> I see. That shouldn't stop you from addressing the regulator part, t= ho =20 >> ;) > > How? Be more specific please. > Instead of blindly enabling a GPIO, you should define that GPIO line as= a =20 fixed regulator and make the USB phy driver handle it. Take a look at =20 http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?= id=3D7776ab70d75ff9857343e44e428744d81c30ce1b =20 for example. Imre