Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp244746imm; Wed, 11 Jul 2018 01:27:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0wKpyg+g/m/boIe2T9xPZmtN2JRkVEAnZ0Ytc64Wbbm0TScb950dlHZ8Gjn9e7wkh5hCW X-Received: by 2002:a63:8f03:: with SMTP id n3-v6mr25995811pgd.166.1531297667535; Wed, 11 Jul 2018 01:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531297667; cv=none; d=google.com; s=arc-20160816; b=gb54H6ohPjO0TdReqsSA/rCEUARYQlnN7N8LRMi43ThydtYUXj+cQ0wivfZ4taubuy VAnurHApt5zWafjPhUh+q9TXuJwtxV4bfLk9E2mG3lwqZ7lo+z7ftAk30m+WBjf1URed zq6GUqYizwjK8C7lXp0P5JZ00alKs9w45fkNRai198TQgJS/36eS93tvnppQKTcsjw4s xLPnLnzfKUZrGIlYLr8mQjqOdFp2QJqyVdvJ6VcPggO8JTNPmMyr43hrTe8oEkbAcQ6s NzTNz4LxZPTgg1i6Z2q2dryGh2oxro8/0rpU/sCah9R7uH4jmfKIBjj110HhFxaDWwq8 UnSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=2/6PvpzYQY7e+oi2VVnASSxhR0+Sttozp3uV7gCNqJs=; b=X4LERFpdHfBtOxKnG4SB5WeTrop/GN67VyN6LUxqM43VE1NvtY8uMbApm6SpR2SyhK IHWu1es0whTFIhwiod/lR9nnhQRD80ty7jlrCRSv4JfSE4JSVDI6s5OWLt/uabDJHdqh 3Uat2WQbJKOhEi96CYD2INSo/znSFh4oRMmy0+Bo6Lq2tF8Ojtk3OYtwBGaelmnqioSk VdxLZIBHDp63Gg/Wwjsm38HEXBP94aUzcsfaFwdsGg+zf3dD+NH5wOmQeZ+LvifTACzA wjq/TWIrPvkqXCFcbKY1dUm9VytecCW8GjaDvepdeqwXsie5HnSgBQgldPh9K1LT+TiP ttZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11-v6si18121498pln.442.2018.07.11.01.27.31; Wed, 11 Jul 2018 01:27:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732358AbeGKI3C (ORCPT + 99 others); Wed, 11 Jul 2018 04:29:02 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51623 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbeGKI3C (ORCPT ); Wed, 11 Jul 2018 04:29:02 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 44995804B7; Wed, 11 Jul 2018 10:25:53 +0200 (CEST) Date: Wed, 11 Jul 2018 10:25:50 +0200 From: Pavel Machek To: Sebastian Reichel Cc: kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org Subject: Re: Vibrations on Droid 4? Message-ID: <20180711082550.GB21225@amd> References: <20180709081534.GA6799@amd> <20180709214910.tes6u4ivxomd3aja@earth.universe> <20180709220211.GA7760@amd> <20180710101147.lyu65ro4czvrs2da@earth.universe> <20180710133040.GA4391@amd> <20180710161123.azym6sbboriuj4yc@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: <20180710161123.azym6sbboriuj4yc@earth.universe> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-07-10 18:11:23, Sebastian Reichel wrote: > Hi, >=20 > On Tue, Jul 10, 2018 at 03:30:40PM +0200, Pavel Machek wrote: > > On Tue 2018-07-10 12:11:47, Sebastian Reichel wrote: > > > On Tue, Jul 10, 2018 at 12:02:11AM +0200, Pavel Machek wrote: > > > > > > Do you have vibrations on d4 working? > > > > > > I believe I have required drivers enabled, but no luck: > > > > > >=20 > > > > > > user@devuan:/sys/bus/platform/drivers$ ls pwm-vibrator/ > > > > > > bind uevent unbind > > > > > > user@devuan:/sys/bus/platform/drivers$ ls omap-dmtimer-pwm/ > > > > > > bind uevent unbind > > > > >=20 > > > > > Have you checked probe deferrals? > > > >=20 > > > > Not really. Is there easier way to do that than adding printks in t= he > > > > probe function? (I can go through dmesg tommorow). > > >=20 > > > Option 1: https://lkml.org/lkml/2018/7/8/63 > >=20 > > I tried this methodq, and no luck. > >=20 > > static int pwm_omap_dmtimer_probe(struct platform_device *pdev) > >=20 > > does not seem to be called. > >=20 > > Its parent is gpio@4805d000 , and that one seems to be present. > >=20 > > user@devuan:/sys/bus/platform/devices$ ls 4805d000.gpio > > driver driver_override gpio > > gpiochip5 modalias of_node power subsystem uevent >=20 > Sorry, something went wrong with merging this. The parent > of ti,omap-dmtimer-pwm and pwm-vibrator should be / and > not gpio6. There's still something wrong with pinctrl... I guess. Pavel [ 0.973907] phy-mapphone-mdm6600 usb-phy@1: could not find pctldev for n= ode /ocp/l4@4a000000/sc m@100000/pinmux@40/pinmux_usb_mdm6600_pins, deferring probe [ 0.990295] pinctrl-single 4a100040.pinmux: 203 pins, size 406 [ 0.996643] pinctrl-single 4a31e040.pinmux: 28 pins, size 56 [ 1.003234] pinctrl-single 4a31e040.pinmux: mux offset out of range: 0x1= 8e (0x38) [ 1.010986] pinctrl-single 4a31e040.pinmux: could not add functions for = pinmux_vibrator_directi on_pin 398x [ 1.020996] dmtimer_probe [ 1.023712] dmtimer_probe: have timer [ 1.027526] omap-dmtimer-pwm dmtimer-pwm-8: dmtimer pdata structure NULL [ 1.034484] pinctrl-single 4a31e040.pinmux: mux offset out of range: 0x1= 90 (0x38) [ 1.042175] pinctrl-single 4a31e040.pinmux: could not add functions for = pinmux_vibrator_enable_pin 400x [ 1.051910] dmtimer_probe [ 1.054626] dmtimer_probe: have timer [ 1.058441] omap-dmtimer-pwm dmtimer-pwm-9: dmtimer pdata structure NULL [ 1.068725] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 70.264739] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host [ 80.093811] omap-dmtimer-pwm dmtimer-pwm-9: requested duty cycle: 375005= 7 ns, period: 10000000 ns [ 80.102996] omap-dmtimer-pwm dmtimer-pwm-9: clk rate: 26000000Hz [ 80.109252] omap-dmtimer-pwm dmtimer-pwm-9: effective duty cycle: 375003= 8 ns, period: 10000000 ns [ 80.118530] omap-dmtimer-pwm dmtimer-pwm-9: load value: 0xfffc0860 (-260= 000), match value: 0xfffd853c (-162500) [ 80.129089] omap-dmtimer-pwm dmtimer-pwm-8: requested duty cycle: 100000= 00 ns, period: 10000000 ns [ 80.138336] omap-dmtimer-pwm dmtimer-pwm-8: clk rate: 26000000Hz [ 80.144561] omap-dmtimer-pwm dmtimer-pwm-8: duty cycle 10000000 ns is to= o long for period 10000000 ns at clock rate 26000000 Hz [ 80.156433] omap-dmtimer-pwm dmtimer-pwm-8: using maximum of 1 clock cyc= le less than period [ 80.165069] omap-dmtimer-pwm dmtimer-pwm-8: effective duty cycle: 999996= 2 ns, period: 10000000 ns [ 80.174621] omap-dmtimer-pwm dmtimer-pwm-8: load value: 0xfffc0860 (-260= 000), match value: 0xfffffffe (-2) [ 100.344970] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltFvw4ACgkQMOfwapXb+vKkuQCdGZDNt8z6ejt8g0NhKRDXkWEo +S4AnjDvniH99LlLkWRZUI/XeTGQTrnZ =p1p7 -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--