Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2218947pxb; Mon, 12 Apr 2021 18:21:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxWFuTWZi5hhYuddxKzKcBalxJDLo15CLVCcv1FjjJ6J7Q55jrMCAAi/TFQW6QiUFjas8u X-Received: by 2002:a17:90a:eacc:: with SMTP id ev12mr2164327pjb.159.1618276874577; Mon, 12 Apr 2021 18:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618276874; cv=none; d=google.com; s=arc-20160816; b=maPdoPUXH5KU31fdKn2x8Q+wdfFvHAivhzBgNraLMn6VXVMrvWua1fYJb5AA8LIonL /W03n4qSySRobpZj4Y/a99K468Lc/UtEJ0QuwITXMnZWu4NnYDH4TXyFOAHRKgidbHeB 95bx/hOAv69ol/LTcG7LMsaKrNoKTgh/wQfQEqP4jFrh4z0SseMjqhqtJQMm36CnpkMq jdTGzIH/KFn1Am1Tkv3G+1/91/+92CQfAiw6yf/cRvbIme7pElVBT76/J4LnPT4JcYFl Ba9fXIgky2Nq1gUudv2i4H/jK/qIgT5YHAlv6IxSauqmggQska+AUCvn7NVJNEc4kyZn oQgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=plw2ysi1W+MGJ3Nv2bWluJ2xI5lpxZozWa9eFpnjZ5Q=; b=wk9GAJY4BRMF8BqEiiaB71YeB7DrwVz4JWR9kkpU78lhLuASpch8U/WZUwOmivTzRa MRyTc+/vhEa8Px+yopwWSKnx1x2bGzxNX/4IjxdIZg8k7p+MBY2vNBWC63u8YyPx79eC I22hI1B0G/4edB9/BlxJfH/LiAS6mjx5znybra0ivlYCk1KVK2OP9EOoN3+6jcLo/S/h e6fhqreaqRnOo8GFJkZj9XUs7sF4SRonH01CVwyfnVGnTAIKoYMpdNISmTqwpKeZ46/L JGTlQRzQw3oYARu7GFV4E4ccRxzQ1yP3nIBhnSz2aRKZZNgobr2+eDog6dDh8gswUpqw fV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K7b4lhCY; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si15963398pgl.325.2021.04.12.18.21.01; Mon, 12 Apr 2021 18:21:14 -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=@chromium.org header.s=google header.b=K7b4lhCY; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240410AbhDLLbL (ORCPT + 99 others); Mon, 12 Apr 2021 07:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240111AbhDLLbK (ORCPT ); Mon, 12 Apr 2021 07:31:10 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58A36C061574 for ; Mon, 12 Apr 2021 04:30:53 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id t22so5874744ply.1 for ; Mon, 12 Apr 2021 04:30:53 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=plw2ysi1W+MGJ3Nv2bWluJ2xI5lpxZozWa9eFpnjZ5Q=; b=K7b4lhCYYCq3BNYpzasyGmq5uEfqbaqHnLFERlhZ5hqt5p4MVmTq5gwRtf4E/y4XB3 BVyRaF6lWT/7Z0C5ho+WBuzSevWpH9hvgJEITs5K2HwBiIBfNS5mrFYivE82Bv8ugm/7 rn47xU+dBy6pU34+rHXd0Bp4nIAt/TiVfyQBo= 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:mime-version:content-transfer-encoding; bh=plw2ysi1W+MGJ3Nv2bWluJ2xI5lpxZozWa9eFpnjZ5Q=; b=lsATE3n1EnYaS/kvnI5MsKMV6KXhJgToY5k+lHbPrDvyiQ0XsqC/04Vj3f7xN2GjsT dNZ64grTV2FqmUVnu5wilkumBS4PKP6g/iqN83iPcONImQbVhJuUed2JVaRoyR9a8wrK RvKH5RiMMurIy3I9SVmOdLhyiiVJhxBryddhc4tXS7+yPkM4arOo+Kfv74KZUjU25ekv Kdsyo8AyGhr0bhWUMNKSviuJwydt1AGTib3e5Ch2WXjSUbzj2MqJrvpr1pdYT0mp6OAn LnzqwvYwNEvn6QFmAA2GENJY0HGEh3v9L475H9x2R9oqJB+kwjaagCQefn5RRuplE2Ur gfBg== X-Gm-Message-State: AOAM530xOAq/QUM2srfdXV9HmqdVa3dLLdNlWmt/mSW8r02eB18ZyGjf kIb61uAtwPdyyelQ8zmNLo096A== X-Received: by 2002:a17:90a:a103:: with SMTP id s3mr28756864pjp.158.1618227052905; Mon, 12 Apr 2021 04:30:52 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:32f1:1e05:984e:e039]) by smtp.gmail.com with ESMTPSA id 129sm1572413pfv.159.2021.04.12.04.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 04:30:52 -0700 (PDT) From: Ikjoon Jang To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Hsin-Yi Wang , Dmitry Torokhov , Nicolas Boichat , Ikjoon Jang , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Lee Jones , Rob Herring , linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] mfd: google,cros-ec: add DT bindings for a baseboard's switch device Date: Mon, 12 Apr 2021 19:30:19 +0800 Message-Id: <20210412113020.2724134-2-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog In-Reply-To: <20210412113020.2724134-1-ikjn@chromium.org> References: <20210412113020.2724134-1-ikjn@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is for ChromeOS tablets which have a 'cros_cbas' switch device in the "Whiskers" base board. This device can be instantiated only by device tree on ARM platforms. ChromeOS EC doesn't provide a way to probe the device. Signed-off-by: Ikjoon Jang --- Changes in v4: Define cros-cbase bindings inside google,cros-ec.yaml instead of a seperated binding document. .../devicetree/bindings/mfd/google,cros-ec.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index 76bf16ee27ec..c76809cd9f7f 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -127,6 +127,18 @@ patternProperties: type: object $ref: "/schemas/extcon/extcon-usbc-cros-ec.yaml#" + "^cbas$": + type: object + properties: + compatible: + const: google,cros-cbas + required: + - compatible + additionalProperties: false + description: + This device is used to signal when a detachable base is attached + to a Chrome OS tablet. + required: - compatible @@ -180,6 +192,10 @@ examples: interrupts = <99 0>; interrupt-parent = <&gpio7>; spi-max-frequency = <5000000>; + + base_detection: cbas { + compatible = "google,cros-cbas"; + }; }; }; -- 2.31.1.295.g9ea45b61b8-goog