From patchwork Thu May 10 05:08:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10391139 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C247A60353 for ; Thu, 10 May 2018 05:09:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B187328856 for ; Thu, 10 May 2018 05:09:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A555128862; Thu, 10 May 2018 05:09:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89B1628856 for ; Thu, 10 May 2018 05:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756537AbeEJFJA (ORCPT ); Thu, 10 May 2018 01:09:00 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:45275 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756522AbeEJFI6 (ORCPT ); Thu, 10 May 2018 01:08:58 -0400 Received: by mail-pl0-f65.google.com with SMTP id bi12-v6so587761plb.12 for ; Wed, 09 May 2018 22:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=dnJxcC9fYjws6z1w7eEx/5CUcx9PDOY06hR2b13Psmk=; b=H/ilTi3FKXV5we72WhCnOUI4rDcbQRZmqHmpsMQFvqCbcLLshpY28dsw/5/NZBLmsb SluwK1C6+u2goSbM40EqNQrvFwKb64v208+0tQXdj5DpRvrOG5ZpNRSoITDRSvSBovqt OqoxxiNpVpUAAM6ZhQWuJvnju1Yfs4vhk6BPM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dnJxcC9fYjws6z1w7eEx/5CUcx9PDOY06hR2b13Psmk=; b=E+Odh1GVC0PgeVYhQYrOkBNKV9/4RbdW9nzc6F5JAVRcFBPlvzojLaWxDac8bagpU+ fbz5ONb6LobfMmAis/WkWnWUztGlCeUa3hkUcK0bMAu4xFIwmkia7/TmlUM856A64Z32 D/gLLW5fBk60fyn6UioFGE5RPQ4bPAHw+Z88KI91IARqyTbebOT1Hs0DEn1NBVHqKHJq fJwizVwzK1pfVFTKmP6Ak6WqNyz+SLzNUpLAmn+oaVMDS0gVoZm3W3a+F3uci9VgmeH1 IkmddDjP9N1eK+EjNQoJhehAOpg7KcEyo+PJ82PiVgxcj5nQaenIFul6T7h10YFd+lho jmiQ== X-Gm-Message-State: ALQs6tBbkSxFHhjkFL+RyOJkLtJ/TqKDvfvr23CLmwpmBspGcQZCJiY1 fOMyXQQE982/C7WWhK0gCoZ4lA== X-Google-Smtp-Source: AB8JxZo42S6s1xjBijNqR8w5kz8tJzbhPrdIiElhfx6y31K7AeCKAjf1vKTavNVhvKDsZ+wB3reRRA== X-Received: by 2002:a17:902:7d87:: with SMTP id a7-v6mr17066880plm.264.1525928938079; Wed, 09 May 2018 22:08:58 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id o10-v6sm40853367pgp.30.2018.05.09.22.08.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 22:08:57 -0700 (PDT) From: Baolin Wang To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org, xiaotong.lu@spreadtrum.com Subject: [PATCH v4 1/2] dt-bindings: input: Add Add Spreadtrum SC27xx vibrator documentation Date: Thu, 10 May 2018 13:08:33 +0800 Message-Id: <44b17778d8f0bf897a316a39516ba2cafecf43c9.1525928437.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Xiaotong Lu This patch adds the binding documentation for Spreadtrum SC27xx series vibrator device. Signed-off-by: Xiaotong Lu Signed-off-by: Baolin Wang Reviewed-by: Rob Herring --- Changes since v3: - Change compatible string to explicit Soc name. - Add parent MFD node. Changes since v2: - No updates. Changes since v1: - No updates. --- .../bindings/input/sprd,sc27xx-vibra.txt | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt diff --git a/Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt new file mode 100644 index 0000000..f2ec0d4 --- /dev/null +++ b/Documentation/devicetree/bindings/input/sprd,sc27xx-vibra.txt @@ -0,0 +1,23 @@ +Spreadtrum SC27xx PMIC Vibrator + +Required properties: +- compatible: should be "sprd,sc2731-vibrator". +- reg: address of vibrator control register. + +Example : + + sc2731_pmic: pmic@0 { + compatible = "sprd,sc2731"; + reg = <0>; + spi-max-frequency = <26000000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + vibrator@eb4 { + compatible = "sprd,sc2731-vibrator"; + reg = <0xeb4>; + }; + };