From patchwork Mon May 10 09:26:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ikjoon Jang X-Patchwork-Id: 12247331 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6600DC433B4 for ; Mon, 10 May 2021 09:46:36 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7265610CC for ; Mon, 10 May 2021 09:46:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7265610CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=mvwy15OduxNkRaLhZYLj2f0+u7dvzx5l5WuUjuiLflE=; b=nSuzsA4MWubXTD4zy05/frn+5U 19s6NLKYVcpHAurz0+Ff1e5crOq71SVIaMco7iM01xbbiTH0J9s5A6vp6HGj6uA+C9YBs8jM9GDiG 95jD8dME1RE/Rv0dKaMjid8GzRtHAJtDaEYx+TzZJueoenHWNypXphEVw3L2zmYV94agZF/pHDw+4 xBGV+oJhOSEIm5dVALz0P54lrBAlaiOsvz0d5ouxYMcI2YVwApgB+AQAStPTBGU/vqlsRZ7792tun VfkHZA9dmM2sxd7Ky4dg0f/OTlXH2HUC7kCQPcQckuVyShU0JBE5eReDCZJbaQk77Uh2ZnQe6QI0x 5P26VepQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg2SK-00DoBw-ME; Mon, 10 May 2021 09:44:06 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg2BU-00DlJP-EH for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 09:26:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=iuM2qFwJUXSo3sJ0uUDN99Vl7wLqkoUYd3aEZh6X+Fg=; b=siq3j//cZQyq/kDFroe2r1Z+rJ CFlTJJvFZjJLQkOxHTl/R+yzBL6ARefUN9mkdFNgj8Tn/bRk6FvocHf1H2iHNWGeGBD1EB3qBi9H1 poICWkN1mjflbh1CJvkdth0RVl+N228saIxyicI6mJM4ff2WdHQOj0AvoMV+MwExrdGaMF/Jw/IW7 jElwlyj+snElDeq+gjmPm5gnz0pBwQSZUKmrJEmllLLydlaz9NlzqSgRMEfnHVg2W+flY5GyM3XyD UewJONOc1md8cpi01aT4gvp0n6STkDldpcoOowDpsnXRabR1+ucn3w/Z77JgyylQB+yjnaoBe8GqT tYbuL3jw==; Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg2BR-008SLH-Gh for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 09:26:38 +0000 Received: by mail-pg1-x531.google.com with SMTP id s22so12853375pgk.6 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=lR/msqGOIQZjKXKPrTwR8e/K/+E0jef2RU9xqOaDLYwE+ihfDj5EwcTvhUGWqqKRny h6rEKeTSCLWGrwMfnkHA2ena0P5rhSgiLj7yEfTPbrt3QFVm443ovKwBCmT22o/Bhpr/ basITpSoMc7/5LKo6hgaCYSEzAlA/qQcvhph+1ZnOL8r8g1Eeq/tcM3BlW90XU/+0Foe 6Fvk+bD9OVYNZ/jMG0HUyAczKXHsNe1/d3nO1o24Ye0yXYGEIygp8dCHmK9ah7NILfyA LQqE38FVgC3rDEeUYu+yQLeIgivtBWMPvfmMbYdOoUi5DZnCRwigjo+QytAZ47pivfDH H8hQ== X-Gm-Message-State: AOAM531brZB0NnFLSaZk68UFIApWmQeu7e7yt5yaA+FM9E8+zRZM02VX gTnMTF6NQhBZftDmF4FxXR1PtQ== X-Google-Smtp-Source: ABdhPJyjbHbTp9INK0YHJwsBYB1iYZU0TdNo61ldaxVdgeUWxk/SS1fexDBLZF8U1jD9dWDvis5I3g== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_022637_589040_217BC714 X-CRM114-Status: GOOD ( 11.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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"; + }; }; };