From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA6E1C433DB for ; Thu, 11 Feb 2021 10:41:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9D14D64E79 for ; Thu, 11 Feb 2021 10:41:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbhBKKlL (ORCPT ); Thu, 11 Feb 2021 05:41:11 -0500 Received: from lb1-smtp-cloud9.xs4all.net ([194.109.24.22]:42843 "EHLO lb1-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbhBKKjF (ORCPT ); Thu, 11 Feb 2021 05:39:05 -0500 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud9.xs4all.net with ESMTPA id A9LMlXsw2Zvk6A9LPlud1a; Thu, 11 Feb 2021 11:37:08 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1613039828; bh=4+4N0PoDWgsVbg1mOoPtcBrFgTjs96ZvYYEmf7iiKU0=; h=From:To:Subject:Date:Message-Id:MIME-Version:From:Subject; b=fsb/RaQ7pHAGpuumHgGX/00jeitAcU2lZ0Y9CSs4Kd7FhQvrwZQrWSQQxb2b5y6rH R6OE9UexUCAON/ET1GHIFfOif3IQRG6c7AfJRNPe1N41A6xMLqP3ud4EoeRBza0wG4 GRUf7HQySs/8VElYxh8Sb1aALEK1Uvc4um+P/YDs7VnID15DjANCVNY0GX3KpJzqA+ +cZo1GMXMcQLG9qDuILCFAeCbfqX1mdg3yK1HWsY9C1VV1YYqC8y6pRyQ4q+E4RD8F YBj0/NXHvHjJ2+S7xn2VZFds79mJGdzMLLXrB5yXZcMVQ61wxneLJYSLqPWwp0Vham M/m38S8a3CJ/A== From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Tomi Valkeinen , Laurent Pinchart , dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, Sekhar Nori , Tony Lindgren Subject: [PATCH 0/5] drm/omap: hdmi: improve hdmi4 CEC, add CEC for hdmi5 Date: Thu, 11 Feb 2021 11:36:58 +0100 Message-Id: <20210211103703.444625-1-hverkuil-cisco@xs4all.nl> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfEpPuZfHrv3ScUk8i5acH1/+xpv+JQkYulPlSP9klHaiTLJnvoGeqywczB9nhmp8NrXq89BNNgFFzgEWAY1NcrXoyx9ColwZ/pzFSOk7VMXGprxvTFo+ wZRrhBLye8ylSEI4swbQsl3cygFiXC00BdqOyh28919lGwFsrA7hCo412J1045HK7FAuXhXeP0a65iscs+CXw06zy/nFRhKxJyVDTsNGAaiY+e44EwXg4mKB m45GVpOLBJqvcsYhtFUUas4Vpz3fN2GhS5jnIQcH7Q7bFT0Ur2sF12FAlxa53pd5OcCKK2nr3uLbB09yp/WJAN1/6XKw1YI+Cne9aeOOKCPxCeUNnRM4H1Bk C+OFUj/MMdUs9zt8LDJHtJO7ISEq4ntlKKUUdSSma0jrH0w9cix0Ax3LoZROJklQ0VciJgue Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This series improves the drm_bridge support for CEC by introducing two new bridge ops in the first patch, and using those in the second patch. This makes it possible to call cec_s_conn_info() and set CEC_CAP_CONNECTOR_INFO for the CEC adapter, so userspace can associate the CEC adapter with the corresponding DRM connector. The third patch simplifies CEC physical address handling by using the cec_s_phys_addr_from_edid helper function that didn't exist when this code was originally written. The fourth patch adds CEC support to the OMAP5 driver and the last patch adds the missing cec clock to the dra7 and omap5 device tree. Tested with a Pandaboard and a Beagle X15 board. Regards, Hans Hans Verkuil (5): drm: drm_bridge: add cec_init/exit bridge ops drm/omap: hdmi4: switch to the cec bridge ops drm/omap: hdmi4: simplify CEC Phys Addr handling drm/omap: hdmi5: add CEC support ARM: dts: dra7/omap5: add cec clock arch/arm/boot/dts/dra7.dtsi | 5 +- arch/arm/boot/dts/omap5.dtsi | 5 +- drivers/gpu/drm/drm_bridge_connector.c | 23 +++ drivers/gpu/drm/omapdrm/dss/Kconfig | 8 + drivers/gpu/drm/omapdrm/dss/Makefile | 1 + drivers/gpu/drm/omapdrm/dss/hdmi.h | 1 + drivers/gpu/drm/omapdrm/dss/hdmi4.c | 41 ++--- drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 12 +- drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h | 12 +- drivers/gpu/drm/omapdrm/dss/hdmi5.c | 63 +++++-- drivers/gpu/drm/omapdrm/dss/hdmi5_cec.c | 201 +++++++++++++++++++++++ drivers/gpu/drm/omapdrm/dss/hdmi5_cec.h | 42 +++++ drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 28 +++- drivers/gpu/drm/omapdrm/dss/hdmi5_core.h | 33 +++- include/drm/drm_bridge.h | 31 ++++ 15 files changed, 453 insertions(+), 53 deletions(-) create mode 100644 drivers/gpu/drm/omapdrm/dss/hdmi5_cec.c create mode 100644 drivers/gpu/drm/omapdrm/dss/hdmi5_cec.h -- 2.30.0