From patchwork Tue Jun 4 16:29:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975641 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 AD78514B6 for ; Tue, 4 Jun 2019 16:30:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AD5B28433 for ; Tue, 4 Jun 2019 16:30:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EA1A28518; Tue, 4 Jun 2019 16:30:16 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 31A0C28433 for ; Tue, 4 Jun 2019 16:30:16 +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=ZtEB5ZqZmR7JkQKtNPPngjC2wQPDh1kSJrdOPUz0dvc=; b=c/z8AkdTsEBHi9 A2LQeijz6eBlTMIofBVHtMOxI0/yezO0nzhIYRviBKh1b9MmIBRg/3erb8OuATvNYkTpBdfGvs3q/ UT6g2BhOlX3f+lZ90HlLvhNG/K8rgu5+Z6GdI81Jw9BQGpcZCKh6gNa2249ZUokz2s+yux2sZrmfd kdRqBbwOo8erOAMCkA0jpmZvrsTn6rFm14TT/15stxHleR6AtYIswM4VsmSc/86WUJkF/DiTD7bX3 00hKngpj7LGwqJYFsiP+hzLIAnDzHlLJRTXHnjsznR+N0wIhkZIeocYhYw6AMdXo2+NyuvPQRjLSO nzOA19LYn80kJS+3nBiA==; 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 1hYCKB-0006KU-2S; Tue, 04 Jun 2019 16:30:11 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCK7-00064e-L9 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:09 +0000 Received: by mail-wm1-x343.google.com with SMTP id 22so732268wmg.2 for ; Tue, 04 Jun 2019 09:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+ItpZv98uGNXVHvsKA+wMDHUe83WSTbZUJdpb4oIfkI=; b=bo/YprrUKpC6Rpn6p9wmA2Zo//yrk66+wgvE05Q3EMN6NO4KgNta/Stz+nJy7hfou6 s+T2+EHU4pICuut13QgBFR6KDRy0fSfap6aQKrnkhsFuGx6LtoesevGE1P3oD/Iljigg u+It7fJRJ7CVlLdWVJCk9tNRtPe4ugbFSx8kIPYaDTXo6UZ4jRZeexkUJUYSCqrXhWHn qzGRcUZEBxLGwEEEbXt5CKLOQaR8yCw+hJhUxHRsvmkUX8qJ72HOOH8tb4u5x8DLHt0j rtjNUX1NNqOO0AfJtBVUO1QPX3AF+YHJhh+o+qIDhmYjj851E/tTV0RD3xHPh6hU0NI0 cHJA== 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=+ItpZv98uGNXVHvsKA+wMDHUe83WSTbZUJdpb4oIfkI=; b=MnecQA2GUQb+q9Gvs89Lm9nOWFtkbn18LzvG4C92F0j9eJ3m2ycBnZLvk2g1gikGer 52DxzXKcsYiQzAexovTw93UMuMfhso/UMr3dcQRjLsQdfDbDd5KQsaSUAT0Mcfu3JUQY rjUJTuA0MXURiu8mO6FPxcIDNOp4YmCxRyImAl4xWm0e+elFYNDNUQbcvACNzu2ioI40 lF4tZIx2xNMYZhSydyKoL9uQLwWI2z4P6qB8bjtfmjFMQVg6iHEqNwE2WnUTJN0Xu+7t yNksBLsKhWSm1TU7Nqqbv6nfav+CJI73i+J30qGN+FF7yRYOlkwFDlr/q22kgm/zoGf3 Mv2A== X-Gm-Message-State: APjAAAXI/TRYdOXX1YeP8H3rbndXYinhVO4B8F/jVzea++o9NXF+/WR5 WbRtSqFhlqGkDT2wOUl2Pw0= X-Google-Smtp-Source: APXvYqyuxr/eS6LF9BsE1JCeLrvKAvLnu/CvPjkOoH4LergYJP1rASUPPT4CJf5ubSK8EpGRgf1Xmw== X-Received: by 2002:a1c:44d7:: with SMTP id r206mr19492073wma.164.1559665806209; Tue, 04 Jun 2019 09:30:06 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:05 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 01/13] dt-bindings: media: sunxi-ir: Add A31 compatible Date: Tue, 4 Jun 2019 18:29:47 +0200 Message-Id: <20190604162959.29199-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093007_725175_A9400128 X-CRM114-Status: GOOD ( 15.05 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Allwinner A31 has introduced a new memory mapping and a reset line. The difference in memory mapping are : - In the configure register there is a new sample bit and Allwinner has introduced the active threshold feature. - In the status register a new STAT bit is present. Note: CGPO and DRQ_EN bits are removed on A31 but present on A13 and on new SoCs like A64/H6. This is actually not an issue as these bits are togglable and new SoCs have a dedicated bindings. Introduce this bindings to make a difference since this generation. And declare the reset line required since A31. Signed-off-by: Clément Péron Acked-by: Sean Young Acked-by: Maxime Ripard --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 278098987edb..2e59a32a7e33 100644 --- a/Documentation/devicetree/bindings/media/sunxi-ir.txt +++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt @@ -1,16 +1,21 @@ Device-Tree bindings for SUNXI IR controller found in sunXi SoC family Required properties: -- compatible : "allwinner,sun4i-a10-ir" or "allwinner,sun5i-a13-ir" +- compatible : + "allwinner,sun4i-a10-ir" + "allwinner,sun5i-a13-ir" + "allwinner,sun6i-a31-ir" - clocks : list of clock specifiers, corresponding to entries in clock-names property; - clock-names : should contain "apb" and "ir" entries; - interrupts : should contain IR IRQ number; - reg : should contain IO map address for IR. +Required properties since A31: +- resets : phandle + reset specifier pair + Optional properties: - linux,rc-map-name: see rc.txt file in the same directory. -- resets : phandle + reset specifier pair - clock-frequency : IR Receiver clock frequency, in Hertz. Defaults to 8 MHz if missing. From patchwork Tue Jun 4 16:29:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975649 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 C1DDD14C0 for ; Tue, 4 Jun 2019 16:30:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0C9428433 for ; Tue, 4 Jun 2019 16:30:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4FA928518; Tue, 4 Jun 2019 16:30:41 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 4341428433 for ; Tue, 4 Jun 2019 16:30:41 +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=F3Fp7N5+hNNDPP+0A6EopFSbbK08TfiG/1B6onmEl3o=; b=JQRe/xhOn9GQ3/ /h/LJGtdaPWm3Kec8JJhXdxxhenbhlQNrPkDq+T9bWZ48c9zOIy6/1uncR06kd0/CXqIM8yl0kd+l BligpqV43ePg29IZ98zIW2WOzkCEt6TkMCCcU01VIlkdY6rr+MTu+V5fWvu49WkT5qZwfsF3n+87m 6l1VWnVxraMFj1z4AQfm3GnMTtS6/+P+nNy5QjOnEGAdSXLos3kUvE1VqBP2fBOMlSiKaWNkWKs4o v3uQLH+ZuoyhuPe7JunEoc++8BG8iKb+ygn0ouswH+b0AvcuksjZN7+aFFj+6vRVqMmft0O8Z6XCJ YSL/+nVztxkP119IFZlA==; 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 1hYCKZ-0006sM-Lp; Tue, 04 Jun 2019 16:30:35 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCK8-0006JD-R7 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:10 +0000 Received: by mail-wm1-x343.google.com with SMTP id t5so721919wmh.3 for ; Tue, 04 Jun 2019 09:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MV6jnkx+iwxZaJiMiVz9qnojBD0BD/3s5TPe2dpCEIM=; b=Fx/IlzsiYB9NYMdSCB4N/0Fj/qvx9OeMIafcg/PSyOCDwGIesjtTCej002nbNf4JPz A+bujnIxIilBNprucYdILxd1YfwkIdB9NF5tJHeIRgq+GqtBODKeetd7IlWQEVNS/T4V Uuhbz1duDEJKlQupeWkL7I+11uiZ5HdfeLxgr2Pov3CSp8bXGLqWWBZg/yX+EZGYmsHF njkmZ18cXZifWLATeXayCefXx5+tZtP9C8546a6eYd3FosyS29FmLxytOxW/+ReL0muo 3G6x5PHVjYlT4j2mBrzTzXodcxUaNXkueypM9+K+dxEVGWTVay3M8vbiFrstyKORq435 2ICw== 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=MV6jnkx+iwxZaJiMiVz9qnojBD0BD/3s5TPe2dpCEIM=; b=ORTo36yzSnNnmdndclpsczkqvh09V3VZX8lL+LYcbcLIrd0jcKafBYUiLsC6SQ6Obd 6QMHkeB9yrL7v1Qd1B7BM8vwINtJeAxqNnWna4sKTJgUMplZNUDr7ki5nUKMHqEUTm6q hacehd7HBCjThR+L0Keml+ms+tsnzXh3762qrvQb9GPFtYHKXRe5fo1Zb/dC7m3vaauV yoyBg222+RawRcXP87sIHSCkAzFizqq+72qIaZu6bk0x3DOG1T4zZMGJ+8h/cHcszO7i s+L0YkQePqOdcnOL2ZT8TYo1dqHHUuj8T3f9CnvrMGB+LGqD7iWQfv4N4wC9S2AT3TDl hyHg== X-Gm-Message-State: APjAAAVVmUcAlJCD+fESTS2QUHjGSn1FmtEATv7rcV2eLpk40FhRBbA6 sJdxSMfeOdU4sWdCKXGV21E= X-Google-Smtp-Source: APXvYqwJYDJu1KcvEZ11IPopX5Ugbq2R6IGnkd1uXC8mohUAoxPbVCeDp32xyLvquSj+Yt3X0cF4Fg== X-Received: by 2002:a1c:1947:: with SMTP id 68mr1406373wmz.171.1559665807417; Tue, 04 Jun 2019 09:30:07 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:06 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 02/13] media: rc: Introduce sunxi_ir_quirks Date: Tue, 4 Jun 2019 18:29:48 +0200 Message-Id: <20190604162959.29199-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093008_880895_F9FAFCF7 X-CRM114-Status: GOOD ( 17.40 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 This driver is used in various Allwinner SoC with different configuration. Introduce a quirks struct to know the fifo size and if a reset is required. Signed-off-by: Clément Péron Acked-by: Sean Young Acked-by: Maxime Ripard --- drivers/media/rc/sunxi-cir.c | 61 +++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 307e44714ea0..d02dcb6fd0a5 100644 --- a/drivers/media/rc/sunxi-cir.c +++ b/drivers/media/rc/sunxi-cir.c @@ -81,6 +81,17 @@ /* Time after which device stops sending data in ms */ #define SUNXI_IR_TIMEOUT 120 +/** + * struct sunxi_ir_quirks - Differences between SoC variants. + * + * @has_reset: SoC needs reset deasserted. + * @fifo_size: size of the fifo. + */ +struct sunxi_ir_quirks { + bool has_reset; + int fifo_size; +}; + struct sunxi_ir { spinlock_t ir_lock; struct rc_dev *rc; @@ -143,6 +154,7 @@ static int sunxi_ir_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *dn = dev->of_node; + const struct sunxi_ir_quirks *quirks; struct resource *res; struct sunxi_ir *ir; u32 b_clk_freq = SUNXI_IR_BASE_CLK; @@ -151,12 +163,15 @@ static int sunxi_ir_probe(struct platform_device *pdev) if (!ir) return -ENOMEM; + quirks = of_device_get_match_data(&pdev->dev); + if (quirks == NULL) { + dev_err(&pdev->dev, "Failed to determine the quirks to use\n"); + return -ENODEV; + } + spin_lock_init(&ir->ir_lock); - if (of_device_is_compatible(dn, "allwinner,sun5i-a13-ir")) - ir->fifo_size = 64; - else - ir->fifo_size = 16; + ir->fifo_size = quirks->fifo_size; /* Clock */ ir->apb_clk = devm_clk_get(dev, "apb"); @@ -173,13 +188,15 @@ static int sunxi_ir_probe(struct platform_device *pdev) /* Base clock frequency (optional) */ of_property_read_u32(dn, "clock-frequency", &b_clk_freq); - /* Reset (optional) */ - ir->rst = devm_reset_control_get_optional_exclusive(dev, NULL); - if (IS_ERR(ir->rst)) - return PTR_ERR(ir->rst); - ret = reset_control_deassert(ir->rst); - if (ret) - return ret; + /* Reset */ + if (quirks->has_reset) { + ir->rst = devm_reset_control_get_exclusive(dev, NULL); + if (IS_ERR(ir->rst)) + return PTR_ERR(ir->rst); + ret = reset_control_deassert(ir->rst); + if (ret) + return ret; + } ret = clk_set_rate(ir->clk, b_clk_freq); if (ret) { @@ -316,10 +333,26 @@ static int sunxi_ir_remove(struct platform_device *pdev) return 0; } +static const struct sunxi_ir_quirks sun4i_a10_ir_quirks = { + .has_reset = false, + .fifo_size = 16, +}; + +static const struct sunxi_ir_quirks sun5i_a13_ir_quirks = { + .has_reset = false, + .fifo_size = 64, +}; + static const struct of_device_id sunxi_ir_match[] = { - { .compatible = "allwinner,sun4i-a10-ir", }, - { .compatible = "allwinner,sun5i-a13-ir", }, - {}, + { + .compatible = "allwinner,sun4i-a10-ir", + .data = &sun4i_a10_ir_quirks, + }, + { + .compatible = "allwinner,sun5i-a13-ir", + .data = &sun5i_a13_ir_quirks, + }, + {} }; MODULE_DEVICE_TABLE(of, sunxi_ir_match); From patchwork Tue Jun 4 16:29:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975665 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 1C2D014B6 for ; Tue, 4 Jun 2019 16:31:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A26B28686 for ; Tue, 4 Jun 2019 16:31:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED880285F7; Tue, 4 Jun 2019 16:31:05 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 A4367285F7 for ; Tue, 4 Jun 2019 16:31:05 +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=jUrPEYVGNmE1SIoMUBdOM+LitWv5q3r1yF+Y3E3o+xM=; b=R1ZHzDgNR3nP64 /+N2Fc7QglyAExKl2QWAgcxw6UMWohLTF930rkqXldGBk27SRAD+50nJkDLj+gQpFWEmhZZ5BNepG KfDi1yGxPwz7RgwCJu4K+m9Nc5QIqd3Bvc6651//H2Y/Q+Gzs5pOq6r2cov0vJ1nw6/a3S1o/HU8C mSMsLGUldohT2e8ACyVxeheHoC7IKDqQII8c4QBxYktv8O0sAuO9I4qFtEQJv4qHaJ+Mq17KLWtyk zOcUl6dZ8H5Y43PpchyMYGAmYC1sotEbtocLVvbCwEHuXfh1SHZ3ym9RqoHGRTUvQmnVw1aHEu1uI JqRoX5f0r/JSQdhnxpfw==; 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 1hYCL1-0007SL-Vt; Tue, 04 Jun 2019 16:31:03 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKC-0006Jt-9n for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:15 +0000 Received: by mail-wr1-x441.google.com with SMTP id c2so16526527wrm.8 for ; Tue, 04 Jun 2019 09:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WVt9PLRHxA5shLBGM+rat6DzEBJdBuHXCCimY/wvQxI=; b=Xru/SMuMwtGeeWJ3+w4TxGGjpjQHqX4X8g8eFmhGVvijmB4VGTqI0vGJzZqmhinYf9 yQbPAkvZt8d8Ss/f2AMKMQZ0gwETtA4010GDyUvDLdgPGzRyVFbXUuw3yV77NdxCu2XF 1fhbB9o7LmJmFGQ+xYBmghjdwPKM3hZdFWnIVARImSuSyHKqOvi7Pupr60JfEnj5S7bi Y0KhiYJKB5XU0ZYNZJYds7HxI87XBs0sWcT+YNXQIlMRv5EMNtVBx6Kvt7YYHYSkkMo7 G/PWLBmvTup5CJyxk1brnACswG12Zc48cMPobx1vAbLI4vyX88F9Ht3xWc53dJuPQ+td aoKg== 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=WVt9PLRHxA5shLBGM+rat6DzEBJdBuHXCCimY/wvQxI=; b=p0/m1WFWq1cl5rm6XH1l11X4zaieOztbL/RsgybMRc62ZFIJNbFPtdVGm+IuPXDFDZ qDYiWh9yEASfSfgSnHv25f8ndsuuQKs9ESbnEhGZwrO+pgtqmibGE7qRrGvMZ6Fz6lt0 upsnjNLsa91gVrrJo4cIntmOmMAs1tVpwLhw2mzcmXAWMGo0DdPPxz4dof+zG5RlXB6+ 8lkzukyBLNhjldodZe0e+HM/Oni/TbafWATCwREgHmQmSiO55g6eLnr5wP03R1OleivL GzBy/NcRWKKTE7H0lXXlGcvv5J7+1Uvd8pn/DQmXhd/h/CbOKom5RBs/TgihnfprLdnR 5V8A== X-Gm-Message-State: APjAAAX6D/L+9jQHDVDynq6coHIDa8tGUj6HtcgkhJOQWQYQqf9JOIjf seTnqXVSCCV2cJHJ0NjCqPw= X-Google-Smtp-Source: APXvYqzBl9dj83P9V27+Fdl0MwabMhnwcsDkxoHC8nOmjtY9SHfRpfzvhefntyBnBp30NrlHWphusA== X-Received: by 2002:a5d:4004:: with SMTP id n4mr21919479wrp.240.1559665808671; Tue, 04 Jun 2019 09:30:08 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:07 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 03/13] media: rc: sunxi: Add A31 compatible Date: Tue, 4 Jun 2019 18:29:49 +0200 Message-Id: <20190604162959.29199-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093012_536968_9403E8AD X-CRM114-Status: GOOD ( 12.27 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Allwiner A31 has a different memory mapping so add the compatible we will need it later. Signed-off-by: Clément Péron Acked-by: Sean Young Acked-by: Maxime Ripard --- drivers/media/rc/sunxi-cir.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index d02dcb6fd0a5..0504ebfc831f 100644 --- a/drivers/media/rc/sunxi-cir.c +++ b/drivers/media/rc/sunxi-cir.c @@ -343,6 +343,11 @@ static const struct sunxi_ir_quirks sun5i_a13_ir_quirks = { .fifo_size = 64, }; +static const struct sunxi_ir_quirks sun6i_a31_ir_quirks = { + .has_reset = true, + .fifo_size = 64, +}; + static const struct of_device_id sunxi_ir_match[] = { { .compatible = "allwinner,sun4i-a10-ir", @@ -352,6 +357,10 @@ static const struct of_device_id sunxi_ir_match[] = { .compatible = "allwinner,sun5i-a13-ir", .data = &sun5i_a13_ir_quirks, }, + { + .compatible = "allwinner,sun6i-a31-ir", + .data = &sun6i_a31_ir_quirks, + }, {} }; MODULE_DEVICE_TABLE(of, sunxi_ir_match); From patchwork Tue Jun 4 16:29:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975663 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 C90B214B6 for ; Tue, 4 Jun 2019 16:30:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4ECB285F7 for ; Tue, 4 Jun 2019 16:30:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8C52286F6; Tue, 4 Jun 2019 16:30:59 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 57293285F7 for ; Tue, 4 Jun 2019 16:30:59 +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=MTdjseNTqC4heU4sPFBZazYE6ASIwe7r1MZRDfh0WS0=; b=AMgMtEbnY0Wvp3 rtqefJ90Ub9z7xVQ172F1+fi55kF9Sz+ncsuMPx73/2xJAOXg6xrOiym/74gVeGRmPU2jrd8rxS7P Q6L9vL3lQq9c0OvdtQWH0oT+/g+MxbRNZ0MzDSl8K+witwQIuDhcRIAZOFV5vPL5r65YFj6GADdqp jjbHcvDyFduYSIATCkFu257JKr+BLFhlQSVN4mroqNrk/UPcL+/P3AD1r6i1rVKMvzNsmP9E5S3rV 1QHbESsze8WJU16q4+cdfP0rsBe7fYUNB1UweToWrdWYn6xi9E2EwkPVHdFpDXye5sdjTVfUeKYn/ 8FRHXT03j1S9HehsziOQ==; 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 1hYCKm-00077I-8C; Tue, 04 Jun 2019 16:30:48 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKC-0006KT-9q for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:14 +0000 Received: by mail-wr1-x441.google.com with SMTP id n4so13484362wrs.3 for ; Tue, 04 Jun 2019 09:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TrJrO+4WVaDcBJRtqTErrFHqZWoDLU/J3nYOQSosNEY=; b=RGvzKAyaP8Nn+tVEfpqKFWUsv0KutBvUK6HHUt60gDfdFjLe+liHA6E3qMJj3yiaBk A18rCVtZgu60LIWyGbYuDG7sY6ybggpciaLV4xKTFNX5lbNqGIOaiYNS8UDc5HCGWcYC 8S6+OYjOjuMgYQDj74AxTq+/s8rl0Wiz4NUTvvSj7i6WHDs7h2rvdCzdnob6+QmdlfMd Y3npXQef+x5jCNbLuCnLotNeabJwrW1Xfyi9SrUNalmYjeAM5FJNyCDp8zd1SYxdl188 KB6255DdPms6iwIkIFcFFdc/F8/pC71XdXkPnCvqlyveK5E4o6/Ka0M0wvhz+U2kcmD9 2OOg== 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=TrJrO+4WVaDcBJRtqTErrFHqZWoDLU/J3nYOQSosNEY=; b=hS7uCIfhb0cJwQdoAHEGb8Pu7vyKjGK2Ysb1+44YhzSxCeuus0mjX2Nd3BXC5RVAFC PJYVxfkmCxPHkRwrBCRo/drWq1UNBxXZ3VP1OOpAwj2biJcZiInyggwuVHFoRM74Xhal Vdiby+r46o7rKVMvHzzzMw4HDQX0thh3o1eYPe+2rul1qyrkO/vzWitUinqQKwqLizpf 3ferJxDWRlWQPKJbDooL0sVUu14CUdlGcrP/IuXtpqY7RAitWueptljJ2hubkVez2vxt 3FFkgzukAypasPlxMTQBSh0wj3CfaO+fcwPPaSKgl1fjlO12joCKRXHN/NkpPEstX5pA HjOA== X-Gm-Message-State: APjAAAWKS4VcYbNlVd02RKTMnryNVMYdZRYLUfW5h8KGjwwDwBDGtONM AO2O6djiCii7oyFaS0geOI0= X-Google-Smtp-Source: APXvYqzTMZNFQgYpbFMki+XibrOhrkub/SRgKsjfuDCDWwjvBw2nfOYV6dEbU1y/vUlXeJRW/t28xQ== X-Received: by 2002:adf:e8cb:: with SMTP id k11mr20704308wrn.244.1559665809997; Tue, 04 Jun 2019 09:30:09 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:08 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 04/13] media: rc: sunxi: Add RXSTA bits definition Date: Tue, 4 Jun 2019 18:29:50 +0200 Message-Id: <20190604162959.29199-5-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093012_653040_0725D50C X-CRM114-Status: GOOD ( 13.56 ) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 We are using RXINT bits definition when looking at RXSTA register. These bits are equal but it's not really proper. Introduce the RXSTA bits and use them to have coherency. Signed-off-by: Clément Péron --- drivers/media/rc/sunxi-cir.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 0504ebfc831f..572bd2257d35 100644 --- a/drivers/media/rc/sunxi-cir.c +++ b/drivers/media/rc/sunxi-cir.c @@ -48,11 +48,11 @@ /* Rx Interrupt Enable */ #define SUNXI_IR_RXINT_REG 0x2C -/* Rx FIFO Overflow */ +/* Rx FIFO Overflow Interrupt Enable */ #define REG_RXINT_ROI_EN BIT(0) -/* Rx Packet End */ +/* Rx Packet End Interrupt Enable */ #define REG_RXINT_RPEI_EN BIT(1) -/* Rx FIFO Data Available */ +/* Rx FIFO Data Available Interrupt Enable */ #define REG_RXINT_RAI_EN BIT(4) /* Rx FIFO available byte level */ @@ -60,6 +60,12 @@ /* Rx Interrupt Status */ #define SUNXI_IR_RXSTA_REG 0x30 +/* Rx FIFO Overflow */ +#define REG_RXSTA_ROI BIT(0) +/* Rx Packet End */ +#define REG_RXSTA_RPE BIT(1) +/* Rx FIFO Data Available */ +#define REG_RXSTA_RA BIT(4) /* RX FIFO Get Available Counter */ #define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1)) /* Clear all interrupt status value */ @@ -119,7 +125,7 @@ static irqreturn_t sunxi_ir_irq(int irqno, void *dev_id) /* clean all pending statuses */ writel(status | REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG); - if (status & (REG_RXINT_RAI_EN | REG_RXINT_RPEI_EN)) { + if (status & (REG_RXSTA_RA | REG_RXSTA_RPE)) { /* How many messages in fifo */ rc = REG_RXSTA_GET_AC(status); /* Sanity check */ @@ -135,9 +141,9 @@ static irqreturn_t sunxi_ir_irq(int irqno, void *dev_id) } } - if (status & REG_RXINT_ROI_EN) { + if (status & REG_RXSTA_ROI) { ir_raw_event_reset(ir->rc); - } else if (status & REG_RXINT_RPEI_EN) { + } else if (status & REG_RXSTA_RPE) { ir_raw_event_set_idle(ir->rc, true); ir_raw_event_handle(ir->rc); } From patchwork Tue Jun 4 16:29:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975679 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 B11D714B6 for ; Tue, 4 Jun 2019 16:31:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0755285F7 for ; Tue, 4 Jun 2019 16:31:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94045286F6; Tue, 4 Jun 2019 16:31:36 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 2AB01285F7 for ; Tue, 4 Jun 2019 16:31:36 +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=UaBkIFxQs6cyfqZoRRiPw4RENsWBN7LO4uwx73rUXRc=; b=NDpJ0US4j6TRL9 KipSwlSW5YGRi6F5LPLDWu4U3SFah8hMVjRa0N5mdgVUOS6py3qj4xfXfiCE9F8UnO6v6rcP16FoC rF3/rEQ5NoshGux9kWICJ2KDKcePyLdd8G1RMZ8uvw0AP2hOK0kLAcRhbfb5yj8qWV5Ju7zXtXc/W NRRIm2x837vP/M6a/xD63BhcsBtbk34dCbbN0wKKUv0rZ7A0eggeQNanYA8lV3VgIesoQ2i849fo8 3ax3geHpCfVwUpO416HhvOkmjV4g+Gm69IBXhtqEZZMLG1bMUXn9uiuPXEzsV9fJwZX5n84Q93XrT Wzd4ELTYolWxoX11vaJQ==; 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 1hYCLR-0007y2-6u; Tue, 04 Jun 2019 16:31:29 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKC-0006LE-OE for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:19 +0000 Received: by mail-wr1-x444.google.com with SMTP id n4so13484421wrs.3 for ; Tue, 04 Jun 2019 09:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E4E30xpqxw1cyUThhqcs8LcBlilNIoX4BY+l8x9uJrk=; b=WOubF3Lko3LWSDIpWvmPAXAAhm2TuHCaP4QPXH2488QmNOENFFYoAgMqN5DzcwyL81 BgNWnnfwKGgPjXQp6DeX9jYpb03pAyoIBRiBwncmw7FGhCieHwtPhAE93HKy1V36SzpH MwxGiuBokritpXqReXZHO6xYRgAeU2b7cXRE+9bKJIpA9u6coE64Zz07PGYX1Zk7S0f1 gPjmLgC28L9L+F+ZgF4FP+sKykC9vJ/ynlvoO/Aa2gwkGCS4f/jhdB4AngnI+hJZSo9Z gf4FzgXmJK1T09TyPrSiWRd3/LZwQP2bHy2eSOnymIcNSBkbaEgvcsM9i2xOLLrgzMG4 aJbQ== 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=E4E30xpqxw1cyUThhqcs8LcBlilNIoX4BY+l8x9uJrk=; b=AHhDgOOl3rFK9dEhwFInIU6LvBQTHqlEi0t2gFUwR14birpX1DVTHZXVVuDByzF6uv X71iuLgM5gqJA8CZ4Vx8UNvbEbJpwNYqbxQYJQt20pWrSqAFympR9e7oCzjnAnoHbVWg LwKKc5OV5TWQOmW5qchCe3otfEeWpP8/d/05dk2fI9Ug1B+LikFp/7NwBt4Zh3aeLbmA tiHFZNq++QKmA88kacB8wpht16un36VbzhBJggS41GQMapxyK1mJLKiLh5knAJ0YD+gS FShttQ7OUsoEKRYNHcZP4tkwyo9se2VQ8HsA+qd0U4fdCGrDbDjur2ZEAOC9lHZti270 nC3Q== X-Gm-Message-State: APjAAAVWphAz6ql4q98bAQv9HJmHM/S3yVOvU3qnJAK0b1iYmyasup3R XQhHUqinM/H3N22fT7Qi7gLD6QZEL4sN0g== X-Google-Smtp-Source: APXvYqzAdmrYB00nq1AF6bb6WEBSVA5fc135x0zqnHQocdDVwGW9tJVeQEfsQVvvFzBzsVsHaTBAzw== X-Received: by 2002:adf:c60e:: with SMTP id n14mr7423912wrg.255.1559665811137; Tue, 04 Jun 2019 09:30:11 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:10 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 05/13] ARM: dts: sunxi: Prefer A31 bindings for IR Date: Tue, 4 Jun 2019 18:29:51 +0200 Message-Id: <20190604162959.29199-6-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093013_118619_CEBD8F94 X-CRM114-Status: GOOD ( 14.59 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm/boot/dts/sun6i-a31.dtsi | 2 +- arch/arm/boot/dts/sun8i-a83t.dtsi | 2 +- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index c04efad81bbc..110622b30796 100644 --- a/arch/arm/boot/dts/sun6i-a31.dtsi +++ b/arch/arm/boot/dts/sun6i-a31.dtsi @@ -1351,7 +1351,7 @@ }; ir: ir@1f02000 { - compatible = "allwinner,sun5i-a13-ir"; + compatible = "allwinner,sun6i-a31-ir"; clocks = <&apb0_gates 1>, <&ir_clk>; clock-names = "apb", "ir"; resets = <&apb0_rst 1>; diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 392b0cabbf0d..8d603f3309f2 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -1067,7 +1067,7 @@ r_cir: ir@1f02000 { compatible = "allwinner,sun8i-a83t-ir", - "allwinner,sun5i-a13-ir"; + "allwinner,sun6i-a31-ir"; clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; clock-names = "apb", "ir"; resets = <&r_ccu RST_APB0_IR>; diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index 0c1eec9000e3..310cd972ee5b 100644 --- a/arch/arm/boot/dts/sun9i-a80.dtsi +++ b/arch/arm/boot/dts/sun9i-a80.dtsi @@ -1167,7 +1167,7 @@ }; r_ir: ir@8002000 { - compatible = "allwinner,sun5i-a13-ir"; + compatible = "allwinner,sun6i-a31-ir"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&r_ir_pins>; From patchwork Tue Jun 4 16:29:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975671 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 0347414C0 for ; Tue, 4 Jun 2019 16:31:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6FEC285F7 for ; Tue, 4 Jun 2019 16:31:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAE51286F6; Tue, 4 Jun 2019 16:31: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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 8EAF0285F7 for ; Tue, 4 Jun 2019 16:31:20 +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=tFgpkoG4CMxBw6QqknElC7CC8N9HuNp6naY6ZdYzMQs=; b=RJJvw+oCEoUKRJ /Iwmtsj7X4UHL8WFRvuacqR56z1l4g2jh3iExCtlTPB7bUAS9O4wmMGccRoqRMQOcFYQQLN0jQm+N Oc38bdsKKk71FR3L2iDbAOPbm+C1QSjwQQaxerLUVUO/YRQJc3dgxJsFfCSjHT+V/lD/Q4wEWea8d MHFyJp9GkVCgKlrX9jiHlRBS5yUwkSm/p1NjMkaTqTHPMVqZlk0Khy+7oEFZeMlZEhI4zfJDoEkXK 6OthTPol1SS39DwyQO/0FIBXcJkyd3uIxAK7cZjjV4ZRJn5f4lu/TXNHHawbYYDVvAk8K4Qrr6ZHM UuRZDSe7dmwngpESv43Q==; 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 1hYCLC-0007ik-U1; Tue, 04 Jun 2019 16:31:14 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKE-0006Nm-32 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:18 +0000 Received: by mail-wr1-x444.google.com with SMTP id x4so16529674wrt.6 for ; Tue, 04 Jun 2019 09:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JnmvhZZD8Mx24yTeSpnfmQh3x3T3CVtR6CE0dBfbLB8=; b=Y5cjZ26jlUxFNeNaiMKAFzUilMvI+Dc6dprxGIq8ITJDnDN8XGenta0Zc0Qt2xzz+T CUPjfuM/M3IFsd5YHkVn3jG0ZF+d7ttvSaW4BqSKDhwjKZhGnckRWrIKfqzaVnVT0DOg XrrRP/AewELt8Ljf3Bixp1jBv8HqPSRWjWxstJLZWnAOSEPa6KaPJLfnUY7ljzM38xj5 hWBEgZ/wqjDM8gIcaSwO3XVYPrC3Sc/M+0defamCm42VoZoxVykwsLWFXkOer6+UImm9 1N1T2JFEWwCWtRYt+7i62Okzt95sKHAPrKvZUt3BIZqfwx3ul1tYgjOIw4BHvS1NF7zU tyAQ== 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=JnmvhZZD8Mx24yTeSpnfmQh3x3T3CVtR6CE0dBfbLB8=; b=bS09UqQrHfn/J2v0Fa/2K+gAbn3S6FYIweFB4A1KDwp0NHaJZIWiOBCSJXA3upyge+ NXVjjxMGUDE+TpFTQwxZiGC9ovrlZvnnjBNJj21e6JBs7HKCdzD/VxncUaaOTMw5dYmr 1d27tSxJDxa+MeM+rfz6QLW+I2rznl6rk+zFj5yU784pF7Pr5da7clpR2JBOQ6Zx2Zp5 LttcGtLehPihpr46VFw0ckQ9wRonVWDAc1fQTWgXvnyPlCuAcUWvB0JgWmLiWWEUPdGT sImq2o58/9Y0IVw+UlPqBRgB1RFA0BZERgR2OeSBcuG1HzXB6rz0HmSNt4IxMKyLKPvQ 2lWQ== X-Gm-Message-State: APjAAAU7Pp31q/OY9Uc9lXSXAa1klX84X2Oj3Ma1gIgGLme15nTr7/Hl qKDzalaq2BfEmDEAoOlgk0U= X-Google-Smtp-Source: APXvYqwA70yB81shWvgQA1UmGXj4nMXog36OwjUoh3hCQCaHYnAaQiNf5aqqateTqEOy2jYk39HyUg== X-Received: by 2002:adf:e40f:: with SMTP id g15mr20287449wrm.174.1559665812558; Tue, 04 Jun 2019 09:30:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:11 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 06/13] ARM: dts: sunxi: Prefer A31 bindings for IR Date: Tue, 4 Jun 2019 18:29:52 +0200 Message-Id: <20190604162959.29199-7-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093014_415010_55A40771 X-CRM114-Status: GOOD ( 14.27 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Since A31, memory mapping of the IR driver has changed. Prefer the A31 bindings instead of A13. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 84977d4eb97a..f0f5ba349c1b 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -822,7 +822,7 @@ }; ir: ir@1f02000 { - compatible = "allwinner,sun5i-a13-ir"; + compatible = "allwinner,sun6i-a31-ir"; clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; clock-names = "apb", "ir"; resets = <&r_ccu RST_APB0_IR>; From patchwork Tue Jun 4 16:29:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975685 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 8EF0314B6 for ; Tue, 4 Jun 2019 16:31:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DF9D285F7 for ; Tue, 4 Jun 2019 16:31:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 719EE286F6; Tue, 4 Jun 2019 16:31:58 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 204D1285F7 for ; Tue, 4 Jun 2019 16:31:58 +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=uTNlcYnh2Y94pAaIgZaNgflF5u/MBJFxCFLd6HLbNv4=; b=j6r3hCZLG1ezTK KmnUIX7J1OQ4MytDCDzJ206TGoGKN7uYAXLru/qEJ8t/JNd/cdKkaTyYGvhVC2sMQ2m6+GyEjXEaq UI82CGFdi7CsBK3yn6ktMNNn5azDLBtgPXaN6W86IvjT4s2Kuq/3xwr4RDIDRaBuz+B0x4s1Lx3YU Qox0Wf3LGXpixp+F0jYh9wOjAcIYsRbDFCVO5rH7pctVxsdEMkhTq6srIepnYeEdt/0QGNOM85v9y 4kA+kHQUBo7KsRJXKZtCIRWWDsUM1By/oxXTDrYA+tV4XD4Y6i7d+okuxdlpkpAkvyjGABbI4qbWn AEa9s+YI8dHuqDYewNhA==; 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 1hYCLs-0008V5-3T; Tue, 04 Jun 2019 16:31:56 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKH-0006QD-AF for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:23 +0000 Received: by mail-wm1-x342.google.com with SMTP id f10so743289wmb.1 for ; Tue, 04 Jun 2019 09:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zMV7ju67dnALzanKXh4JjC//iaUgaVunyZA1YYfWVI4=; b=DCoh8E9BkPijkg7yg9/4DPPpnIwGDDmPR57Us/q7Aj6s6TX3XyWobi+3Xv+tqX4T8b 7sU3JGk1FvnWGoB4wIN/vaCumT1W+CCXYH6IePP8KfZPzNVLFUQVgWPCgXi1xJZxcjGF dzrG5DC/mehYVBXye8JsJqx/7N2WoG+EG1ZyynlAZmFf9EKaYRqfUNW+AhiBPbrKZCGY Hi1R+aaMhqAXKu4NQHIPC6UpGokjTcDm39WPq4YElNhorHq1GYmWE7vVwLC1gHo9LyRH Xtk1fg5Uu0UlHFccWWTr3PEDwXbnYkpu4+giknBjqXI43AJ54N2lX+Sl1GFYVViqwcPq s9Bg== 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=zMV7ju67dnALzanKXh4JjC//iaUgaVunyZA1YYfWVI4=; b=WRgSA+/AqcW75u6I0vqphHC4EmoQNos34WqHNOam9FjPMNDNL8Wo1yidmfe2lqgHcb 8PQSL0NBnXgeeUBjERIGDTUut1762HxvuBKxinuHAIoy1vGsF2BKst6BbxK+bYv4/p6X N5VMi9FY7LspgQYSi8Y6pyb+ZNIAxkFFwNJNvELc27SpI92ERa0h6lgtHLrRctf91x/x 8ES81TWNH7lY2RcLNkUSMWIBWv/C3VX/xRq0Teh/mKRzOW5c/VKlw9Rms2sFi7YniAim ITL9UY6RzgeExe//7gAcssw0ICEgclJVT3zdJSOb4YTgPOa5g5bdEnzFxAnz0LD8ghbm 5CJQ== X-Gm-Message-State: APjAAAVHqndB1/4SM6z42FLZ4cgNUOJdQcPGXGREpiNMd1XPAUMlsFcn BKnjhv8wXMB4IQCtq6YIhhg= X-Google-Smtp-Source: APXvYqyiIHwvp/J88wh/a2vXFZ112RokaYYJkHbL7nMpef5MAfOOL93Z/xT6uSngXS4GT+4sL3/OOA== X-Received: by 2002:a1c:9d86:: with SMTP id g128mr7449245wme.51.1559665814303; Tue, 04 Jun 2019 09:30:14 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:12 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 07/13] dt-bindings: media: sunxi-ir: Add A64 compatible Date: Tue, 4 Jun 2019 18:29:53 +0200 Message-Id: <20190604162959.29199-8-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093017_646073_7EA1A948 X-CRM114-Status: GOOD ( 12.15 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 There are some minor differences between A31 and A64 driver. But A31 IR driver is compatible with A64. Signed-off-by: Clément Péron Acked-by: Sean Young --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 2e59a32a7e33..1dd287a4ab3a 100644 --- a/Documentation/devicetree/bindings/media/sunxi-ir.txt +++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt @@ -5,6 +5,7 @@ Required properties: "allwinner,sun4i-a10-ir" "allwinner,sun5i-a13-ir" "allwinner,sun6i-a31-ir" + "allwinner,sun50i-a64-ir", "allwinner,sun6i-a31-ir" - clocks : list of clock specifiers, corresponding to entries in clock-names property; - clock-names : should contain "apb" and "ir" entries; From patchwork Tue Jun 4 16:29:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975681 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 3270014B6 for ; Tue, 4 Jun 2019 16:31:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20C2C285F7 for ; Tue, 4 Jun 2019 16:31:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15185286F6; Tue, 4 Jun 2019 16:31:49 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 B0844285F7 for ; Tue, 4 Jun 2019 16:31:48 +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=nM+rzxUfac7X1s0L05U4i7cQKMo3jDKju7Ow5vPpWBU=; b=aK3BYlHZ/bmKqY xU1VJgJj2TPpMJUL+Hg/J2JWoi5GtdnN5wo8BIAdvE7y0hEKuaKsjyEIjr/cLy6dJgguUJom4L2PJ 3EQbONiSkQRpt1ffOsiHAOqU3QwkCnRwVmIX0msPF9FvfUzdv4PFw5Vs1YVZu7+x87Sn0tDsXgcQ6 WLOs1JWu0FCWgPVQklkFAzoHzlpmJNFnTGZy0RQmfzIyu8tFoAShR9NUGLbklUt7A0VIDV1h22saq 0Kkxz2zZPNH1ZAaA45UFPb4TvwJA0UdZQ8sWX7lmPhE2Nfhsb7lmKYQHPNwCLvC555NJtTIJ6i5Mh DDl08BcUlGQLkFJsjg2g==; 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 1hYCLe-0008G6-6J; Tue, 04 Jun 2019 16:31:42 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKH-0006ST-8h for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:22 +0000 Received: by mail-wr1-x444.google.com with SMTP id d18so16518298wrs.5 for ; Tue, 04 Jun 2019 09:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BsQBIKOAel5fnBJ7QqXJ25YvFcF3acsbydOzLPIsKmY=; b=Neh3CJxmgXFLwtJqcm5/RvHG3XrJvBwVkV9GXw3SPiRijWVpJwq6+YsQMxCTy5KlbN tu8hzH6fOAthfEtmxLrlK1urrNqqwoYo+OCbCp2MSGN1n4lngSZDQ00zNN4afAinX9jR Sr/xMiJk2fIrZpPLdsLZxCOnaE0Y8w2GYyga4Hb9JKFllebZYMO2BHGj1fiYgbQgkXTs eHI5LGD+HC338p62eNbl1v7oAhaLEeM6Kmo6mrfnw27EgWqQrSKD1F1h+NV5mc0bA6/y rrVHyL8Z4xnOrc8Y6/J6fwGESDrMJ3ETnvi7TMyMb1adlzSTIe1wmOVgmUP3oNdHUtpA g9pw== 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=BsQBIKOAel5fnBJ7QqXJ25YvFcF3acsbydOzLPIsKmY=; b=sZmiO5HlzyjVj0NPQPmNPb77C67qlIbsL/QUV8+M+XvPThjtEMYs0YzXyuuLXlBRzi g5+BMbaYF23FjXhT2//rRoSsL/9eukJtJiIG9p9cCewBLNuvrUqv7kHDuR3sY+o2QQ8W XyM8JSpcolUapiXbdpTtkwQtJksaeucW99Zn+VWpC+QQq8Klqw7PPVdjimSk8SD+qr7X Msh1kRjAazcRV3xoKuG9+a0gVOhycpfjLubD8CPwZ1ddqSRI9Li5QkjeydW7grc+ar/O VNsQT/ROOA9y3zElUdwi51bwDpeZC0citYncsJOVmLO/DREhFDtJanfYieiUHQMzNz0c Nc8A== X-Gm-Message-State: APjAAAWdIR5AwwBdaIyD9ptQs8Aw24PN8Ku/EoqRIsIQdjiHXObAtCUH jEKHnYNmy81u5s1QQIwSU9w= X-Google-Smtp-Source: APXvYqw4IUgpTbaVDk3VP/y7dsyc/2s0BvfDiNjuBzNtOuW3TqSFu7Pv5I7AOYT3qOOXVOiKURXImQ== X-Received: by 2002:a5d:5283:: with SMTP id c3mr7123707wrv.268.1559665815867; Tue, 04 Jun 2019 09:30:15 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:15 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 08/13] arm64: dts: allwinner: a64: Add IR node Date: Tue, 4 Jun 2019 18:29:54 +0200 Message-Id: <20190604162959.29199-9-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093017_670094_D12D12BF X-CRM114-Status: GOOD ( 12.62 ) 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: devicetree@vger.kernel.org, Jernej Skrabec , Sean Young , linux-kernel@vger.kernel.org, Igors Makejevs , linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 From: Igors Makejevs IR peripheral is completely compatible with A31 one. Signed-off-by: Igors Makejevs Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 8c5b521e6389..b22b0aa89515 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -1072,6 +1072,19 @@ #size-cells = <0>; }; + r_ir: ir@1f02000 { + compatible = "allwinner,sun50i-a64-ir", + "allwinner,sun6i-a31-ir"; + reg = <0x01f02000 0x400>; + clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; + clock-names = "apb", "ir"; + resets = <&r_ccu RST_APB0_IR>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&r_ir_rx_pin>; + status = "disabled"; + }; + r_pwm: pwm@1f03800 { compatible = "allwinner,sun50i-a64-pwm", "allwinner,sun5i-a13-pwm"; @@ -1099,6 +1112,11 @@ function = "s_i2c"; }; + r_ir_rx_pin: r-ir-rx-pin { + pins = "PL11"; + function = "s_cir_rx"; + }; + r_pwm_pin: r-pwm-pin { pins = "PL10"; function = "s_pwm"; From patchwork Tue Jun 4 16:29:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975689 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 178D514C0 for ; Tue, 4 Jun 2019 16:32:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 042D3285F7 for ; Tue, 4 Jun 2019 16:32:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA7D1286F6; Tue, 4 Jun 2019 16:32:15 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 9C50B285F7 for ; Tue, 4 Jun 2019 16:32:15 +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=3K4yLnsGIwIPrpCbtmNwQbZFE2NJeKsldnC3TqWFDrk=; b=PAUraI8Y7+cYa5 rXiCrIp9ep0R3PmKR/aJ5AaoWZPTI/k7TK/EB78hYgHDZ3iR2wM72nIXxRawW+aZe4LcvFDjXeqfF VGPku5vVOj6xE8GrzOM8MGNVBbUuZr8o44911TphdmG2C1AUr9U/sUnoHEEPlaFltgEN/QTQ4q17C pFM9p7x8d0KTJhwmZeYN9eMSrVF4DJvfXQDfAjsOX9fDdY0kkyBYDpHzwQP/PrdUmQN8Db+OvC+WL 1tkstKlLqaWkWZzpobT6WShxN+1bRkfv5QWA5pQobdmxJWJM7BNtpPd0jL9vdWAM5qclHDWz3p32N ZkwGU1QcOEHw++8VMpaQ==; 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 1hYCM5-0000MP-Oz; Tue, 04 Jun 2019 16:32:09 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKI-0006Ts-7E for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:23 +0000 Received: by mail-wr1-x444.google.com with SMTP id h1so16526170wro.4 for ; Tue, 04 Jun 2019 09:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=erM6d71aChyl+Iyy/eqYauRUQ2nKHoueD7cmlIRiQZ8=; b=t3oo40ApkJgetlJtClCQocXnUUmTkChlEdex6UlC3GQ80y0fNWmq8Zq5ODNWVqaf9d wEEg6WTDrN9IVgZ3qMRTAPpKucL/N8LUNJUgxAPKTv3CfDB614ZwfhCZh1EzLcn365hg pWxKV/lSDFYDTpdmpZVoiKZ2Rdnt0oS8wbyt9gDkGNd/di1UImBajKdgIvjjl+aBuJt1 o8bV/bviUis1U/5Kg2A+rXQY3RK9KAXKKMwqzWA0FJcxVaBk9bNRYPdPVnh1k1V/X1Z8 MCrhx6gOKaluW5Lw1qOzUMpXPqMMFm3FTa6S9hUjuPAsqcRyAsdTeiWkDUTBDil25PxA r+eQ== 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=erM6d71aChyl+Iyy/eqYauRUQ2nKHoueD7cmlIRiQZ8=; b=bWqC1wqj3b94VsAHoKXQ8GWVg0a9rouQVaVzQSnOi4QJNbSUXRel9JlD23WWpjbGZ9 8qB1KIQH76FOB9cWLTmi8rU4AkEcPNdCtOLvROOCIP6RwTFrFH5c2dIKgX7VlzYr8crC GUJOMgJwQeyoq8bKvMZbP5HN2KIB1y/YvEkrkcxAR2aTeUmGDL8PToy8C4qtNqd16JjW omvHPqNGFGM3ssU4TEy3TZb+dEEhtL8Oq7pnFPzo5CqOrZ1YiHx3rQtvyy6V4dw1FqP6 VDXTDb7B5x+nLG7Qkz/NagZbsC7n2ByYGAXK6/sVmdFMN1pPTmwIsE7vMWaQm3zvY11Y OP3g== X-Gm-Message-State: APjAAAWzCu9ZflLfU2Q38ydxkv0OhaaIL/Q2Bl7dfBySvZ8e/+KEgoxs 93LoKOR3Fkshb/MnJt8F55o= X-Google-Smtp-Source: APXvYqyZpeeM6tRlWGZbyX1HHA8ZW9ZHAAJzRT1YwNT/f8zYzZwm/vpcR2lGLwlfXCCR+K/roxWZxg== X-Received: by 2002:adf:f00d:: with SMTP id j13mr21905812wro.178.1559665816776; Tue, 04 Jun 2019 09:30:16 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:16 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 09/13] arm64: dts: allwinner: a64: Enable IR on Orange Pi Win Date: Tue, 4 Jun 2019 18:29:55 +0200 Message-Id: <20190604162959.29199-10-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093018_881385_88FCEAAA X-CRM114-Status: GOOD ( 11.46 ) 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: devicetree@vger.kernel.org, Jernej Skrabec , Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 From: Jernej Skrabec OrangePi Win board contains IR receiver. Enable it. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 510f661229dc..e05191b71adf 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -180,6 +180,10 @@ status = "okay"; }; +&r_ir { + status = "okay"; +}; + &r_rsb { status = "okay"; From patchwork Tue Jun 4 16:29:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975691 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 67DCB14B6 for ; Tue, 4 Jun 2019 16:32:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56EBB285F7 for ; Tue, 4 Jun 2019 16:32:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A833286F6; Tue, 4 Jun 2019 16:32:30 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 007DA285F7 for ; Tue, 4 Jun 2019 16:32:29 +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=3Nmhwb6K1L+1nNaMxD3VxAhfeLw9Wo5ZJGavVENkf0g=; b=nSxm7tPqJieKqH Iq4WpILHSJvHtMWp5U4hqXug9trAjpoDHCGIhanpsK4SqdQgAnrli1Qq3O/nrK3a0HNupOjlFmCgd DobrNqdb/jSlQ1L3MjfYrVgauqTGn7iddYxvjiV7WsAA+iH8l5BIZEzqA9deiT93JAcCCsy6LydTM A4XxKTM/S6WvVQrB5j2AXjJpiYijKcRMh58UgxrqbPIFxlHB2QB4ZHE0ENjE2raKUCsHqA6eOiLwP ru8u5YxiZ7gQnJZcc/cDaDNRJ84qwRxy9o3ZZJtxxns3nrUymTE5D6k+bFCL0yNubeSWIhpOfX/M9 DyfgLYVpzQcFG5qnPyyw==; 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 1hYCMJ-0000dR-QE; Tue, 04 Jun 2019 16:32:23 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKJ-0006Vw-EG for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:24 +0000 Received: by mail-wm1-x343.google.com with SMTP id d17so733063wmb.3 for ; Tue, 04 Jun 2019 09:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PqR/4nQ0kMEXVQlzSnSXdJ4vrq0kGPr980mhH5i0djg=; b=nSnqqJ5cuqApbvO6Zl2Uv0dVoByi7t1WiwNqSFE6gb9a0EWyQfyBtIpKT0E/KaLwUY yzFVmHox83ftJWu2EMewdS0c8ixUUWTZxqWOUG5FLAVk/giYGuvWWBONxL3L61SiNfO9 j47HWYuBieoTifiT3kAV5ppM5lmZobqU3+kNiiscyFUHa744LdRb5XmxAWVGrGkDBtcy rJzDa/pygKGBN8M02ZJFGaAtdjkOxgj825Me/+vHHCGE7fxaNkiIFFm/D+6isx7e8Qv4 zf+gvQuW8PN1koeCLMLvoeDBnPGQ5DbwqlKly7fQ7EulewDgrWwfmdxQiRg03svlwRLh 7hHw== 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=PqR/4nQ0kMEXVQlzSnSXdJ4vrq0kGPr980mhH5i0djg=; b=EjzWFU0yHxPNVkkpM0KhUR85nbwQ4U5wVrjNc98gMznQGKVZVB6AvaFmG8U5HiBFW9 XmHLT000liBfF6VwX6/OsVcEztrtKQtV3v3Y4qDxaUDaz1w1tC+UAIET0UqC2Crp2OJ/ 3leYBklJiSei2Wc1DjYzCIvDX03giaCp/kVSzM8ZhXu9V9Yb0qUZ/G43kpfJrDUASryf C+amy0E1YaHjNA6lk8VRUKCD0jw4IoQHw/CVGy0RKpRLuRM4g2/DrKm0WsXwpRn9jrU0 ohVgJeXwIz5b4qMVMPSLLsT5LcuiLfb/3JjWzl+wHrx/7lmqyXxuTeOehxrkNZxhntna Bcag== X-Gm-Message-State: APjAAAWo+5OsdoGh1t9Rffy6xIL6rY9hVwMVLcfpmz64jVNoyytvPKV9 m1ij2ZPv9YHtoMlvuj4OdVQ= X-Google-Smtp-Source: APXvYqyAO097WF3oXNFY33nhIC/Nq8fAGV5LLmxWhXgKSyLYoGxkJbnbHdr7cfUTxxf2leTuZ9JxkA== X-Received: by 2002:a05:600c:218d:: with SMTP id e13mr18973082wme.101.1559665817974; Tue, 04 Jun 2019 09:30:17 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.16 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:17 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 10/13] dt-bindings: media: sunxi-ir: Add H6 compatible Date: Tue, 4 Jun 2019 18:29:56 +0200 Message-Id: <20190604162959.29199-11-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093020_289746_7CE9B1AD X-CRM114-Status: GOOD ( 11.92 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 There are some minor differences between A31 or A64 with H6 IR peripheral. But A31 IR driver is compatible with H6. Signed-off-by: Clément Péron Acked-by: Sean Young --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 1dd287a4ab3a..81eaf95fb764 100644 --- a/Documentation/devicetree/bindings/media/sunxi-ir.txt +++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt @@ -6,6 +6,7 @@ Required properties: "allwinner,sun5i-a13-ir" "allwinner,sun6i-a31-ir" "allwinner,sun50i-a64-ir", "allwinner,sun6i-a31-ir" + "allwinner,sun50i-h6-ir", "allwinner,sun6i-a31-ir" - clocks : list of clock specifiers, corresponding to entries in clock-names property; - clock-names : should contain "apb" and "ir" entries; From patchwork Tue Jun 4 16:29:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975693 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 B162814B6 for ; Tue, 4 Jun 2019 16:32:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0311285F7 for ; Tue, 4 Jun 2019 16:32:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93F0C286F6; Tue, 4 Jun 2019 16:32:45 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 474BB285F7 for ; Tue, 4 Jun 2019 16:32:45 +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=6JobBnKSzpWQSIIMSJHP9Loi8vDb/B/c9QhTIA+DEg4=; b=ERvUGqpaugNX1K j5koJ/bt3M7Ybp+U2ng+irBqvJ2KmGXPs3ndDtEdPYKKHcyNZnkMaa6J2pg1+sJoUPEXcqZEG6lRq eel9tDxnyP15nUP+2mteQLseP3lzKD2XGf0EDhjdcrP4vc7CWVnGv4p6ew9qlJvFol3CPkyHjXImt XeXuyQ3s4cvMtdNwVgr3eu8QDTwoX+YFyazPbpk3l2xlwlp31V/8s/rIPkHfxV+qP4z9jMFA3LpGi OwOmiJ/zxRiEf1If9BS780Lxhy6ZaMhBGXW6/YyPheInPfwK1cmmxylAFuILm6idIagtET4hzHpoQ EI1PPNcuEY04yEXOWUEg==; 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 1hYCMa-0000z7-Kt; Tue, 04 Jun 2019 16:32:40 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKK-0006XL-Bj for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:27 +0000 Received: by mail-wr1-x441.google.com with SMTP id w13so16485495wru.11 for ; Tue, 04 Jun 2019 09:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=njnjG6a7jdrYLSKYX++HVTkLLSLz4gvoHp7YU4YYSHc=; b=hjRO/5G+35x3CtsnItSo0oEhpihExukJxRz38P34BJFVsCWjmfCgVq669GLHPmTu63 +Td9MCqpm903OMRnobhlEySB4BaoYn/pKaVbrcdroRrnkYZrLRCAyY47rQVzMYSG9hS4 tOP9cLOBdwkRdKWwDOy1QJnqcfasCZI5Epx0VXQd+n4JmaV0Rm76h3n0gpap544V5EX6 towlwcb5mD0TBfKcT+WgfSjE4SnSNz7gzXMEVuV8p8RUTl3Px2Bf8MmR3+ApI7w9rM8u btAHqLoxcVEPNCnB0NWPMHpvzPVOSZYm8PFdlL6m7EZZl7kMLDqxsFepS7c4afXfenRj QJxA== 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=njnjG6a7jdrYLSKYX++HVTkLLSLz4gvoHp7YU4YYSHc=; b=rhL5q7xNDBT2GwG/c/BD31ERkPjjxnhF9Ay727yKMbpqSV2qHv3+8RcBnet10yRHX9 PKpf/ta4iIe/EUqT0gGV8YfTJUAdBFZuqh32le8IZA8wZCzohHGiAgHYdUQ1zLsUSP5z B8c7NF22AB/AvhDKbsWhXf8fG8Kp1LoBFvq6hbrhszpV2Zm/48g9cmbhrR7nniUlyJPL HFw9IEro3aoalGX4+3kBP60XNZLacsePCWOE6xJgugQdPPuKT6WYOoVLQZy08uiLd2FA WSnhN+vWs1OCfIS8IdLsDvAmgv7hqlT3+aSA8ePSRTjfJ7PQd3ySJsKBJbqGGicjBjiQ 6PFA== X-Gm-Message-State: APjAAAWTB8MJ7KJ3jGWCdW2NQ093r2/1NZMCMe2WMpGfiAEBnMuhoY0h 3+7S2vr5EASfMeb6v/pujtE= X-Google-Smtp-Source: APXvYqysS9M3ppquDw2c5HMbHi5hNJ8JqiIA9np0vOWzotvcTepc7ZINfKGMWQ1aLcdglS57gxLIuA== X-Received: by 2002:a05:6000:124b:: with SMTP id j11mr901402wrx.157.1559665818860; Tue, 04 Jun 2019 09:30:18 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:18 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 11/13] arm64: dts: allwinner: h6: Add IR receiver node Date: Tue, 4 Jun 2019 18:29:57 +0200 Message-Id: <20190604162959.29199-12-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093021_209232_6330193D X-CRM114-Status: GOOD ( 12.20 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Allwinner H6 IR is similar to A31 and can use same driver. Add support for it. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 16c5c3d0fd81..649cbdfe452e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -647,6 +647,25 @@ pins = "PL0", "PL1"; function = "s_i2c"; }; + + r_ir_rx_pin: r-ir-rx-pin { + pins = "PL9"; + function = "s_cir_rx"; + }; + }; + + r_ir: ir@7040000 { + compatible = "allwinner,sun50i-h6-ir", + "allwinner,sun6i-a31-ir"; + reg = <0x07040000 0x400>; + interrupts = ; + clocks = <&r_ccu CLK_R_APB1_IR>, + <&r_ccu CLK_IR>; + clock-names = "apb", "ir"; + resets = <&r_ccu RST_R_APB1_IR>; + pinctrl-names = "default"; + pinctrl-0 = <&r_ir_rx_pin>; + status = "disabled"; }; r_i2c: i2c@7081400 { From patchwork Tue Jun 4 16:29:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975695 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 C95FE14B6 for ; Tue, 4 Jun 2019 16:33:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B75FB285F7 for ; Tue, 4 Jun 2019 16:33:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAB88286F6; Tue, 4 Jun 2019 16:33:00 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 5895E285F7 for ; Tue, 4 Jun 2019 16:33:00 +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=N9w5sqCiSjtHkkNwK5TMofaW4TLXqARuCL5/OStMTqM=; b=s2bna7AG1d3SG+ kQC9VDEagGmfYriR5afEFzd0BJ12+4SY95XqovVTAA/AsnK77owkXau7YSFSw1jEEMA9E+d07O7pO ww+ZfQAV+D+zVKKe8AO0iek2zErgI5s6JSYEyG531bADlRasgfgpLsDhjP4WDSpY84AoYEid3aq15 63O92rUf35NCsRmy94jevhjYHMAbh5EbxJGrRUihhsquZV81CBbkaRkFAoj0czqTghSpwJntwzKzp 7mJE9o5O1GZv6ZZV40ElunADboAPbzjI/pOoW9KT7oc3lGO0lNxjuU1ielJ2OWAMm3pyK8HQJx2fI uYsdfIntYka2rS8wVE3g==; 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 1hYCMn-0001Dk-PP; Tue, 04 Jun 2019 16:32:53 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKL-0006ZE-Ja for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:28 +0000 Received: by mail-wr1-x443.google.com with SMTP id c2so16527201wrm.8 for ; Tue, 04 Jun 2019 09:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R6G/HHE3Lw7PsZVrg7cAYjp5rZiFrvQ8UHmrA7ixhEk=; b=Kedeat9Q1DoBS2uCjqTmSzeahTsS+pO8gnneywg90JhjrJLeQ7O6xfmqwM5DmgW/MI RWjVZqpB79tnBwnrfcplpN8QBUJDHsnYmW6Wes/VKr6kdbur8gzABlwudagkRk6VRYAB dlhAvJMvOHQYVgbF6ED9hxP2cRqKzZDFrPBiFgYD8MbFF6lnNRTpqbtnvGYUVTTMfaDP Cm550MzkV5tr91BdIW3smbnjxHcrnFoTZ9S9W9R8kFn2o0G8XQl8U2oDQKEnKGMUMLiH QgzmS0V+LcLF8LJ7hvZCvaLeO6GP4uwUEtEe/4oWJ/HNDbQ/rKWeoB5QADX6lxrUR8to OF0w== 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=R6G/HHE3Lw7PsZVrg7cAYjp5rZiFrvQ8UHmrA7ixhEk=; b=jUKPCf6cqVTHfr7mpDEEQTktmfs3ESs476vhYuVrVr1WQdlqUdOUS4Nlu6YBDb5IWn IMYiTaT00LdaNngvtt/AJcmUO2P6QMvmTY4CwzgYoURb/M3s9Ybc7xDMQSEsaAn5I5AA i7B3AHcNuNxLor/Vppv3pcx3S+JGvv7bK3hLQZ4dIX9DnwALXvEaDSd8Tpj/h6/nwMPv adOkhmz+auH30W8DK1oN6xlQ+kbns0jLfUzSyRayKGX7O1vH2JLwEHRCaKjJyvWaoeyu Q3QnDkmGw+vVzquuz+fukeWgrdZJldrhx8bNo5APBfW6QzLS98WiensYJXxpu+A2GLD7 /uog== X-Gm-Message-State: APjAAAX6GRx0OHQEkCbcDyUDAVcpFXWSL926Laux9lrMPetocWBUVJxQ mVdSmRCfiu0ri7P01e7yn04= X-Google-Smtp-Source: APXvYqwi4oFrO7C1qnIPUTgo/kzDBOoSBBpNkHtnhvHg7KuAsyuewuuG+vnaOzim/mUn8o+LyWKDog== X-Received: by 2002:adf:e590:: with SMTP id l16mr7127528wrm.257.1559665819998; Tue, 04 Jun 2019 09:30:19 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:19 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 12/13] arm64: dts: allwinner: h6: Enable IR on H6 boards Date: Tue, 4 Jun 2019 18:29:58 +0200 Message-Id: <20190604162959.29199-13-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093022_272064_9CD5C38C X-CRM114-Status: GOOD ( 12.52 ) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Beelink GS1, OrangePi H6 boards and Pine H64 have an IR receiver. Enable it in their device-tree. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 4 ++++ arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 4 ++++ arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts index 0dc33c90dd60..680dc29cb089 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts @@ -232,6 +232,10 @@ }; }; +&r_ir { + status = "okay"; +}; + &r_pio { /* * PL0 and PL1 are used for PMIC I2C diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi index 62e27948a3fa..ec9b6a578e3f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi @@ -189,6 +189,10 @@ }; }; +&r_ir { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_ph_pins>; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts index 4802902e128f..ae12ee4fcc77 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts @@ -247,6 +247,10 @@ }; }; +&r_ir { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_ph_pins>; From patchwork Tue Jun 4 16:29:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10975697 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 DF03814C0 for ; Tue, 4 Jun 2019 16:33:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE158285F7 for ; Tue, 4 Jun 2019 16:33:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1AA8286F6; Tue, 4 Jun 2019 16:33:11 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 6D2C9285F7 for ; Tue, 4 Jun 2019 16:33:11 +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=wpGm7uP1Z74Fw2fCp8cpdtI/fIYo6P9eMps8cHuEk5o=; b=U+WasJNh7REN75 VEPf+TeDTwe/Kq7E2sQhlr8DeWHvhTpHItB4oCJpGfAT4VescJJr69vSfSwr+r8boGkckiA/4FNM4 lTAcmRMO9zMHw+df56x1KNh48rxdp5w75NEEwTSYNYvkah5t30bvpdAlDveXz8Ui2FfHWYgR0rgAv WhPEUISL3wNbddyZquQ5zqc8YdIqQTCnGxjhNS1X7Hk+oKf4mZh1N2UK/xL6/HewvriuCXQ00M5Nb GaPti21CmQ8lCS5dZZM8cBK3c8HTZxN1PDehxEkyWH7Y3UtWK9KahZ0mWooLBm4Xw3PWS7LVGLRnp E5aX7oPGacV/GSEsEGJQ==; 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 1hYCMz-0001Tw-D4; Tue, 04 Jun 2019 16:33:05 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCKM-0006as-CR for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 16:30:28 +0000 Received: by mail-wr1-x443.google.com with SMTP id n4so11266191wrw.13 for ; Tue, 04 Jun 2019 09:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZFHFRMwqhia+MVch9pKGgEBNeKukD3ZLzLQ+6+PB9fg=; b=UtWAy/s+q+oOrOGO9ddEb8t2OEIfKzvD69ZeZVZ5v/jTkNNG0s2Fv02hKMNkhfmLEB nEJSyqLMvoCfJr5kOm2zxQ1dxurFm99V33Ti0NLVgqHvJjKkmCZDGe3ty5Jde3wIRNhD ubh3UALjiGOSUot57QvMF9tYkCT+mu3GA1xBjBHtQY5IDnOVAreEB1iX9E55C+A9l9vG Crny42MKSkmkPxFGyi+TlsxgVevgXY8NmcQeRtJftAYgGcl+nZRTenDf4lqV1q+Re4KL TRPzTOazfppgw4xKjQMCPgSXlRmnCvMcu0pFKiQ1YmGwm3C8HSiRDU8lwuIvz/vJb0Xu omyw== 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=ZFHFRMwqhia+MVch9pKGgEBNeKukD3ZLzLQ+6+PB9fg=; b=NcvrpH7QpGR213IYVv8bn+75mlqhzaGdZpZDOm4iyogquA9zO3XoM+NAvvse8Jlcx4 MHMb/fjP+yIgVsOmAHZJ9+Wjwa2lrJVcgofNn3NFAX5lraGjwifzqtbEBuOoTiJFKi2K Dxh+raARFTf0UjzOHV7zRJ3LuYR1BIt2fPNkMT7B/lwFWhM5W8r9B4vVW4p5/vl5fYEe nAo2/EuAWh0hg4Dhvvddu8rr+LlNCAeAE2J392k8Uww1MqKLcAjM+yM5qPE/0ba9v5SY vGcYly/1MtvPrBwecwly7dlGIM6I2/uYHRZtX36uWggMOKePXpywiKfY/HfM8t4dDHyR /ndA== X-Gm-Message-State: APjAAAXsY6O+zB55LKN2Sq4Wr/pEbBOgEvWXTpu/y1AO7PL3Us1QqPBb anG/OTjJQK/p2+Z725iMWOY= X-Google-Smtp-Source: APXvYqxN5FxMq3dstg70O5Vq9/ZTLRvXIVMei8vJ5wsTOXTBnMS5w/jM6SkXPVj8JCNy1EBZfeqFwA== X-Received: by 2002:a5d:6acc:: with SMTP id u12mr12031486wrw.349.1559665820930; Tue, 04 Jun 2019 09:30:20 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id y12sm15108176wrh.40.2019.06.04.09.30.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 04 Jun 2019 09:30:20 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v4 13/13] arm64: defconfig: Enable IR SUNXI option Date: Tue, 4 Jun 2019 18:29:59 +0200 Message-Id: <20190604162959.29199-14-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190604162959.29199-1-peron.clem@gmail.com> References: <20190604162959.29199-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_093022_974963_BC0350A9 X-CRM114-Status: GOOD ( 11.44 ) 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: devicetree@vger.kernel.org, Sean Young , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 Enable CONFIG_IR_SUNXI option for ARM64, so that Allwinner A64/H6 SoCs can use their IR receiver controller. Signed-off-by: Clément Péron Acked-by: Sean Young --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4d583514258c..5128029100d2 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -460,6 +460,7 @@ CONFIG_RC_CORE=m CONFIG_RC_DECODERS=y CONFIG_RC_DEVICES=y CONFIG_IR_MESON=m +CONFIG_IR_SUNXI=m CONFIG_MEDIA_SUPPORT=m CONFIG_MEDIA_CAMERA_SUPPORT=y CONFIG_MEDIA_ANALOG_TV_SUPPORT=y