Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2809586yba; Mon, 8 Apr 2019 05:20:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbbaUKVLWe6p7SoKkGkqhLKVOxXgsfVEFz3RvYPrFBYGasEj71pvCeR9M7StzF2seZVpaK X-Received: by 2002:aa7:9095:: with SMTP id i21mr29392788pfa.134.1554726020224; Mon, 08 Apr 2019 05:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554726020; cv=none; d=google.com; s=arc-20160816; b=LKomtaTrjmN6dwOXb1IPEp1A0gum717Yl9hD2A8Ce917eAkqNDLjgWwXC6ywZ44Gz5 2lZdwmpatVTnkqBMfHjulhHFwPkdeYlXbBBgMlrmSmgw0FKWkUF1a94avlBg6C0zOSwx nbKTANlXJpS+A0fJG+NmI2WAN52if2ioVIw3t+1PAi2gij7M96+XbmxgOwAEogj3Oy5u 0xTIa/aNnKSg7lQ0U1UW7heUBFvNqRDLsoSMeJmze0VUbsiE57PsFXGtlFeC6yz1l4mt n2J2zKOHf4j5eUKdjQGuDfWFTTlGoYfSbUfmQMTlfaF88YFO9OpbdnjIBFZEhPuvP4Ti IDXw== 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=8UpAj9YfdUW4CMDRxIiHz7xX8khEqdof0qRT0yl1Om0=; b=Ekh3vekWMlvRN5PI3kafhn/npvYkcWJVpisGzrsGOkPPfJjY8fN2X2m5UfBaa9kcUW A3iDOwvNl5jpRyqfPm5SEpGz+w7OzfVHdyTVw1gx2lEz/IG9yIZoow5o0xvIt5RdPH00 OzBa+5Br7v2Ax/4l6dxWOUcLOehDcygefFpcFS3qqHdETbuEsAEz2JGngTu25PUWnc2p VanRlcyJDyxJVHsBXRy8wyU6CiT1FSf9/T3/c9NSTB7dnGqaRTYLRTfDC+/DrQQrCJUo 2BclwOWw8Xcm87x3B9eK0xQedXwCmphX44UGVbqTWIAhwZjttiaX7MSYFQ0QF7LOXffd q18Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="o/rvHZTF"; 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 w6si23482476pgr.71.2019.04.08.05.20.04; Mon, 08 Apr 2019 05:20:20 -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="o/rvHZTF"; 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 S1726607AbfDHMSK (ORCPT + 99 others); Mon, 8 Apr 2019 08:18:10 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55592 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbfDHMSJ (ORCPT ); Mon, 8 Apr 2019 08:18:09 -0400 Received: by mail-wm1-f67.google.com with SMTP id o25so14071066wmf.5 for ; Mon, 08 Apr 2019 05:18:08 -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=8UpAj9YfdUW4CMDRxIiHz7xX8khEqdof0qRT0yl1Om0=; b=o/rvHZTFAe0VdbSzgTiiC99n/h4CzCWZe0CTp2ayr1+YHssIea0MmB9jYzr5+9LWd9 0MO9ytqi0WMvFDguDixKX9s6xDFoDaZcSccQOeJvU+OX5PoNGreS4m1AwGJXXvtpICCZ Z4iGah8tY3Bp3XvTIj5qlSYcAnnAVn92FXwsvM4sZM7WE2nIcN2M2LPxQXeNL43SD34I sRoyIXDRK3k8hz/MKTYVr23UtPnn/4mxD+IsjvvqWLcYyYjOhf6CRlhfm+ZA3seLfOz8 8J5VkxEFMQl4GxN5P2GRwLjQPIgBIVWNW+X14qMWOE6o3StUViVfsU7Hf9vh4NEyn3vd ulKw== 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=8UpAj9YfdUW4CMDRxIiHz7xX8khEqdof0qRT0yl1Om0=; b=TdjbdY+tParTGUMAbzf6nB/KWVbCFvtMtCTX6pncAh3qJWSNVxyXDSVe4kvom8yC9J 6MSmid6fAmo6+qhdR/B2IwTaH/Nw1/xfJ+5OSiq7SsqGC8Mr3yfjTjjkE8FsWb7stQPz TrfDVhL/GN86VcCjKcxfxtmrC6HhLqBcZTxWNz7ZtocJjznYVUnDoxp0eeVZQUoSzAzk lkVNvconiKH8mC5p1UZMnfurkWQRYJ8E4mnfS8YB6AJm8usvhzQXZnlvvoo5rr2veBxL GrCO2yLts2pDU7AbUEz53UIfcumFMqhtm/Vkbc/qmuZinz5L//P6CocsLxrakQ1f5DuE 34dw== X-Gm-Message-State: APjAAAWskr6IBtxIHNRAUNxZekqKQof021J5fh5WwxBT6ASehkbR44SQ q0vuu0BKluI4a23FLwmBSocpdQ== X-Received: by 2002:a1c:9e96:: with SMTP id h144mr17941211wme.33.1554725887208; Mon, 08 Apr 2019 05:18:07 -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 e1sm52865103wrw.66.2019.04.08.05.18.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Apr 2019 05:18:06 -0700 (PDT) From: Neil Armstrong To: hverkuil@xs4all.nl, mchehab@kernel.org Cc: 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 v4 0/3] media: platform: Add support for the Amlogic Meson G12A AO CEC Controller Date: Mon, 8 Apr 2019 14:18:02 +0200 Message-Id: <20190408121805.2870-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 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/ 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 | 13 + drivers/media/platform/meson/Makefile | 1 + drivers/media/platform/meson/ao-cec-g12a.c | 779 ++++++++++++++++++ 5 files changed, 804 insertions(+), 3 deletions(-) create mode 100644 drivers/media/platform/meson/ao-cec-g12a.c -- 2.21.0