Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3328204pxb; Mon, 1 Mar 2021 07:21:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWUbZA1d7GwcCsY+1c5AfL480jFlAUSvirc9k/hT7E0RFmqXxzI2YzjfbOesp5U8XJjt7K X-Received: by 2002:aa7:cb05:: with SMTP id s5mr2987941edt.19.1614612104285; Mon, 01 Mar 2021 07:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614612104; cv=none; d=google.com; s=arc-20160816; b=0I7QGUMAs4ryfX8o6BJyCU/wzQOKOHbP+UBmC2JpfXQFzKFNbHxiK+o+/FR9Ynyzu7 Q+/71o1O8cT0KCuLWjQ7O6O7BeLUhYfLJS0WsJDbOJRs6A0UFifkVJnbiZH6Zg/o0+U/ pXnaeah511BOhAZLvrBVDNWM4aequB61u0eo5/VFJUpN247YOhx/kvol96tG2/PsNubt 0d1rj3pF1OYbnBaBnPYAVYal+yPR7/9aZjYLz+LDKeRFYLhvmoHjxUx/1H8cyhwErTZV TcR3QUzWmLseP6zOvNBmPD1YTwzuTvAT1JFHhvG5FMT6fIidyCdUZxG9o0iU/MgBJsE7 9G1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pxwECBtIkGldFluElnbRvR/DMawV4JORIp/47Vr/JW8=; b=g0B9tCHGzpezollBboZ+H7rr7cGALT9xTaHHYeQlRqVlfY9xCpp36TZnB6pqXFODfr dl8OU4yXxGMU2UtAgw79ov9a3ndAS3hG2/T3Y70C59ULpsUzS7b9I7Ors+aS/vMrHi2u 5zd0GXera3McRgLgqdfGt0mRLSyKwzKtIdwH+hIqI5qcg556f1lh9CMREv0Z6H5yYEBy VTHKxjXI92aIGQEETjUVujffRZsrZRUjG4aRveZnVxMPbcAGeIdNnWnJEg4CvzYAG48X HPu0yPO8B19NSYU9N4e9DE20kXH9EREfxQ6+KHySyre6VDuj0NEWkv4fCKnQKHHAy+YH i4Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jl16si6218835ejc.330.2021.03.01.07.21.21; Mon, 01 Mar 2021 07:21:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236999AbhCAPTi (ORCPT + 99 others); Mon, 1 Mar 2021 10:19:38 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60448 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237153AbhCAPSu (ORCPT ); Mon, 1 Mar 2021 10:18:50 -0500 Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:4cb:a870:39a1:f0e7:a696:18c8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B26DD1F44E72; Mon, 1 Mar 2021 15:18:07 +0000 (GMT) From: Benjamin Gaignard To: p.zabel@pengutronix.de, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, ezequiel@collabora.com, mchehab@kernel.org, gregkh@linuxfoundation.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devel@driverdev.osuosl.org, kernel@collabora.com, benjamin.gaignard@collabora.com Subject: [PATCH v3 2/5] dt-bindings: media: IMX8MQ VPU: document reset usage Date: Mon, 1 Mar 2021 16:17:51 +0100 Message-Id: <20210301151754.104749-3-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210301151754.104749-1-benjamin.gaignard@collabora.com> References: <20210301151754.104749-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document IMX8MQ VPU bindings to add the phandle to the reset driver. Provide an independent reset driver allow to the both VPUs to share their control/reset hardware block. The reset driver replace what was previously done be using the 'ctrl' registers inside the driver. This breaks the compatibility between DTB and kernel but the driver is still in staging directory and limited to IMX8MQ SoC. Signed-off-by: Benjamin Gaignard --- version 3: - Fix error in VPU example node .../devicetree/bindings/media/nxp,imx8mq-vpu.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml b/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml index 762be3f96ce9..fd53a4e43572 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml @@ -18,13 +18,12 @@ properties: const: nxp,imx8mq-vpu reg: - maxItems: 3 + maxItems: 2 reg-names: items: - const: g1 - const: g2 - - const: ctrl interrupts: maxItems: 2 @@ -46,6 +45,9 @@ properties: power-domains: maxItems: 1 + resets: + maxItems: 1 + required: - compatible - reg @@ -54,6 +56,7 @@ required: - interrupt-names - clocks - clock-names + - resets additionalProperties: false @@ -61,13 +64,13 @@ examples: - | #include #include + #include vpu: video-codec@38300000 { compatible = "nxp,imx8mq-vpu"; reg = <0x38300000 0x10000>, - <0x38310000 0x10000>, - <0x38320000 0x10000>; - reg-names = "g1", "g2", "ctrl"; + <0x38310000 0x10000>; + reg-names = "g1", "g2"; interrupts = , ; interrupt-names = "g1", "g2"; @@ -76,4 +79,5 @@ examples: <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; clock-names = "g1", "g2", "bus"; power-domains = <&pgc_vpu>; + resets = <&vpu_reset IMX8MQ_RESET_VPU_RESET_G1>; }; -- 2.25.1