From patchwork Wed Apr 28 16:42:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12229679 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.0 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 DADEDC433ED for ; Wed, 28 Apr 2021 16:46:45 +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 33ACC613FF for ; Wed, 28 Apr 2021 16:46:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33ACC613FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com 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:References:In-Reply-To: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:List-Owner; bh=azymuGWrIjKOVkbsk8SXmA3SgCmTMVewMlsVnlaAzVE=; b=VbAj6EJSf4wb+AMR98bBLdWci uso/UsUj54mzzNhx/a5ZktGrbO2IJw7tQ9lSotoxFONFNCl/o5GREGrCIOc1KQHAQ1cHmQXPVeGHn zrSfZFR5+xPhQQdcQRu2fKmpIkfB9fPiC1mHpG9p7ZxNlRyV1lQK3kgXFInyc0ML0JEAPse7fv8Ae KAlwZmlTjMn41WMR9ndBTpjHz4jaOeW4trCi0Cit4pzMFlMNlXzeVj9AFv/2ygbMRWx7yYudznJPj GpVOqbC41m8y5g+fnCVCCiBZAp0okIzqVuHmOllNwY8+zvfghHO/0YJ5iE9e+5bPPF3bJbrdZ7KVp HwiBgavuw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbnIW-003ru4-Uu; Wed, 28 Apr 2021 16:44:25 +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 1lbnGl-003rHH-T8 for linux-arm-kernel@desiato.infradead.org; Wed, 28 Apr 2021 16:42:36 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=rEhU8Um5f0JiN5UeHBJI5GyHDmhvUyYTxNlEBkR3UOo=; b=AMzfovCPC2BK24AGM5MGpPruxn 4qkVEBHXtodFnvp5hKAmB7BnuWPmRUojnejg7srMShJWDd7i4StR/JcFzOyeO0K0BzIcZWK6EDe7Z YTxTGl+T1hO4fPGSwxW3wbiiVNnBfilV7iT2sTW9I7DdFNMj76+MqycGb8qRgwRpQ/FFQMOAoEWMx 3cBcvzQFhmRKmGUR7DXJ/ZCk51cjO9ErFLWXELIhaae1a4hfYve85lu/bAgaCQjyQWZNJaCnO8910 bzYaOZTo8+qtSqO6SiCH54tVcGBRSCMSLUBOzVCaV34FjnrCTot+onZYI8iDAYknDSr0XS8ySFGdI dujvyQ6A==; Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbnGj-0001hY-Et for linux-arm-kernel@lists.infradead.org; Wed, 28 Apr 2021 16:42:34 +0000 Received: by mail-wm1-x329.google.com with SMTP id n127so22378345wmb.5 for ; Wed, 28 Apr 2021 09:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rEhU8Um5f0JiN5UeHBJI5GyHDmhvUyYTxNlEBkR3UOo=; b=VANfQzQ0qON+/3vbMLMeo4ASaKFeXcGWMD6nIW0LD8DjR1bqi4cUiu4gKKeaLke52p qIEKuNpnOiXnFStis487cvxwy75vIEhnZF79j6c+Q5ahIwL+kzfAT7nTBXd5/HxTSdZi QqgCB138YLKciSWvIYZjC7A0qhuIk30UR5sjlYySEmRH1PrnbMdP9YSkE+V9amPfgN7R AXkAk5vkO9Ium1n1CU3J6s8MQTXDVaaN7pxpwVAZJnt8+UfamsBUWFB/DswEgxNwaSHV aQtt21fZi05Tu0+0dIIOpug4QInjppHkAZ7KtIueLir5KFpei5pMLKyBuRUKPElfOmzU +U0w== 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=rEhU8Um5f0JiN5UeHBJI5GyHDmhvUyYTxNlEBkR3UOo=; b=MTsfmSIv0SQHTtwIepplC0RYKU21Sk88LqqkHzsmiY/yVkpbwjH0C3B58XDGloup6K oBHaHmrqvgtqWLebS+ZgJGA/gYQ6NY3ZSJsB1aSMdPVx7UHV8UYKzaZrUYs9hFnioVBu IVueSnNBx8J/SPyrzL0M+EtcPnPv+nd1+QG7oJVdL47HytQfwWLEcLZEec77JI9DrFDe dZmIcLA2Q14aIwpgvpUO7OaLnHglYxNIMkcMvIItM0TBJvGPzg1+2556Ru8/QrJdyZoN MWmkzSZbcz0Mak6ALEQG0dbcy92l2KV9TzwsAV9iVy+ueA3GTPRPGzp2pgOotIHUaIJQ hUUQ== X-Gm-Message-State: AOAM532NR3UK92ly6ecsY1FMQBaItx3iS9wkFvIGaJ1UM5Cx78KL0mTO s3/wqfP19lfGeVRmyRiXpwqPUQ== X-Google-Smtp-Source: ABdhPJxng5RPhsw/McvY8XrJYzLmH7UXgx8AS7ZgIpJmZ5h8u3Ww/Ds6Rad8TOErgiFInrsHrO7P3g== X-Received: by 2002:a05:600c:2cd6:: with SMTP id l22mr25791567wmc.160.1619628152274; Wed, 28 Apr 2021 09:42:32 -0700 (PDT) Received: from groot.home ([2a01:cb19:826e:8e00:5864:ddd1:d623:f912]) by smtp.gmail.com with ESMTPSA id o10sm351299wrx.35.2021.04.28.09.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 09:42:31 -0700 (PDT) From: Mattijs Korpershoek To: Rob Herring , Matthias Brugger Cc: fparent@baylibre.com, Mattijs Korpershoek , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] arm64: dts: mt6358: add mt6358-keys node Date: Wed, 28 Apr 2021 18:42:19 +0200 Message-Id: <20210428164219.1115537-8-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210428164219.1115537-1-mkorpershoek@baylibre.com> References: <20210428164219.1115537-1-mkorpershoek@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210428_094233_527275_0A76A359 X-CRM114-Status: GOOD ( 11.70 ) 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 This enables the power,home keys on MediaTek boards with a mt6358 pmic. Signed-off-by: Mattijs Korpershoek --- arch/arm64/boot/dts/mediatek/mt6358.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6358.dtsi b/arch/arm64/boot/dts/mediatek/mt6358.dtsi index fa159b20379e..a1b017a6a751 100644 --- a/arch/arm64/boot/dts/mediatek/mt6358.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6358.dtsi @@ -2,6 +2,7 @@ /* * Copyright (c) 2020 MediaTek Inc. */ +#include &pwrap { pmic: mt6358 { @@ -356,5 +357,16 @@ mt6358_vsim2_reg: ldo_vsim2 { mt6358rtc: mt6358rtc { compatible = "mediatek,mt6358-rtc"; }; + + mt6358keys: mt6358keys { + compatible = "mediatek,mt6358-keys"; + power { + linux,keycodes = ; + wakeup-source; + }; + home { + linux,keycodes = ; + }; + }; }; };