From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610AbdCVV7z (ORCPT ); Wed, 22 Mar 2017 17:59:55 -0400 Received: from muru.com ([72.249.23.125]:41340 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbdCVV7l (ORCPT ); Wed, 22 Mar 2017 17:59:41 -0400 Date: Wed, 22 Mar 2017 14:59:36 -0700 From: Tony Lindgren To: Sebastian Reichel Cc: Kishon Vijay Abraham I , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Marcel Partap , Michael Scott Subject: Re: [PATCH] phy: cpcap-usb: Add CPCAP PMIC USB support Message-ID: <20170322215935.GG10760@atomide.com> References: <20170317035152.18307-1-tony@atomide.com> <20170322021828.wkbx3es6dpuur42y@earth> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170322021828.wkbx3es6dpuur42y@earth> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Sebastian Reichel [170321 19:20]: > Hi, > > On Thu, Mar 16, 2017 at 08:51:52PM -0700, Tony Lindgren wrote: > > Some Motorola phones like droid 4 use a custom CPCAP PMIC that has a > > multiplexing USB PHY. > > > > This USB PHY can operate at least in four modes using pin multiplexing > > and two control GPIOS: > > > > - Pass through companion PHY for the SoC USB PHY > > - ULPI PHY for the SoC > > - Pass through USB for the modem > > - UART debug console for the SoC > > > > This patch adds support for droid 4 USB PHY and debug UART modes, > > support for other modes can be added later on as needed. > > > > Both peripheral and host mode are working for the USB. The > > host mode depends on the cpcap-charger driver for VBUS. > > > > VBUS and ID pin detection are done using cpcap-adc IIO ADC > > driver. > > I tested UART, USB slave (cdc-ether) & USB host (keyboard & touchpad > from Atrix lapdock) mode with Droid 4: > > Tested-by: Sebastian Reichel Thanks for testing. I'll repost v2 shortly with a minor change to use iio_read_channel_processed() instead of iio_read_channel_scale() as the ADC values are processed in the driver and not scaled by the IIO framework. Regards, Tony