From patchwork Wed Feb 6 10:25:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157592 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240547jaa; Wed, 6 Feb 2019 02:26:00 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibez0k3lgPdJBohERALMVqnmaOL6uuviwUc9u1YOMh7Szvohr2QJB95e9neYM3QYVPWScr0 X-Received: by 2002:a62:62c5:: with SMTP id w188mr9868362pfb.160.1549448760564; Wed, 06 Feb 2019 02:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448760; cv=none; d=google.com; s=arc-20160816; b=ePc96I5w/6CsHYShWDpZu1F9lF7vwZlFV8qqYwusyxE9XTM8SAoQG8xUj3ktEjquF8 rXCMQTjROS72eZbZHBDxNurgIbRFeauopN0K5mZ7MNDKQEUj3mZq5kLXT0aj8mPW4Z+W jBUiiqJwLNn2Q5eSmi0IhpYWZacfqUMi3SRBL6e6WPtyI9tUSuOnD6+xzSxaS5F5FwtE F3MszEBub8MNXlplJfePcEsXOK2dQzN8qq23fAuw6EF7TpJS0O48+55kgRTFXy/uSVFA M02tx0t98+XKUZio+mpCmsTtWa36NhrcrrC36JS9GLcIBTUw87HDawHlUHwo9SdsiE9j Hgpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rMqXeMdTsmQBRukkccJ6OzWO2HfnbotFKt0ltYd3kac=; b=r7y6PvhEryJG9E/vD85MMBPFF6yZ0VW2bEWtlmme/KqAIa/SF1u/BMQGwxSGTRdC6S 5KWsngzkWRdy1oEtYseSgM1Dll5DzU6xf/NufHXpNwJMK162Q9QMNxus2YwcGIFnifNC 4bY606p8aOEJk8s1tU8a0fvWcj8la3G31kq/8vAGUPDAjIC5vbOQdTIcqDAayhIuA9/1 dPx4HZcrCZJ2Btip6ce4mlrxiHXVSSpf56eWvFgrbwlExV816LWpDWCZmQSfiZzspLkc YqJFZaj1/238p1kMJ6j0qY1bhs1u/Ks58Ggh8RPKk4Upr8S6srxDZVPcg5lBCxF6/Z9R lr9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kUaxwn/e"; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 90si776785plf.62.2019.02.06.02.26.00; Wed, 06 Feb 2019 02:26:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b="kUaxwn/e"; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729345AbfBFKZ6 (ORCPT + 4 others); Wed, 6 Feb 2019 05:25:58 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38689 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729335AbfBFKZ5 (ORCPT ); Wed, 6 Feb 2019 05:25:57 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so6901432wrw.5 for ; Wed, 06 Feb 2019 02:25:55 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=rMqXeMdTsmQBRukkccJ6OzWO2HfnbotFKt0ltYd3kac=; b=kUaxwn/e6tdaiWqbqRhygtgxLPgg6A5CvIEIEzbRfgHcfkvmEcuWMSf/S/zzz7HPO6 Cj8Dj+CE175BN/CzPGO276aeKp5a1eqFe/i9Dw3bjEa1ij57ANrcPAh/gwnNiRFkYYn4 p9yzaGu66YaZR77qAbrZ7dL25bU4eBkp5MRqVqZye+kcqdedr0KLU/EgbPDqjVjMTMJW ZD3jgBKOScT2nlsbdiZB3ojNT6FRWNjWQ/CIibM1sM7OjXZQcWgm6Y4CeiplPXicHcOh RCT9pSX5SKJdenifLmFR2XR00vbZYeyO6B+tcauYRr31BGmHkJVbcufiCCAx92V55TdL L2+g== 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=rMqXeMdTsmQBRukkccJ6OzWO2HfnbotFKt0ltYd3kac=; b=MO5WOiSZTrxGHPKOD6KyW+w0fP/WH6C0qawkJeJvSYf81wYvPCHpZhoVJft3RdB8d8 zThsHeebjqN28+QVhmicJOHhlZGqMx1CckTO6dC7dh4h3lrJJY649mQrFEPRTqTTs2EU CGn7sNfZQos+Xf8Ku7G5ElK3qyLLpihB7NQZpm+tBf49fygyWE4YyuFTXTSVmCwE8skX Mw3FaiUjRllOeKUy85brAHtPczwGXZXGLLmbaDdXRcaNblWJ8mLrQ6jeEA4YDgVpJUHS ET/Wtnjr5zPNr1FLw45uM8w9jVsDL7RPxnAnApwEww2jOb6Hpczicw52RkuMXxOzmqyc PThw== X-Gm-Message-State: AHQUAubdT7aYE/yusouLhit63Pd9FOeb60dErIIpjddMM7Aq3Wpy6zu8 om6enlmHKPumn/2E4eQuOZQ9tw== X-Received: by 2002:adf:f84f:: with SMTP id d15mr3044440wrq.161.1549448754488; Wed, 06 Feb 2019 02:25:54 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i192sm18149631wmg.7.2019.02.06.02.25.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:25:54 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva , Rob Herring Subject: [PATCH v13 03/13] media: dt-bindings: add bindings for i.MX7 media driver Date: Wed, 6 Feb 2019 10:25:12 +0000 Message-Id: <20190206102522.29212-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add bindings documentation for i.MX7 media drivers. The imx7 MIPI CSI2 and imx7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva Reviewed-by: Rob Herring Acked-by: Sakari Ailus --- .../devicetree/bindings/media/imx7-csi.txt | 45 ++++++++++ .../bindings/media/imx7-mipi-csi2.txt | 90 +++++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/imx7-csi.txt create mode 100644 Documentation/devicetree/bindings/media/imx7-mipi-csi2.txt -- 2.20.1 diff --git a/Documentation/devicetree/bindings/media/imx7-csi.txt b/Documentation/devicetree/bindings/media/imx7-csi.txt new file mode 100644 index 000000000000..3c07bc676bc3 --- /dev/null +++ b/Documentation/devicetree/bindings/media/imx7-csi.txt @@ -0,0 +1,45 @@ +Freescale i.MX7 CMOS Sensor Interface +===================================== + +csi node +-------- + +This is device node for the CMOS Sensor Interface (CSI) which enables the chip +to connect directly to external CMOS image sensors. + +Required properties: + +- compatible : "fsl,imx7-csi"; +- reg : base address and length of the register set for the device; +- interrupts : should contain CSI interrupt; +- clocks : list of clock specifiers, see + Documentation/devicetree/bindings/clock/clock-bindings.txt for details; +- clock-names : must contain "axi", "mclk" and "dcic" entries, matching + entries in the clock property; + +The device node shall contain one 'port' child node with one child 'endpoint' +node, according to the bindings defined in: +Documentation/devicetree/bindings/media/video-interfaces.txt. + +In the following example a remote endpoint is a video multiplexer. + +example: + + csi: csi@30710000 { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "fsl,imx7-csi"; + reg = <0x30710000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_CLK_DUMMY>, + <&clks IMX7D_CSI_MCLK_ROOT_CLK>, + <&clks IMX7D_CLK_DUMMY>; + clock-names = "axi", "mclk", "dcic"; + + port { + csi_from_csi_mux: endpoint { + remote-endpoint = <&csi_mux_to_csi>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/media/imx7-mipi-csi2.txt b/Documentation/devicetree/bindings/media/imx7-mipi-csi2.txt new file mode 100644 index 000000000000..71fd74ed3ec8 --- /dev/null +++ b/Documentation/devicetree/bindings/media/imx7-mipi-csi2.txt @@ -0,0 +1,90 @@ +Freescale i.MX7 Mipi CSI2 +========================= + +mipi_csi2 node +-------------- + +This is the device node for the MIPI CSI-2 receiver core in i.MX7 SoC. It is +compatible with previous version of Samsung D-phy. + +Required properties: + +- compatible : "fsl,imx7-mipi-csi2"; +- reg : base address and length of the register set for the device; +- interrupts : should contain MIPI CSIS interrupt; +- clocks : list of clock specifiers, see + Documentation/devicetree/bindings/clock/clock-bindings.txt for details; +- clock-names : must contain "pclk", "wrap" and "phy" entries, matching + entries in the clock property; +- power-domains : a phandle to the power domain, see + Documentation/devicetree/bindings/power/power_domain.txt for details. +- reset-names : should include following entry "mrst"; +- resets : a list of phandle, should contain reset entry of + reset-names; +- phy-supply : from the generic phy bindings, a phandle to a regulator that + provides power to MIPI CSIS core; + +Optional properties: + +- clock-frequency : The IP's main (system bus) clock frequency in Hz, default + value when this property is not specified is 166 MHz; +- fsl,csis-hs-settle : differential receiver (HS-RX) settle time; + +The device node should contain two 'port' child nodes with one child 'endpoint' +node, according to the bindings defined in: + Documentation/devicetree/bindings/ media/video-interfaces.txt. + The following are properties specific to those nodes. + +port node +--------- + +- reg : (required) can take the values 0 or 1, where 0 shall be + related to the sink port and port 1 shall be the source + one; + +endpoint node +------------- + +- data-lanes : (required) an array specifying active physical MIPI-CSI2 + data input lanes and their mapping to logical lanes; this + shall only be applied to port 0 (sink port), the array's + content is unused only its length is meaningful, + in this case the maximum length supported is 2; + +example: + + mipi_csi: mipi-csi@30750000 { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "fsl,imx7-mipi-csi2"; + reg = <0x30750000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_IPG_ROOT_CLK>, + <&clks IMX7D_MIPI_CSI_ROOT_CLK>, + <&clks IMX7D_MIPI_DPHY_ROOT_CLK>; + clock-names = "pclk", "wrap", "phy"; + clock-frequency = <166000000>; + power-domains = <&pgc_mipi_phy>; + phy-supply = <®_1p0d>; + resets = <&src IMX7_RESET_MIPI_PHY_MRST>; + reset-names = "mrst"; + fsl,csis-hs-settle = <3>; + + port@0 { + reg = <0>; + + mipi_from_sensor: endpoint { + remote-endpoint = <&ov2680_to_mipi>; + data-lanes = <1>; + }; + }; + + port@1 { + reg = <1>; + + mipi_vc0_to_csi_mux: endpoint { + remote-endpoint = <&csi_mux_from_mipi_vc0>; + }; + }; + }; From patchwork Wed Feb 6 10:25:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157594 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240613jaa; Wed, 6 Feb 2019 02:26:06 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib8qMh9pzvQGZz1+QWyMt/xgVpKbrI4QSfFwfj2P0IE6LrKnL0iuvMNms6doTVgDhrZFMEG X-Received: by 2002:a17:902:8a:: with SMTP id a10mr10145618pla.158.1549448766540; Wed, 06 Feb 2019 02:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448766; cv=none; d=google.com; s=arc-20160816; b=BFvkUS7DrurA819q7xGoNJYmsGQkC6LVceQ0TDmAhPN3JukhFeWF2NgiwB42/Qv/yi I7DkPFrekV6m5ctnc36bbg89b0aX6vIzxeZcV+O4D92JPYE0ZyD+ob/zNeOF8wd6B3Bl ogck9M4Y5AbVbBHGQo/ieYeYE6jWmsBiaBNI32UfkVUcKRqQfgzcbJCpEqOmx3HEip14 jkuE7egVYU4RDe5niw+V0Xq0b+VncojqBgSPUjWdnvV2xHoa5MhZat+uD+QY2rGJU0cR baa2EUZO+CJo1S4I7HAVm1/hEdgvPgnpZVZz4q5M7mQHXAj+zZP3vzeOJTHNn7NoHyiM u6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L5/ZatHVS6k0zuueuC+fG2FGCCYEwoOCEErHC/rO77Q=; b=LrDPDjX28lroUwT8fMUU7vkHgMKctZrmF/Uq+tAiVZLBwGYDAL64F0E8x41DNKnbNw pi0okO0LAmvDEvWBhGMxDXzxMYYXn42QEPH/fCk6oVF+lFESXalugAnsa751V3LTCqwN GIIuiZD4OV2rEOenCitSsEgcAGrYZPwaATCw4zznG58g5fFs8RuE8Y2v2Ovkv+9nb2ql 1OnjNEDnUh0I/AZOcjaFxgzlLs8qrw9DsncUhlolmBL1qRa6wjyArNedhwKWOp5EUAAF EO7orFG19T+01kQ7DRpRxXR/vVg2k+IpdwpheLtXkb7o+vIKexStoC/rc8sd5T7MLesi +MLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lyq5RsbF; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 90si776785plf.62.2019.02.06.02.26.06; Wed, 06 Feb 2019 02:26:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b=Lyq5RsbF; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729335AbfBFK0F (ORCPT + 4 others); Wed, 6 Feb 2019 05:26:05 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55757 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729380AbfBFK0D (ORCPT ); Wed, 6 Feb 2019 05:26:03 -0500 Received: by mail-wm1-f68.google.com with SMTP id y139so1844364wmc.5 for ; Wed, 06 Feb 2019 02:26:02 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=L5/ZatHVS6k0zuueuC+fG2FGCCYEwoOCEErHC/rO77Q=; b=Lyq5RsbF7EAsvL/qiDGSlS1lxDxmuXawb5SyP7lV9OUP9XqW6rzjKZEti8vCymXI72 tF1txbxtfEzLZlMsf5C1jCXkLQrzPKePj44IjVj+cbuNvHsIIu+1V5BPhUrHZmqiSMux DP+4xqlZgSqvVsbqhvVw7eVyO28kUCGLuGVD+mWOpNWstEWv8xhWUd0Zmqv25bFJVz5N 3Ya5ZOCHjQae2plkqahqf4VwIAsopN+dPnQ3gomTCuoNfpFEmEHdfDoJOAxNrj7DDKDl tX9XjbBu8TqluRI0QMWUAD2ktOKtSkzx0E1yTLNi4BrbO663Ipzjl/UegeNeqjmuJsnc XhOw== 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=L5/ZatHVS6k0zuueuC+fG2FGCCYEwoOCEErHC/rO77Q=; b=PnnIxcQsoR1vAkCTxI85PYFFxXqPHMCDJiyRh22+zdWN8YqkF02eZEDdPb06XtBz2Z 5UmHzSeJfHkIaWRKFpC4FumseNV3I4PzUPBYqVhODaP2r3QGwhHA09+gfw88GFV71naG Bj9tpvDjDGPvWwgUOeh689VChfUBwDQp+qZOEgr4Kn9JRK5+k+Fiukpr/yuKsD0u36rQ rUQIGfarc0CKywi7FyyPrCGsOa3d//E1eH/tFpC06JuXcCtjUhwRB+JJ+e0Tc1KL1mgo aoW0enggyk6eCYwv3NC5mWftHINcl2RPU3X6tXarvO+UJl97nTPVoes6Gn3UKQWDFCJU AB4w== X-Gm-Message-State: AHQUAuY7efW2JV6OmpnB9gMms4Ohp/4ocQ6SW+Xwk+XLoBkJoMAal8KF ltwMICEaJZ/jGiAYrW8rEFOwUGwuinA= X-Received: by 2002:a05:600c:2143:: with SMTP id v3mr1362503wml.120.1549448761453; Wed, 06 Feb 2019 02:26:01 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i192sm18149631wmg.7.2019.02.06.02.26.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26:01 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v13 06/13] ARM: dts: imx7s: add mipi phy power domain Date: Wed, 6 Feb 2019 10:25:15 +0000 Message-Id: <20190206102522.29212-7-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add power domain index 0 related with mipi-phy to imx7s. While at it rename pcie power-domain node to remove pgc prefix. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index e88f53a4c7f4..9a680d3d6424 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -606,7 +606,13 @@ #address-cells = <1>; #size-cells = <0>; - pgc_pcie_phy: pgc-power-domain@1 { + pgc_mipi_phy: power-domain@0 { + #power-domain-cells = <0>; + reg = <0>; + power-supply = <®_1p0d>; + }; + + pgc_pcie_phy: power-domain@1 { #power-domain-cells = <0>; reg = <1>; power-supply = <®_1p0d>; From patchwork Wed Feb 6 10:25:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157596 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240654jaa; Wed, 6 Feb 2019 02:26:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IYlsmhVIGd5/IZh/3tV2JVehSsEo/RHP5hZRNpn35oJSuXrnzF05mWvz8lrBDe+qV4SjV8J X-Received: by 2002:a63:200e:: with SMTP id g14mr8977074pgg.235.1549448768280; Wed, 06 Feb 2019 02:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448768; cv=none; d=google.com; s=arc-20160816; b=fAytzHoiUpui/LT4CaqlBs0GxgVWrixbsH7mxBsxkTIFQtuDokX42jMwIQpoHHRjdq /XFCqOj2btkg9zkwtYNcBeRz7WKcoAJzTYZ07gUlR7jJcCLWL69uh7ENaVqpT3x/6Yli z5ztPaWOQ91tFwFl7P9loseWIkZakO+WBPbfQFbDGoXxp0xhh87F2uXXvg+G3lmg+dMq rAiRyZVmD2s8ug6L7nNmbvFCWn+IEFd3Qdp/91KRfIPrmo00YivLQ/IXPcWimGVrtN/n +ZZ6J4vHzWY48crjvSj2mIGQT19IFNNWijYerXjLZ8YlwHxrGNhenivYR++mnjBcDtc7 muyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PZIgvxbRSp4W/ltSJos2CgWWjWg2sGcAUX9XqZxaGQg=; b=zrVaqT1qpx90ACV8Ujti2d7k/A5cemoR4jd3MERuIvrrrGvOH+Qi09yKglkxJKjWjM vlBFLipAQcm2M8JmafKhAjWdqg09PG6WnHdDBjwSTBe/xkmsCV3EFIjOR4m54oxoVZMG HQ7XEnVOtGdW4+2Mb8dS8C2uO/ZC0WU6h0T6QGBRlZlHsnWidkqMAz50ho9xpEd4xLM2 VrgP13FbpH0tiKbffCKpH7n3ip5nG6oOGBrbO3SsPZ2Q8fg3jkgN5HLhTNnwrBb783M9 TspzPv2OxOOou27nec1NB2856S+OYHcyJubBomXjwdAmWYNfk03OSkVC260A9zucBMk3 s96g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r4lDcVNT; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 90si776785plf.62.2019.02.06.02.26.08; Wed, 06 Feb 2019 02:26:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b=r4lDcVNT; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729380AbfBFK0G (ORCPT + 4 others); Wed, 6 Feb 2019 05:26:06 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39222 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729393AbfBFK0F (ORCPT ); Wed, 6 Feb 2019 05:26:05 -0500 Received: by mail-wr1-f67.google.com with SMTP id t27so6894452wra.6 for ; Wed, 06 Feb 2019 02:26:04 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=PZIgvxbRSp4W/ltSJos2CgWWjWg2sGcAUX9XqZxaGQg=; b=r4lDcVNTjvknTqzUaXnaOuK0xVjaXCSPSujK0IQCcAnfEQGfhxxYS0/d7w/mlgOY7i zZ/qAWx70TM+cXmUNRHqEztfHGCN6b/8gyhqMmKDtatdD6YUf1pDSaE3rtCYdVWqtRVo AKYrlK5kuzvmXRBhiy8xq1S/eZq6FQS5wZaH6Q6x3HtYujMt8ii7rUlOEYTAIY9EVFWq MEzgZE3uCasYiFQNgJnJIxEMMfvjk0uFtudiVIeUfCgCfYsD9n3s07iu+gsO3rg7IoXv P1DY6uKvmSPh6eCSWD/7xjDlYsLuklrlvFMM4HMvdCyCS+1UR1b/Z2CIF28Xjm5V3zYH Fhmg== 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=PZIgvxbRSp4W/ltSJos2CgWWjWg2sGcAUX9XqZxaGQg=; b=LL5xmiyJBJzoKkNXNGzJ+C+GP8wuWYOuw05rnnBLFciUB/2JivxyjtEV2esq+zDhtS quMwBFcmk7EcEhgqtP42CHhJFjylCqmrRYYX/V1dy8qcSI8s/B/sCzR5YwjRWjOzmGi8 nsI6GdBiUAQ1j1nM9XKFy11qCY5bc9ilBoKATpeb+4vw4fD9Eu+v0IB9JkSXL9sBFDBK CRRsjuAiMlchCHI2hTdL35Z85JupPBXHZdkD9z7zs7aLB9S0ygRwmOMmOK7qjOBcyiVy KMLUPii7m8AhB14qQavXF2sAir9MytL9DSpWcjkY2zhUTokTuxT9iyoMERmbQR9oNHr2 v6Eg== X-Gm-Message-State: AHQUAub+WSjGf4UmnDzwx4IBxIofBzdeLS0cDDX2Guy+NMBuGscf4AZ5 EArptKAf73ThP3efbSt8jfXwpA== X-Received: by 2002:adf:e589:: with SMTP id l9mr6988959wrm.312.1549448764101; Wed, 06 Feb 2019 02:26:04 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i192sm18149631wmg.7.2019.02.06.02.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26:03 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v13 07/13] ARM: dts: imx7s: add multiplexer controls Date: Wed, 6 Feb 2019 10:25:16 +0000 Message-Id: <20190206102522.29212-8-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The IOMUXC General Purpose Register has bitfield to control video bus multiplexer to control the CSI input between the MIPI-CSI2 and parallel interface. Add that register and mask. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel --- arch/arm/boot/dts/imx7s.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 9a680d3d6424..792efcd2caa1 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -497,8 +497,15 @@ gpr: iomuxc-gpr@30340000 { compatible = "fsl,imx7d-iomuxc-gpr", - "fsl,imx6q-iomuxc-gpr", "syscon"; + "fsl,imx6q-iomuxc-gpr", "syscon", + "simple-mfd"; reg = <0x30340000 0x10000>; + + mux: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <0>; + mux-reg-masks = <0x14 0x00000010>; + }; }; ocotp: ocotp-ctrl@30350000 { From patchwork Wed Feb 6 10:25:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157597 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240681jaa; Wed, 6 Feb 2019 02:26:11 -0800 (PST) X-Google-Smtp-Source: AHgI3Iby1sE5tPjbTgzQ2bYiRCzTJyyat5nWAXxWH2RAQfZ3FkRPCFTV0VLdcHUP5hJo9Dgk7ndN X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr6292568plb.321.1549448771145; Wed, 06 Feb 2019 02:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448771; cv=none; d=google.com; s=arc-20160816; b=hLm5MYWgBDnUgUNNMF7L2EOTdLiK+c7qeD08pJQKnVR5Jqtx7Hqvp3POvwhCc+a9dX vh+7QAzu+R3OCXQhvOJzjbt246+JjTIEAJfQoUB0D/foierb8a1p/gMXLYy6y1nu9Nva CJ/RQ7z9DdsN0sfGgy2ZKcBHrHYh5GGWUDj5TPMFAxd0F0rKBQ6zResfDPjfCLwP4LUd T8L16mZOfosPJcw66kS79ekKPI3YQzwRHVzxAeonY6GPeKWxohWAAj6iQ6RU0qFYrQJV YQ0/PPyxgBF80BL29569pun2yKKeYUumo21J1sJ6o4N6YzDrpzxWMwAS4feUH4O36J7h wbbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=l1CtKO6V+4HtmzEfS2pTeqx8xeoh5M0LOaS1U2hjAuU=; b=gPWxky8I1ObaOFHu7PfDrV2sqK9ZSNt2wRL9QanZ4N3JDH8S1CLIf+i6FI+xu1YVmy OK9GeQpqDYvnnB+7hFKqHRn2hnv3CKfAo7Y7/g0tyoiQAIkDoLP9dKs8DI9sUpM+O9zs ai+uDQVl31xXgI/UaBT9RKySAyK6n563esOlnS3haUKqc+1ZiRHjjkazNPsWKeZgtY0Q DyOuQC6zWniCUnCP0+3m9GgPJ5QUvLYsVOfVX7DU9IKlJjhF7qAVgP7tnHSLab+H8/6I PN4jjjtqoMwSRBJCIcJnpf8XthB9yhDI+0j11USELWD9rS7RB7kYAuzFjsl5lyBduHdE ZfLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="z3/rQ9o4"; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 90si776785plf.62.2019.02.06.02.26.10; Wed, 06 Feb 2019 02:26:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b="z3/rQ9o4"; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729416AbfBFK0J (ORCPT + 4 others); Wed, 6 Feb 2019 05:26:09 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44988 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729393AbfBFK0I (ORCPT ); Wed, 6 Feb 2019 05:26:08 -0500 Received: by mail-wr1-f67.google.com with SMTP id v16so5033614wrn.11 for ; Wed, 06 Feb 2019 02:26:07 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=l1CtKO6V+4HtmzEfS2pTeqx8xeoh5M0LOaS1U2hjAuU=; b=z3/rQ9o4yU2862vNXPyOvjh80vHfqpy8ueGt5vlIEo3U4eUOcZcrWAxhevuji4Mxcf o5kwKsiEJsjuK232XD//JBE3nl7hcul7BePJkWJojGRj3aAlZKytkNorVLmMrihA40Dz D976t/lmMWDYStrDdwMAVgq3RnNIjIsAxWIT7Fbjh3F6pxV3bsiY/Vta0bEOHZ4KiZVt 69/2TD7ZhgvEZX1hgyCrzJFgj3aHJa3cezmmtUMfFduQUZEfVA0wV2h48bXmX8Hr8sP+ gldoY0S8ileQht5ROWAy9ZH6NF0l2FOvKucLpG7PSqgFwmwPft7OURNhnuhn+DeH7Hob iBJQ== 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=l1CtKO6V+4HtmzEfS2pTeqx8xeoh5M0LOaS1U2hjAuU=; b=Q9iPk+rEDgLVRsd9rLvWGC2hDYv9hU223RGMnTF2PP5UwpymGTpct3vzG7+O8E2KR6 YvjulMqv7L8AJQhLy8xMwpQ2hte9V7RQqzBLXCIDGgUAxEBN+E20RltTv7u5M4nVTzSU 6msP8okSAHIZy9jM0ZBC5YUhOgh+prntIo24hBpPw6i4r/d2tFqhG2sFDI4Xc7hg0qlQ alhygYpwH6FvrmPNvLttLjF9HaGYshuJ84ziwVEtnCbpTylpZGVygXiBGU4vIAElFU7B FX0AEOusc5XwZ2vcxyn0+oM+L0Gz7f8+Z8KfTmmVnWGRpI1AEGZnyDASP8NoK+HwGDf2 CqFA== X-Gm-Message-State: AHQUAuanuJ9nQwLiQb5r3x1reiB/9y7PrWaX7UtXhF5gbGIFSSS1Gh3s joIQVLHB8DS5ny0HuncF6TjGoQ== X-Received: by 2002:a5d:4b01:: with SMTP id v1mr7026444wrq.5.1549448766514; Wed, 06 Feb 2019 02:26:06 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i192sm18149631wmg.7.2019.02.06.02.26.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26:06 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v13 08/13] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections Date: Wed, 6 Feb 2019 10:25:17 +0000 Message-Id: <20190206102522.29212-9-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds the device tree nodes for csi, video multiplexer and mipi-csi besides the graph connecting the necessary endpoints to make the media capture entities to work in imx7 Warp board. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 51 ++++++++++++++++++++++++++++++++ arch/arm/boot/dts/imx7s.dtsi | 27 +++++++++++++++++ 2 files changed, 78 insertions(+) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 23431faecaf4..358bcae7ebaf 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -277,6 +277,57 @@ status = "okay"; }; +&gpr { + csi_mux { + compatible = "video-mux"; + mux-controls = <&mux 0>; + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + csi_mux_from_mipi_vc0: endpoint { + remote-endpoint = <&mipi_vc0_to_csi_mux>; + }; + }; + + port@2 { + reg = <2>; + + csi_mux_to_csi: endpoint { + remote-endpoint = <&csi_from_csi_mux>; + }; + }; + }; +}; + +&csi { + status = "okay"; + + port { + csi_from_csi_mux: endpoint { + remote-endpoint = <&csi_mux_to_csi>; + }; + }; +}; + +&mipi_csi { + clock-frequency = <166000000>; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + fsl,csis-hs-settle = <3>; + + port@1 { + reg = <1>; + + mipi_vc0_to_csi_mux: endpoint { + remote-endpoint = <&csi_mux_from_mipi_vc0>; + }; + }; +}; + &wdog1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wdog>; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 792efcd2caa1..01962f85cab6 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include "imx7d-pinfunc.h" / { @@ -709,6 +710,17 @@ status = "disabled"; }; + csi: csi@30710000 { + compatible = "fsl,imx7-csi"; + reg = <0x30710000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_CLK_DUMMY>, + <&clks IMX7D_CSI_MCLK_ROOT_CLK>, + <&clks IMX7D_CLK_DUMMY>; + clock-names = "axi", "mclk", "dcic"; + status = "disabled"; + }; + lcdif: lcdif@30730000 { compatible = "fsl,imx7d-lcdif", "fsl,imx28-lcdif"; reg = <0x30730000 0x10000>; @@ -718,6 +730,21 @@ clock-names = "pix", "axi"; status = "disabled"; }; + + mipi_csi: mipi-csi@30750000 { + compatible = "fsl,imx7-mipi-csi2"; + reg = <0x30750000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_IPG_ROOT_CLK>, + <&clks IMX7D_MIPI_CSI_ROOT_CLK>, + <&clks IMX7D_MIPI_DPHY_ROOT_CLK>; + clock-names = "pclk", "wrap", "phy"; + power-domains = <&pgc_mipi_phy>; + phy-supply = <®_1p0d>; + resets = <&src IMX7_RESET_MIPI_PHY_MRST>; + reset-names = "mrst"; + status = "disabled"; + }; }; aips3: aips-bus@30800000 { From patchwork Wed Feb 6 10:25:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157601 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240808jaa; Wed, 6 Feb 2019 02:26:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Iad12AgaiIr666RXUR4EJNqHe/83e5I2cfJcriD636g51uEixc0KXqXDSGVHEF5w2MzZF8X X-Received: by 2002:a63:5723:: with SMTP id l35mr8634674pgb.228.1549448779449; Wed, 06 Feb 2019 02:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448779; cv=none; d=google.com; s=arc-20160816; b=kYmtwLe7mEZzY+CdBdLghZy0PdR7z4pN+Zc0fFaxjlQnUYk9003mdqybQDWeFwn9YI y26KKc1z+zb+wUtlSGUF557XFBytyruUXRrxM1Se+jEEnBA1xfUDNEAFA9iJk1vVHkmJ iVgnH/SqJ7VkXRjAAuS4y9qqQ9l1O/8FBEXJiwEIPcVRQD3xNkS/EJ97/xvfcuc/cHIY 6lG/hI6sznKQ19qY/viVOOtuRkw1fIu3x1LVpmcWT9/Ra4M6+GfoE/VlAzzDoZOszOOJ pMBjVd1ZIl5+WMPppagmhAZiRcAFuPWkf37L+4/TjYBPaLnoaweCnWv8eWa9PugRThDI 02UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tQ0yXI3h/vEMlDmKxGMU2fxncWjHgyDux1n9KSlzAIA=; b=Nmfky48LuGnv5ppuzjdNh3GzlToOduROulp3E2Bx0pLffU1gO+Xy7Eogse+c4gvDY/ +Jr9YDyveLDXK0sXjyLMNTIyetM3lUfQ5xXUouoc5b+TECV74NAFsGQ9t/T2NV0Ax3mS dn0T+C5MOnQtt+UCboAnwU7OoDrFvtEj2PeSTBqbFVFpLNw4FW6u5G9za55G9a7YxzML istLAuWto4ZjDbYpH9Z0+QamJt3JsgnLiY52irCKgKyp3y3FvG0XVzcjVE3+2ECkFQKB ObwpeyLa/l8hM1DgEw1mvI+1MT8isj7Sa9opEcGfHGKI20Ew6112oHBONJElOj73ZSR/ ZLIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=URQDoEz9; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 90si776785plf.62.2019.02.06.02.26.19; Wed, 06 Feb 2019 02:26:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b=URQDoEz9; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729412AbfBFK0S (ORCPT + 4 others); Wed, 6 Feb 2019 05:26:18 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42999 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729427AbfBFK0S (ORCPT ); Wed, 6 Feb 2019 05:26:18 -0500 Received: by mail-wr1-f65.google.com with SMTP id q18so6875172wrx.9 for ; Wed, 06 Feb 2019 02:26:17 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=tQ0yXI3h/vEMlDmKxGMU2fxncWjHgyDux1n9KSlzAIA=; b=URQDoEz9IDQN7u7gekNypHM89asOD6Xdw9+wuVMBswRJMNzNNWrdgumHQ/xv7Hs6OP aBZXIqx2KCNyr8HFtJi/gBafrODq/OtrK/uyuUSPqWLhOCeS2lHBoJBThxFH0rI5VKRY pZBlR5GJNi3amvpHGPeJooMe27SYtxIfULRuupxaEWc5AGl4Ft8XJYodwlo5ug4HC04f JMbdrW2Tl25SZgEswTzF4qYwIfn+3ouEwWI86ugQILY8To35lPCjOxFyL2MSKjf1iPsG 1trZk7YAfX7c7vwY9K+tzUOahYpix5FwyRvENnMoUH40IMQO05UEdxXmiabjKrJUgBwt jouQ== 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=tQ0yXI3h/vEMlDmKxGMU2fxncWjHgyDux1n9KSlzAIA=; b=ErhcgXLJxc+qyBUFJtXHTcEwhGPird/SxKr3KymaQDsMbIkxcDbtao9ERM1JeHK2j3 N0uGSuetQTQiWQ3eLd0O/JwJ1VW5d0jW1eXDPLNVKZUumWAjplDofDqbaAx1t11ILsfb FDoJmgn8Cr3d34ynPhh3Mo9aIXJzDao3kXjloPLYbD5PiJBthjlYUyPvpqdue6AN0oie S7gteauBkLViZnGOFdT2Nkxi8uBxeqccNDEM/qE7hOd0JmthX7KF6X5+zYM9wxKezb7L 90HqKdpZANpBqiCWowpLUxXHVNTZB83OHmQGSSy+XLzrsvVx6joND0AP3PenDaAVorht fijA== X-Gm-Message-State: AHQUAub4nsjn/G4Y6eZrccVzC0/9iIGOrB4ejQqLCbmNzJI7ihr8K8y4 SZQgV7RJrJAF+AE2v1t6RZu+MSNyae8= X-Received: by 2002:a5d:5285:: with SMTP id c5mr6861541wrv.167.1549448776626; Wed, 06 Feb 2019 02:26:16 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i192sm18149631wmg.7.2019.02.06.02.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26:16 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v13 12/13] media: video-mux: add bayer formats Date: Wed, 6 Feb 2019 10:25:21 +0000 Message-Id: <20190206102522.29212-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add non vendor bayer formats to the allowed format array. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel Acked-by: Sakari Ailus --- drivers/media/platform/video-mux.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.20.1 diff --git a/drivers/media/platform/video-mux.c b/drivers/media/platform/video-mux.c index c33900e3c23e..0ba30756e1e4 100644 --- a/drivers/media/platform/video-mux.c +++ b/drivers/media/platform/video-mux.c @@ -263,6 +263,26 @@ static int video_mux_set_format(struct v4l2_subdev *sd, case MEDIA_BUS_FMT_UYYVYY16_0_5X48: case MEDIA_BUS_FMT_JPEG_1X8: case MEDIA_BUS_FMT_AHSV8888_1X32: + case MEDIA_BUS_FMT_SBGGR8_1X8: + case MEDIA_BUS_FMT_SGBRG8_1X8: + case MEDIA_BUS_FMT_SGRBG8_1X8: + case MEDIA_BUS_FMT_SRGGB8_1X8: + case MEDIA_BUS_FMT_SBGGR10_1X10: + case MEDIA_BUS_FMT_SGBRG10_1X10: + case MEDIA_BUS_FMT_SGRBG10_1X10: + case MEDIA_BUS_FMT_SRGGB10_1X10: + case MEDIA_BUS_FMT_SBGGR12_1X12: + case MEDIA_BUS_FMT_SGBRG12_1X12: + case MEDIA_BUS_FMT_SGRBG12_1X12: + case MEDIA_BUS_FMT_SRGGB12_1X12: + case MEDIA_BUS_FMT_SBGGR14_1X14: + case MEDIA_BUS_FMT_SGBRG14_1X14: + case MEDIA_BUS_FMT_SGRBG14_1X14: + case MEDIA_BUS_FMT_SRGGB14_1X14: + case MEDIA_BUS_FMT_SBGGR16_1X16: + case MEDIA_BUS_FMT_SGBRG16_1X16: + case MEDIA_BUS_FMT_SGRBG16_1X16: + case MEDIA_BUS_FMT_SRGGB16_1X16: break; default: sdformat->format.code = MEDIA_BUS_FMT_Y8_1X8; From patchwork Wed Feb 6 10:25:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157602 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240840jaa; Wed, 6 Feb 2019 02:26:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IZEj+iUNgRVlDeXsk/Y2KXJ+G051/byTFJSChwgUU43YvzasMV36yJakcz4JsoLdTWEBBLT X-Received: by 2002:a63:5d20:: with SMTP id r32mr9012403pgb.329.1549448782183; Wed, 06 Feb 2019 02:26:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448782; cv=none; d=google.com; s=arc-20160816; b=dywL6/589vejUw6ykCYF26MsU3cgevgsyfP7IeG9WkHjWOPjRSQszTG2YuvFc5uNY0 KieW4I+x6hX15ksLYHJplfw9NMCRj5PtsLQFGLs4X/gl7+S0pPSuJgF+DjLA/tvJ04ua bKSqJXG86ThVskIjIxRBm3v/QJ7SwMwvrIxa2Z+FHDnRocwZqALc+va4SRc1PD02raQH LKxoUpQJRDVkUCEnrifTYKsdh8P3uY+vn+I08GpXXE25AXoleePhLs8EQUTDtqLGZRjd F0v0lMPp0z9mtL2CKd3JXxnlusKv2ei9XqUz90QJ4OkKCt8WR0uSOi5hiFnNLbAiYpRG r39Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b9uMMPdkJCtwwiAQ2DAjUCT6O07s1f5ZO4Mq8oQ/Fa8=; b=GYKVUUxk/4mIAPD39mf8EPvK1F1w+Pme/Y5pfOaZcN/fbXvU8DCvLcaQzRjHLvN4uJ t4iKQ9qbR63VMgCuSiE2eHyWg9BPqpnRKS4Yn3JrMX7WlZ0okLfP9PedShlcobS+Y4O5 v4FYloURpOAmlhLvtHp107XYeOG9bGkjrVbO7BTv4cSQyi2cep1psNlCMnr9EkZ3v1f0 NCVTe+3eVBVPUCZ3GrQOGhDDy43Gsh+8mkFxZUP1f4N4eV0F0g+X5ZbM8jkfWgqNQx4S +VbGhHreIWfkBZGtoVSkKmxAIWIkrXGBaWeNyt34hHO5HsvrWtuv5yOniWSbiW+rc4GW cYsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AjCI9+JM; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (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 90si776785plf.62.2019.02.06.02.26.21; Wed, 06 Feb 2019 02:26:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=@linaro.org header.s=google header.b=AjCI9+JM; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729428AbfBFK0V (ORCPT + 4 others); Wed, 6 Feb 2019 05:26:21 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50496 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729073AbfBFK0V (ORCPT ); Wed, 6 Feb 2019 05:26:21 -0500 Received: by mail-wm1-f67.google.com with SMTP id z5so1874089wmf.0 for ; Wed, 06 Feb 2019 02:26:20 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=b9uMMPdkJCtwwiAQ2DAjUCT6O07s1f5ZO4Mq8oQ/Fa8=; b=AjCI9+JMX12f5eBo3Oge+tqpofYBF971j1Dkg3bHYjyC+Q88BzC4SZiTWPvifBDCqd MZFB1G6jVrGpXfBhT1T+64woRp2U5vdmOIl9ucKcQKtcoaqE1esHYwECa4OXLl0JP+S5 saDuCo4p2PO0yL0t6mAP+HVvuhmMB5kZFQHAqVub9lku/Nojlm7A9dkX5p7gQmUO81sy rSrbGrXt2WTnmGC41OTVy6IzQkCcixevUql1UOUpiYbcgsBHB85qREK+7cfPwiGeliEq Wn/hPYT7Uslql1ghW+K8cSokSvvn0txBuYI8+VcB96pkskYL+37Z+jGNTpmvRapb2OC5 YINw== 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=b9uMMPdkJCtwwiAQ2DAjUCT6O07s1f5ZO4Mq8oQ/Fa8=; b=QTypu+JfPsa17BASSW8GZpYPTnq9GbkDGWB/JzHEy9mHh1ofJrDoC040j2dtF7fRzz 21BbbYYqtQAg+ZuMNcMPy9u5XxPjRd6Pktf7itQ+tfuPh5uR0unc5P4a9R+3fnV6HhGA mh37hhoxoMqfPUngikOIAs5c6P3NOjmZxHY1GCajT+7MsfulD1hzIBi52V6y0pbdwYBO /UHARtxXnDn09cliSsLAJEH1WmSaUqDKtrRYAqDUMoL5dPaZxAKqPqHmbTmBR8KZkCCr 6H8rretV1p1mtQUeNI6NEbiiZJvfCjiB9/Fwo+GNCmhAsuilynNPNip5ZdxLN+yIp9AO ddNw== X-Gm-Message-State: AHQUAuahHb6V0osa7ZzfpwaenWYWZMeBsW+1VNxrsB6j+9JjV/WGGapr KfuHV5YR27o2/BOJgQs7+sPbXw== X-Received: by 2002:a1c:2007:: with SMTP id g7mr2486138wmg.79.1549448779314; Wed, 06 Feb 2019 02:26:19 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id i192sm18149631wmg.7.2019.02.06.02.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26:18 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v13 13/13] media: MAINTAINERS: add entry for Freescale i.MX7 media driver Date: Wed, 6 Feb 2019 10:25:22 +0000 Message-Id: <20190206102522.29212-14-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add maintainer entry for the imx7 media csi, mipi csis driver, dt-bindings and documentation. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- MAINTAINERS | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.20.1 diff --git a/MAINTAINERS b/MAINTAINERS index 3e211916d2bc..d8e0c9040736 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9348,6 +9348,17 @@ T: git git://linuxtv.org/media_tree.git S: Maintained F: drivers/media/platform/imx-pxp.[ch] +MEDIA DRIVERS FOR FREESCALE IMX7 +M: Rui Miguel Silva +L: linux-media@vger.kernel.org +T: git git://linuxtv.org/media_tree.git +S: Maintained +F: Documentation/devicetree/bindings/media/imx7-csi.txt +F: Documentation/devicetree/bindings/media/imx7-mipi-csi2.txt +F: Documentation/media/v4l-drivers/imx7.rst +F: drivers/staging/media/imx/imx7-media-csi.c +F: drivers/staging/media/imx/imx7-mipi-csis.c + MEDIA DRIVERS FOR HELENE M: Abylay Ospan L: linux-media@vger.kernel.org