From patchwork Fri May 14 12:20:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ikjoon Jang X-Patchwork-Id: 1478442 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=SW5DJIHQ; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FhSM42M2Mz9sX1 for ; Fri, 14 May 2021 22:21:52 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233422AbhENMXB (ORCPT ); Fri, 14 May 2021 08:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233416AbhENMW5 (ORCPT ); Fri, 14 May 2021 08:22:57 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA79BC061760 for ; Fri, 14 May 2021 05:21:44 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id s22so23970964pgk.6 for ; Fri, 14 May 2021 05:21:44 -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=eDsBcMn1LjQ/hDt4A5VW4rjJ3axqBAgkESJwxk85dos=; b=SW5DJIHQpxkxWhkboLIm5KcifPgzvhRktiH30n6bS+X4SKEPha2DWC3KR5gyqr83hB YQPLn3bgk3aUNnuGPtDGve2THPWaS26HYtEvXb7Dr1y0ewiZLuhKY8KViKhfrhDk62QM K6LMvy3EL5Djw/52hUfs3ULA0sFQAiWklQQSw= 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=eDsBcMn1LjQ/hDt4A5VW4rjJ3axqBAgkESJwxk85dos=; b=JUC35BWfnP2P0fE0ivbyTEJAAxWyY2TetHDWQJpOyVAdH/3bcWRS4xpwnIXMysQEpF 0gX0GAwWfmn0VUnFcMG3UV8pkgpeQC3pbMBPqHg5Cy1ZoMiOSur0x9hli9m2KvYD9nsK NBD2wailjqnZDmaZkJGPJMUIQ+KsKslyxpB0H32iuTQ0BvSkoNJajwG0ePfDzc2qgQ2C ZehHJIB/ptYPVZv/3e8WA2HlCvVbRhRlCkKwM2j9qcU+21SF+LCNrwHxKZIiqOamrMJS Z8RrHCERbLIim+KGA4sjROVFnU3sHJsTLRB4u7zcXs4v/yr8xWM91k5DVQkPhIiB3/2l UBHQ== X-Gm-Message-State: AOAM533ASfB2/YF6mYnJrZZjz1yeqFoFjDtp+92vRsaulZe2b+dFjVDq aPoC3c/sY8YYBB5MVxIX3Il+XxaUjuLePYus X-Google-Smtp-Source: ABdhPJx6jr5fCAdWz8NJtqocenE0PKs3M5FF1QRbK4QlEM50P2vcTu20RWzMWUzaKu1vMlPRqVRlZg== X-Received: by 2002:a62:80d2:0:b029:2b3:fca1:8829 with SMTP id j201-20020a6280d20000b02902b3fca18829mr31868512pfd.2.1620994904194; Fri, 14 May 2021 05:21:44 -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 u17sm4010117pfm.113.2021.05.14.05.21.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 05:21:43 -0700 (PDT) From: Ikjoon Jang To: devicetree@vger.kernel.org, Lee Jones Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Guenter Roeck , Enric Balletbo i Serra , Benson Leung , linux-input@vger.kernel.org, Hsin-Yi Wang , Jiri Kosina , Stephen Boyd , Ikjoon Jang , Rob Herring , Rob Herring Subject: [RESEND PATCH v7 1/2] mfd: google,cros-ec: add DT bindings for a baseboard's switch device Date: Fri, 14 May 2021 20:20:49 +0800 Message-Id: <20210514122051.266169-2-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog In-Reply-To: <20210514122051.266169-1-ikjn@chromium.org> References: <20210514122051.266169-1-ikjn@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Stephen Boyd --- 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"; + }; }; };