From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 709D7C433E0 for ; Thu, 30 Jul 2020 13:25:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 507082082E for ; Thu, 30 Jul 2020 13:25:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=megous.com header.i=@megous.com header.b="Ko+QELrC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728999AbgG3NYv (ORCPT ); Thu, 30 Jul 2020 09:24:51 -0400 Received: from vps.xff.cz ([195.181.215.36]:54970 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbgG3NYv (ORCPT ); Thu, 30 Jul 2020 09:24:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1596115489; bh=XAdHa1hy943EkmZdCmSbORjRP3twqUeW2Bi627ZbOdE=; h=From:To:Cc:Subject:Date:References:From; b=Ko+QELrCTZGDxpAlkAuQKsdGtumL1tTsHm8rcsqQQ0UVOMSElkzFgpxpwm1TYnGsm yBzlVPcxR+jsUFH1V4q1Y0WScaGF1OdFYsrk/FQzwU3PiHECyeVV9I3ApmzcNwp/7R ESOR/l/6MrfAe+hr4RTLNZLKylUEF8cyCMi6FC6Y= From: Ondrej Jirman To: Dmitry Torokhov , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: Ondrej Jirman , Luca Weiss , Tomas Novotny , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring Subject: [PATCH v5 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios Date: Thu, 30 Jul 2020 15:24:43 +0200 Message-Id: <20200730132446.3139980-2-megous@megous.com> In-Reply-To: <20200730132446.3139980-1-megous@megous.com> References: <20200730132446.3139980-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Change the binding to require either enable-gpios or vcc-supply or both. Signed-off-by: Ondrej Jirman Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/gpio-vibrator.yaml b/Documentation/devicetree/bindings/input/gpio-vibrator.yaml index 2384465eaa19..082ac06471db 100644 --- a/Documentation/devicetree/bindings/input/gpio-vibrator.yaml +++ b/Documentation/devicetree/bindings/input/gpio-vibrator.yaml @@ -24,7 +24,12 @@ properties: required: - compatible - - enable-gpios + +anyOf: + - required: + - enable-gpios + - required: + - vcc-supply additionalProperties: false -- 2.27.0