From patchwork Mon Apr 23 13:47:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 134003 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1021204lji; Mon, 23 Apr 2018 06:48:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+kJwXth5ilqzvGznZK5qMRmTtqSsZ8gNGNtj6ZoB9aGZwhDVZnRSI9AgOI/XD+XKN2+3HS X-Received: by 10.99.186.5 with SMTP id k5mr17089915pgf.39.1524491329892; Mon, 23 Apr 2018 06:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524491329; cv=none; d=google.com; s=arc-20160816; b=nWcuSZRD388l5MpcCdpLYfnylBNwHFNDxDtjeErxyuZoSINPmtkX34sEEkVfYqW0iA WeNUndaduw6Suvq5o93GDvIFrLM5H9BmOd01rZQdibhhMy5/e+VxKQl+c0ueIo2A3u59 Ipt7SHbfQieaXtgCMpCnqSlIqDEFR5HuwNQ5z1jkZ1gfbAgx8jV1CoXJtgrs1zFWnpVA 715aBeGiIXIYMpkmQhtwvwIcMIyExFL9vgHQJSLWn23zuKz9HMoAjIlF10pVT3M6ZjVz lP/sIaJX+zC23SOAVXWUGupcHKE+oTaD9g5JYuL6zpvA/X0cQ2MN//vlEoq+JnAXYF4g W9aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wu8jKqLLfVvK3yG0d/10hftm298kW1QrKORcWI1FM9E=; b=olVvaGu+EKNYHTctUk6plICOmVNcEjE4RKZwffe2PhnyM3gskD9JF5SEBa+2pv6/+9 i8GPy6FUAxuGiI2LrQku2uWwV0IyKnJPlvbc3oSX5jgDnWf+tLr1XGaT9Ruwd6whrQ5z Ig97cMBroAng5t/Zl6BhiB8qDi0d55tOEhFDk/R+P40Z5wlnqBXJB9pDQfoAPlKFT3Lb YkmrO1KcV0CCZKbzxiggEgjYRpc79N3JJZu7l16VWdRxxE9vjboW5mBJrqLsLrBS6ayP PgTU9lLISk1CCiFrhhS2eUcS58TkfJPlIE0TT0XWc0kbT+96fV4icI6W4Cjx8s0qxXAN YdFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=II5XaFrL; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si9006758pgv.251.2018.04.23.06.48.49; Mon, 23 Apr 2018 06:48:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=II5XaFrL; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755249AbeDWNsr (ORCPT + 6 others); Mon, 23 Apr 2018 09:48:47 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33004 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755391AbeDWNsq (ORCPT ); Mon, 23 Apr 2018 09:48:46 -0400 Received: by mail-wr0-f196.google.com with SMTP id z73-v6so41509868wrb.0 for ; Mon, 23 Apr 2018 06:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4dvNJVABXFmu4LPVr/27O/VOJdlL05D07zMNk5h7/KA=; b=II5XaFrL7CNBO7SnoOmsGRQA7Z0BWB6yu5spiXKjD6iyQEJ/24DC3GU/EmxYbLOZSM bFcw4aA19+ym+WfbtKphl437Jp3DYlnFI3GA94kW5weY87yz5wgb0g33znge/GgU8Zor lmA9inNV0qjOSPf5trIFYlKkx0KowfqSaNjuc= 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; bh=4dvNJVABXFmu4LPVr/27O/VOJdlL05D07zMNk5h7/KA=; b=OqDKwgqEIlUsm+rJS/l1IpZbMkpSxgsEkwSvTprNr86JoDd46gc65SmE7wAis7b5A4 5Vf5Mvl87P9OE2fc2Cnp4hwhKCnt7dUyTLI1IiJdBAy7CxssYGrjCzhw+HFdX0bfrsef AvTcg+1w+xcIZuxCRMeQc+4QsP3QW2WhixiOTwr6AC4nKoHEVpm4duLFdOZTrafw3GYp WotphQVK9zhWvq+8C1KMt5mfAbyYxDxGOi4/B5pRx5uCofAOPPdnqwEK/wxqY2eiZE2/ 6PlawMUYPgDncYjtF+0zcEPqbxnY3bpsoYBRcShmpf8Bq/S1sMBjwREtmqCRsdoFjRBz cWlg== X-Gm-Message-State: ALQs6tAPDswDuzr5BY0BT4GHcNm64VIwxN2WPlcvzUMY3OW9NKBZq2Mt 9/3kJh8NKruDC/G/GpQCrKvM/Q== X-Received: by 2002:adf:8ea5:: with SMTP id q34-v6mr16025295wrb.245.1524491325156; Mon, 23 Apr 2018 06:48:45 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6606:9100:b159:5390:182d:7dce]) by smtp.gmail.com with ESMTPSA id n14-v6sm14680319wrj.16.2018.04.23.06.48.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 06:48:44 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Steve Longerbeam , Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Shawn Guo , Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , Rui Miguel Silva Subject: [PATCH v2 06/15] media: staging/imx: add imx7 capture subsystem Date: Mon, 23 Apr 2018 14:47:41 +0100 Message-Id: <20180423134750.30403-7-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180423134750.30403-1-rui.silva@linaro.org> References: <20180423134750.30403-1-rui.silva@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add imx7 capture subsystem to imx-media core to allow the use some of the existing modules for i.MX5/6 with i.MX7 SoC. Since i.MX7 does not have an IPU unset the ipu_present flag to differentiate some runtime behaviors. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/imx-media-dev.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/media/imx/imx-media-dev.c b/drivers/staging/media/imx/imx-media-dev.c index c0f277adeebe..be68235c4caa 100644 --- a/drivers/staging/media/imx/imx-media-dev.c +++ b/drivers/staging/media/imx/imx-media-dev.c @@ -486,6 +486,9 @@ static int imx_media_probe(struct platform_device *pdev) imxmd->ipu_present = true; + if (of_device_is_compatible(node, "fsl,imx7-capture-subsystem")) + imxmd->ipu_present = false; + if (imxmd->ipu_present) { ret = imx_media_add_internal_subdevs(imxmd); if (ret) { @@ -543,6 +546,7 @@ static int imx_media_remove(struct platform_device *pdev) static const struct of_device_id imx_media_dt_ids[] = { { .compatible = "fsl,imx-capture-subsystem" }, + { .compatible = "fsl,imx7-capture-subsystem" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, imx_media_dt_ids);