Received: by 10.223.185.116 with SMTP id b49csp3574760wrg; Tue, 13 Feb 2018 04:31:28 -0800 (PST) X-Google-Smtp-Source: AH8x226AmxkfPLFJ4BLwWxDYw7GOvoib+jNLRLDmDNrOuPqjlQddAcV/BiMYpI0s0t2xgzjFOSdv X-Received: by 10.99.143.28 with SMTP id n28mr898499pgd.254.1518525088143; Tue, 13 Feb 2018 04:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518525088; cv=none; d=google.com; s=arc-20160816; b=dtCF843i39R0sNYrDF/dP78M2fUnEdI9RgLsSaQwyG03cJuxaNLfH4EDj4cBiJl+uH r5MPmCDEm6Gy1oTo/xbm8OPpjNOZBWTsxJY/KPtksjttjItNTNMCmQs6WzRoP3W0kzR0 9rI+xyitRdm45QUqV32PkhZDcfFSdMCRq8ydmHu/T564h+JMPGvIqRmTKe0cNd+ILpR4 Y0UN1tlUNXO8s1eKeciQYiPXZg+T4RiE/NmAGbEU1eM1ea/hE36gA0OQYfiPwLSn2F7I EWiEUvR1BJZmIcrfW+5A4HAj9AF2R44IOH00yTyXxzFOiTSZNi46Aw1WIG/ohyqKisDq VYwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=JSnbsdaF+ChGMioD9aK9jNVz+jBkbGgX27IoKcmh8gA=; b=0SX2fGENCqjYGlfQyPyDQntEcoC8DxU+1EnaZKhYHWEB949IbpdgbswSaY8KrCC/jh HEmT8pxIO6UlDfKnJqrjszTQsxb5lu1G8SXK6BCar78pr1ZcplXlXHBVFxyzxiFgwb7I hYlzrRTgJpfvIHaI9v9qECIL0xKVtbuUBx1xAgEWVwq6jzjVnUm/hHc9ZpjVy0k9AQew l9J+L20FXfyWL/pSDsSbnMguohjz31IEYVfsqJFE1tt43o3Bcpt2T89/Zly37/Zv/rSW O7wglvxHHwrwuPktW06rcK9AF+rnthnIjpPoNntMALq0gYs6JSS5pf75Y2kKzifylksX c6Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T2lQKqzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si7378528pld.358.2018.02.13.04.31.13; Tue, 13 Feb 2018 04:31:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T2lQKqzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935241AbeBMMaA (ORCPT + 99 others); Tue, 13 Feb 2018 07:30:00 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35488 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935182AbeBMM35 (ORCPT ); Tue, 13 Feb 2018 07:29:57 -0500 Received: by mail-wr0-f196.google.com with SMTP id 33so4468787wro.2; Tue, 13 Feb 2018 04:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=JSnbsdaF+ChGMioD9aK9jNVz+jBkbGgX27IoKcmh8gA=; b=T2lQKqzj4DluVVO5Muk4xKwT20PSHvocHbLjvEh0ipJRbe7b37kL/J7DRr4cr5kqVG ll9GLYnLK7BHo5Dq8bep66esijsIAeIzjRGKHteO3BuITeWSXmY5QE9CLLZQnkA2YjPc GL0zMei6/KD+LviCdSib5+Jo/iPhXNDhww9J6/fPKRQKN35ZnGnFGSpX1BjHG0kTo8LZ O27YbN8p1skZ63CgXR7IvGmkbnSB/l7KKpL79gjQxLcU7QCdM+90O4A+bH4wU5blwPIR ZNX5ZMIaNWzinAOgmL/UaQEy5gjwU+yGMAm6hpxD1vGXkKQJ9GwuJLH0d4bcfor43MLD 37Fg== 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=JSnbsdaF+ChGMioD9aK9jNVz+jBkbGgX27IoKcmh8gA=; b=EcqaOYLSZX40C+ZaRhUrRKH0ES66XTipvfUCsEnJ02FK8/qOKRpxjAzXX7ZLCJrGeE avuF3/j3uEEohp90x6BnyZyex8ibdgu0QA52tjZlebeBKproJ3kQ/VpgaEo2t4sM89Ag ITpByBGH6B5jID9DAvkod4mnJnRA9cDYA3bdaRTnDbScmWyR7aQXGJm9EDcPi+G/nTSv kjwj/O7dzlNK2s2rw4MA1QnDZVurHlo4mgCe2QGD6YKT5iC3GTEWZ4ih6EccfA1hDQs2 wUzvV1HtIEDIePxIJMWL57H6uvdxLeaNf1gwqHyw5rctiryq/SLHAJ7f7viXulTn75DZ IKww== X-Gm-Message-State: APf1xPCK7rXoF1Yii64XHfdC5Xg/bMvaQ+Tp8thouTL4Oaxkoho4afiE 8XVWv7OZyYkOP5Xe4JA6EnI= X-Received: by 10.223.134.163 with SMTP id 32mr1143772wrx.250.1518524995709; Tue, 13 Feb 2018 04:29:55 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id l17sm6483422wrh.67.2018.02.13.04.29.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 04:29:54 -0800 (PST) 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 Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [RESEND PATCH v5 0/6] IR support for A83T Date: Tue, 13 Feb 2018 13:29:46 +0100 Message-Id: <20180213122952.8420-1-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v4: * rename cir pin from cir_pins to r_cir_pin * drop unit-adress 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 (6): media: rc: update sunxi-ir driver to get base clock frequency from devicetree media: dt: bindings: Update binding documentation for sunxi IR controller 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 Documentation/devicetree/bindings/media/sunxi-ir.txt | 3 +++ 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 +- drivers/media/rc/sunxi-cir.c | 19 +++++++++++-------- 5 files changed, 38 insertions(+), 9 deletions(-) -- 2.11.0