Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1160328imm; Wed, 17 Oct 2018 14:33:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV63YWHhRo3+FMEF4l8iEm4rdhtdyiBftE9j0rG5U4t26jATCV3kKxu6FUhkhxK4j3+25HCnE X-Received: by 2002:a17:902:5a4d:: with SMTP id f13-v6mr20984636plm.114.1539812022566; Wed, 17 Oct 2018 14:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539812022; cv=none; d=google.com; s=arc-20160816; b=utD3oanXUYV3L5DuHtolc8N8CG+p50PYZWav2eNg1VyJxBDydB/G1SSxbn28+DlJXg Uuu5XN2cZfl8j55WvEAm1pY+u9XuCoP2/KxkUJBVjX6IK5q2s1fgWWCggHOapo9f5+cY Mt6pxeo/yey2ZaS80jK34bHIlMBtgncGnCRrK5Tlfeyoh4C+XPiy8dJm8MnOHFI5ub8I 5Ca2m6sW/dpcP7ZlS+fIDnCaCbJqdfEk3vcgSUZSDud/CaJ9tL5+1weFeqmNxWQ0+u8X WhX6C+ppLAxXLi6U8EV4wWuciaqw4IcXRV7GVEL+BKlR+ye4yy8ivP3R/Uxw7r72RDsp w8cw== 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=0xCAw4f+vtZqMzAQHPtQyZCIPaPnxXCe8PejRsciDGA=; b=gn5HMovYhwA1WujvqeB/gHOttYe0cqQsfhhBTt8PEey0QRK/ZztkaRRGsUYVArYC5t kpyXe7+0HOu38oL6Kteush01/JOhwHx+vvjroo8U0c6NQY2cKNG4hiL1Px0hk7/PkkpV PlCe9AEg+ZfEsdoUAI8D2vf2HmTYIk8l57g+yvQKWIVU8xUQZaDp/rFeH0m2HJy2u4G4 YZCQvV3X18DUyB7rwFU4LRYbpsfYryijulbdGh9/5IUy6QYz8CwzJzteyKKsjLKbBaBt 6G2VDv/mHB0P5JItHxDSKpq/Z6YQwEWbzkCRhtrC9rfsn1BdfKVteANpJfVbt/OhiFwu /xaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fgvNJzIR; 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 u22-v6si17986309pfn.111.2018.10.17.14.33.26; Wed, 17 Oct 2018 14:33:42 -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=fgvNJzIR; 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 S1727331AbeJRFaO (ORCPT + 99 others); Thu, 18 Oct 2018 01:30:14 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43614 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbeJRFaN (ORCPT ); Thu, 18 Oct 2018 01:30:13 -0400 Received: by mail-wr1-f67.google.com with SMTP id n1-v6so31302906wrt.10; Wed, 17 Oct 2018 14:32:37 -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=0xCAw4f+vtZqMzAQHPtQyZCIPaPnxXCe8PejRsciDGA=; b=fgvNJzIR54IExs2Q6ixhKdrVL6HGzb04VWNOGkPbeXkeaW7BOBwSM8eluDdoseRMcz oZd8bTd06PG0r72zn56OSP6jtGMO283VVKqbmBKkxzEgVg8UghyTnQ6WBrryOPVp5NDL i3vlggn1OFyw9G+/P7zC4sGy49W+PPGDzxhZds9ADANAE/QS4kc+L7FYx4njxp+dZQRw dhVirz4NC9MBWR6EwWZVGst9wJNHiG98Ze1qLZbSBfjDEG0wYlOjCMN86xtSjO1pbf/P Wl5zYk9GNWhDDqi9DIPLW46evtcZ+ph535y+wxZkjJnjD3gmzQpkvz8l7OaUSBEYJkAB 2WVA== 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=0xCAw4f+vtZqMzAQHPtQyZCIPaPnxXCe8PejRsciDGA=; b=o+NqQbZDZE/V9XwGAUHGQMZ1RpAMnFMckT/6EVjHdhYHqPY1uR7faU2efZJ30jFQzE CvPYl8g/nbs0P33mxNhp6aJrKE+nZeF6tjJYspJV8nw+EvrRoFP4M6Ztd6ervhwdtBea HPvQwszxjW8tdc++tRW7k2NnLtaNJKprrDtXEt+vYnwO5E1W6VZdMZC59WUvHn50dYNn cZ7fIOAQjTIfIPONtxMu7bDn15wvobIhj3i8uc5fi4c9CHj/ujAOKJa7xfqx2npt4PnA 2cJyZBzd6ZxTM+3lZTW9CfEHbr8v9qKje/P7Bxd3rW5FL7mnAc2QFoWvm2qOWM/e/Ftj 1psQ== X-Gm-Message-State: ABuFfojGHcvygRXqxZG69c2zzVUzN14b4KcE/gvQ6hPFTQFwVcDKwygd lG1Ui7hxYxVRS2AuVNIT/gs= X-Received: by 2002:adf:e28d:: with SMTP id v13-v6mr24568592wri.139.1539811956987; Wed, 17 Oct 2018 14:32:36 -0700 (PDT) Received: from localhost.localdomain (164-235-243-213.terrecablate.net. [213.243.235.164]) by smtp.gmail.com with ESMTPSA id 4-v6sm3623962wmt.16.2018.10.17.14.32.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 14:32:35 -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 , Keiichi Watanabe , Todor Tomov , Jacopo Mondi , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v3 0/2] Add SECO Boards CEC device driver Date: Wed, 17 Oct 2018 23:31:40 +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. 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 | 822 +++++++++++++++++++++ drivers/media/platform/seco-cec/seco-cec.h | 141 ++++ 6 files changed, 994 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