Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2419989pxj; Mon, 10 May 2021 02:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX70KmbziasRnlWwGqEzrxRXadHIx1IZSDCo9UVv1BN8SwaqmAOODJpN8bciw5dTVGJ8bP X-Received: by 2002:a17:907:7243:: with SMTP id ds3mr24190568ejc.100.1620638903217; Mon, 10 May 2021 02:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620638903; cv=none; d=google.com; s=arc-20160816; b=cXqcll+mCvHjYqNC5in8bjxnMpLVbSrJZG3XWnwhtuvqkgJzDNr9LccySwuLARE+sj gdqwg41eJLiH8ZDm6XEi80wD4qCXfu4x6av39YOc1sSMVCvoq8Ss49GLYfYexpXbzBvc Hz9sQjG9ygaa/ZA4xTdcOAUt5QipIFxz21MY22sRjZXcdNev2B+jxJsM0hc0p0qoAuZd Vmc1om7vQJxyk8mcs2Z3mXDU3otrN/4/6VXXn893q5mkSNgeRYg4tJbVyQv8Xnhp0k1n lZV8mkUHg4EWxEL1B3d/5rUcpyxqUd3OnQzvbFzu8NNhXELW6itdu/3ZZ6hlaksigyI/ BuAQ== 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=iuM2qFwJUXSo3sJ0uUDN99Vl7wLqkoUYd3aEZh6X+Fg=; b=f2C9YNEExjoewE7vG2X+53uDsLeFahBd0ETBrBwSzboygPOckEBx73utuzqYUo65nc fDebKCdSD5NdcgmiywJ6PR3E71uDAq/4aiQkquqjCMf6QoKX/1P3FUN1at+WYuZbss1v 00iKoFbEOpAQrx3uF1wjtx/fr3m9SS3HuxgPWVBKCY9YxFqJkCoMeO0Ycd4g5+qxKf78 ZSVrATNKHtyuhFi8WnccRCAn+dWHw0A4hPa9uf97NI86u+Soe6i8GxE/IayeXkCBgLxo +F5es3D+P5Nnw4z4ae8xe3WacmniLQyolbc/eXxWyWyY6Gy3Xov++Kpwp+0Af+9No1B5 VELg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZFPLINz9; 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 j19si13089016ejc.617.2021.05.10.02.28.00; Mon, 10 May 2021 02:28:23 -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=ZFPLINz9; 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 S230229AbhEJJ1m (ORCPT + 99 others); Mon, 10 May 2021 05:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbhEJJ1l (ORCPT ); Mon, 10 May 2021 05:27:41 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E30EC061760 for ; Mon, 10 May 2021 02:26:36 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id c21so12870072pgg.3 for ; Mon, 10 May 2021 02:26:36 -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=iuM2qFwJUXSo3sJ0uUDN99Vl7wLqkoUYd3aEZh6X+Fg=; b=ZFPLINz9K5Y2ICiDxQuHLQZPjY+KDhrgcDQITj7nAsKoaCeUvw7yepmVPyZy+zjzlA tnDIxC2wl08YncNdYK9+9uhlsZd4ofUuztqW3IXvTESANrefMFhUs+gTrQOwVkXw+d+p 3VwZsmhkIj+KlQfez3qd9328zjCOtjaoJImWE= 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=iuM2qFwJUXSo3sJ0uUDN99Vl7wLqkoUYd3aEZh6X+Fg=; b=T5UL4QvtofzUuYbc9e2jIEHqrttaDf1gh1CLUUp0A4fz21O/oHdC4nUqK5zYw/eRvp snWu7PG+AqLoSdcvZpgUDpyJDaImhwtRJAjJ3rtW2aDuTLPZLvk+aTcQxQD6ueyvFeaa 4M8D1RU7cbk8ZI0J9uR37vdtDjR+2aPOV2+72I4XetT+rCAfYFub9bPqrHfntsXdWzK1 dSpz8gYwYKr1hqp/oSfnwD9l6M8VaGHrrMthy7rTkq5gebQW74rnoEx2hw1jqsLVEO4S UmmyBKapPHtXMbjicZGCnnEr3sq91phyUdEn0wi4CWw4XOS7RmTt3RCj1VbskJmSO5Q6 zHSA== X-Gm-Message-State: AOAM533c9zh7riTmJVFaQ3p9RjSMoRGchOj1X71XXgpl/8dZHKdCggB8 rCoQNs9Q0gfe/QMtb2Rb3PPdkQ== X-Received: by 2002:a63:f90d:: with SMTP id h13mr24293046pgi.18.1620638795597; Mon, 10 May 2021 02:26:35 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:179a:d92b:9be:4135]) by smtp.gmail.com with ESMTPSA id a16sm10671391pfc.37.2021.05.10.02.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 02:26:35 -0700 (PDT) From: Ikjoon Jang To: linux-mediatek@lists.infradead.org Cc: Jiri Kosina , linux-input@vger.kernel.org, Benjamin Tissoires , Hsinyi Wang , Ikjoon Jang , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: mt8183: add cbas node under cros_ec Date: Mon, 10 May 2021 17:26:31 +0800 Message-Id: <20210510092631.3141204-1-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.607.g51e8a6a459-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a 'cbas' device node for supporting table mode switch in kukui devices. Kukui platforms with detacheable base have an additional input device under cros-ec, which reports SW_TABLET_MODE regarding its base state (e.g. base flipped or detached). Signed-off-by: Ikjoon Jang --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index ff56bcfa3370..40030ed48854 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -816,6 +816,10 @@ usbc_extcon: extcon0 { compatible = "google,extcon-usbc-cros-ec"; google,usb-port-id = <0>; }; + + base_detection: cbas { + compatible = "google,cros-cbas"; + }; }; }; -- 2.31.1.607.g51e8a6a459-goog