Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2404366yba; Mon, 22 Apr 2019 06:17:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLGjg2g3ZP4h/vMsH22fjmm/3oxocu0oWarQAPLbJwNaVRIUffPq4+X3aYTD2el9XWZpR4 X-Received: by 2002:a17:902:bd0c:: with SMTP id p12mr20352175pls.50.1555939033983; Mon, 22 Apr 2019 06:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555939033; cv=none; d=google.com; s=arc-20160816; b=toKqHecbs3miLiDQtVXfc3dir6D9NTepJlK68Yy/tzJ+JkTbfKq11fxn8uU0KidGbw 4sKWYIvY65xFsf6i992DenWdJ9GXYxN3Nc7o11NbwXpD3fjM3pSACbhpB33CXkcsqUJn WlzO90fXwPbPt5l5zKbRnAid0YAxX6BYao1vMdeLGPmg61fX7PiaxLhYN2ioK4cm7uVq +kPhD9Yl91K8MolxqQ0RrdX9uNsmCKKwEOHqFqem4u0GDWWYMLsxX5IBDgvqHtkYi769 6YveCyGkNMQgLY/KVLEbk3GzPe1DCYlRLpV6mywnxl19S29XhMe9T1RnOyNMepUGyMHB eL0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6uwpZrh+DJqR8huAYYscp8ag0+blA1o14QlaT7xBqrA=; b=rVMODeS0xwl9IoS9BZWAJRhIFL1ex7/zO6DpswbQ5W2QiETaL2S7cOIHfyUECy33eH SdKfvdk5T/+70xTouM98g8asDVYOXJZclzmrxWrq7KGSfMxIuZKeIc6bIEo6S0BmQAqa 34CHml+aHKPvjg4mOk1KaaWzgQcLHpmhOT6F8bBaYwiS4YDw0odFfCVIlFibmJfBXmh6 wdCwT5eh05A/7rLXHYdgLBmfIqT9aWD7Rp7FHJMMyGLJYo36H8Z1N0kvGI7D4hiqwt44 gpBd60RsSBApZfHBR7Tnj7zIQkIYw5t15jTkeqgw3974hpZCEZ/5BFMRce3wkIZbHesa rT3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZG9bTDFz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si13009198pfn.136.2019.04.22.06.16.19; Mon, 22 Apr 2019 06:17:13 -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=@kernel.org header.s=default header.b=ZG9bTDFz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727367AbfDVNNo (ORCPT + 99 others); Mon, 22 Apr 2019 09:13:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:49026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbfDVNNo (ORCPT ); Mon, 22 Apr 2019 09:13:44 -0400 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E1AD20874; Mon, 22 Apr 2019 13:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555938822; bh=GfKXT+ZuhRm5Jn9euYKis3qNlZMgAnLXskTaqP5QHWY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZG9bTDFzNkvt/TJR5dfwtLs3PWMCVJTAmaK7JQyYzvSDqd/Ug2CmjjzTL8E9O2OBc SwlQlF5LmIWAwYcTqqwdiSLiJr6hic067OODyBTgRm3Dy/eeo8nbDdGIBpiX5/B2zJ Pr+BAaKmZacbR9vidrDEuPlstodpheHsPAsWGZ0g= Received: by mail-qk1-f177.google.com with SMTP id w73so4178246qkb.13; Mon, 22 Apr 2019 06:13:42 -0700 (PDT) X-Gm-Message-State: APjAAAX5Y+OE8nZtp/MznUv4MGM5p8FeKstkMLJJOmY2Wv8dDkZ+4thL BX4UsN+/M/XZ24ZPQdgkDSDCgEL8C4ArjrjDJQ== X-Received: by 2002:a37:9186:: with SMTP id t128mr14431012qkd.326.1555938821856; Mon, 22 Apr 2019 06:13:41 -0700 (PDT) MIME-Version: 1.0 References: <20190420122333.23662-1-luca@z3ntu.xyz> In-Reply-To: <20190420122333.23662-1-luca@z3ntu.xyz> From: Rob Herring Date: Mon, 22 Apr 2019 08:13:29 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/3] dt-bindings: input: add GPIO controllable vibrator To: Luca Weiss Cc: Dmitry Torokhov , Mark Rutland , Mauro Carvalho Chehab , Pascal PAILLET-LME , Coly Li , Lee Jones , Xiaotong Lu , Brian Masney , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 20, 2019 at 7:24 AM Luca Weiss wrote: > > 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 These 2 lines can be simplified to just 'const: gpio-vibrator'. > + > + enable-gpios: > + maxItems: 1 > + > + vcc-supply: > + $ref: /schemas/types.yaml#/definitions/phandle This isn't necessary as we can do this for every occurrence of '*-supply'. I'll add that to the core schema. With those 2 changes: Reviewed-by: Rob Herring > + 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 >