From patchwork Mon Mar 25 17:34:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10869703 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 A440E1708 for ; Mon, 25 Mar 2019 17:35:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80D1F29015 for ; Mon, 25 Mar 2019 17:35:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74C45290CA; Mon, 25 Mar 2019 17:35:13 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 083B129015 for ; Mon, 25 Mar 2019 17:35:12 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=kcPPW3CplmO0IrW+vjJcAZN72M3wfz2RfedTcXKxYtI=; b=qdrJbDmX1DIGe5 0Nh7uM+cGLfeNnBZYAYW10e6ZYQQgRaMJS8G9Mbrp43up8aJ53Brgxu11orpANNv7TYy67H1Uld7F h0zrEcIx8f4kPL5fD7N8U2sFxYFjh2xcGgQ4pvcmH3/vErdG57R0kIJ0Enfl4b1GBps+lMsc5IbHR wMs+Afh5YuAah9OH6s0hTCR7GglmqYBCXE9xsYyt7Ky8+VyyAOdG6XnEzkIeNXxp5uq/rmuCZfg+S /AQ7A5w5ZQEizBV4whBiMuuWr4EN1W3nZwoUUow2lPW5SlTOnME0mdei0MZLoEMjUTki+2XsHvXuL 8Y7RA0tLDTfVLcocbhUA==; 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 1h8TV9-0006IY-EP; Mon, 25 Mar 2019 17:35:11 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8TV4-0005h4-Io for linux-amlogic@lists.infradead.org; Mon, 25 Mar 2019 17:35:10 +0000 Received: by mail-wr1-x444.google.com with SMTP id k11so3778393wro.5 for ; Mon, 25 Mar 2019 10:35:05 -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=lnQ9Y1fYzcSZfxA2CD5Z1Q398yaxdzQe2+YWsYEaBVo=; b=QTlSeDd67uLHBe+FyH15m2BDagLrsgMib+10miZWoY2yIkcUK05Ihr60F7Dl2shnsH N370gM83t4G/TwCC7+lQMTl3OzIHDog3SnKahLSFFl/899oh5qJqNbDgluzxGSuwp8It Dj46USmAqe2w6fs4PLc2OVzR+Ce765D2XmFP5qdB9TLQOjd/FVRJ9dEfjhmKh2N4nDKj XSkQyWuAbO15Ns/Fe/BHjHT8dbo1UYDox3afIDjZEw/hwHJl8OgFyN6v6btlpj5MsmzZ lABMYdFbYU47x/be11XzM3zPQXchWHEmTQ1c0pDAW7QySPfZDINtSGuM++uhp43VM8Dk oEWg== 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=lnQ9Y1fYzcSZfxA2CD5Z1Q398yaxdzQe2+YWsYEaBVo=; b=CzWxtXS2G25dtlVNax5mWj2lAqCmckfizkzwE6kZLTzTdx1lK34TwNux3ZULj7CE2K sdGrkqTQBOLMAAg2XDrk2FkC4ZchkfQeU8LkMpbQ7jqNgEnlz7Ro6UDUePspQikDDVfD rUNnfCmwOI5Wc0eSFZOHaIdT3I/N7tiy8i+kiktcDPvzELj48LgiIbg3dd98DJNC2aKr ql/2tmuUfvYz78HCgUFSJYSJIS9xkaghVXT32vwaN1x+Vi7OgIoblOdaf28Ho8EoE18J lKzanaILwNYzzNk5k9/IRBuMU7KyfUsHHlHvx/fRjMd9geugGKYXhMQH7r7zT0dW+x84 Hh0Q== X-Gm-Message-State: APjAAAVW92suL7glvFuEzTorQ7hZhAN+SfVBqS0x0aEN6cC9NzOUALw2 BcNPtMErKuQXROXeqLvAaXesmg== X-Google-Smtp-Source: APXvYqwVTL/cSQffrQXPHLK0MEqsQrIXElwzTpgSM7hG2Dumj7gxFlTg1v5MUFq1zot14ZXI1oR85A== X-Received: by 2002:adf:fcc5:: with SMTP id f5mr16672219wrs.166.1553535304504; Mon, 25 Mar 2019 10:35:04 -0700 (PDT) Received: from localhost.localdomain (176-150-251-154.abo.bbox.fr. [176.150.251.154]) by smtp.gmail.com with ESMTPSA id o15sm16003227wrj.59.2019.03.25.10.35.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Mar 2019 10:35:03 -0700 (PDT) From: Neil Armstrong To: hverkuil@xs4all.nl, mchehab@kernel.org Subject: [PATCH 0/3] media: platform: Add support for the Amlogic Meson G12A AO CEC Controller Date: Mon, 25 Mar 2019 18:34:58 +0100 Message-Id: <20190325173501.22863-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_103506_631788_35408AD1 X-CRM114-Status: GOOD ( 10.99 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 differenciate 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 adresses 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 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 | 15 +- MAINTAINERS | 1 + drivers/media/platform/Kconfig | 13 + drivers/media/platform/meson/Makefile | 1 + drivers/media/platform/meson/ao-cec-g12a.c | 783 ++++++++++++++++++ 5 files changed, 809 insertions(+), 4 deletions(-) create mode 100644 drivers/media/platform/meson/ao-cec-g12a.c