From patchwork Tue Jun 4 17:21:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 10975815 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 5F7DA1398 for ; Tue, 4 Jun 2019 17:22:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E08E287A5 for ; Tue, 4 Jun 2019 17:22:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31EBD287AB; Tue, 4 Jun 2019 17:22:20 +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 DB862287C0 for ; Tue, 4 Jun 2019 17:22:19 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=FB56TLXyCRIYBEqGOnbRvDGNQs+mNX8oHmTcGC5Lu68=; b=FJ5L5SZocr1JyF z5eMkMY4y4MZwF6y5ZCtYq9WjghZkqgpTwKRTtipRPqNlKiKqctsOPnIVvvyoOrOqhJzh1T1cP6Az RfLX59nVlP31khIEkVSV0AZKZTN+YYrxST7unKkud/y/VMGlXZqTrTrpwYaAjtLnnIbPqyBhduRzg orUgdB0V7BHrPtsXKeW6uVvai4bZr2wOseXHw72AjFbM8q+NK3wLPvAunDlm8pEoUXN+sueRO++0c ZPW+f1mf1IO8MxhqtCM8SymQovEbzGkqeJLE4wxpEW0mapGEztlutMZfUhH/jg/9TJm857xDZuLJ9 DOyg0mzaNv0HwIfwaARg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYD8Z-0005sN-5B; Tue, 04 Jun 2019 17:22:15 +0000 Received: from mail.z3ntu.xyz ([128.199.32.197]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYD8W-0005rS-HP for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 17:22:13 +0000 Received: from localhost.localdomain (80-110-121-20.cgn.dynamic.surfer.at [80.110.121.20]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 4C04BC62EF; Tue, 4 Jun 2019 17:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1559668929; bh=cSocZErgHFfym8KO8Z5rspnCN1hcPRcdht1ciFTlVhE=; h=From:To:Cc:Subject:Date; b=O1YSYu+F5veWrPj/0ckhF8FFjnzZdHt2Izv9JJOKnYa8IUkEpfT3nlpp94xD8O3zv IDoK0r4PDmCrwazCNfg40Z0G4L98LSaqpDJUvr9dM3qLZw0X1y4Az+5QUZP0HJ61sL WhTpWOANLHN4Et6lbYu3NNdmhVNZA2NMGLlm0lxI= From: Luca Weiss To: Subject: [PATCH v2 1/2] dt-bindings: input: sun4i-lradc-keys: Add A64 compatible Date: Tue, 4 Jun 2019 19:21:53 +0200 Message-Id: <20190604172154.25472-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_102212_796228_D7DF14E5 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Maxime Ripard , ~martijnbraam/pmos-upstream@lists.sr.ht, Dmitry Torokhov , open list , Luca Weiss , Hans de Goede , Chen-Yu Tsai , Rob Herring , "open list:SUN4I LOW RES ADC ATTACHED TABLET KEYS DRIVER" , "moderated list:ARM/Allwinner sunXi SoC support" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the A64 compatible with a fallback to the A83T compatible. Signed-off-by: Luca Weiss --- Changes from v1: - New patch. Document new compatible string. Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt b/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt index 496125c6bfb7..507b737612ea 100644 --- a/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt +++ b/Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt @@ -5,6 +5,7 @@ Required properties: - compatible: should be one of the following string: "allwinner,sun4i-a10-lradc-keys" "allwinner,sun8i-a83t-r-lradc" + "allwinner,sun50i-a64-lradc", "allwinner,sun8i-a83t-r-lradc" - reg: mmio address range of the chip - interrupts: interrupt to which the chip is connected - vref-supply: powersupply for the lradc reference voltage From patchwork Tue Jun 4 17:21:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 10975817 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 098691398 for ; Tue, 4 Jun 2019 17:22:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEAE1287A5 for ; Tue, 4 Jun 2019 17:22:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D285D287BF; Tue, 4 Jun 2019 17:22:26 +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 85880287A5 for ; Tue, 4 Jun 2019 17:22:26 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=5s//MoxtwhmYy85qW/0QedusToJg2ONmq77xrrxQABQ=; b=Kk1LOEP7Pxohoz yrXIjASHv7sJokyRd2FTxbEvhh2WweH3UqtyXjDFZyTbuEymF8ZRhmqu/GxYC6GmATRh3oI9JpHPO 8BQ1a/NSWQWbwJs8fByD8GMgMVeek/L601kT6NOSKv+iKtEDk2N3zcVpgjHy9Gkq371Fvo1VayxxA CAIoZIzC/E+HO9QbXsxJ7hS+hoqiOjUtRFqCVjtD2ftD4Ua/f8XgEh/6BzC4bvRLrKQSxDwojrZ+N Vvw1gWn/4zViZ3AwXzwZumqx2rhfyj+aBOhz1je9Xf+3+P6xyRq0gch1aOaflAg7boDKt9yPYhJBe +UmlYjQZk8Lyw4YX4xtQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYD8e-0005yu-SJ; Tue, 04 Jun 2019 17:22:20 +0000 Received: from mail.z3ntu.xyz ([128.199.32.197]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYD8W-0005rT-Qv for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 17:22:14 +0000 Received: from localhost.localdomain (80-110-121-20.cgn.dynamic.surfer.at [80.110.121.20]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 1AB48C637C; Tue, 4 Jun 2019 17:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1559668930; bh=BiJVO+igEvB/BvDV1guw1BMUA9XYdzPpn3R1VKC8Wmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gr/cp8Ekax3nNSNz0bYu9BJ8eO9tpM8CvlbQwKB5VZRzVNIpTf7cplSa6bXNIlcEG pgYfG0wmJ6UWmXgkjMEM/t4z79l/gyzQvwseGu815a2FD7la7THMd3kMg9wGRWQE/z WOqPbWGEd/i3o5v7M6C6qxKuwZpyg1ksnkW5MDZM= From: Luca Weiss To: Subject: [PATCH v2 2/2] arm64: dts: allwinner: a64: Add lradc node Date: Tue, 4 Jun 2019 19:21:54 +0200 Message-Id: <20190604172154.25472-2-luca@z3ntu.xyz> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190604172154.25472-1-luca@z3ntu.xyz> References: <20190604172154.25472-1-luca@z3ntu.xyz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_102213_006143_03EC7400 X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Maxime Ripard , ~martijnbraam/pmos-upstream@lists.sr.ht, Dmitry Torokhov , open list , Luca Weiss , Hans de Goede , Chen-Yu Tsai , Rob Herring , "open list:SUN4I LOW RES ADC ATTACHED TABLET KEYS DRIVER" , "moderated list:ARM/Allwinner sunXi SoC support" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a node describing the KEYADC on the A64. Signed-off-by: Luca Weiss --- Changes since v1: - Use a a64 compatible with a fallback to the a83t one (the A64 also uses a 3/4 voltage divider, as is the case with the A83T) - Correct the reg property (size 0x100 => 0x400) arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 8c5b521e6389..ba0ab1045e00 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -730,6 +730,14 @@ status = "disabled"; }; + lradc: lradc@1c21800 { + compatible = "allwinner,sun50i-a64-lradc", + "allwinner,sun8i-a83t-r-lradc"; + reg = <0x01c21800 0x400>; + interrupts = ; + status = "disabled"; + }; + i2s0: i2s@1c22000 { #sound-dai-cells = <0>; compatible = "allwinner,sun50i-a64-i2s",