From patchwork Mon Oct 21 03:01:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ikjoon Jang X-Patchwork-Id: 1180160 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="jqjY5/cR"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46xLz24KgRz9sP3 for ; Mon, 21 Oct 2019 14:02:22 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727009AbfJUDCV (ORCPT ); Sun, 20 Oct 2019 23:02:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37435 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfJUDCU (ORCPT ); Sun, 20 Oct 2019 23:02:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id p1so6844263pgi.4 for ; Sun, 20 Oct 2019 20:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X6S9FvkBoX7c9Y0Hjke4iSmTgg6uvkf7lyNpBmBveR4=; b=jqjY5/cRtRPsSQipV6x7w7sJTISINntClKcx3DEiBiEgiApkspaaryjY+sf1sMPpNQ 3JceZD5RVyRelflxZBQJV09SLFvs2Q5aZ5iD4C9Rls12W+fTcYfxsV9DKKgZol9rlVMJ lTN6l0Fkkry/hgn+Vvognph08JVBslE2YM2VI= 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:mime-version :content-transfer-encoding; bh=X6S9FvkBoX7c9Y0Hjke4iSmTgg6uvkf7lyNpBmBveR4=; b=ULZj8oH5HYyAUzhuRJW8puhIoX6tnMW9Z9YBKc1A1G+nij27mRgwh3p1rywFFd7FrQ guTFR9TnQ7V7n94HYxqNHrvjtWg5fDWh1kQO4WD3o4XWWpnkDZigwTNnmJGPCl0y792W 4gWR1FNugt4Fm4UxKP/A8dXt/dcq8O+QyuEVH3xucZk8KaW2ipxeMhz8PMRwGZNvygbj m4M/xA1vz8U30efNj4kFRF0tz+f1iwIpwpA0U/mpusKFDCKz/rLRRDKv4xFXKtDeCIyV hIv3FN25WoIrJXS8on1KNOa5FiHkJbFeyND96UZmcWw3j9K/bthufqKC1TJN3nJGxm7z 3dWQ== X-Gm-Message-State: APjAAAU3AtKOPqMrS03zM2RSYi2/JZBfc0j2j5S3GsGCtg57ibs3boCa 5doB9wRkHEOHntq3kOODbujSJg== X-Google-Smtp-Source: APXvYqx6vYSF3nqStjI3axUliugUutPWmW6Gm5SwyKeglqcnXF7BTh2/vo3VqrBkGBJmsaFaKdW1jw== X-Received: by 2002:a17:90a:dd43:: with SMTP id u3mr26201536pjv.130.1571626938285; Sun, 20 Oct 2019 20:02:18 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:10:254e:2b40:ef8:ee17]) by smtp.gmail.com with ESMTPSA id j126sm14983542pfb.186.2019.10.20.20.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 20:02:17 -0700 (PDT) From: Ikjoon Jang To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Dmitry Torokhov , Rob Herring , Mark Rutland , Jiri Kosina , Benjamin Tissoires , linux-kernel@vger.kernel.org, Nicolas Boitchat , Ikjoon Jang Subject: [PATCH v2 1/2] dt-bindings: input: Add DT bindings for Whiskers switch Date: Mon, 21 Oct 2019 11:01:59 +0800 Message-Id: <20191021030158.32464-1-ikjn@chromium.org> X-Mailer: git-send-email 2.23.0.866.gb869b98d4c-goog MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the DT binding document for Hammer's TABLET_MODE switch. Signed-off-by: Ikjoon Jang --- .../devicetree/bindings/input/cros-cbas.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/cros-cbas.yaml diff --git a/Documentation/devicetree/bindings/input/cros-cbas.yaml b/Documentation/devicetree/bindings/input/cros-cbas.yaml new file mode 100644 index 000000000000..6a746c4cb266 --- /dev/null +++ b/Documentation/devicetree/bindings/input/cros-cbas.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/cros-cbas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChromeOS Hammer's Base Attached Switch + +maintainers: + - Dmitry Torokhov + +description: + On some ChromeOS devices with a foldable variant of Hammer base, SW_TABLET_MODE + event should be generated with proper consideration of current device state. + This device senses "base attached" signal from EC (Embedded Controller) + and generates SW_TABLET_MODE event when Hammer is not attached. + The node for this device must be under a cros-ec node like google,cros-ec-spi + or google,cros-ec-i2c. + +properties: + compatible: + const: google,cros-cbas + +required: + - compatible