Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4910143imm; Mon, 14 May 2018 15:43:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpRQoPRxWertBSMRE41KvB1P+rATOXPzfi1wXIMbFMGDISFkT10izbDJzJbIjef16MkrTd6 X-Received: by 2002:a62:1211:: with SMTP id a17-v6mr12302284pfj.104.1526337796035; Mon, 14 May 2018 15:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526337795; cv=none; d=google.com; s=arc-20160816; b=m3jKoKjAY74aIJ6fAvbbUhX2NMdHa/OI7LGNG33wYc7hcYKcSiBlVDbQNZfVzRu2jQ SZsrv51/uxh5GJupl9qb9pkzbEUQk+HhL6qDqLrz304B8jliQqZGG5lmfOcAmiC6qvpt Q1hBElsUupQjeNF96w0FMOmlfuwxgc912VNF/MIZeR6bPbL+U+Imt04XnB6W9G1g2sbL ghUnkB9ps/+GWPCv3PefF/Uzkn+3nWtcnS5bt9w9GIVCb4TrEQSZ76Thzq/izyxJ4X0Y eq6LwT7bFqiKtuX6jb467Do1Yi1WvoXXMpobOp1gEBGsGwdwrpQ4B2OUuK/jFKBNu9nB vojw== 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 :dkim-signature:arc-authentication-results; bh=2Ub8PS2p0P0w6+FgFKSSq9fBAE1yZpQxtgQOE1oNPG8=; b=Yi0Vkzrfw96SKuRA0T9Ws34YhT3vHq/0gkyRNQjMLJGq9BT8WTJFwIfUgRB6GA0nAT PFOrOq9AAB1FDOqvecyd+V2wLFObyi0JS/h/ODkbLAVyqykHDVHxZIOQLDcaDiXtrPit DBOzT86KCqLnY9aahWLJbC8+g19rfR4iToab53iMFr8Aipre3ER8kbmKjO7k2JczJ9y9 noa3oI28ATKd06aRj+j4aDCKKnDt9kJtaBHHhmQDhWe6gZhOq9mdrGDcFRaD/782FFEL Rvfw+xEt4ObvwlOxn/hZPYqnCh8cNFxDtNrfz+i+rz86/HDav8hOzG2NoLxBVHnQtWGF zNfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dUF4yQGD; 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 g72-v6si11525148pfb.280.2018.05.14.15.43.01; Mon, 14 May 2018 15:43:15 -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=dUF4yQGD; 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 S1752585AbeENWmT (ORCPT + 99 others); Mon, 14 May 2018 18:42:19 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35471 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752295AbeENWko (ORCPT ); Mon, 14 May 2018 18:40:44 -0400 Received: by mail-lf0-f66.google.com with SMTP id y72-v6so20390518lfd.2 for ; Mon, 14 May 2018 15:40:43 -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; bh=2Ub8PS2p0P0w6+FgFKSSq9fBAE1yZpQxtgQOE1oNPG8=; b=dUF4yQGDEslotvxNg4RQih8iiUl7YAMQ2t1ycnzVfOMx8vIjFwfEErGlxkG4mLrXMK G+p2vsHkJ8qHFPxb0vTVzlXDSjIEk9sjR4shrhj/OiMpOED+cd1L+hiGM/aEAqeFC6jM cvwhRh6JRc6JDQS7OFzSc02j/R7QhVt+Z0EF8pjlb3rKI6OoV2dHjHuKlTe0qsL2Tl9q AYyqOrhlziWylJicSQkcsaNhM07e6zMxDwUGW8EFnv0z/JnRPsoMBAKNPQNrL8Iing/s V8Hy+WFtALqmZYXoDEkoqCQ40HE7C4LNrcd42JbD43TM1id9sBkeEVqDayXHUIpXo1Pc J+Ng== 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; bh=2Ub8PS2p0P0w6+FgFKSSq9fBAE1yZpQxtgQOE1oNPG8=; b=JSkyo/AV1COqV3HPnZZ19DissIw1BnH2gaANS0kXgra/seXH0JRV76ywz1fZb5prcn 7LG/n/x4lrXbeZAx+sBEa2Zt1r+wihlgyRW4U3TL0rM27+8ETZOb4UIoBwmV4GpN0fAL pybKsOeQM44GE9jnDFgEbPV9cZa/zdSLmlRqEV0CxsTJe+5ob6j54Ufl1B1Q5KGGZt2Z r02Dh2nnmntJ6+J8zF9ZHvCFwLsJIUjnGpOSRvM7F/RnXDvU4CgjHGs+0BgFuQ2uDB2A HDIwYXoWTRN6z+aupSLwbPPPWgr9kM/F1O4ljZHBUe7m6LI7Fuza6Tpzgm323du2Xc1o nrRQ== X-Gm-Message-State: ALKqPwdHLm7UxcgIh4gWxsm3MIRGPhnj1yGgUEDltXii881tuOYO3dcG BZvvJCm1Ws+gRgsABtIwKpG+Jw== X-Received: by 2002:a19:27c2:: with SMTP id n185-v6mr9747674lfn.25.1526337642779; Mon, 14 May 2018 15:40:42 -0700 (PDT) Received: from bender.ownit.se (89-253-66-137.customers.ownit.se. [89.253.66.137]) by smtp.gmail.com with ESMTPSA id f196-v6sm2071149lff.59.2018.05.14.15.40.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 May 2018 15:40:41 -0700 (PDT) From: Neil Armstrong To: airlied@linux.ie, hans.verkuil@cisco.com, lee.jones@linaro.org, olof@lixom.net, seanpaul@google.com Cc: Neil Armstrong , sadolfsson@google.com, felixe@google.com, bleung@google.com, darekm@google.com, marcheu@chromium.org, fparent@baylibre.com, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/5] Add ChromeOS EC CEC Support Date: Tue, 15 May 2018 00:40:34 +0200 Message-Id: <1526337639-3568-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support throught it's Embedded Controller, to enable the Linux CEC Core to communicate with it and get the CEC Physical Address from the correct HDMI Connector, the following must be added/changed: - Add the CEC sub-device registration in the ChromeOS EC MFD Driver - Add the CEC related commands and events definitions into the EC MFD driver - Add a way to get a CEC notifier with it's (optional) connector name - Add the CEC notifier to the i915 HDMI driver - Add the proper ChromeOS EC CEC Driver The CEC notifier with the connector name is the tricky point, since even on Device-Tree platforms, there is no way to distinguish between multiple HDMI connectors from the same DRM driver. The solution I implemented is pretty simple and only adds an optional connector name to eventually distinguish an HDMI connector notifier from another if they share the same device. Feel free to comment this patchset ! Neil Armstrong (5): mfd: cros_ec_dev: Add CEC sub-device registration media: cec-notifier: Get notifier by device and connector name drm/i915: hdmi: add CEC notifier to intel_hdmi mfd: cros-ec: Introduce CEC commands and events definitions. media: platform: Add Chrome OS EC CEC driver drivers/gpu/drm/i915/intel_drv.h | 2 + drivers/gpu/drm/i915/intel_hdmi.c | 10 + drivers/media/cec/cec-notifier.c | 30 ++- drivers/media/platform/Kconfig | 11 + drivers/media/platform/Makefile | 2 + drivers/media/platform/cros-ec/Makefile | 1 + drivers/media/platform/cros-ec/cros-ec-cec.c | 331 +++++++++++++++++++++++++++ drivers/mfd/cros_ec_dev.c | 16 ++ drivers/platform/chrome/cros_ec_proto.c | 42 +++- include/linux/mfd/cros_ec.h | 2 +- include/linux/mfd/cros_ec_commands.h | 80 +++++++ include/media/cec-notifier.h | 44 +++- 12 files changed, 556 insertions(+), 15 deletions(-) create mode 100644 drivers/media/platform/cros-ec/Makefile create mode 100644 drivers/media/platform/cros-ec/cros-ec-cec.c -- 2.7.4