Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2308067ybm; Thu, 23 May 2019 14:54:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxq1pMHLrnIj4WfWzmy+4Y9vbxjHvJzYibtzOobRtsECEpNKM6gKzF3W8VwQVU+DGklPKFr X-Received: by 2002:a63:4754:: with SMTP id w20mr13093233pgk.31.1558648461975; Thu, 23 May 2019 14:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558648461; cv=none; d=google.com; s=arc-20160816; b=QLPj2rMospIlC0sw/eXL3usILCmk/4T+uMlLDl0y+G4OyhHNVKh7RYN3flua9ZvtfQ CFPPctby/L5k9srOGnsWdy8ZbYvKkav4zBhDJL5BP4JCg6KJeWrnaWbSSHiDrKdBqMFI 3uq8iUnxMkIw3StspmGP47blEhC5MM5WHzHDEJwIutH9/5NikUg/YGr9PoICgjBRYVFQ enXs0cbio8SJRhgiMxzvLyN54DO7CFYFcP8BVNwK1AyDg0VA5lom77ICRALnYUQ0RNSk CTSt84kPw2FCHOFXe1ayEEFOspkFMLzXTTICdeaR1UaNs5+VCSE1AXWkPYz8D4nT8wtq yiuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to:dkim-signature; bh=EEx6+r+EW8Gn9LAjThkYPyrhI3Zs+zGHNmTtqinmKv4=; b=ELSWjBB4ctw6ni8/MFgffZqahpXSlIXT3kOiIJ8ZT2LK0yONwGX2il5EvUKekU2XwD 4AgF96NFw4/5vqBwlO0CocQ38hA2Yyv3XRwdFHkwnFv+PVHHgYix++vifPoAmpY3IWII Pa8rcX+dQAytHGwBZ33T2DrOg7j84wuwAaUtpAxpZnUnKyHpCdfGaU63cHC+DPbBD/DQ 7qOB4hn9ZwWGxuS9/fZ9C65YlPmiKeD0GCfD+NMFFHRwgx2pfn6Ala2A0fCOnSEP+V1o O3Rm8qNtB4+xBOdF/3hDsZIxZHI4lt19hk8O4MgK0uHEAUmMX3JbzYS386UPm1pMy1KI HzWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@akkea.ca header.s=mail header.b=lydjv4HV; 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 f34si1177894pgm.114.2019.05.23.14.54.05; Thu, 23 May 2019 14:54:21 -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; dkim=pass header.i=@akkea.ca header.s=mail header.b=lydjv4HV; 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 S2388293AbfEWVw6 (ORCPT + 99 others); Thu, 23 May 2019 17:52:58 -0400 Received: from node.akkea.ca ([192.155.83.177]:49564 "EHLO node.akkea.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387709AbfEWVw5 (ORCPT ); Thu, 23 May 2019 17:52:57 -0400 Received: by node.akkea.ca (Postfix, from userid 33) id EE1D44E204B; Thu, 23 May 2019 21:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1558648376; bh=EEx6+r+EW8Gn9LAjThkYPyrhI3Zs+zGHNmTtqinmKv4=; h=To:Subject:Date:From:Cc:In-Reply-To:References; b=lydjv4HV77oK6COWSrTB1aH1fzxQCpWZn3f9c5YJdUPbwSs9j4jrs+wewljakLQ7n SuVyaPb07lQ5iHRWYIVaoMcXhR2PcSdEsn9Gj4eL9enTjgl4octPYeaEFmGc7eJJ+x uVBAjCgayvFpSuhgomr0JoIhmwvSb+a0fFBEHF90= To: Pavel Machek Subject: Re: [PATCH v13 2/4] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit X-PHP-Originating-Script: 1000:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 23 May 2019 14:52:56 -0700 From: 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 In-Reply-To: <20190523191922.GA3803@xo-6d-61-c0.localdomain> References: <20190520142330.3556-1-angus@akkea.ca> <20190520142330.3556-3-angus@akkea.ca> <20190523191922.GA3803@xo-6d-61-c0.localdomain> Message-ID: <9626cd324eaaab2b49c37cf3c824aa5e@www.akkea.ca> X-Sender: angus@akkea.ca User-Agent: Roundcube Webmail/1.1.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, On 2019-05-23 12:19, Pavel Machek wrote: > 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 = "pwm-leds"; >> + >> + haptic { >> + label = "librem5::haptic"; >> + pwms = <&pwm2 0 200000>; >> + active-low; >> + max-brightness = <255>; >> + power-supply = <®_3v3_p>; >> + }; >> + }; > > You can take a look at N900, that has reasonable interface. > I wanted to control the haptic with the pwm-vibra driver but "fsl,imx27-pwm" doesn't seem to respect the PWM_POLARITY_INVERTED flag so when I start the system the vibrator is full on. I could use gpio-vibrator but that seemed like a waste when the device is connected to pwm. I figured the using the pwm-leds interface was a reasonable compromise until I had an opportunity to make changes the the imx27-pwm driver. Thanks Angus > Thanks, > Pavel