Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4321423yba; Wed, 17 Apr 2019 09:05:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxADXHam7r00Dwy+OsCeiyWVzhIuwZZQA4sTtaUpqZ3czzLo8GfO2TnGegZ6ojF5IiIMYhT X-Received: by 2002:a62:1d94:: with SMTP id d142mr87964473pfd.83.1555517130269; Wed, 17 Apr 2019 09:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555517130; cv=none; d=google.com; s=arc-20160816; b=vhyksRXr//mZzZ0DSCyhHz1QX5r5Q1URkoqG6DFzsLdwzdnOFROfhYDhosrTjQKLB+ 2736DN8rtailjPe02FVcz1V4266CgnVjlHf+E6KwA9bEVBKtQuyGldek6VRfmZdHOZjG 1wSRk26nlsqtg9LVHgAYRRLXX7CYT8rhNnUE/Nrq3xPbLBMC04m5dVqPA5lag54NDBGs PRdp/wQ26mmHpwumNASnvyVS2wT+2fhewkeI6meL+8MiK4h+3YufXYdxObSdLaFc6ujD SzUunSIEqj6VK3xlGbHJ5nuayWrIowSyTmHmK9du6COf3z8+YKoRZnP4SYzyw828A8RO HG1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bs0LrDHlMoIxVU264ASU2wAoGKf8R66V54NIahcI1cM=; b=hbqvokF90Iq3NhtmbOj/XCauZukYdHP5o8bHMiZ2bSeIp8WNe8RmP9cXZGffB2McQF PBIbS+I2DowXp81OgeG/01z9H5sm2qjNULKBVnjMDZq1WYNC8RrRnkwhGzzTjks0XU/W Wy7rULLM26ZHJLfWSDc8gt17z4Yybhh81mRL23dRfMOiPx7UPdxgDFJsfp8yQTkXIh9g FcWKu6+Pk8S8woBw8/WdHxbJnisuzZzkaoLcPRy/Fw2qNqe4Kc/EvFMOYvsQTr0swBiD /YlsiMoFjjuAphPBxQ8xpBncxAvaAl7CfC4INUHVf4X3088YTvNbC6iJLBjCQevDQn49 gqvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Z4w0xzQI; 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 n22si50082611pgk.102.2019.04.17.09.05.14; Wed, 17 Apr 2019 09:05:30 -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=Z4w0xzQI; 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 S1732769AbfDQQCc (ORCPT + 99 others); Wed, 17 Apr 2019 12:02:32 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:46944 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729395AbfDQQCc (ORCPT ); Wed, 17 Apr 2019 12:02:32 -0400 Received: from g550jk.localnet (80-110-119-101.cgn.dynamic.surfer.at [80.110.119.101]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id BEA8FC13C0; Wed, 17 Apr 2019 16:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1555516949; bh=RgpxRCY2Z38lkJt61spzdbqBlWlt8+cZRM5WVD18zq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Z4w0xzQI0+oUM3QPm96nRG9SGvIOP9qRxg5RJJWGw9JqtkUWvsBzNHXl1EFc7pZie tVBeZdeH9ca3SHsWdjJNS2oVeCA5zrZeRmf/mnsBS+N2ndiT35lB8dpqVEvuWa3gEv olaFUP/J+PYGDxwEkjmyVKACbEGCzNMsLVddo+wQ= From: Luca Weiss To: Dmitry Torokhov Cc: Rob Herring , Mark Rutland , Mauro Carvalho Chehab , Pascal PAILLET-LME , Coly Li , Lee Jones , Xiaotong Lu , Brian Masney , Rob Herring , Baolin Wang , David Brown , "open list:ARM/QUALCOMM SUPPORT" , "open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..." , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH v3 1/3] dt-bindings: input: add GPIO controllable vibrator Date: Wed, 17 Apr 2019 18:02:27 +0200 Message-ID: <15255825.75VNnaJK3T@g550jk> In-Reply-To: <20190412150625.28384-1-luca@z3ntu.xyz> References: <20190412150625.28384-1-luca@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Freitag, 12. April 2019 17:06:23 CEST Luca Weiss wrote: > 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>; > +}; I see that the yaml based device tree binding docs seem to be the new hotness? Is there any "policy" / preference about new drivers? Luca