From patchwork Sun Jul 30 13:23:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 108950 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp2610642obm; Sun, 30 Jul 2017 06:24:40 -0700 (PDT) X-Received: by 10.101.90.136 with SMTP id c8mr7833168pgt.168.1501421080135; Sun, 30 Jul 2017 06:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501421080; cv=none; d=google.com; s=arc-20160816; b=PZbVFm/Ea3f0WviI/VrQfdSiMwOexppB+czRd6anNRdenAh0Wy+jYLOoaTiq1MrOdA 8RwrlXbDgLuekMIB+Eb+e9P43p1HDBw9ZZhAPu+n3+hF1gbpnNZoXKjFBPAuJUmMvtJK kPHrsB5Zmu+ObyLwlWCejg7N+TItduFm2Hz2hnFVSunIRjhoWSNXFWSHDbEfpV/TNZHe 8w3H5WH9g+17cnJvxcGMGVM6nXW3gB2BLV28Vk91C/af5gs0z4lHkadUdaws+tLVbCMq lEIP8OOtAwNQ6Fp/zMYAjz2y8ZD7Fv0/EQeJDCM2YRrNL4xvA4xoG9+tzLVa6wTPlySg ofOA== 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 :dmarc-filter:arc-authentication-results; bh=z3SRlKRXWKC43JRQhwg7q0XDfnFOT/Rjiwd2uzZZU2g=; b=qr39aAGAzjYKs3UEuwij2RPvrmMH3q4uRTQzvi1LvAegHMD5Tm+pHzfVUuHOvd8Rdo X05TRGW1t2pRX7roEHQMDgyoz23XxgBJp2Ywc2hPiazQVT8fj8xvLnw6UiKw13UFG2v5 srwYVgcaQr6JdHTX7H+QYL/Le130mxiJkvKgFHn61KadcoVLL+FskVCO4Z0gBzY0OrY4 JVzn92/3Oo/mqqGA9VpM3aRbcZArQUmo8LMYxkSeHrb8OZv3JXYxYn2fRVTavmH2izQN zMBJ79ZzCKBqHOREzM5KLxXdbeKVn8jbs4DHS+Ad86vi8vh72nwEhhhMboFmUBP+cPqC UcMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c126si2745288pga.245.2017.07.30.06.24.39; Sun, 30 Jul 2017 06:24:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751065AbdG3NYj (ORCPT + 7 others); Sun, 30 Jul 2017 09:24:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:37038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbdG3NYi (ORCPT ); Sun, 30 Jul 2017 09:24:38 -0400 Received: from localhost.localdomain (li411-102.members.linode.com [106.187.91.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0260B22B66; Sun, 30 Jul 2017 13:24:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0260B22B66 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=shawnguo@kernel.org From: Shawn Guo To: Sean Young , Rob Herring Cc: Baoyou Xie , Xin Zhou , Jun Nie , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Shawn Guo Subject: [PATCH v2 0/3] Add ZTE zx-irdec remote control driver Date: Sun, 30 Jul 2017 21:23:10 +0800 Message-Id: <1501420993-21977-1-git-send-email-shawnguo@kernel.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Shawn Guo The series adds dt-bindings and remote control driver for IRDEC block found on ZTE ZX family SoCs. Changes for v2: - Add one patch to move generic NEC scancode composing and protocol type detection code from ir_nec_decode() into an inline shared function, which can be reused by zx-irdec driver. Shawn Guo (3): rc: ir-nec-decoder: move scancode composing code into a shared function dt-bindings: add bindings document for zx-irdec rc: add zx-irdec remote control driver .../devicetree/bindings/media/zx-irdec.txt | 14 ++ drivers/media/rc/Kconfig | 11 ++ drivers/media/rc/Makefile | 1 + drivers/media/rc/ir-nec-decoder.c | 32 +--- drivers/media/rc/keymaps/Makefile | 3 +- drivers/media/rc/keymaps/rc-zx-irdec.c | 79 +++++++++ drivers/media/rc/zx-irdec.c | 183 +++++++++++++++++++++ include/media/rc-core.h | 31 ++++ include/media/rc-map.h | 1 + 9 files changed, 325 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/zx-irdec.txt create mode 100644 drivers/media/rc/keymaps/rc-zx-irdec.c create mode 100644 drivers/media/rc/zx-irdec.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html