Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4325323pxj; Wed, 12 May 2021 03:10:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGODuLEA8qU0/q7paozI5Mo8HPBE0r5+ICFcbID79E4qV7euNTud+CsoYyY8jyM9lswmGg X-Received: by 2002:a17:906:26ce:: with SMTP id u14mr620359ejc.187.1620814207770; Wed, 12 May 2021 03:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620814207; cv=none; d=google.com; s=arc-20160816; b=biUwF2W4CHORMTBoT5ERoM7UhAOWknilKAZsUxqOJlYuVQlW/nl1PoPRz4tHiSZntg mq0hK3T9kERSwvvDcMumDY1BjEHferMTNpH4cOGYJDBi4/ejhgYwGbQ+JYSg0+aFH0EW WXEQtqYNBpDxwqMmuGx9mWWvs0RLpqg1wYzFtzqem/O7E7RO6On9HPUCoVojgPQlYkF7 aFY3DO158f1BnmWrdtrA7zNjNoMsaPTp/BXirbxHXfzY0xPCFZoVwSwuvF1WACFZM64v 8/C3PHZGLD3c985KssMb/w7aTAAl53/rUPGJsTNVWB5a0eKnB/k8y8+zkbwjxAkn7urj OVNw== 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=kZgjstHOYROHTT7vT6IiQEY3IT65wMZE5r7tRuaAKfk=; b=AcKywXgbHG++QZwTw3+6hPOgt72O0vKVXNQ5xj6ydExjyzn/Rtic6CXZ6/bNRqk7yV O3BVYR3C7p8NomZPxIpiIZPGabDBqXOPxETwqfYAnw4XMW5KQ54NxS+HTEZg7SIVGCXV tI+c1BdFrwIgYPVn+fzUBPpmRcLyP7HVaEh2jvseW4OdR6ncsPV76nmcyKX/PdXFW91p rloVBZ2oSd3ZIPZfDAHgVT7F0YCHc22KK4Fg4qSfyqL5MJSHlYCIHOD1Ns7mLYlv97Y5 UjRtm1USQhEnhwisZzGyPAx3gEGs7XnJISfa4JLr5s1jP48/UTFec3vYCLLeOXBmncx+ T68g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oIjOZtMN; 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 q7si2921239ejs.275.2021.05.12.03.09.43; Wed, 12 May 2021 03:10:07 -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=oIjOZtMN; 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 S230218AbhELKJr (ORCPT + 99 others); Wed, 12 May 2021 06:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbhELKJq (ORCPT ); Wed, 12 May 2021 06:09:46 -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 D30F5C061574 for ; Wed, 12 May 2021 03:08:37 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id h127so18141330pfe.9 for ; Wed, 12 May 2021 03:08:37 -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=kZgjstHOYROHTT7vT6IiQEY3IT65wMZE5r7tRuaAKfk=; b=oIjOZtMNkRnY/ZbSuRC1GuQVbWrSsC8CR9YJWVkrafcQiuM6f36qbzdrYp5Qsog/S+ LuFcXwmdiXHxqQ32iQSNo+FFu4KyoaFcuBSnMo5f7GoQmgowVYLQHtd/HFWTLiA1sovK eD4NUMeax/ib7ahf6XVp++kRKX1j+AeoArlx8= 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=kZgjstHOYROHTT7vT6IiQEY3IT65wMZE5r7tRuaAKfk=; b=eGn8x3NsN/n9v1D118oa/Z06nA66rEFtjbU+n2zEkzQ7OtkT/orrGe912if/syjeGT kLBr9Ow17sPk/pY4/+Y1VhA6qDR69A3K+VP9iBQGsDUo1grxNBHh3IiAgcSSaBjCz8lW +hKRv5yKvBtbfyzwImbp/D280rvcyfi4EZGrq489PkpiFlRuMU1A/pfuRK8Uxb6RarTD g5HdrLBIapjAdb7qyaFy3Us5bSeI9wasvvTthIcZKOAJzGpw75pmfg/Ht0sdZqhoy8cV 6icR0tYkjT0/WyE1CnV8diXJKu3tgbhR1ULRefXv3HvaHsF+HyA4mukVVaORvf5JS2W0 qQgw== X-Gm-Message-State: AOAM531WlrKOVCvlNlhGYeTj/7ARCEWAygcE5SJ1gciww7OhCFPsqGH9 duPAfO5ATGXdMvgPYMd7NXmG2Q== X-Received: by 2002:a65:60da:: with SMTP id r26mr16206280pgv.133.1620814117422; Wed, 12 May 2021 03:08:37 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:2e82:bfc3:6037:8e16]) by smtp.gmail.com with ESMTPSA id o12sm15619919pjr.43.2021.05.12.03.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:08:37 -0700 (PDT) From: Ikjoon Jang To: devicetree@vger.kernel.org, linux-input@vger.kernel.org Cc: Jiri Kosina , Ikjoon Jang , Rob Herring , Enric Balletbo i Serra , Benson Leung , Guenter Roeck , Lee Jones , Rob Herring , linux-kernel@vger.kernel.org Subject: [PATCH v6] mfd: google,cros-ec: add DT bindings for a baseboard's switch device Date: Wed, 12 May 2021 18:08:31 +0800 Message-Id: <20210512100832.3878138-1-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.607.g51e8a6a459-goog In-Reply-To: <20210415032958.740233-2-ikjn@chromium.org> References: <20210415032958.740233-2-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 Reviewed-by: Rob Herring Acked-by: Enric Balletbo i Serra --- Changes in v6: - Remove a label from cbas node in an 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.607.g51e8a6a459-goog