Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp436913pxb; Wed, 14 Apr 2021 20:32:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUFd3lGDMHVpEcyaVNsTSGGpM9S/Q/KUcMqCK3pCLeq8WYOfJcuHXB1QzQM0p9SOUJZGIv X-Received: by 2002:a17:906:415b:: with SMTP id l27mr1219115ejk.19.1618457528470; Wed, 14 Apr 2021 20:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618457528; cv=none; d=google.com; s=arc-20160816; b=hXTYjngiDYVWpWxRb0NmA3afZVFkLTq3AGpcOs804Z1rhEAhC4yjIIxG2E8kuEXCBH ZpXPps0ErjBq4VImWMFk80tjvzXCMxyQMWVD7NJ8G1dk++YywoMoUKzGEilL30xNzrVD uDqUGTI+AIbZE66PiMA3773JGdRsWPvUgvl/emLezS3ItsCWFFMG5w+etLu++Dgbxldt oAJiRCGUEGJRIE7HcX9KFzNCCwot5kU98vfOOnIT0vob2Uv83UyV/IgpLE0TkmHkYLWD gq8y3jpAzUz7DZFzSaPvCnq+tuJn087ikWjvMum0+JT9zM93GGvJzUpZzu14mtExyr5m ALEw== 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=AqTCmxCVXgLJsXqXTluosraXffm24ijyPJ7oIm03HUg=; b=awEHusyVBNohLAPWO9/dEQD16v5iMvX6f+VAZBTZsJjvKAH+4SxPgC3GVOUDsj9Jvf 5E3Bk1ZlwhMN3FZXBzFwadOdQT+FJbQvJNvCVKVsVoV0UGwP7bQHzVh4ZArqranRjobu g93d4Q3NdFlOzqFtBV9Z46ol7s8IcYOIjKGg2AMX6qWlnDx4oj7YSpTJZHSeBj+TdFDc ihTfTYmJnF3ULN020lwNn8Qt2ytMbNtBVmArLWpGXUaNJraw3DPy5BAN+wuGskVijTrF IL+SIOHXFEjlB3XQnvuzICx4l6RHFWdmOAoyyG1ojCnnkRZIftC0ioKUCZWsV1l+nwKa eo1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hTv5o9+B; 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 ly4si1001863ejb.675.2021.04.14.20.31.45; Wed, 14 Apr 2021 20:32:08 -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=hTv5o9+B; 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 S229927AbhDODal (ORCPT + 99 others); Wed, 14 Apr 2021 23:30:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbhDODad (ORCPT ); Wed, 14 Apr 2021 23:30:33 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782C3C061574 for ; Wed, 14 Apr 2021 20:30:08 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id 10so6255407pfl.1 for ; Wed, 14 Apr 2021 20:30:08 -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=AqTCmxCVXgLJsXqXTluosraXffm24ijyPJ7oIm03HUg=; b=hTv5o9+BrrE9EjC5denORW74HCF/42J7he8+Mx0uWBZ3C28CT6ebw/hsjvDuB+UF9A zjmO6Nuw3ItN1cnh/p3RQDlGkYcPyIpKofML84pTYZQQkU8drprtOTub7CrBOOHilPlf JkFisLLIsgX+NBMhogntTdF3kDl0Su9WJKXJ4= 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=AqTCmxCVXgLJsXqXTluosraXffm24ijyPJ7oIm03HUg=; b=YJB+rVsATaIX7rQPdzHw6GOEarVrmZX2aHFLpy6HDxu6XoLJa1XRuU58Y2Pk52me0+ whTJX6McgQueAVWZ8GonKpo4dFFJCPVA9nrplglGNFaliMNUUV5tVl44nKWAOfqS0fAI cXXD5u8DI+9g6T1s1x8cy7KqXDLJifPyW6Y6D/FbH9irgXPfOXCh0RFcBMc0cMJYn3Jk mAUfgP1QwfiyOuqH24ckfZbmbBws5Mqz6lO6kADg69M3qoow3plrIxY6dFgan8iEzBbk k+Pu0fQZr0/l3BTs3KqQ0vgiXEQKrEQhu0Sj2DWFTdnFovMH+QaRGbpwclML+eh14gIt 4SGA== X-Gm-Message-State: AOAM531sB8saGbYgZEDAuP8elCkud3QDYCPaD/9shFhtLDmVt5eaxDcQ givHCemNPfOszjfoThwvQaNjjw== X-Received: by 2002:aa7:8d84:0:b029:1f8:3449:1bc6 with SMTP id i4-20020aa78d840000b02901f834491bc6mr1262712pfr.76.1618457408048; Wed, 14 Apr 2021 20:30:08 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:2d50:863d:8932:d6bc]) by smtp.gmail.com with ESMTPSA id n3sm351622pga.92.2021.04.14.20.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Apr 2021 20:30:07 -0700 (PDT) From: Ikjoon Jang To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Dmitry Torokhov , Hsin-Yi Wang , Nicolas Boichat , Ikjoon Jang , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Lee Jones , Rob Herring , linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] mfd: google,cros-ec: add DT bindings for a baseboard's switch device Date: Thu, 15 Apr 2021 11:29:57 +0800 Message-Id: <20210415032958.740233-2-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog In-Reply-To: <20210415032958.740233-1-ikjn@chromium.org> References: <20210415032958.740233-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 v5: - Add missing blank lines and change the description property's position. - Add a note to description: "this device cannot be detected at runtime." Changes in v4: Define cros-cbase bindings inside google,cros-ec.yaml instead of a separated binding document. .../bindings/mfd/google,cros-ec.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index 76bf16ee27ec..8dcce176b72e 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -114,6 +114,22 @@ properties: - "#address-cells" - "#size-cells" + cbas: + type: object + + description: + This device is used to signal when a detachable base is attached + to a Chrome OS tablet. This device cannot be detected at runtime. + + properties: + compatible: + const: google,cros-cbas + + required: + - compatible + + additionalProperties: false + patternProperties: "^i2c-tunnel[0-9]*$": type: object @@ -180,6 +196,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