From patchwork Mon Dec 7 03:20:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 11954753 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27A19C433FE for ; Mon, 7 Dec 2020 03:30:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C6F1D22CA0 for ; Mon, 7 Dec 2020 03:30:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6F1D22CA0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tp8zknd6Ugvfpu+5kc725RcAV6/djQ+z4mw+gUGAd4U=; b=2ogafDQBNMsmIU4UvawU5SMJz MwMsPosP8f6QkHqtsEdJgjAfd7lcGF0g6YlKD3qCfA5+FPOlXK+gIVdP2+gHQulzUD3aNGvqgfeRP j5CzkYz8P4QFQEtotxRNDbA7CJyJvz+pTFnw1yPZf/VrZKSlvMj4QAcScuvycoMcrB9k2CbmYnWir xH5bxLqFlabdgSgcaxXE6wW4kDJm4PUvHD6yTluUmJO10A2NkHi7QfzKpVjffsl+kG6X9plJNtuwi mc6FS0QTKoo0i8jGecE+qm2cNZ40lN2XZGwKlJA6O0ojVkKjn+J9J2gDLsatavWaN0YsdZpzvK9N+ dSiPLX4CA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1km7DO-0005wl-VZ; Mon, 07 Dec 2020 03:29:31 +0000 Received: from mail-vi1eur05on2066.outbound.protection.outlook.com ([40.107.21.66] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1km7DH-0005uN-Rm for linux-arm-kernel@lists.infradead.org; Mon, 07 Dec 2020 03:29:25 +0000 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 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> 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: 7BIb9Jed+xVwNYGiz039ryg7E7eF1N1oK9F0OYrSAJZ+9aa9K5s29Ia+ApBhMuL0sfPOBS4sS6OzS2wAmXf6TA3AohJbcwHcpAQEEEqtLoM8rJPVbSI/ovINpPeo54qadyb4My3VnzNoc06xt9V00+jKLrjXjyMJLpt3EiB9wv2zj1ypY/yO8Y017lEobGU4GdK69sK4JK8ZBTKrpu9EHFvqQvo72ySbTBFCjIVJN2UEfXSxQ/Tl3jwYaYCnCnJgaWmJ+Q7T8neqWT1vTVLsl0JYtXV9x7yb5YDjiwdIo0y2+wAhDag7HbSgTo3gKYWFlNHhVCFcD8A1jLfcazNxuz7iquDfrrrsVIr3blw1i64ShAcLCBXrxd1eW2NyBhI6ap5zLFSfa1swStsvAPjY3x74U/+DyHSPi6LCVYNh5a2X6WmjDOcbWiiKGSqdGeImiA6B2jWTljkyTdKrCmfFkRgXbCjW3mAaZmgu/TtmAKgT5hcO6fPsHZRLbRak/TmIKs6hgJSo1Z8eGZBV6nT+WIMpGfrffPNFncqGMp/pVzPmM9E5loXDa5SO5nvw8RPAK21bWnGr+pmmOrx7anbUhR7XxCC8yWUbvURH2MTrbFK/CZwSgSxhXLeUPKlH3M56G7/uEbyC0m8iikm1VyRfx9giqAYAqxn5sQA+ERWzkZgV+eh05433CoYPZ5ZcjduXcPFowyNRN93vFu9lbstiRY/daDuawTSO6gDOnfWexT6+dhosZ62tHPB4yy58zwAiL5gbWsvgrvTe6HGFFara9jsUSI6G1vShcF5X+lK+2mXF0KisH7WtHJY45W63750rXcUbBY9eUto7LHag2yN8Z6qM5Rc5vEk9shNJsjbwW4WNK1WaJpY4auxEUGUcgvNFQDZF0CLWA7CTwkhw+M75/+Da9//b7sXsq3Hl8daJwcXkT6AP9wzNk1ceV9JIreY4Pwfgit8wIVLjtDjAzHWFxcrbCHqwKOvPNpQv7diAxXmSUdoLWHbOMmpWI8ZyWABB 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201206_222924_018814_A79DA133 X-CRM114-Status: GOOD ( 16.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: p.zabel@pengutronix.de, tzimmermann@suse.de, airlied@linux.ie, festevam@gmail.com, s.hauer@pengutronix.de, maarten.lankhorst@linux.intel.com, mripard@kernel.org, robh+dt@kernel.org, linux-imx@nxp.com, daniel@ffwll.ch, laurentiu.palcu@oss.nxp.com, shawnguo@kernel.org, kernel@pengutronix.de Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Channel. Signed-off-by: Liu Ying Reviewed-by: Rob Herring --- 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>; + };