Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp348831pxj; Fri, 14 May 2021 05:08:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjR+t36kQ1kK2FYCSpGjKy/JQJEGDx2kAa6mGZevHQqIuG3sRytOOT/Vb2mGPFnDtN+3Z0 X-Received: by 2002:a05:6402:1914:: with SMTP id e20mr55498527edz.70.1620994134359; Fri, 14 May 2021 05:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620994134; cv=none; d=google.com; s=arc-20160816; b=Fyow2ZU9rmnmVWQx+Zh4EAq9m1rYy3oQV1vu+rvlRoImzpQE/cYKhjIaNWXMQ1Nn+C f5kkif8vrBJ8av87YfPciv56CFmXBl6gmS2Yk2lwTmPQo1xXFsUsVfYNhzchkQxIioah SX3Ol9MC2WT+isnKh/wOIggsZkXucWa7eLRzx8l9/iWkAQNuAd1Ac/ahahRxV69Ybnhg tjDw9CbsB2XttE9HYVDl77GNxLZ6j5h7CA0l/8IYkd23+WxZqmvmNpxj4VH2xY3O2LFv 1SaG7fRdLOCiw+NWhw1p4JS5esOQxqMgBt847qvWGwkKvFe2EfTxgxfmCXL1sZeHlGJ8 BrGQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ESz1m+xFUF72VscU5fWkJoT2mNgqOdvTW7GhFogGpow=; b=vklVKed7SwcXnbbNDDzs1FbMHDsFebJ2Sry3ZhCDbrzluG6OKSNTSDdFcMYn8r3uhS 9ovAg0rRxkk33aj8vLMCyfWEGvDcyYkdqe3hlKC5OEtVyUQLh8MwudBxGEKVPgu2o8zD k98H+VyqDlyuiIgeX+3hIY/m7JId6WVJ+O5z9RMJrhu6D66ue94jbfu+eTqUWDspYoFg jKzdK2RiPj/DIVnfOz11FRxzBM+cYaKaw0jn9goyG/creCMmeqtviS95nhBZSomtmyHM Wbz2v7DVDarEDyXbuydOPz576phUUq1IoV9zxfudi6NrKATzaguFvxrqqrJWNRNSVtLl YHKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jlLMKB+F; 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 x9si7175318eje.36.2021.05.14.05.08.31; Fri, 14 May 2021 05:08:54 -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=jlLMKB+F; 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 S232769AbhENMG0 (ORCPT + 99 others); Fri, 14 May 2021 08:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbhENMGZ (ORCPT ); Fri, 14 May 2021 08:06:25 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68403C061574 for ; Fri, 14 May 2021 05:05:14 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id t11so2526528pjm.0 for ; Fri, 14 May 2021 05:05:14 -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=ESz1m+xFUF72VscU5fWkJoT2mNgqOdvTW7GhFogGpow=; b=jlLMKB+F/SNGEYmoZGhZ5YtkM3COzY94C5Ivz+iYkjUmqI2lLnk4k6ZlSvm1tbAFrL 4CatoS/pHf+J0nmYUQ2qGObJ35+qtUdDEGjYQ6dR2xuafEBAbonWclGOYfp4TScaZDyE RVxAypldZSDnc6ZJnYTa89lgL8Lu1GIg4vkpQ= 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=ESz1m+xFUF72VscU5fWkJoT2mNgqOdvTW7GhFogGpow=; b=DwTSKXVqcJfE1rU4rT3JHwYdnSqFe/mfkDRI5+2N5MeXzgKzt0hwh1BzcrXt2LmHI/ Cy59Vl9VY4Qyy56AFcHqbk2fzygdN689Xv/292cCWfXPufFxHK2HL+t4WcBN5DiNWPFE v42zzRcRtn6uL97BzCJej8ZyTWFosoRTzW0SaQDOhjhBkj1/vjSGsxAtjT5DNDwFjnZ5 UpUltgARgz+bG9huHadE7q6IbKwIuZR6RxicIUpgmFNmv4SembaGn0lZJvEmrMZ8Mhcx KhwdET0ycdkS29ihSEVd+Cu8ZOsvrsIfZmnuT9vfUBrIw3FuY9qJGHEXekIj3/rmHUyt ytRA== X-Gm-Message-State: AOAM531Y4QbTopmBVgzec9SNZxdb4PoEfrzPG7rxHFhjIaUbT/5QYQSc koHozPVLrkiJKzB3t1W3Hj+GIw== X-Received: by 2002:a17:90a:c217:: with SMTP id e23mr10653652pjt.43.1620993913826; Fri, 14 May 2021 05:05:13 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:7641:4b1d:694e:6ea2]) by smtp.gmail.com with ESMTPSA id q24sm4117786pgb.19.2021.05.14.05.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 05:05:13 -0700 (PDT) From: Ikjoon Jang To: devicetree@vger.kernel.org, Lee Jones Cc: Stephen Boyd , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Benson Leung , Guenter Roeck , Jiri Kosina , Enric Balletbo i Serra , Hsin-Yi Wang , Ikjoon Jang , Rob Herring , Rob Herring Subject: [PATCH v7 1/2] mfd: google,cros-ec: add DT bindings for a baseboard's switch device Date: Fri, 14 May 2021 20:05:05 +0800 Message-Id: <20210514120506.264838-1-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog 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 Reviewed-by: Rob Herring Acked-by: Enric Balletbo i Serra --- Changes in v7: - no changes from v6 Changes in v6: - Remove a label for cbas node in a example 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..929c17552d8b 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>; + + cbas { + compatible = "google,cros-cbas"; + }; }; }; -- 2.31.1.751.gd2f1c929bd-goog