From patchwork Tue Dec 11 09:48:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1010944 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nhPcR6x0"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43DZrs6Ppwz9s3l for ; Tue, 11 Dec 2018 20:48:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbeLKJsp (ORCPT ); Tue, 11 Dec 2018 04:48:45 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41744 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbeLKJsp (ORCPT ); Tue, 11 Dec 2018 04:48:45 -0500 Received: by mail-ed1-f67.google.com with SMTP id z28so11954966edi.8; Tue, 11 Dec 2018 01:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FDh8YmffptclNLXBI9AeLNp5Bo4FT0o+LufL4ayBbfc=; b=nhPcR6x02O2qdP2aHOzw6hAjSMILfIe46PhJP194GTAQoxYm9cphcp8HFLyo5MlfPR 3pfCagcP2BKRYzGAZhlZC15i4b3Bv9RoQFc5GiE8NOyJ1KQhddIHK2puoh0dw8tvsemQ YsDLAE15AsyZCUfmcFeFbzwwxD5l/dCedoYNHb/THmp9gmdpEzXSYc5CmUIkdgNeilkt c83TJb/1K8cNIDMUud3JfW90/uOF3hbdwarVD6KArFJBKdKrw2UUtiB04EMOWXW6ApH6 tdavcgPa49pfrtpVarGyznNMnUTFIbtedPycYLzlp+T734ZrTaCtcgxeM97BM/vSQMqf 98QA== 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=FDh8YmffptclNLXBI9AeLNp5Bo4FT0o+LufL4ayBbfc=; b=Y9ydb+Gup6Sja4DuL4wog1XMgAnoMJumSfJgbzyCf5LAFst6QeaLd2JvSz4dGyXKeI BelDaD2g5GCanxQT6OnHkhQAIh0SXXhyK1UCHT3A8xdLL05GM5YIoHoR+TfNPP3QhPlF erPkr0atyJ3kifQYm6xR9u4Z9TGE58c5bT5KRprb1TX+DwitYhtyGQjGSJShJiML2W32 9XWLj7VS6trEBb6m86aEg5V2evqJ5LkXWqqp4WIrDDc/kH1bxDmslYx6dITuFA80QgbD 0u3u2e/4LrOgPJ9gfb9kww3NJlPY6BzcY9af5zKIeo1K0jSnb2EmetMtVNE8gpwhl3w3 5hLA== X-Gm-Message-State: AA+aEWYWDOkhv5l0KOPcHFhpyx35boUCfPM49X2mqDYRuJGBZotDZnCh VgXZDdTqBZzJmgRkEO6sgdKLYFIg X-Google-Smtp-Source: AFSGD/VnrvQsvmTE8tgihMwPAt4bz8YxYCQqehWxN2iKjjCJRppm2vimwtHbwomFtpOacw553Qd/rg== X-Received: by 2002:a50:ae8f:: with SMTP id e15mr14755169edd.250.1544521723160; Tue, 11 Dec 2018 01:48:43 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id r7-v6sm2096883ejs.36.2018.12.11.01.48.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 01:48:42 -0800 (PST) From: Thierry Reding To: Hans Verkuil , Mauro Carvalho Chehab Cc: Rob Herring , Jonathan Hunter , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: media: tegra-cec: Document Tegra186 and Tegra194 Date: Tue, 11 Dec 2018 10:48:39 +0100 Message-Id: <20181211094841.16027-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding The Tegra186 and Tegra194 contain a CEC controller that is identical to that found in earlier generations. Document the compatible strings for these newer chips. Signed-off-by: Thierry Reding --- Changes in v2: - new patch adding missing compatible strings Documentation/devicetree/bindings/media/tegra-cec.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/media/tegra-cec.txt b/Documentation/devicetree/bindings/media/tegra-cec.txt index c503f06f3b84..da3590f0b7a1 100644 --- a/Documentation/devicetree/bindings/media/tegra-cec.txt +++ b/Documentation/devicetree/bindings/media/tegra-cec.txt @@ -8,6 +8,8 @@ Required properties: "nvidia,tegra114-cec" "nvidia,tegra124-cec" "nvidia,tegra210-cec" + "nvidia,tegra186-cec" + "nvidia,tegra194-cec" - reg : Physical base address of the IP registers and length of memory mapped region. - interrupts : HDMI CEC interrupt number to the CPU. From patchwork Tue Dec 11 09:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1010946 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="l1sv/jU6"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43DZrv4LgPz9sB5 for ; Tue, 11 Dec 2018 20:48:47 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726206AbeLKJsq (ORCPT ); Tue, 11 Dec 2018 04:48:46 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:44845 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbeLKJsq (ORCPT ); Tue, 11 Dec 2018 04:48:46 -0500 Received: by mail-ed1-f67.google.com with SMTP id y56so11933588edd.11; Tue, 11 Dec 2018 01:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m980YmhP0KQl4VH29WyoK2q33zwGHl+CViSflvEjE2Y=; b=l1sv/jU63eo2nevwVK0H0NhKdZO/kqkLgRlWW73QuWtzSws980PZG3NPSD1vJVtIW/ ajtXHEnIdNaC4YtX60Bur2B2wX3ocReQGHruktkGpyj/145JiLboMdy5PbI9WaaNEazL +ix8Y8R4zSAOximlx1eBAq4vaGSUG3iEyRRbUMytSHhrB9EcTq8MbYzB5FqAZLg2+x/t Ar+O0vkp1+5Fy+POZWbhHA4p5KAM9SY3Z3+/0mBq1HWbm2pXm/fCMwjccPdedkODi+lr HljYD3wgibz5AgW+kAcJ2Jz4kL+OKIICqhec/lEQ0bBV5pysX8pRwbspOJxf88yWchmm H+rQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=m980YmhP0KQl4VH29WyoK2q33zwGHl+CViSflvEjE2Y=; b=PnobD4z+kcZ62MsAPCoNTY9rJBWOFsZnYjGaEIEb4CzO2QKaROmy7s7c1MIAQ4nR2B WycUlwbf6D+XFun6fSC6H52xdvJjt2uyLBtD86e1lxUjT68ykH2YsX1ZIrQWHzvXgRJI +VON02KEfXN4yAVW85q0UuOrV7Vq9R6mrHUPk+FZhvKquFckAVvNP6r0/AZ8idGm4vu6 GQ9EDJLrLIkfPK/0ul2/p5NHsJ7nnjqL0FVywj4u8reUyg1Mlu8hLsx9NH+t/bR7tqNl IZ3OAic2etbB+pBdUQOygpFqEB/ADOcIQsc36x+U2a5n2ASzHVhtp5W7cthtbMGLfITe WhXA== X-Gm-Message-State: AA+aEWbN1/gqR/8kJrbfz2nzBRtwYrKued82CFV3ddhcdlg0YNmoDKb8 E+OfpLCB2AOUNpNI1KQ0b9J5GWpc X-Google-Smtp-Source: AFSGD/UczIe6aZK7M85KtWnAOqEvSPjetAoQ3Pg63rqQZnDKfF6kKxvlRDtjB4gd/E0J8cvmUh+DrQ== X-Received: by 2002:a17:906:60b:: with SMTP id s11-v6mr12264062ejb.25.1544521724538; Tue, 11 Dec 2018 01:48:44 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id 24sm3922829eds.97.2018.12.11.01.48.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 01:48:43 -0800 (PST) From: Thierry Reding To: Hans Verkuil , Mauro Carvalho Chehab Cc: Rob Herring , Jonathan Hunter , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 2/3] media: tegra-cec: Support Tegra186 and Tegra194 Date: Tue, 11 Dec 2018 10:48:40 +0100 Message-Id: <20181211094841.16027-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181211094841.16027-1-thierry.reding@gmail.com> References: <20181211094841.16027-1-thierry.reding@gmail.com> MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding The CEC controller found on Tegra186 and Tegra194 is the same as on earlier generations. Signed-off-by: Thierry Reding --- drivers/media/platform/tegra-cec/tegra_cec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/tegra-cec/tegra_cec.c b/drivers/media/platform/tegra-cec/tegra_cec.c index aba488cd0e64..8a1e10d008d0 100644 --- a/drivers/media/platform/tegra-cec/tegra_cec.c +++ b/drivers/media/platform/tegra-cec/tegra_cec.c @@ -472,6 +472,8 @@ static const struct of_device_id tegra_cec_of_match[] = { { .compatible = "nvidia,tegra114-cec", }, { .compatible = "nvidia,tegra124-cec", }, { .compatible = "nvidia,tegra210-cec", }, + { .compatible = "nvidia,tegra186-cec", }, + { .compatible = "nvidia,tegra194-cec", }, {}, }; From patchwork Tue Dec 11 09:48:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1010947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sW3yMvhL"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43DZrx24qSz9s3l for ; Tue, 11 Dec 2018 20:48:49 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726225AbeLKJss (ORCPT ); Tue, 11 Dec 2018 04:48:48 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42889 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbeLKJss (ORCPT ); Tue, 11 Dec 2018 04:48:48 -0500 Received: by mail-ed1-f68.google.com with SMTP id j6so11941352edp.9; Tue, 11 Dec 2018 01:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GqU6pNUYHzxH0die0BGgLenfoTDN7Hdqraqi7UbiBCk=; b=sW3yMvhLYuOAYHcXu0njqt2dlYVNC1OOSSDLhY6YCGmyT9KCaSQA/a74pSmBmFXcgu EdIvrXq1w7TR9MheyWZ0ssRXwUm+EQxg25dFOh7U1jYL2ji8L/dPvzXo/HQLbIzFn8XS 66IKfKeyqCBqGb8Vzs6rfzo6wfHWpro5q6z4SYBwhn6sZr8BlVFDGFIDOc7oHlan2Qga X8oBEaCcklZ8QrZ/re+zL84IuywdALyuO94dkBGclaON2nc1mNAgBTRF/NV5pyGoxYCh DdC7o0TrczTVY9uN4nPcMHTkoDN/KOJ4Ew08CVIYWkFTp9GOQwKREItyJsZ/Dlr4C3k5 7xUQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=GqU6pNUYHzxH0die0BGgLenfoTDN7Hdqraqi7UbiBCk=; b=JIN/cipHt2r7zwJc8sreCo/FLqlqCD9soVcFc7UqZcwWDQ2EVt4aBhBI4XVb20u9P8 Zq4YXtooaDpF8Obo7Dp24DwCddbkuezg7x/tDHvvXumqgF6qpPSoL/VdNW6ceTS9sTv9 /VKi12AMXrYuJIreNynaz47onN4TdiiGOCKj9SHgECmTt2Hw0UOVb2h5IO1XznI+C9V9 o4jRHxPc3YK61/q434xQekk+Wv0HOjLE+UwxAIBSPJejS+Tsfa7t4LcBANGySrUVD8Kq nBv41sEKr3FHHptRslvhUGHoSvFE1x39q911WSzY4OFwnIQghBryp1yFh+yn7VLyKU3p qc+Q== X-Gm-Message-State: AA+aEWYA5xyC8vn0kKfjr/eE11OmpuPq0SyQwT/tvgazs2iPVw82golo y2bmBLqdWXTAUGp52eO+q+A= X-Google-Smtp-Source: AFSGD/VXS442KJHnRYYNFQrwygk7ICe/kVyDdRQcqvr7My3ZquONGNc8IpxOZOth9MNZevd2EyrWHg== X-Received: by 2002:a50:8863:: with SMTP id c32mr13856670edc.156.1544521725928; Tue, 11 Dec 2018 01:48:45 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id s46sm4060179edd.9.2018.12.11.01.48.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 01:48:45 -0800 (PST) From: Thierry Reding To: Hans Verkuil , Mauro Carvalho Chehab Cc: Rob Herring , Jonathan Hunter , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 3/3] media: tegra-cec: Export OF device ID match table Date: Tue, 11 Dec 2018 10:48:41 +0100 Message-Id: <20181211094841.16027-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181211094841.16027-1-thierry.reding@gmail.com> References: <20181211094841.16027-1-thierry.reding@gmail.com> MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding Exporting the OF device ID match table allows udev to automatically load the module upon receiving an "ADD" uevent for the CEC controller device. Signed-off-by: Thierry Reding --- drivers/media/platform/tegra-cec/tegra_cec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/tegra-cec/tegra_cec.c b/drivers/media/platform/tegra-cec/tegra_cec.c index 8a1e10d008d0..4e9f91528f77 100644 --- a/drivers/media/platform/tegra-cec/tegra_cec.c +++ b/drivers/media/platform/tegra-cec/tegra_cec.c @@ -476,6 +476,7 @@ static const struct of_device_id tegra_cec_of_match[] = { { .compatible = "nvidia,tegra194-cec", }, {}, }; +MODULE_DEVICE_TABLE(of, tegra_cec_of_match); static struct platform_driver tegra_cec_driver = { .driver = {