Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2108242pxu; Sun, 6 Dec 2020 19:34:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJybsqNfdJAxiKxfEKSU+/5tLF79PsYHHuVMRQxGzxz2NxKSaGVXHrWwlAwnduIEnkfGj/NM X-Received: by 2002:a17:906:971a:: with SMTP id k26mr17536368ejx.279.1607312077415; Sun, 06 Dec 2020 19:34:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607312077; cv=pass; d=google.com; s=arc-20160816; b=aPSpOnAhAKIHhMu3pAtWJMbfu62bGIvDxF33hYEfqOLmlIpciY8LHNfmY9EO7mpmh0 BO/YnG5h1//Qslvm/FRr+xePOABBZaBha/aMaWqdTbRh4kJ4WLXLSmkw4O1oJr2EG6GN LAiTfREPMVVeH76e6qNMMr4LynpbTM9E481D9E4nOpJ/x/h1oimnazauWE+rHLDzeQW6 0Hcjt7M2dau9xBrowRw40XyrEU1urpBcTMuYUrJhCClVQkUANe6ZCbex6RiKZmNe4xVQ 7XJI9vugnVEL+IaOA1qtqSYoDfvs2FYVrWjITmUS6OnPfkD/rrBjZiCF1qdV44WWYKF7 jgEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BU3073wibMZf/rMKa3eFXnqH9uMCJtnmrb0w/GEorlQ=; b=QejHrlgZL+GH7xx/yMBXuiGeRzukF8MZ+L5cRKS7+Q+79twpXAgU7B1ZVaavtcNm1I llLqUlKfFrpF+vZzFfugwfY9xdFb+X4afbMscmWXfoCHXphP+I/GKXFZblY3MDNMj1ui +YHfXCICTqhJa8at90vDOMyVmju6INlcJL39eQ2QszhkUL9jyIXm1+kZAoaqNbQ13Afg Tf24bIkYP7YRwlNWQyJ52E3AjjN04mIktc1Q2jl9XLYv8KmVZzbkMl6hAJ0AET7xfp5g VFr9mgRDTfCM9rZvTcwDXkkK2OeWlx1snFM46i3GyRRri7hi+6NH/Nyr9uN3B6W+OvP4 pm6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=pnsSZ4JH; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si6673266ejb.699.2020.12.06.19.34.15; Sun, 06 Dec 2020 19:34:37 -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; dkim=pass header.i=@nxp.com header.s=selector2 header.b=pnsSZ4JH; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728832AbgLGDaq (ORCPT + 99 others); Sun, 6 Dec 2020 22:30:46 -0500 Received: from mail-vi1eur05on2088.outbound.protection.outlook.com ([40.107.21.88]:20609 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728804AbgLGDan (ORCPT ); Sun, 6 Dec 2020 22:30:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b1LyQa+FLsv4nD/Z496EeRFNddN868yBUTjP+Xu3m9xTE7JsR4iE7BbOER63osXhGsYF8nYsHQFjx5AY7s+OIAgyskQtzqjWu9d+eUIHFUMPWk8QVklowiIkeaFhaobEnXiV4b8RqgaqLky6HoNguHHuKE1pZ1ITHXvIjlZeIJOjQWP7ctAnxlzaiSNUAhFPywB9VmHIXoWJAE/qdU9mudpGJwEPwCstzsCzwK54Yf5HP2bkDTOlXtrf3PMaMMsa4/W11bSQcwaSuMcfbK2J9IG6dtOIwVb67M4Facyo7ogwgU8JinL6p1gkmyLZ6bDQTYEYf+YwruxCbm3KwHrkyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BU3073wibMZf/rMKa3eFXnqH9uMCJtnmrb0w/GEorlQ=; b=jlCaJnaa3wlBxK7aEfRfl89EInV8MyRMVz4OGGyAV9kSHrnl7eNzJn+rEW8gHI9x/J7VpGBiJA7PfuigW+ny/QNuIITJ2AvJJtmaHczGjC1lflnLwWUPSrEoThsz15c9EG/UdpSvcs/8WkhxhMT7oGPxKw0+XYgISaYvQR+3tTNq6/uFdPX29aVB7mjPQXOxSBZu+fcG4ofRfWlfdBzeerp0qxhVmP/gMY2sbuj6fOIdKOXjyuJSlhehaAOW5W1eUas8c4WVJPh2lx8NfDc0GW+w5UdBFHq6UNNnAREWftmtZvfYRlinp+z9Yn0mBdQj/nleZSwCTLy3UBj1FuDfNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BU3073wibMZf/rMKa3eFXnqH9uMCJtnmrb0w/GEorlQ=; b=pnsSZ4JH+KgWBOnvr0RQIn9bz7e91xVWGK60MGH3PtvVF9WP9MDyhC4uRMAOCpCId8zgpBQ088jrt7IfByqCBhqY7ZHOyNEoqAIrEHQDl38KnIrs+0U/nCYkYXuPjTVepUXVZJHSrJ2NwYabCPOlcs7HbLyiSXKJkJy0ygd2jpI= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR0402MB3424.eurprd04.prod.outlook.com (2603:10a6:803:e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Mon, 7 Dec 2020 03:29:21 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::dcb7:6117:3def:2685]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::dcb7:6117:3def:2685%7]) with mapi id 15.20.3611.038; Mon, 7 Dec 2020 03:29:21 +0000 From: Liu Ying To: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, robh+dt@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, laurentiu.palcu@oss.nxp.com Subject: [PATCH v3 3/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPR channel binding Date: Mon, 7 Dec 2020 11:20:57 +0800 Message-Id: <1607311260-13983-4-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607311260-13983-1-git-send-email-victor.liu@nxp.com> References: <1607311260-13983-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR01CA0085.apcprd01.prod.exchangelabs.com (2603:1096:3:15::11) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR01CA0085.apcprd01.prod.exchangelabs.com (2603:1096:3:15::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3632.18 via Frontend Transport; Mon, 7 Dec 2020 03:29:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 214e8848-2015-4cea-e4ba-08d89a60497a X-MS-TrafficTypeDiagnostic: VI1PR0402MB3424: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oFRFu1OJfN4zMft8Bug+H9u2XERxKeTdJgq0Y7c5qrR/K8Orn3AoF0v5f71xyf7zl7RUFH8vCQiUTaayq3usi9cW5OP4uRQhGneUGL7gXsXF6mOYxBtioPzbJ+cWbb08KYK1u4DWGdEnxwEjYl7oJttSk+S/4AUIBSQuO8tMbsZ80IVN3NTbenT6asev0ccOkiV71EzLkHoaSG7IWi6rwInSzesngL4VMuZ4WBgaJrDyKVoXxIWLURJZxK7ifc1ZtIHRpZw5luquLpNWqLUn+ol+K7FYl9eJ+7JrMeB/44xMQQxd4Kap04j2y9rFtNdCArkzdiu2DoQDVSWclOxwJ90lLTFZqg/ks5+oXCzbtvOyfU1tpRz2YQZCHKNiK/iiXH2j3psZh6oR00uCSh2ypYemr6gD7yyibsLKKwb7vAMk9YBi+gDGkStn/B7p0kTveFNpj1jdkwJj5EVozUbeqA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB3983.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(396003)(136003)(39860400002)(346002)(366004)(26005)(4326008)(966005)(8676002)(7416002)(5660300002)(83380400001)(316002)(6666004)(8936002)(52116002)(6506007)(478600001)(186003)(6512007)(69590400008)(66556008)(66476007)(2906002)(36756003)(86362001)(956004)(6486002)(2616005)(16526019)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?7BIb9Jed+xVwNYGiz039ryg7E7eF1N1oK9F0OYrSAJZ+9aa9K5s29Ia+ApBh?= =?us-ascii?Q?MuL0sfPOBS4sS6OzS2wAmXf6TA3AohJbcwHcpAQEEEqtLoM8rJPVbSI/ovIN?= =?us-ascii?Q?pPeo54qadyb4My3VnzNoc06xt9V00+jKLrjXjyMJLpt3EiB9wv2zj1ypY/yO?= =?us-ascii?Q?8Y017lEobGU4GdK69sK4JK8ZBTKrpu9EHFvqQvo72ySbTBFCjIVJN2UEfXSx?= =?us-ascii?Q?Q/Tl3jwYaYCnCnJgaWmJ+Q7T8neqWT1vTVLsl0JYtXV9x7yb5YDjiwdIo0y2?= =?us-ascii?Q?+wAhDag7HbSgTo3gKYWFlNHhVCFcD8A1jLfcazNxuz7iquDfrrrsVIr3blw1?= =?us-ascii?Q?i64ShAcLCBXrxd1eW2NyBhI6ap5zLFSfa1swStsvAPjY3x74U/+DyHSPi6LC?= =?us-ascii?Q?VYNh5a2X6WmjDOcbWiiKGSqdGeImiA6B2jWTljkyTdKrCmfFkRgXbCjW3mAa?= =?us-ascii?Q?Zmgu/TtmAKgT5hcO6fPsHZRLbRak/TmIKs6hgJSo1Z8eGZBV6nT+WIMpGfrf?= =?us-ascii?Q?fPNFncqGMp/pVzPmM9E5loXDa5SO5nvw8RPAK21bWnGr+pmmOrx7anbUhR7X?= =?us-ascii?Q?xCC8yWUbvURH2MTrbFK/CZwSgSxhXLeUPKlH3M56G7/uEbyC0m8iikm1VyRf?= =?us-ascii?Q?x9giqAYAqxn5sQA+ERWzkZgV+eh05433CoYPZ5ZcjduXcPFowyNRN93vFu9l?= =?us-ascii?Q?bstiRY/daDuawTSO6gDOnfWexT6+dhosZ62tHPB4yy58zwAiL5gbWsvgrvTe?= =?us-ascii?Q?6HGFFara9jsUSI6G1vShcF5X+lK+2mXF0KisH7WtHJY45W63750rXcUbBY9e?= =?us-ascii?Q?Uto7LHag2yN8Z6qM5Rc5vEk9shNJsjbwW4WNK1WaJpY4auxEUGUcgvNFQDZF?= =?us-ascii?Q?0CLWA7CTwkhw+M75/+Da9//b7sXsq3Hl8daJwcXkT6AP9wzNk1ceV9JIreY4?= =?us-ascii?Q?Pwfgit8wIVLjtDjAzHWFxcrbCHqwKOvPNpQv7diAxXmSUdoLWHbOMmpWI8Zy?= =?us-ascii?Q?WABB?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 214e8848-2015-4cea-e4ba-08d89a60497a X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2020 03:29:21.5172 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7H58fBB1QBMHqUve0q9BkwICw3bc7MCkEI9zADwxXXaVb0+N5QtM3+9Iwl8ycls4d8YRaaHI6CJq7/Z/tyjrsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3424 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Channel. Signed-off-by: Liu Ying --- Note that this depends on the 'two cell binding' clock patch set which has already landed in Shawn's i.MX clk/imx git branch. Otherwise, imx8-lpcg.h won't be found. v2->v3: * No change. v1->v2: * Use new dt binding way to add clocks in the example. .../bindings/display/imx/fsl,imx8qxp-dprc.yaml | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dprc.yaml diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dprc.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dprc.yaml new file mode 100644 index 00000000..91e9472 --- /dev/null +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx8qxp-dprc.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/imx/fsl,imx8qxp-dprc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Display Prefetch Resolve Channel + +maintainers: + - Liu Ying + +description: | + The i.MX8qm/qxp Display Prefetch Resolve Channel(DPRC) is an engine which + fetches display data before the display pipeline needs the data to drive + pixels in the active display region. This data is transformed, or resolved, + from a variety of tiled buffer formats into linear format, if needed. + The DPR works with a double bank memory structure. This memory structure is + implemented in the Resolve Tile Memory(RTRAM) and the banks are referred to + as A and B. Each bank is either 4 or 8 lines high depending on the source + frame buffer format. + +properties: + compatible: + oneOf: + - const: fsl,imx8qxp-dpr-channel + - const: fsl,imx8qm-dpr-channel + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: apb clock + - description: b clock + - description: rtram clock + + clock-names: + items: + - const: apb + - const: b + - const: rtram + + fsl,sc-resource: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The SCU resource ID associated with this DPRC instance. + + fsl,prgs: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + List of phandle which points to Prefetch Resolve Gaskets(PRGs) + associated with this DPRC instance. + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - fsl,sc-resource + - fsl,prgs + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + dpr-channel@56100000 { + compatible = "fsl,imx8qxp-dpr-channel"; + reg = <0x56100000 0x10000>; + interrupts = ; + clocks = <&dc0_dpr1_lpcg IMX_LPCG_CLK_4>, + <&dc0_dpr1_lpcg IMX_LPCG_CLK_5>, + <&dc0_rtram1_lpcg IMX_LPCG_CLK_0>; + clock-names = "apb", "b", "rtram"; + fsl,sc-resource = ; + fsl,prgs = <&dc0_prg4>, <&dc0_prg5>; + power-domains = <&pd IMX_SC_R_DC_0>; + }; -- 2.7.4