Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp196115yba; Fri, 12 Apr 2019 01:33:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyv4sXDxBiB8oyLKuAqR5yYAnCvHtjrqWT3r43hymaocpWuwkzTyrQojzq+Xffj3qc7Mjfj X-Received: by 2002:a62:1249:: with SMTP id a70mr54993165pfj.160.1555057986980; Fri, 12 Apr 2019 01:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555057986; cv=none; d=google.com; s=arc-20160816; b=im3hE6XnNkwnPEjqP0mXTKaGZZKYLGXkFp8L3Bg0KIMbFZb7W7CGASvo4EuT3Am+1h q4wP2qYE3ynX/rFrm24F9Np7SeNwyMknIYIi0W5Q/uvu535dUHlP6AaPLdLsPKSRYIt+ FRmHpcnxPQ+e87Fj/ngVBD1WuJjUkwwz5ETsUx52kTTegz5IUDy97qenZZrujJs4ctpx 8vhaByeWiSdry1aObZpfvUH60uK4uP2OwuULKaANpxLgUCbACVqS/zl5O+RPcoRFtyzw YGA7uVDxJ4qsr5jZPxCGEHTOJWQxzycIB+PraxDFAn6uA7gpiwXpY8iPrWaV7bpXifo+ ZWcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nD0E6tvz5YY5blNDuqlTgUoxXWGGIerDYPpbiC5BzT8=; b=tYkIifuqfFl6nqN/qVw4sZfse4zvVNyQHR6rsaHdOx5KpFMqYWeBjTQMt1xwx+qMKw 38XsOXqdiSfFYY/+Y6lRbt7pKNuBKcYDydPpBJ6i5L5hHCTTaCctzNr8s9XWM/PYV/Lv vHuqKSklM0bFNuKhDQ/4HslclCUnsxkp/c1XssnswJnymRL6fX0h2OQmYKvdES+8Gqrz 8o6AImeqcN8DZ8i6c+Hducneu6pu3NNlKQXqqgjUQJLtqw0Sf8cZ/RGKAaDWwcUTqwHJ yXV/traCkl2WWOL+2uI1bGGVlaK5F3qzkUIi0jIpZbxxPuKgbKMiW7MZTmOUn/ugTrZU p+Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=EgRKAfxi; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc1si36327011plb.55.2019.04.12.01.32.50; Fri, 12 Apr 2019 01:33:06 -0700 (PDT) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=EgRKAfxi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727278AbfDLIbN (ORCPT + 99 others); Fri, 12 Apr 2019 04:31:13 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33744 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbfDLIbM (ORCPT ); Fri, 12 Apr 2019 04:31:12 -0400 Received: by mail-wr1-f68.google.com with SMTP id q1so10848721wrp.0 for ; Fri, 12 Apr 2019 01:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nD0E6tvz5YY5blNDuqlTgUoxXWGGIerDYPpbiC5BzT8=; b=EgRKAfxitsVdBGjPWdMUZjFwye2c9N00X5az65pVszj0chMAgMcaKkYIDmRR4hQWj9 AH+SIz1zBUV5gS/CiBgY56vh6/7vJYNxKzXJu3LKQ3JMojEEt0Pf+BSuD17uJtBtc/BU id2+oDFixe7eCFxaWEXFFku5Ls5Jim6vU1X057P6AsVhC3AG33vruAdinCBSSJO9qwNe JVsyAX+s4YCpfRTpc5llav0yEMplLflJ97khEd8CoRrDS3p4Kp8Na9WKTiwiDLtFgalm WoLfkHZ0gVijqVwYb34w8hy0ZHlqn2D4GybOQCNicIvo9boh6FDi0j9peCdKLCp850Dl NQbQ== 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:mime-version :content-transfer-encoding; bh=nD0E6tvz5YY5blNDuqlTgUoxXWGGIerDYPpbiC5BzT8=; b=asBMjWbUzwcRlMJmLFNxlRC4zS6VkOp+Pb/2HdCMLUngtBW6EROPL7tofUhRnLZRUA Jm3Xv8LrpH1zI+tUOwBe7SimG6lH/fkIKht82R268yGnGtQFtglr3nu5TbM612X80dsX NtwGC7iRpkxKsFjjGznb6sMqgDxqM9FlbG5Sv7A5y+uF37VLNN0DJJtsvxfo93XeZ1Le kC3Fo4jwuKh22IDYK+RviXwGMQkaXkjgWHnLLuH7V0P54lJwdmhKF+Kve0cVgDucZWCl riiG5b3qphfU+EdFL7QbG3UwryPN5MqHqM4WXyPBtOSDkh82+A/OCKS954Ec95zq2zeN ty2Q== X-Gm-Message-State: APjAAAXdKUra5lPCQJLVdFYiSslgN5OAOQ7uOaqiIf5zTErAmSymCELO pPaOdd1imO2lVoOQZJ5AsMlP6Q== X-Received: by 2002:adf:ee07:: with SMTP id y7mr32473119wrn.219.1555057870812; Fri, 12 Apr 2019 01:31:10 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id w11sm116054702wre.15.2019.04.12.01.31.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Apr 2019 01:31:10 -0700 (PDT) From: Neil Armstrong To: hverkuil@xs4all.nl, mchehab@kernel.org Cc: baylibre-upstreaming@groups.io, Neil Armstrong , linux-amlogic@lists.infradead.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/3] media: platform: Add support for the Amlogic Meson G12A AO CEC Controller Date: Fri, 12 Apr 2019 10:30:57 +0200 Message-Id: <20190412083100.4070-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Amlogic G12A SoC embeds a second CEC controller with a totally different design. The two controller can work in the same time since the CEC line can be set to two different pins on the two controllers. This second CEC controller is documented as "AO-CEC-B", thus the registers will be named "CECB_" to differentiate with the other AO-CEC driver. Unlike the other AO-CEC controller, this one takes the Oscillator clock as input and embeds a dual-divider to provide a precise 32768Hz clock for communication. This is handled by registering a clock in the driver. Unlike the other AO-CEC controller, this controller supports setting up to 15 logical addresses and supports the signal_free_time settings in the transmit function. Unfortunately, this controller does not support "monitor" mode. This patchset : - Update the bindings for this controller - Add the controller driver - Update the MAINTAINERS entry Changes since v4: - Rebased on top of [2] to use cec_notifier_parse_hdmi_phandle() - Added Kconfig dependency on COMMON_CLK and OF, and selects REGMAP & REGMAP_MMIO Changes since v3: - Use the cec_notifier_find_hdmi_dev() introduced in [1] Changes since v2: - Really fixed compatible used in driver - Collected bindings review tag Changes since v1: - Fixed typos in bindings - Fixed compatible used in driver, using the bindings defined one - Fix regmap return value handling - Fix irq error handling - Fixed wrong clk unprepare on oscin [1] https://patchwork.linuxtv.org/patch/55513/ [2] https://patchwork.linuxtv.org/patch/55588/ Neil Armstrong (3): media: dt-bindings: media: meson-ao-cec: Add G12A AO-CEC-B Compatible media: platform: meson: Add Amlogic Meson G12A AO CEC Controller driver MAINTAINERS: Update AO CEC with ao-cec-g12a driver .../bindings/media/meson-ao-cec.txt | 13 +- MAINTAINERS | 1 + drivers/media/platform/Kconfig | 16 + drivers/media/platform/meson/Makefile | 1 + drivers/media/platform/meson/ao-cec-g12a.c | 779 ++++++++++++++++++ 5 files changed, 807 insertions(+), 3 deletions(-) create mode 100644 drivers/media/platform/meson/ao-cec-g12a.c -- 2.21.0