From patchwork Tue Oct 31 03:03:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 10033565 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 470C6603B4 for ; Tue, 31 Oct 2017 03:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37FBB2886A for ; Tue, 31 Oct 2017 03:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C99E28879; Tue, 31 Oct 2017 03:03:40 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 C8D1C2886A for ; Tue, 31 Oct 2017 03:03:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752209AbdJaDD3 (ORCPT ); Mon, 30 Oct 2017 23:03:29 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:50427 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079AbdJaDD1 (ORCPT ); Mon, 30 Oct 2017 23:03:27 -0400 Received: by mail-pf0-f194.google.com with SMTP id b6so12637938pfh.7; Mon, 30 Oct 2017 20:03:27 -0700 (PDT) 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:in-reply-to :references; bh=Mw4SchiTrVl/eV92tahneviSGZUnum7kqFlMWEpXPVw=; b=PrB+9h5SBIIKfyF4LjH/YqjChubvA23+HaYOq8CIJpWlX1LwsbTNC6CnAwWYK/VGyx gnaDGoQzZPz3n8lda05aScDWHRGGKq4xFBRzJqmr9KRhECqaFegtujiDpUWyLNX/c5PO r2ESnhgKKgeP/4SLOjuFGIjg+oEZmNuS1alk9LfQVF2fQUqUBj3zDUvBRLzW96A3p5V/ ARruUpZ+fQIjEa1HZUMqp/+f5CM91Fsb2DuKE83HihoAoUzovkY93VoLzsF12LO93A4I tDCzuhKz+Q4ExbhIuxkZUqnBO99xYmuP0Uj8Q+8PtPFkcOONmy0UH1bWqpCIBK4J23g7 GjVQ== X-Gm-Message-State: AMCzsaXWiyjWLpO1AdB9dKroKHQ8G806m0eR3HCInVQiqjVXye2vnXN0 myM9nuNRiLPtl6ZCp7WEwIk= X-Google-Smtp-Source: ABhQp+S/coI8T6zfGRWXggvN1OLGBeLULMYdm4dpguU9Dl2QjOyT2GFDVgvFdZmkQyJ0mDeNg/9MSQ== X-Received: by 10.101.72.132 with SMTP id n4mr484218pgs.245.1509419006827; Mon, 30 Oct 2017 20:03:26 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id g207sm460042pfb.101.2017.10.30.20.03.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Oct 2017 20:03:26 -0700 (PDT) From: Lin Huang To: dmitry.torokhov@gmail.com, jikos@kernel.org, robh@kernel.org Cc: benjamin.tissoires@redhat.com, jani.nikula@intel.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, briannorris@chromium.org, devicetree@vger.kernel.org, Lin Huang Subject: [PATCH v2 2/2] devicetree: i2c-hid: Add reset property Date: Tue, 31 Oct 2017 11:03:16 +0800 Message-Id: <1509418996-25348-2-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509418996-25348-1-git-send-email-hl@rock-chips.com> References: <1509418996-25348-1-git-send-email-hl@rock-chips.com> 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 Document a "reset" and "assert-reset-us", it can be used for driver control reset property. And reuse post-power-on-delay-ms for deassert reset delay. Signed-off-by: Lin Huang --- Documentation/devicetree/bindings/input/hid-over-i2c.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.txt b/Documentation/devicetree/bindings/input/hid-over-i2c.txt index 28e8bd8..6ab0eed 100644 --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt @@ -31,7 +31,9 @@ device-specific compatible properties, which should be used in addition to the - vdd-supply: phandle of the regulator that provides the supply voltage. - post-power-on-delay-ms: time required by the device after enabling its regulators - before it is ready for communication. Must be used with 'vdd-supply'. + or deassert reset pin before it is ready for communication. +- reset: phandle of the gpio that provides for hid reset pin. +- assert-reset-us: the device require reset assert time. Example: