From patchwork Tue Jul 2 09:40:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 11027515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5068A13A4 for ; Tue, 2 Jul 2019 09:42:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 340442886C for ; Tue, 2 Jul 2019 09:42:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27F3428872; Tue, 2 Jul 2019 09:42:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD3362886C for ; Tue, 2 Jul 2019 09:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=IgYYK766FDzWF8KNP2qCpkjr1/z85OZzJeFvf3mVHoM=; b=esLIq+UpbQx4XJ3sMvBoGH2Ig8 xLlZOEgXCEsnEcqZ4MJoiUeGTQFNGuGZFZzqTfVad0J1PaHq1sEUm3uEmU5YOJ69ccGvHJi8Y1td9 QGNegyiEOJ6ScBP6ICy9wi5Zyagy25Hd2QlSpS7EXHR6Gh/iDftBEpMguVZWBU+Be0ZKBmfQZfx5x L0IxACn1ieG558XVWul/Kn/OBuIvvPn5fV4o1mI8PjEW3vGXYvmrIg/yU6y31bcQgAr6DU+wfVIwk hFI3Ne0aomqL4E7kRoPDFkTm7aUaj+AEqQpvAZ4JIZ/mnZIF3OZbaw03q/wUXvpKGkq89J59AjkXl KtULG25Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hiFId-000128-Ci; Tue, 02 Jul 2019 09:42:07 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hiFHd-00009t-Ha; Tue, 02 Jul 2019 09:41:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1562060458; bh=f6kRXJnx0iuLcJu8Xdd4njzNEX/9pGEhKGohBWOOTnU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BKziDrDKtqG4PEH5TiBq1a7WBSS4JlDEg6vQiLLnMIUnaZ9J0mQeMU6Rw7uhUxIs8 +RKQaEYusoYye9S4Att7DUo6Zi2N9IZkhI2TTtsAmzcNszbKAvLV6+hIyo7oSBsjK/ L5+ZkcmqyyCRtmcCSnXMTi3nsfzqzqGVYKUzh3WM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([217.61.147.59]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M59C8-1hjLDB4900-001Ae7; Tue, 02 Jul 2019 11:40:58 +0200 From: Frank Wunderlich To: Rob Herring , Mark Rutland , Matthias Brugger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] add dts for poweroff Date: Tue, 2 Jul 2019 11:40:44 +0200 Message-Id: <20190702094045.3652-3-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190702094045.3652-1-frank-w@public-files.de> References: <20190702094045.3652-1-frank-w@public-files.de> X-Provags-ID: V03:K1:WVevwR0Nk1xxgXKDn/OupV4Xtu2YX9P9Gipa9pWYtJFb5S1L5GP eTPpkrtcjoWfKZI8M/vF4fIgmhDM2w24Zw9wlsZG2v9Y8v3LjsoOMQYFcbvgCjhtZtHA7NA FnJYqeguCX52RPIWMyp+fbIvFdhn8zr8svro2mlzPPcetmUJLHAW/Z6s612a4q4e/6VgWcB i7+4xz9BCdG7KSuZTFoqA== X-UI-Out-Filterresults: notjunk:1;V03:K0:TYy+FGe1yz8=:OPybtfWj9RkoIpOblvgqL7 rF8ByWKvTBgGbudq2IcFeaOVIg2w4ykQ5XLBv/pzBIsFLvoklHAQ7QCNlAHN4jXtiB+DsL9Fj eSzYP0AoSLlzjP3z+3J3HPNe1tAfAq2HPIvcUEpIF4Am/7X5jK+fN3iCIZt4BzmzVFmPF8fPX 42xgy+i70X17keXI6NtFc1tUmR5ib82RQWg1GNF/Juu0hFVkgHeiBGMKdTtCe65Af1rPqFOVw 6OXz0CMS40fzqoIJKc9Lx4t/MHUaaPAexxUOj3z+3j+sryNI2FngQN4dvcncxY2Bdd5krS8jQ oGFfDmVV7oInaE8NvmPa3e6uZqqR4jaibfDErzEiahI54ChFmMuP+o0h5DbroH6XOLm1ymyiD nEapizIGIcSFhGUrWocjBzGrHVtpTCgbjXe1esw1AUhfM/DADVkJg7MVEpKTLyd8dh3XcO7VA Qq18xeiv2rgqEW++u0bcTuF94qngZmkgNLJjaaWSH3WxiEhFuLJFbdbuFXEGPCcWwwSWmATyK dcszWDE1cbdrf1fzortfrU1MryOmXt2A8OBk1occcvuwjNCH0AwwwnEjTrk9QyI8LOS1RUKiZ NOmvd4jSAD9tj/9MlflHj2TfNZ4v8byhgy8G3FiIdHbuZiJimK9q31xQzbx0ATEchRUf94oa+ 1lOWzu1lnS/hlhuhpnbQUuumQJ+nSD5/5yJD6gTUqFWjKKPjIRJZkCrxVkpPLuNEvtfI95Aii o5+Obw0Tx1Lsm6+PQtYc+4nP+xGrSk0ESv6nAli+dhOVcaXjvI4xOGCP+ujNbDECU6mpjPXui QU/L7qpCNfbuw96eN44o5+WuzIgpLL6JZNBv+9D+Iq8ySFB0uy8vebXxAGgY9Wfz04MnGKhzj /t+jXv9xk12B9ma0CmjIxdsw6cPpUqAeKqg94t+DVmqFkzS8sJfywn1bGmvazCSKgFkOjTbIX 6dphHmcoa0lB6X1RBQaps5v/KVRcOyJxxoZKIG+lrmMip2d4zX0j5g1J60VILwU4PsW1gIJSa lJzmGaipRmvN3j547B/OtUF6IxrAv7Tnnziw+LAYXbWpYoeb9/AXvs4BlXoTHkzi8V+7yYlli 3oz4zhKsW7FN9k= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190702_024105_870225_BC45C226 X-CRM114-Status: UNSURE ( 7.01 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Josef Friedl MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Josef Friedl poweroff for BPI-R2 Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl --- arch/arm/boot/dts/mt6323.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/mt6323.dtsi b/arch/arm/boot/dts/mt6323.dtsi index ba397407c1dd..7fda40ab5fe8 100644 --- a/arch/arm/boot/dts/mt6323.dtsi +++ b/arch/arm/boot/dts/mt6323.dtsi @@ -238,5 +238,32 @@ regulator-enable-ramp-delay = <216>; }; }; + + mt6323keys: mt6323keys { + compatible = "mediatek,mt6323-keys"; + mediatek,long-press-mode = <1>; + power-off-time-sec = <0>; + + power { + linux,keycodes = <116>; + wakeup-source; + }; + + home { + linux,keycodes = <114>; + }; + }; + + codec: mt6397codec { + compatible = "mediatek,mt6397-codec"; + }; + + power-controller { + compatible = "mediatek,mt6323-pwrc"; + }; + + rtc { + compatible = "mediatek,mt6323-rtc"; + }; }; };