Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1620684ybl; Sun, 18 Aug 2019 07:07:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQTg05P8vc7zEpVRPpAowofmBifHYjs2p3vPw4tUhBlxE78k5xi2KWX15TNATEZmH0bYvo X-Received: by 2002:a17:90a:256f:: with SMTP id j102mr16856948pje.14.1566137277301; Sun, 18 Aug 2019 07:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566137277; cv=none; d=google.com; s=arc-20160816; b=AKXxciU/nvc8dUOaWwRGQGEeXbitMpbg55xQQA6Jw5sURe3BtEG/AS6r5OhDGVgcQc /aH9Cubyo6lM5CNZuMcB23v5PfKQgMcggKkIN+JrabIygvrIx3G0EMjCL3PGWXLA0Cj2 Orzm25mGRSEwfrLknGhO/Dh+onB83MewRRoJAzoydIWaRRt8x3v8bN93fiuUBLd7vvXc cqg6BA4TcFLhmqfg+z/nwMyfLo4EjJ4R8OqeXpQpI0VJ+Zfvuj7zYaNMf+2u0YZFiMwc /8VjAXSTuoe30+sG1Nr2Er8tY6EGW+kJk6h7Kq0IZ2MSJCFSSafQIC9JTZJ+DXIr2y1f u5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=odyCVCSrnuEqY5Rm6Xf/u6uG9GvSaZWnY3Yyeet9bkI=; b=jYEEjOeiyQas3pc6k6NYp4yZhfg+Hbx/t2e7JIsY/ZZUXBY1dirp0F+pPeeAmQcgot cq5OXELLO6ZKKwJ43rBTWiaXtb9hkCVp5I2KJ1MaRMzrMbYM7IVzD7uDZ4dphNc93abS XNX5G0wc+oPTYtYkSbFo/wPcu2izP0SupacasMXwMZTRF5tjrC/+0ViYOlOdZrALY4/P Qwz8SEsfaMVhiN68wu/S9G84sOmf5CiYFh+wQ2E0iXPEeCe+te9r1RyzHEpXzvNE96/z yIn3MC9rzE1hWchH1+SeJ1EjyGiTHFwkAErkX3sCTlfiNnPYCH/ppkBDYitjdtoG8ZsS cdaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si8310678pfi.289.2019.08.18.07.07.42; Sun, 18 Aug 2019 07:07:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726911AbfHROFG (ORCPT + 99 others); Sun, 18 Aug 2019 10:05:06 -0400 Received: from mxwww.masterlogin.de ([95.129.51.220]:43030 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbfHROEZ (ORCPT ); Sun, 18 Aug 2019 10:04:25 -0400 Received: from mxout1.routing.net (unknown [192.168.10.81]) by new.mxwww.masterlogin.de (Postfix) with ESMTPS id 7913896E01; Sun, 18 Aug 2019 13:56:34 +0000 (UTC) Received: from mxbox3.masterlogin.de (unknown [192.168.10.253]) by mxout1.routing.net (Postfix) with ESMTP id AFF4243D5A; Sun, 18 Aug 2019 13:56:34 +0000 (UTC) Received: from localhost.localdomain (fttx-pool-185.53.43.183.bambit.de [185.53.43.183]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id E24203605A8; Sun, 18 Aug 2019 15:56:33 +0200 (CEST) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , devicetree@vger.kernel.org, "linux-arm-kernel @ lists . infradead . org Alessandro Zummo" , Alexandre Belloni , Eddie Huang , Josef Friedl , Lee Jones , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, Mark Rutland , Matthias Brugger , Rob Herring , Sean Wang , Sebastian Reichel , "Tianping Fang" Subject: [PATCH v6 13/13] arm: dts: mt6323: add keys, power-controller, rtc and codec Date: Sun, 18 Aug 2019 15:56:11 +0200 Message-Id: <20190818135611.7776-14-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190818135611.7776-1-frank-w@public-files.de> References: <20190818135611.7776-1-frank-w@public-files.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josef Friedl support poweroff and power-related keys on bpi-r2 Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich --- changes since v5: none changes since v4: none changes since v3: none changes since v2: none (=v2 part 7) --- arch/arm/boot/dts/mt6323.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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"; + }; }; }; -- 2.17.1