Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp518274yba; Fri, 12 Apr 2019 08:09:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/3ZsAggK0nrUcmtIMO9v2E2NT76hHEBuCz6GnVwaZ+7kbhZtK66Rq5TBhx01nnjEAygPo X-Received: by 2002:a17:902:2ae6:: with SMTP id j93mr41555262plb.18.1555081771593; Fri, 12 Apr 2019 08:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555081771; cv=none; d=google.com; s=arc-20160816; b=ybdnj0lPzbkFx+scEs3y9q6tf0ayRackDl55FENFpuatVaVicqX9QMMI83+5MuehtO zXpiZz2xH0dAJaSgEdDSb6e6EYtE34S90aJbDmgpqSDJtDz8IcbnJnDfw/7Cu9A/wrRz LsQSAjVmhn/lglqj3Jj4yno1dMYyKIBt/xZt6EOr6zo+Drgkl8BvzR9qfdsQpCiYJevA k/vFq8OgroPM+ygvG22WIwF8cZPp/IIBUDtQQCVChzsVgpdmcjIyLTwDkLKUR1TCWPDT K0gFNxwINheED/VzZ+R7DfRIa4/xfFEbpxoEwiQyuExnzjFjksRB9WYH3z36WEwK/SsH x4Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=vXIZ+kUKqfa+n3YT3tkjWHClpNXSP+LvEYHa+l4c3u8=; b=VuQUzNQp8ewrlfTmW8ZGG2fxyNnRFzSUZM445eUkLKrvKv3BXZQlSB5UXBSfY8Fg/e 9o9EavNtU86NMYnJ4L0o7uuAZi1NJQq3BmujHr+LrGCSh8oFCMb+anqJ+ticKP/9A567 F7xrva33zt4NLJVgV71WxijRrpgI5hxfEac9feyCl3M4VQSUPyKcKyB802Nu7x7vodul +HLGEObiB4AKYhNDYtnTtel6iCCJPZ8/ofHekBtLPz9Z5iEvUFLw/ymHushifWe7JTEc c2gQqcTIx6yohwXUq2+vs0M/oFhxin6yliX5rYMIF/d7bmUXfd/Mc3fIO719PTXUs+Rt trTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=hbaPVrQF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si30198864pff.216.2019.04.12.08.09.14; Fri, 12 Apr 2019 08:09:31 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=hbaPVrQF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbfDLPGu (ORCPT + 99 others); Fri, 12 Apr 2019 11:06:50 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:54058 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfDLPGt (ORCPT ); Fri, 12 Apr 2019 11:06:49 -0400 Received: from localhost.localdomain (91-115-28-155.adsl.highway.telekom.at [91.115.28.155]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id AFA3EC18E6; Fri, 12 Apr 2019 15:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1555081606; bh=xilMGDYcI7Yf/yFk9bgc3wG2Ba5kxUmIJ6hiMqHOhSw=; h=From:To:Cc:Subject:Date; b=hbaPVrQF3R5hUVjKO67GbDG8+iVdL50IWPNvH6mfzCmTUyAus8gNJqtgTr7F84KUl gpznWTkH5teNjW9pJsmzev8Qm3SuxhL9tc4CIIC+FmFEZkPiRFPBIXFDlkcKlgkWdQ 9DBeBx6gmN0blypRia9G3YaRG4oGpNqinuUHYNx0= From: Luca Weiss Cc: Dmitry Torokhov , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , Pascal PAILLET-LME , Coly Li , Lee Jones , Xiaotong Lu , Brian Masney , Rob Herring , Baolin Wang , David Brown , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), linux-input@vger.kernel.org (open list:INPUT (KEYBOARD, MOUSE, JOYSTICK , TOUCHSCREEN)...), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), Luca Weiss Subject: [PATCH v3 1/3] dt-bindings: input: add GPIO controllable vibrator Date: Fri, 12 Apr 2019 17:06:23 +0200 Message-Id: <20190412150625.28384-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Provide a simple driver for GPIO controllable vibrators. It will be used by the Fairphone 2. Signed-off-by: Luca Weiss --- .../bindings/input/gpio-vibrator.txt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/gpio-vibrator.txt diff --git a/Documentation/devicetree/bindings/input/gpio-vibrator.txt b/Documentation/devicetree/bindings/input/gpio-vibrator.txt new file mode 100644 index 000000000000..93e5a8e7622d --- /dev/null +++ b/Documentation/devicetree/bindings/input/gpio-vibrator.txt @@ -0,0 +1,20 @@ +* GPIO vibrator device tree bindings + +Registers a GPIO device as vibrator, where the vibration motor just has the +capability to turn on or off. If the device is connected to a pwm, you should +use the pwm-vibrator driver instead. + +Required properties: +- compatible: should contain "gpio-vibrator" +- enable-gpios: Should contain a GPIO handle + +Optional properties: +- vcc-supply: Phandle for the regulator supplying power + +Example from Fairphone 2: + +vibrator { + compatible = "gpio-vibrator"; + enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>; + vcc-supply = <&pm8941_l18>; +}; -- 2.21.0