Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp227059imm; Wed, 11 Jul 2018 01:03:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcLxVaJ/ka2qO20DmZhRLkW0AgYkPBdgiD+kIiQ4CnBouz/z55xnujZ1iV3GNFuxUJaOvZo X-Received: by 2002:a63:b02:: with SMTP id 2-v6mr20406219pgl.301.1531296235931; Wed, 11 Jul 2018 01:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531296235; cv=none; d=google.com; s=arc-20160816; b=DWw7IVplBkliK72HqgezzFlPLciTKpW3+FOipn8kk0cbuB9OsT6ZOCErRdWIsTIQe5 b5B2e1N5AQzzHCVsLp0dJ0x2B2cfexRudLUrWTs5M2+dE+MrAeydX6DPRW4/62ygBJq1 tlBV8RLKHC4nbaPAfREQbdHt2BcUyVT1ddmlx5dQVYiawU4AHBz4Tq5YNmBc892lyUFT RWNJVoZOE3aclVvZOXtGbJF6l92N/ybKjvmcTcggZMlzAn5Ff6kc2SZdz8nsMo9ulehF GRUIoKmvWPDq7E+zUG/TIol+qT8w+w6qc3EkM988SL7H8dND5IZ1C0zVHJxuYDcXIEPG iC5Q== 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=GvY7zkLfopDh3uQE2K59LJYU73SQb/5qBSdI/F55sqI=; b=0DHd1pz1O6V7XRoyEBr3M/iJLgoSaweFZIzYb9dqCvCnTp/SzEP/uzsxjWcdMJPIrY zcg3Gh93dZ7b8bt2PWpYmV79vKXCrwOSx4FD9Np6Pyrk8c1E61Z3fgcfL0/iGcVWgQup M1+lWxa4vRS9DvdLsXQGE5gjP983FC4hPj40ToW3bw8+ApZCFfqap5EjhKIXqu2h/0l9 0w8QszNC2f9hb5owh3kNG9zl5Tv/6t63RmUGkumaR2OHamknkLJgNqMvCqEwqW7b4vV8 /DAdPWIbv5Eb4yTvWtv/+Xz2k1tVXM+392dM7rhmT3mpEDn83CE72+sH8LUwvertLEjS VTlg== 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 n11-v6si19054334plg.230.2018.07.11.01.03.40; Wed, 11 Jul 2018 01:03:55 -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 S1726564AbeGKIFZ (ORCPT + 99 others); Wed, 11 Jul 2018 04:05:25 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51129 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbeGKIFZ (ORCPT ); Wed, 11 Jul 2018 04:05:25 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 5EC8D80576; Wed, 11 Jul 2018 10:02:21 +0200 (CEST) Date: Wed, 11 Jul 2018 10:02:18 +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: <20180711080218.GA21225@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="8t9RHnE3ZwKMSgU+" 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 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > 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. Ok, got it to probe... after dts fix and adding EPROBE_DEFFER to driver. Still can't get it to actually vibrate.=20 user@devuan:/sys/bus/platform/drivers/pwm-vibrator/vibrator$ sudo fftest /d= ev/input/event3 Force feedback test program. HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES Device /dev/input/event3 opened Features: * Absolute axes:=20 [00 00 00 00 00 00 00 00 ] * Relative axes:=20 [00 00 ] * Force feedback effects types: Periodic, Rumble, Gain,=20 Force feedback periodic effects: Square, Triangle, Sine,=20 [00 00 00 00 00 00 00 00 00 00 03 07 01 00 00 00 ] * Number of simultaneous effects: 16 Setting master gain to 75% ... OK Uploading effect #0 (Periodic sinusoidal) ... OK (id 0) Uploading effect #1 (Constant) ... Error: Invalid argument Uploading effect #2 (Spring) ... Error: Invalid argument Uploading effect #3 (Damper) ... Error: Invalid argument Uploading effect #4 (Strong rumble, with heavy motor) ... OK (id 1) Uploading effect #5 (Weak rumble, with light motor) ... OK (id 2) Enter effect number, -1 to exit 5 Now Playing: Weak Rumble Enter effect number, -1 to exit 0 Now Playing: Sine vibration Enter effect number, -1 to exit 5 Now Playing: Weak Rumble Enter effect number, -1 to exit ^C diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/o= map4-droid4-xt894.dts index 45305e8..c27fc87 100644 --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts @@ -159,13 +159,7 @@ =20 dais =3D <&mcbsp2_port>, <&mcbsp3_port>; }; -}; - -&dss { - status =3D "okay"; -}; =20 -&gpio6 { pwm8: dmtimer-pwm-8 { pinctrl-names =3D "default"; pinctrl-0 =3D <&vibrator_direction_pin>; @@ -192,7 +186,10 @@ pwm-names =3D "enable", "direction"; direction-duty-cycle-ns =3D <10000000>; }; +}; =20 +&dss { + status =3D "okay"; }; =20 &dsi1 { diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index 665da3c..debeb70 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c @@ -265,7 +271,7 @@ static int pwm_omap_dmtimer_probe(struct platform_devic= e *pdev) timer_pdata =3D dev_get_platdata(&timer_pdev->dev); if (!timer_pdata) { dev_err(&pdev->dev, "dmtimer pdata structure NULL\n"); - ret =3D -EINVAL; + ret =3D -EPROBE_DEFER; goto put; } =20 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltFuYkACgkQMOfwapXb+vK/GwCfQSwrRqHmWj9PksscqKKoiZe0 GNkAoIPXiK6v4gx+OFfegqT8u1XHasEK =RHBm -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--