Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp359832pxj; Fri, 14 May 2021 05:23:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7FGHg/1adJjIOO2dBP7cwQN8e6s3cQaYsmxXkbP0Qw6ElqVc2ROzsG7Cn4Ei/lF4UFj4T X-Received: by 2002:aa7:d513:: with SMTP id y19mr54721150edq.9.1620995035906; Fri, 14 May 2021 05:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620995035; cv=none; d=google.com; s=arc-20160816; b=gWh65lIYPHF/OzoDHIlR/7MVOksRa8gfQg4ajK9AfaGDb513mbuet7/X+R2QcL3he0 FjQqbiGKb8Rq8hkpc0AdaNWMBWW1rj0nWMtmFQGoGTBdGmTa97WKhGYkoBghKCMHhCoP nxAyun61+vW62lMpd+wSwAHh42M7cfAd/7Te2Ch2PhuLLMpw3LVlB5ijiKPTJiQnoGXY DeQewbw/zniJjFBhBrdHWIgTv8/Slvd0Xm4iURfPl7N95gLThDtld75I6Y4ZjEcZQaUF 90pMkjcRGOQI6JkdMsyjd9+2Ggs/eiL4WTSPEKh+sMN5aagEVxt9cmThZRSl84JOkzw3 r/cw== 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=eDsBcMn1LjQ/hDt4A5VW4rjJ3axqBAgkESJwxk85dos=; b=yv7/WmTKbOgRhKelU1qi3nVDGDFiItFMquPlW82eLPEMdphTuiwIrMIwThNtRFhM3A IHrxrL7e5T03fezsSyEQbdYVT7m0+WPlxHgC1lkRqBTZeWQQ3DKCiwhQZD0arsUIADa9 zwzIv03YKf6O+NTIPMS94NNHG5NRt8qBC7wVI15p2MAIFQWLPkt5sYp/eEbOExuzqbyQ 7YDAryShdVkzo68kNFsED54nVtVYH18QBHIOAFj1YUH8YpfV5kXEMpzqoyHraNcLsVgg 0C7S4x3Y2cqvl7sXnuSKr5Ocmr3sLplwIeXO+m9bMOuP4gOWHl6kBtedaxCJ2Yyp39WY qtoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SW5DJIHQ; 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 de51si1383453ejc.406.2021.05.14.05.23.30; Fri, 14 May 2021 05:23:55 -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=SW5DJIHQ; 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 S233396AbhENMW6 (ORCPT + 99 others); Fri, 14 May 2021 08:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbhENMWz (ORCPT ); Fri, 14 May 2021 08:22:55 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BE9FC061574 for ; Fri, 14 May 2021 05:21:44 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id h16so11744060pfk.0 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=PZEYuZolRxM8iAullsLA5rnFyaiWcjwhbLtUvoM43QunOmnc4Y8/v4VhGE/iba81Fq 6Cvs60zvgXNc6TRRNtWljf/XLdWcu21d5izxBLRsP1esQfEnhJGP4D6qyFK0VnOnRbmd mkC+XJGqpFKwengNvH2GQa95uF1cnRSyjVKESJi8BT8ZDiNO9rTyTwGUyOchchWS5CXi /qbsIrUXGPctM8M0iKTvhx0xu4DMBdgB8bvTHMRXS6DrSJXtdbF0XHOfWhe2pvF2el7o 1psf9QnCM0tF+fw1gk32X6ljOVbae2mbLFetlswG43DzFz8SgbSarYC3SfsubajEu63l ZrKw== X-Gm-Message-State: AOAM533MTTpg7noMzcp+g+fXIa+TVSY3MGtsFnPsKT+xW7zhszx/6L/g w49pwCBNkclcsJcRnWce0zTloQ== 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 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