From patchwork Tue Jul 31 09:22:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10550519 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 9381A174A for ; Tue, 31 Jul 2018 09:23:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D3A52AB23 for ; Tue, 31 Jul 2018 09:23:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8072E2AB30; Tue, 31 Jul 2018 09:23:27 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=unavailable 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 390222AB23 for ; Tue, 31 Jul 2018 09:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=P+uHWplLaMTY5oCy8Nu5/YbNEPvrZ48aQfglzSdtYUA=; b=KVB lgRZJ/YOO4hYSlk6M3X6EG3NjZ794qM1RAGEywx9AeCpyiZW31BAapEP5SzQnQiO/whG3kE/djZJg rC6Uuoy8BOATPPwF2nIlfzDZu7eORPCfB2ngZaaA69SLsnJNLx35NSWx27G96f1dvntjDFETUCdR6 V9VH76zvCe453uPr2vRRCb8EZhlT08YqDhkc5dU3RTndFQO3KjEyq5jmVZfe73ztrdwB25mXJmO/2 fI0KkRdOauiqmyDu0Z1ZYzRTZv9E58Tidzz2te9kVl5Os6O+WvqdN5R6hNJ4OhFFdYdctTQSzGY06 HpMlE86V60zOpXOXukl9Io0ukHFFhpw==; 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 1fkQsF-0003dM-2b; Tue, 31 Jul 2018 09:23:23 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkQs4-0003PV-9S for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 09:23:13 +0000 Received: by mail-wm0-x242.google.com with SMTP id y2-v6so2277490wma.1 for ; Tue, 31 Jul 2018 02:23:01 -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; bh=Cz/7IskC8IPjQ796NiGLRqJhomWBnOtgz/e298LLo9s=; b=rSXvShyQn4PDlEjrJhBPAQykhGE3rz8TEEt5oo/8SbqkoU+c+/XnQbqrBzPP+pinw5 9Hr/UvC7thYzIRcxs7KrVKrlcv9eGx+xAgNbEQOOEX8dVVWEEVjD3UktQ314nTpBcbCY zXkAiWVyJa+vxD6rOEeVojqh/ZAS7mrhB/lp12OR4zxhExWBug5tdqTZ2OxTTw5Cqsg+ fOR9wGs5pe99kOldbZLiK51Zb5e00Ow3j8AvR7e040UnNRj/HWQqibt8pGVzdWdwbxpD bW+lYjZXVJE8iGmoaqH2Q9RTB5EaIr9Yxs96YC1SV9AUBgHkTmLyWt2XKzNv75HXtZ7E VX2w== 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; bh=Cz/7IskC8IPjQ796NiGLRqJhomWBnOtgz/e298LLo9s=; b=tW20FNDFR8SBCjRrOj0rAT0Qt9jw9SvceXvHo7gYEEUlU2yX1ghl+V+TM/Mqa0fVwO 5bowDmGLF/CqLAuIfzRoWfIFSVv14NJoDs8NDDmgI54J+n4PN1t3u9TRPIb82MhYnYww N0cvxMIGWX3K64QCqZoQwczW5EKQmerDo8l0bfIn+IeFM2i1kcJM//cbH4cIAPcPfSTV 2ksOIisytrIzgQlZ8eAvs30HogNuLxxP2ssUYYHrox7bUdA1q/mhTBBd4bqLeclHFzKQ +BZTX92ZFGfo9pPY5E/fryTae4XEnT85gLk0BT7kX1NkMFZe7q08ZKQiHLQx+7q6p0Xj 7/aA== X-Gm-Message-State: AOUpUlHjmOSoK3dI4KFdLWccfewOZghLY+4wkgmqxwQmu+0kmqsqYHqd DTKcekLwRozIJLIPFi4R0oI= X-Google-Smtp-Source: AAOMgpd70SwbfuuBVQdomB/WG/NOtBjHb6xDPw+fSX7AL+9vIZIPC69e2TH38A9k+GDBJixTxN9osg== X-Received: by 2002:a1c:a8d6:: with SMTP id r205-v6mr1708480wme.6.1533028980062; Tue, 31 Jul 2018 02:23:00 -0700 (PDT) Received: from debian-hp.wlan.uni-ulm.de (eduroam170-020.wlan.uni-ulm.de. [134.60.170.20]) by smtp.gmail.com with ESMTPSA id y191-v6sm1670873wmy.4.2018.07.31.02.22.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 02:22:59 -0700 (PDT) From: Philipp Rossak To: mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, sean@mess.org, p.zabel@pengutronix.de, andi.shyti@samsung.com Subject: [PATCH v6 0/4] IR support for A83T Date: Tue, 31 Jul 2018 11:22:54 +0200 Message-Id: <20180731092258.2279-1-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_022312_345706_9DF72BB6 X-CRM114-Status: GOOD ( 17.02 ) 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-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 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 patch series adds support for the sunxi A83T ir module and enhances the sunxi-ir driver. Right now the base clock frequency for the ir driver is a hard coded define and is set to 8 MHz. This works for the most common ir receivers. On the Sinovoip Bananapi M3 the ir receiver needs, a 3 MHz base clock frequency to work without problems with this driver. This patch series adds support for an optinal property that makes it able to override the default base clock frequency and enables the ir interface on the a83t and the Bananapi M3. changes since v5: * removed already merged patches * adapt patch 2 to be applyable to current rc-1 changes since v4: * rename cir pin from cir_pins to r_cir_pin * drop unit-address from r_cir_pin * add a83t compatible to the cir node * move muxing options to dtsi * rename cir label and reorder it in the bananpim3.dts file changes since v3: * collecting all acks & reviewd by * fixed typos changes since v2: * reorder cir pin (alphabetical) * fix typo in documentation changes since v1: * fix typos, reword Documentation * initialize 'b_clk_freq' to 'SUNXI_IR_BASE_CLK' & remove if statement * change dev_info() to dev_dbg() * change naming to cir* in dts/dtsi * Added acked Ackedi-by to related patch * use whole memory block instead of registers needed + fix for h3/h5 changes since rfc: * The property is now optinal. If the property is not available in the dtb the driver uses the default base clock frequency. * the driver prints out the the selected base clock frequency. * changed devicetree property from base-clk-frequency to clock-frequency Regards, Philipp Philipp Rossak (4): ARM: dts: sun8i: a83t: Add the cir pin for the A83T ARM: dts: sun8i: a83t: Add support for the cir interface ARM: dts: sun8i: a83t: bananapi-m3: Enable IR controller ARM: dts: sun8i: h3-h5: ir register size should be the whole memory block arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 5 +++++ arch/arm/boot/dts/sun8i-a83t.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) Acked-by: Maxime Ripard