Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5169817pxu; Thu, 10 Dec 2020 15:02:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxw6hkJPCRDlLOszVRD47AfEH/uVCv3/L27DQBHM4J+31oYCTJ5YZniEKzdb+8ql3CF5V1d X-Received: by 2002:a17:906:ae41:: with SMTP id lf1mr8599539ejb.369.1607641371653; Thu, 10 Dec 2020 15:02:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607641371; cv=pass; d=google.com; s=arc-20160816; b=lZCGHvQewKHczRJDcFTvDDuNNq1Eejx+Ncx5LO9stu2fTWCSYDzpZ5qiSCQgn3NoMT f1u+bBtHEyeOuhVSG2MBJq4T49Wb8ONI3X01C1f++xFjXt8XEHqlSpQRnYp/OO5/K/Jn 40V17dSnaJi1cvWHTZPMzS9mqWhHx155ND2Z1jBuc4/ILIqUTioRMLEcHr1j3dUPWAJt Ykw7l4z702s3oGt+Oy+91iEuFD2XCm+DkDIWyyFO/CUyMkppJZ1DbZKWZdGYmJu30AMM fdkxqM6frbZetPGHw/eZwQecK9AVR8e2EP1i90J6b0HCoQtesMhxmjcDmMkbDupJdBD4 HeVQ== 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=iT8Nv3irGjaUevvZp3uW4VD8/wtm/+1tmoRy3CCfRb8=; b=GYv0nzlL2DmwcjqvN7rKkNSCZK4Gr0qUHwAe3sEgTtBC6dmfFG06UCo8Zt1RRMGx5N YtxfVukTsHmp3CIElAJQfv5OleFEjdk+3K3w0qTP8KU18RfmQHU7vdMzLg7Ck7kLUqhP 8JL/ekUgN0KM8uWIyz5HgQ53dWHsmp+ErDlCMCzsUa2JQzqBtJpLyHXy6jkJQOpXz3v9 LMbRZgWEOZoCFk3KYP0ThP3raI16OuxmseK8Qla/NT6C/PxXEdr7tcf2QviinbMeXjuD 9/1JWW+nQ9F2wKqI9ReyZ3OojxKmlep9NUwTI/r5bRS5d6ctIIM80P0fjJuPscIn9xV+ FrUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=cwEanuSZ; 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 j18si3677967eds.46.2020.12.10.15.02.29; Thu, 10 Dec 2020 15:02:51 -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=cwEanuSZ; 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 S1732702AbgLJFh2 (ORCPT + 99 others); Thu, 10 Dec 2020 00:37:28 -0500 Received: from mail-eopbgr70044.outbound.protection.outlook.com ([40.107.7.44]:27399 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732683AbgLJFhS (ORCPT ); Thu, 10 Dec 2020 00:37:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j5Q6NKa/7VjCYEVPLeZK64PMql5tVOV9HQdwIgsuIhatPPp0+UFUMWbX7V+HqercFndhuJ79j1l6MpubTnMmOxGexJkER4rUmy9jRqBQ4Mj8om7ImRQIG+xmElXn8V09mrUaCe1qLUJ+NGsHDi541W3chrhAlV90xTbENFJdxUTGylsK9vojjz6jiO1jxHFgshHkaDjaCeGlZy1zwZwAXUpKid9pI0w1TCKsuIW827JERN3yxn+6OXi6Puw9mK0lxt8vDzalp+vLUJN9eFvmc6sGp3NUx8hEYMrKBUCptTbjCwiY3h+ZVvBvTdXfs1XvD2YDcHJF15+0VQHAeq5Z6g== 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=iT8Nv3irGjaUevvZp3uW4VD8/wtm/+1tmoRy3CCfRb8=; b=aMapF2qcky/yC4Td5uTUFLZqnNthI43CiQ14wL9eoAzjBWdeo5RpLsm7pGtwxcPf44O3JTbX4hbekG/o3J8h6yqTf9W7Ptk5J5sYVkA0cFOcIvKRdrVLDjXEOHDVW7BhdRh374ufPiB+V1soQmUcJ/llUrzlt1R6Z4r1kpllgMI3C9yheLkeAchKWPpufInpTpA+oWkPUJ65vIeDuZQrQ2OeQYu7zYljNBOmEDg78ZBwq86T5zbVXfoNq8gyWDSdLnvLZ3fjzAjg9ZwKnFSbeOOJKO/JnNnPY/llx3bzYw5SJ1qg60ZqQfP4bhnTYCrglgwaFZQSjRKMJaKkl2XmfA== 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=iT8Nv3irGjaUevvZp3uW4VD8/wtm/+1tmoRy3CCfRb8=; b=cwEanuSZQExg8CX/232qewcVe/TJRNovFlxkkFi2rTkwmyZyZRA9A691as6Wx+TvkWsGac9sCUtg1Jv94K32g1p3lKg858PtWndFC44rsv/mntRb2HDDdolh5MoNG/rMZW7tFh04raqJW5SpNGYKXOXvDY/NjmPqmvP+OVoU98Q= 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 VI1PR04MB5454.eurprd04.prod.outlook.com (2603:10a6:803:d1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.15; Thu, 10 Dec 2020 05:36:17 +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.3632.023; Thu, 10 Dec 2020 05:36:17 +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, guido.gunther@puri.sm Subject: [PATCH v4 3/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPR channel binding Date: Thu, 10 Dec 2020 13:27:28 +0800 Message-Id: <1607578052-4316-4-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607578052-4316-1-git-send-email-victor.liu@nxp.com> References: <1607578052-4316-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) 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 SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3654.12 via Frontend Transport; Thu, 10 Dec 2020 05:36:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a4eeabd7-4816-470c-0ab6-08d89ccd844e X-MS-TrafficTypeDiagnostic: VI1PR04MB5454: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr 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: NDMI2jHtmW5/H6iJOJwbRP9KqLnc277ucI/buyATtkRA8eEZfrSX/mLRwQQIF1Z5dzxrTieyw81gSVHpb8KAjTH28q+JGd2CzPynEAdzWLPxwH+ezu2Bkq6ZfQQHfvIV7vd178F4rj16msU2W8I3AMM39TJZi6CNGIvuH6JVKBienRHiAQyTp+CtDUGAHzWqBmJdTn07cum3hX0vSNU9aWpFBsQa165pA70GZBWnnN6NKaWpRYUfTdC6mvWtswdDCUEE1KXBYmiBjPq9WHkxetNn2z3Dw7/y57rzzJEcaf/85do9+wgeb5dxwVUiTcbPnV23LMVsLH4/UWAM4KxEI+mSQH0HW4XXdamVjW2lQOUkBNkWg7YRhmoYQIRCIIIBJBbf2oEWnBLUMYkjsdJFzkNEGCCvt5K+uELLislQ/LT4IPXhp4WQJN0mbpbQ7dwQ2ScI0ztdPwrg8hrDKpA4HAh0stHh+o7eZ5I3kyZMKCBgwaQu5v1+TggcdesDmxis 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)(136003)(346002)(366004)(7416002)(6512007)(34490700003)(52116002)(83380400001)(8936002)(8676002)(6666004)(966005)(66476007)(66946007)(66556008)(6486002)(508600001)(2906002)(2616005)(69590400008)(956004)(86362001)(4326008)(186003)(5660300002)(6506007)(26005)(36756003)(16526019);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?fs+4pUTnTY8YnqLD4hSmk3EVk5HLaqD7hQfiEEExDFEOICXcA7YAjkMHw9jD?= =?us-ascii?Q?8cv7wQy6BDrzrOxMOVURbVHHpor9MTh+AAxGTwqiKAlfDyFNcbc1E2kxb2UR?= =?us-ascii?Q?nwhzSAvHc0k3KKbf2Q8bzqxZ1yPl4XuWjfWSkVlKwnUm01cLHWaNrkY2sO65?= =?us-ascii?Q?RK1ZLJLDBO4Wy2qeG1uq5Yx2MjbKIQZpZkaBUsFkv9nwLmFou0P1QT02FMzi?= =?us-ascii?Q?P8GizwqV+RSylbHdIvN5430bLXwOtondyLkJA5REqqBunE/CG2iuhJdppm25?= =?us-ascii?Q?uOGmz0vt/VD1A41Q8A2Adee8vFZ2hU2tUtRu9KM6YGBdhbkhsk0JVcRt0RyB?= =?us-ascii?Q?lw2nVl7TSIc2pSzPgpz8KT9v+hPF8X+DnL9hDHgp0cnCl7aNvEF75DQkHL3z?= =?us-ascii?Q?Z/fErI1Uphh8WcuZVFnFt/6aSwcJv1EfhlaqrRH+YOddYlfB+QAH7d00/Hrp?= =?us-ascii?Q?UaIY7jxVf42v4T76xJHyjcg2+X3MuKHfy5Hqp0pwT4bzmnxfxsICWfZVANbk?= =?us-ascii?Q?jJ4Yy3YJTIoqKiyV8ogrmhUnN6ZZUgQ+7+rBy1rQAohuBTv2DSFEzThAZoeg?= =?us-ascii?Q?b9l5tmmnX9HLmq1ZB/h9+mxBdydm/HLDuwdyCpQFYVBkxpNYMZKtJmxPx5wB?= =?us-ascii?Q?uFQjesatsGLrNFOMxd852YezOazmHtl+vReWblDWe7Z4HI6TAXACVQx0nRNV?= =?us-ascii?Q?FQ7GUGKpA2LDkGGfoKF3RB4yEaXsuwjuCrxoLlVTCVGozJ/AaIHDIeamgYkK?= =?us-ascii?Q?DJo9sd/EAQ8TX+W91fUWyIIs8HClnQTLQFGSoLLdaFEtIfZSg+YGlcanHQVB?= =?us-ascii?Q?k7knWdGboqYUyBR+nkx2t5HHPBvMMXgFIAxFqxuVGS7vaT7XqRautDAMT909?= =?us-ascii?Q?qHDzN079Lu9rESH2kRAGVX7zAVCXhTtG1FgR+rhBinvGYLveJvzeZFlN0nU2?= =?us-ascii?Q?vuteMKP4NFlmCQ9SB09Ku+gRgGAnhUFx2d6oWN2c+CDP5rg+hy9jO2hn2CX5?= =?us-ascii?Q?Mdew?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2020 05:36:17.3401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: a4eeabd7-4816-470c-0ab6-08d89ccd844e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ES2lzcbP6N3SaaUm2TGu0kmL/oB7nm8ukQ+VQvV1O4UMeCtIWAcLa6nMctQHJZbS4ZvGkZzKBjDwSBS3i7nEXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5454 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Channel. Reviewed-by: Rob Herring 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. v3->v4: * Improve compatible property by using enum instead of oneOf+const. (Rob) * Add Rob's R-b tag. 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..9e05c83 --- /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: + enum: + - fsl,imx8qxp-dpr-channel + - 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