From patchwork Wed Jun 9 03:25:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ikjoon Jang X-Patchwork-Id: 12308771 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=-16.9 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 2A825C47095 for ; Wed, 9 Jun 2021 03:33:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D86206128A for ; Wed, 9 Jun 2021 03:33:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D86206128A 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=bombadil.20210309; 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=Ho+ozQGUftPz1seOkef+q3f2hrGD3HWrtR5fedfDbGc=; b=4tNdNdOSL3Bq4c Kwa2HkxuPMHtzTShlp1EDlwU46jOTN2P9Tred9aaFKEStOVG5LTY08LiwTu5IJenSY4oFCWvmEjwc esL6+TuxWa0a6kp8ZMEOmH4JfYCeLSpO8PPLd7gbpaVqR7R8y7pnz3a+0pqdMn5uDlFl3BHpJJ8zB 0FvkLHdXO95tNfKSF79sRm7ts1smUiBdUi+eAPvp8tHPNUq8CU8o4ex0zjAhRLeKFi0z+7ehgzLdE Ush4NT8CU/hSH7V2H/PMif2oeL+b5iGYo/eGKSPKYir5c/FZIY9LgBP7rS6caVgo0HV/6ZKt8E6/e yrJRYLYEGVkI5YW6ZErQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqouC-00BYaq-Ls; Wed, 09 Jun 2021 03:29:24 +0000 Received: from mail-pj1-f49.google.com ([209.85.216.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqou8-00BYUY-IE for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 03:29:21 +0000 Received: by mail-pj1-f49.google.com with SMTP id g24so537215pji.4 for ; Tue, 08 Jun 2021 20:27:18 -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=MdYrW81rTRXOyPwwkBxz8oEi4fq6qdyXtGkz0juieDI=; b=oM5dWCghrtGmRy3vXH0k82IRuHsl9PMV9Y87AV1Zaz54x7HGdVWxu43tLv4fncOx0J xLZ2H3DhJKC69qT80S/baQirsqtrhIndxLA426DhYtYAxf6Mw1FHtoSedK8wbZGiucvj o9YaaLtkJFPA5CY8pD1jmQzI5pRtzS+CiRFVk= 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=MdYrW81rTRXOyPwwkBxz8oEi4fq6qdyXtGkz0juieDI=; b=gk3Pa7MkX+p3I6QPAmxkkwVes/DmKE+UyoW6+qL+Mr4C8oVN/WcVNYkvaVcw2avWLp I9P5zYBhkTNlaq0JoOnI8oxoa+XPxGsQ2cduJ82qTp0/XCz7ok4l+rY9i4PufJZtCIs9 Hh1ZbDqPhMsFNEosQUxvIZV+rBGvRaSQpa/Aok5ZJhAHlwkd/5zSRtpW7gejQ4TKyofy LTivFP3jPBFMd8oXppbacTNqLrhbt7gYQBZF7BENUUjfTmiAfxbmH85PO2J4bgH78zXh UYSycLFpg4uzmir1S9E8olnUlAbSp+zvXFGKsJAgt46k7RqBw7Wn04ACsVnsiD38xo5w gBaQ== X-Gm-Message-State: AOAM531144xkxehucpKncJczL47ofVPBd9vULTs/NA1LQcOM4NU3ZdGR M93MhQBy3t/vUsNaF02boudXbg== X-Google-Smtp-Source: ABdhPJxU3TRagjuWEF2Gz3E1Ucyrx55ygzxfYieVj3D0ExyoJPKDqzOCd2hmUMkedHakii/hod69Hw== X-Received: by 2002:a17:90a:a41:: with SMTP id o59mr8087029pjo.203.1623209177949; Tue, 08 Jun 2021 20:26:17 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:10:2585:de55:d6c4:950c]) by smtp.gmail.com with ESMTPSA id 125sm11728635pfg.52.2021.06.08.20.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 20:26:17 -0700 (PDT) From: Ikjoon Jang To: Matthias Brugger , linux-mediatek@lists.infradead.org Cc: devicetree@vger.kernel.org, Guenter Roeck , Stephen Boyd , linux-arm-kernel@lists.infradead.org, Hsin-Yi Wang , Enric Balletbo i Serra , Rob Herring , linux-kernel@vger.kernel.org, Ikjoon Jang Subject: [PATCH] arm64: dts: mt8183: add cbas node under cros_ec Date: Wed, 9 Jun 2021 11:25:54 +0800 Message-Id: <20210609032554.2443675-1-ikjn@chromium.org> X-Mailer: git-send-email 2.32.0.rc1.229.g3e70b5a671-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_202920_608497_25859728 X-CRM114-Status: GOOD ( 11.39 ) 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 tablet 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 Reviewed-by: Enric Balletbo i Serra Reviewed-by: Stephen Boyd --- Resend this as a spin-off, other patches for dt-binding and hid driver were applied. Link: https://lore.kernel.org/r/20210514122051.266169-1-ikjn@chromium.org/ Link: https://lore.kernel.org/r/20210415032958.740233-1-ikjn@chromium.org/ 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..1512605a438e 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>; }; + + cbas { + compatible = "google,cros-cbas"; + }; }; };