Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp415814yba; Sat, 20 Apr 2019 05:25:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOFU8dD50FzdNvoQBBcnJ956OmBboFjIJIPZ0qUihG6sHpKKj7KcDrP6C7Lc0loHInZIWh X-Received: by 2002:a63:7f0b:: with SMTP id a11mr8491543pgd.234.1555763124848; Sat, 20 Apr 2019 05:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555763124; cv=none; d=google.com; s=arc-20160816; b=osxyYBWzsEvKkAWe0C6ptEBYuYWwggKkvkGOFy2aAItZ9jgzsLe+PiQSgkvla/D9D9 VMucjKDhKmpNnEHku8ZtdvJbYb0/4JcLAezDdJiBjAlBR+/RXcXl/u4g9hu5BzyPXEUq Tvs7Y0fhQbdgS3y4yEH+8Y2leUjGXYrphewitxc6YxFiRA2dADi8dtVJFZl/PVt5mt5T tDS0GnDm7W68I+4quPZAmbYrBDmnbIfgP1ErVvemuDqZJNX+lwN94juXAdQON6M//XFT 9thUTXeaCFOk9jgoxZSuYNSS8Lr2r+79izRLpV/XBoCK92d1pz6ZlhPzfJ73IMozLhWT 7hNw== 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=568rGUBBJfpjh3ANy6foWyLE+OZI/S7zxCLNx/7P+ak=; b=Dp6C21pUdCJktIaJ1/RaMDO2nxGvD9LnP8vRU+XFONgK5nQBJ/Avu62ptT5DM0jVjV SaCZ+pKurby2iicHDURws4+C+aivM/dEgkLIhwZqpD6+T1/Dm21OMybvfrHjk/VVy6WI qXB6dBnok9cgBv6Ww79AvJ/3/hIHilIL0Vb61euNQ6Iyy21H7mOOwW840NCkQNv9lOue lxJS3foU4utHtwh36IOVtKxmjyGyzyCfzZ6lDUxXkkJRmCG6WjA6i/PC4cuenvT0tYVe zcbfaPnsDySEHOai00G/yWbArnvANuZ6ptvBZgM8hbQ66yEsLDI+ns4al9/v0xzqXBAX 0asQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="W/vcSW1w"; 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 b3si8335707plc.236.2019.04.20.05.25.09; Sat, 20 Apr 2019 05:25:24 -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="W/vcSW1w"; 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 S1728235AbfDTMYQ (ORCPT + 99 others); Sat, 20 Apr 2019 08:24:16 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:46428 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbfDTMYQ (ORCPT ); Sat, 20 Apr 2019 08:24:16 -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 1F776C17A5; Sat, 20 Apr 2019 12:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1555763053; bh=U/6xQAEPyP1EsnAjW4EqK13j+ZKhfQvV0IwSY8CpWEk=; h=From:To:Cc:Subject:Date; b=W/vcSW1w5ZNHo1cbiwivBW18eUdf1jQrpGnDl20De+Ki/yO4QJSV2fi9NyxwkfVnd tXou1MywKLQKzAbL2DvVJs8yq1SbCDcC42AI7+iMGlD2u4hCC3BHAeZRz3IUumeAZ/ MF6U2Aaa09FsBxvXKpeoWusmV0kZaEGN9hCyLvP4= 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 v4 1/3] dt-bindings: input: add GPIO controllable vibrator Date: Sat, 20 Apr 2019 14:23:31 +0200 Message-Id: <20190420122333.23662-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 --- Changes from v3: - Convert .txt based doc to the new yaml based format .../bindings/input/gpio-vibrator.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/gpio-vibrator.yaml diff --git a/Documentation/devicetree/bindings/input/gpio-vibrator.yaml b/Documentation/devicetree/bindings/input/gpio-vibrator.yaml new file mode 100644 index 000000000000..bca1b6ea07a4 --- /dev/null +++ b/Documentation/devicetree/bindings/input/gpio-vibrator.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/input/gpio-vibrator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPIO vibrator + +maintainers: + - Luca Weiss + +description: |+ + Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO. + +properties: + compatible: + items: + - const: gpio-vibrator + + enable-gpios: + maxItems: 1 + + vcc-supply: + $ref: /schemas/types.yaml#/definitions/phandle + description: Regulator that provides power + +required: + - compatible + - enable-gpios + +examples: + - | + #include + + vibrator { + compatible = "gpio-vibrator"; + enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>; + vcc-supply = <&pm8941_l18>; + }; -- 2.21.0