Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2321364ybm; Thu, 23 May 2019 15:07:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzM1DOX3UmPX8yrw0iLw2Fmq8wCXX42/o8HjZxU4AIZN93cPAwMuvlbAuBH0ic9Ma/A5IRT X-Received: by 2002:a63:db4e:: with SMTP id x14mr86391321pgi.119.1558649263447; Thu, 23 May 2019 15:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558649263; cv=none; d=google.com; s=arc-20160816; b=RI+IR/FNVNt8knoxInrOJL69v0CTdUBft4/7rcUg0tiCtUbjSNX22L2tNoDW35uG/O 2c6FQB5agiuqiv6zUprOpK4HCackl4tt0BLqaPjNSzBD8Lh3fXWZ9HEs++3a1sDmmuNX BcUCjs22W9VYGrFgqNXOGleRMhF3qN+jya6JvyBlkWrLlyEZD7Ig3uAuZ5PDPHPj8cQR rikr+UBdAlMkPyxbkqsUpOIACQ4gyfhSydDo+h6IsHn5yQJimf7RPyce3egcCnVg1dEk VSBahKrkcvi56xFpI4pzdDl+P8fpJvXdbsE6P6V3i1FajarQZqHS3BFP3xJ7ecVhKzxF Xt7A== 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; bh=U6+H5YECbFs2THqPP0bg6pGe59G/Bv1x+nCSr9fbOr0=; b=Kn+ODijVhGAvT7DHFks06iv7Nduwby/L0c3F2kw9K6axKC1D/RNMhSDIUSa0Fv2xvg /p1x9Gi+LjQUhFRohgAlfzoyizqm60LaoKuqrPzU+yk9wmMtQi0bmvWq80hf2Uj8LY1W ZBfoUDX1DG9vtruD+7fObBfRN0Y23JIB9/O5SZMUeWY7hPpRBoPqx+pjDSvz9UaAiXXT ILmNCTv59LXSTZcnYHtN3YlF/8W5kpLNDiTtJZJnv8P72tBSc0mtteiFlShmp/ef6dvy QtkvzV9iDvI6EHGcYfr4t3R77ZbzR3oNe7Uz0nXl4ac4BS0o0KAJdi8PC4MQ9rKG/DII m/aw== 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 o8si1281620pgc.137.2019.05.23.15.07.26; Thu, 23 May 2019 15:07:43 -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 S2388331AbfEWWGO (ORCPT + 99 others); Thu, 23 May 2019 18:06:14 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46442 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387616AbfEWWGN (ORCPT ); Thu, 23 May 2019 18:06:13 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 02EB0803D1; Fri, 24 May 2019 00:06:00 +0200 (CEST) Date: Fri, 24 May 2019 00:06:10 +0200 From: Pavel Machek To: Angus Ainslie Cc: angus.ainslie@puri.sm, Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH v13 2/4] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit Message-ID: <20190523220610.GB15523@amd> References: <20190520142330.3556-1-angus@akkea.ca> <20190520142330.3556-3-angus@akkea.ca> <20190523191922.GA3803@xo-6d-61-c0.localdomain> <9626cd324eaaab2b49c37cf3c824aa5e@www.akkea.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: <9626cd324eaaab2b49c37cf3c824aa5e@www.akkea.ca> 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 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>This is for the development kit board for the Librem 5. The current > >>level > >>of support yields a working console and is able to boot userspace from > >>the network or eMMC. > >> > >>Additional subsystems that are active : > > > >>- haptic motor > > > >Haptic motor is not a LED. It should be controlled by input subsystem. > > > >>+ pwmleds { > >>+ compatible =3D "pwm-leds"; > >>+ > >>+ haptic { > >>+ label =3D "librem5::haptic"; > >>+ pwms =3D <&pwm2 0 200000>; > >>+ active-low; > >>+ max-brightness =3D <255>; > >>+ power-supply =3D <®_3v3_p>; > >>+ }; > >>+ }; > > > >You can take a look at N900, that has reasonable interface. >=20 > I wanted to control the haptic with the pwm-vibra driver but "fsl,imx27-p= wm" > doesn't seem to respect the PWM_POLARITY_INVERTED flag so when I start the > system the vibrator is full on. Ok, lets fix that :-). > I could use gpio-vibrator but that seemed like a waste when the device is > connected to pwm. >=20 > I figured the using the pwm-leds interface was a reasonable compromise un= til > I had an opportunity to make changes the the imx27-pwm driver. I guess in such case it would be best to leave out this section for now... or keep it disabled / something. We don't want incorrect device trees to stick around. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --+g7M9IMkV8truYOl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlznGVIACgkQMOfwapXb+vKN/gCfWaysTUeuBj2xcwWEq2OylDMS zFsAnRLEFwUNhwGErAbVlCaxo8N8aM47 =iExp -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl--