From patchwork Wed Aug 1 09:47:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10551995 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 A9752139A for ; Wed, 1 Aug 2018 09:48:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 972492A967 for ; Wed, 1 Aug 2018 09:48:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AAD72AA5F; Wed, 1 Aug 2018 09:48:23 +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=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 32DF92A967 for ; Wed, 1 Aug 2018 09:48:23 +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=cLGSuSBLxtfVvhEsNJa2aPpuFrB2xcorS4tVSLZKzUg=; b=a3V +WRuToxz/bmw6IgpJaAO3CpqnUe77eGTzEcjdal8aXKP+5bbvZ/CyAFU07Be5AFBMpbV09+Lm2on3 ZlVhaaLpc94F6i3qa0g9Wog8uqwFDmTzZjOvXDU5BaECGFmtnSa+BcAWST3aT+HlZX7+5WOWVErUw AGJHBwps4bLeg3Iojrs0YCauAibRK/Oh0w9Vday3Ku8oQu7X4DWon0SCDWalh+lTwlJQ4Wep5wW1g xMZRzzcEb86v5PLdHrWZpjd8oh+kNz23JjBy+ryYXU3QL8yfvZvyNCd/Lia9bNEgEFMqdKZtD+Zsi zo8vREGWizxaIZ3YzWmTz+nNfjEBG9A==; 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 1fknju-0000GD-RR; Wed, 01 Aug 2018 09:48:18 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fknjr-0000Dl-HB for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 09:48:16 +0000 Received: by mail-wm0-x243.google.com with SMTP id y2-v6so6251142wma.1 for ; Wed, 01 Aug 2018 02:48:04 -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=wKjfFTIezxAsHyRFjiMZEtQ89J84bXwgCfSxzWh5VRA=; b=Q1b5tCCVbvKJFmZg8UL2vNq9QVzm/+Ggw6B/4v3R5b1/e5AfQAD5TOpgzQjpO+mcB0 3extkYMLezo3WlioMKoV3cHiy0taaWlSWVHZ1+7Go459eYl2WcZb+sAszgcLOgEmzGoM 8QvGLaR2QwGFBSMr87AvNGLpNE7i2vkcRJfp38qwmkACvT8iIJEsgSP38X2+zhpcFDIX Dz6E/g2AhevQPElxlrc9br9WU5jlnesrbCeIwNBOwjcOmXP5evyY/aq5Dq87xY8bcOEO sI2dZt4waCbcdtDctPUB9OZ66mHjLQsFbaWJz9eHAv9YF0RP7c0DxfzZ7DeFbx2GqwWj 57XQ== 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=wKjfFTIezxAsHyRFjiMZEtQ89J84bXwgCfSxzWh5VRA=; b=SdhaVpE788QqgcSPoSzEvmJuPJ0NN/H3mavUDlaC19SCDcIah028Iz/jdndxWhXCW0 HahmBGs2Oztktub9MlM6uMZphtzkcgz8YNtQFHDMdyP+A/NOPjcI04egk6CEcoBZt6Ly deBQugH9EOl10CSDCkrxY2qobBZOwBRmrhmORDKofHFRadkoQCeca3DgKAhA3HHo7WJR RWFPGpDklnuOkEm/CgBnLi9Y6vvd3N0xL1L2vLH36Xe1WzSv7BzEpsTcql4o/eNjleVy xMw9aZZOWX9yXJcY86ctfNfp9wUzPDyw+6EnJXVlJ38VkuNqIzweWI8m1L2UAVnblfNC nDmw== X-Gm-Message-State: AOUpUlGZ5qaoyb4r33fuJh1CRNGSwq9+Z71M7aaFfDMhtBLvLtiEuqMS y5umwF2aE1gBlNIAaWcNb0w= X-Google-Smtp-Source: AAOMgpeEyilL3O5lw87aRT/WMU8uPnjAM34hWyuzbU4rI3TXcoN5QbYuCQWPdsq5gk48wwHfIdiO1Q== X-Received: by 2002:a1c:e455:: with SMTP id b82-v6mr2418695wmh.93.1533116883246; Wed, 01 Aug 2018 02:48:03 -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 r12-v6sm13580217wmh.0.2018.08.01.02.48.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 02:48:02 -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 Subject: [PATCH v7 0/4] IR support for A83T Date: Wed, 1 Aug 2018 11:47:57 +0200 Message-Id: <20180801094801.26627-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-20180801_024815_599103_6481B9BB X-CRM114-Status: GOOD ( 17.36 ) 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 v6: * update Acked-by * add missing a83t compatile on patch 2 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(-)