Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1640511ybh; Tue, 14 Jul 2020 03:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxspdtAtC8p+IjKP/gxHfbpjsjcuzisWdjOr55/l6uPRf+RF67GzRetPHTktekObNqcpuII X-Received: by 2002:a17:906:c24e:: with SMTP id bl14mr3704593ejb.285.1594722325370; Tue, 14 Jul 2020 03:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594722325; cv=none; d=google.com; s=arc-20160816; b=naQkLJiolqXo6n7v0zND5RbAYwsMKok3Vr8SfrYTRuSxkx4evfNpWTMD++QUlxXd+F R0xJ+9m9gZ19yduhngIf/VTpWtKoOpcAow2Ow8spxnOKXTRHcQ1CwOGWExQZCUU0U0Ms SgydsoZLzQ5KIbs8Xbu4MPNbVw+4jPP9R3saWI7PzJcHbfC8bdPZ/yCgJP+Of3X7AVtt fB2PmvONk/PXgNHf3kNU1XXP2ATC3h+KLYuWbtN6lw7PTH9+kRWUvyiQ7Fj7rNbqQIEA C+El+wZ3N+0SsyTUf/S+KoxoJ18AG5jZJkXITetknsfRn6xw49OYqMjisl4FyxqwZOeC wNlA== 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=4t7Dx8Cvm1H0VuLUQQ3o/QjqDhXpE3QSSaJsFHfu25k=; b=UJ/WnEmuJStyY+Bza8rc0J/NgODM7lnoMc/ZeaQFUXMmKrt810iGAX7xXfanXP0FiG XAdEUhcT7TWN3i+IZ2c4UBEKIQWfCwgsazjqE/vytmL842Q8xd4+ODoz3nr8mCp2bMBK RYfVI6Yn2waDUtDMFN2Vu4t8lbQ+ueB0O69AAqwyUk/h0hnKZZFCfoBTqp9wtAaqIe5H l5vFEw241IA1EPrsLjKzn8w7/2dC77B394IQMANILe5oPGfoBMVrsa1DufK6kE5kg5e4 uUYuZlxublADg4R3f57sxJzLoNKF+SPN2JLUsRz7z23KAeQaCP7OoDZmwlaz0PRuWMhy QSEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=nhMYmZ3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si9615392ejf.411.2020.07.14.03.25.01; Tue, 14 Jul 2020 03:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=nhMYmZ3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727814AbgGNKXz (ORCPT + 99 others); Tue, 14 Jul 2020 06:23:55 -0400 Received: from vps.xff.cz ([195.181.215.36]:46176 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725952AbgGNKXk (ORCPT ); Tue, 14 Jul 2020 06:23:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1594722218; bh=XAdHa1hy943EkmZdCmSbORjRP3twqUeW2Bi627ZbOdE=; h=From:To:Cc:Subject:Date:References:From; b=nhMYmZ3NN+TH1TCTMYUDj5O0FumKLt1l2sRZrVSf1T/PKmHVj0VSujbZoDG6Mnzyu epKX23Bl09/hGM7mGHoHRf2zR2mgICKTlpt9HfC2CFuFOClBvsyGLM/7e9QCIfZ+lT Jkx51pFi8DTRE998eTRhk91+W9erJZAz9mBg3qMs= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, 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 v4 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios Date: Tue, 14 Jul 2020 12:23:00 +0200 Message-Id: <20200714102303.3007896-2-megous@megous.com> In-Reply-To: <20200714102303.3007896-1-megous@megous.com> References: <20200714102303.3007896-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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