Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1384833ima; Sun, 21 Oct 2018 10:29:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5eT/EhXIZhHKpJGPwr8ohX9yeCPLV8tmuCyWj/8D4MuSyXiBk1WUcuN5Y5CokJeOJiFYQvK X-Received: by 2002:a63:ba48:: with SMTP id l8mr1701927pgu.72.1540142965137; Sun, 21 Oct 2018 10:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540142965; cv=none; d=google.com; s=arc-20160816; b=tZUDyhW+uw6jC8RNYnZ2RfXwf9eoCGSfc878NIUveDJ0FPc7UEE6rewZfKFiJP363Q WnKxX87lp/3sHJd7g9rUC2v0xAy2GtjLTicqhDkyafjO2laTzTtnQvxeiJBMVQI2kyAQ 38JLlsVrLaFBWrOwo5TyxEuuo1As1j7nkgBqcRwAlcdBFpNNHFjYCeXPvjZWTJ9GA3ir PiHDqVivg8gp0duBGDs4HUOFwfRrkfiAOMmjvK7Kshg2+pCqd9XV25hRHPeY2rAyRr1t 2BKXlDX4zYURzxPunhx69MmCwTZG2759J8c6935SyBGOsTLx+2Kl+cf2Z7ciRZ+NDC8q nf9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=/Tm0jAIxOJeUyc8Y4ERCd/9gN5LpG7UNHqRcmT+Mp+M=; b=jHKRa/Olvp5j+P1bXTnCBn5VJCln297QAotfw4SaPP+EQkturhbYw0FhuVEHULRtzx jEMgm0D9rosnV46lq8+cjlmcsvQd181+WlXGI7v2YGjPYa/0kDTGx1xtedszLvlaXsjs a4TW9YQpNjvHk7yb50EOo3aqSt72ArWc75GuAY+H+9TkDbUg0esLqMR6lq3XORKqNBgB FSgvqIupqzQTFK2pG3IUeyMt/nqXlYREzWY45/dMj1+WnVewkSNxelIXDh2Idjq33mNu zRbhNYtorYnoX3wHyBjvVkebkBrBrA+AxJt8l5qkcCFxTyau1sAY2HCd9t/EgZljovUX ZdLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ss87ex8+; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18-v6si30744620pls.32.2018.10.21.10.28.32; Sun, 21 Oct 2018 10:29:25 -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=fail header.i=@gmail.com header.s=20161025 header.b=ss87ex8+; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728138AbeJVBOK (ORCPT + 99 others); Sun, 21 Oct 2018 21:14:10 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40118 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeJVBOK (ORCPT ); Sun, 21 Oct 2018 21:14:10 -0400 Received: by mail-wr1-f68.google.com with SMTP id d2-v6so42360636wro.7; Sun, 21 Oct 2018 09:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=/Tm0jAIxOJeUyc8Y4ERCd/9gN5LpG7UNHqRcmT+Mp+M=; b=ss87ex8+bsjIfdkaFoJI3EyNKnfzjfXbHqxtgNHOJYxqV48AwV1ZxFyCitX0tXS4jD n1yz2xOflA0rcZ3yBWQnR6vR9OssK8PhJi2mWSHEX1hFJNO4v5AM10DlogA3ErumMVeL CDGOgBr/+O9AMDKNoJmY+E9XLpkp0u70bLXJkHjM3XbM7R5g0mU2Yh8aT7iuKlg98bfO 7YZi9AUAT2rFcKAN0FbEe+YKaejRqflgVLLB9GQlOU+PXc9nUFOMAeVX1ZmGkhDawJKU 4gfEL0fw1s7O+a0lDdxuNLSSunfpq79f8JHQyH8UxgkXut+KeSpiEeuQKt3/AYW6k585 B0LQ== 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=/Tm0jAIxOJeUyc8Y4ERCd/9gN5LpG7UNHqRcmT+Mp+M=; b=hgqlKOUYIXtq3oGELk45Qr3skqF0r0LQb7rvo2mpE7GhAtM4uiD6hhbapITNvEBbQJ k9Z5pYcDfi8e/9YT4fhOP4DirPQts6m9i3RaUxDjjNTJ2gcZMlE7Xv/hMf5BgS6RPUQ2 FdOmwxkgvcy3FkWLX+ReG1MzfSygIPMbcXjY0KodDB7mu4yrRKFMIhOyDgV/CjZyFrIK iLaDf5YpiM4TTBiwrXxrrD1h/d/ib9XkBImEF69rhj2tP8UAQJrrHlHg6AzksbMB/pKn njY3fag33vkhP4b/4o6pIGsA7vxCJ6dMwjywhv99a5XgBbxubICnxbBf8Ipx5yZ1oHYc JNtw== X-Gm-Message-State: ABuFfogoY33oxya0Qccd5+pqZc/Xl+r6TTDVJBOSbWmyNqSwfxSQgIm+ ToPzVmJPx62/af8cbu7s3z4= X-Received: by 2002:a5d:4306:: with SMTP id h6-v6mr44937594wrq.189.1540141152579; Sun, 21 Oct 2018 09:59:12 -0700 (PDT) Received: from localhost.localdomain (175-235-243-213.terrecablate.net. [213.243.235.175]) by smtp.gmail.com with ESMTPSA id b71-v6sm13437230wma.13.2018.10.21.09.59.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 09:59:11 -0700 (PDT) From: ektor5 Cc: hverkuil@xs4all.nl, luca.pisani@udoo.org, jose.abreu@synopsys.com, sean@mess.org, sakari.ailus@linux.intel.com, ektor5 , jacopo@jmondi.org, Mauro Carvalho Chehab , Greg Kroah-Hartman , "David S. Miller" , Andrew Morton , Arnd Bergmann , Hans Verkuil , Laurent Pinchart , Geert Uytterhoeven , Neil Armstrong , Jacopo Mondi , Lee Jones , Todor Tomov , Maxime Ripard , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v4 0/2] Add SECO Boards CEC device driver Date: Sun, 21 Oct 2018 18:58:18 +0200 Message-Id: X-Mailer: git-send-email 2.18.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches aims to add CEC functionalities to SECO devices, in particular UDOO X86. The communication is achieved via Braswell SMBus (i2c-i801) to the onboard STM32 microcontroller that handles the CEC signals. The driver use direct access to the PCI addresses, due to the limitations of the specific driver in presence of ACPI calls. The basic functionalities are tested with success with cec-ctl and cec-compliance. v4: - Reduced SMBus timeout - Removed/updated debug printouts - Removed useless return values - Update SECO denomination v3: - Refactored rx/tx for loops - Removed more debug prints - Sorted headers v2: - Removed useless debug prints - Added DMI && PCI to dependences - Removed useless ifdefs - Renamed all irda references to ir - Fixed SPDX clause - Several style fixes Ettore Chimenti (2): media: add SECO cec driver seco-cec: add Consumer-IR support MAINTAINERS | 6 + drivers/media/platform/Kconfig | 22 + drivers/media/platform/Makefile | 2 + drivers/media/platform/seco-cec/Makefile | 1 + drivers/media/platform/seco-cec/seco-cec.c | 795 +++++++++++++++++++++ drivers/media/platform/seco-cec/seco-cec.h | 141 ++++ 6 files changed, 967 insertions(+) create mode 100644 drivers/media/platform/seco-cec/Makefile create mode 100644 drivers/media/platform/seco-cec/seco-cec.c create mode 100644 drivers/media/platform/seco-cec/seco-cec.h -- 2.18.0