From patchwork Tue May 3 09:39:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xavier Roumegue (OSS)" X-Patchwork-Id: 12835424 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A553C4332F for ; Tue, 3 May 2022 09:41:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233829AbiECJob (ORCPT ); Tue, 3 May 2022 05:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233848AbiECJnz (ORCPT ); Tue, 3 May 2022 05:43:55 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2085.outbound.protection.outlook.com [40.107.22.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9C8D381B1; Tue, 3 May 2022 02:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PYIOepKXY+fhqVJPgqzWF4lddUOLdiXv/I2o2vs61/Q1tSqllBE2KoIJHcHBxr9pPgHRiZ3jXvQMjLGiCPQC+8wCijIz1HCHRYdC5Lh9Gpl/EqeLYnQrqxtyTfAoga3uZtmo42RplgxmCMuw/8bEoEqgLqm2NfhbDfKepIqWH4ul3SNdZo61QbUJL3lW0Vcb0ZDmJvFXcXD42BS3q85cqmzw8Fq9CNC/Aflr/Ue7qhFgdFrjNzMdt3kYJeqsC6hkf8Qltl+Y2wqa4z86szGN9dgwMoeNHJkAUt3L25muISj/hZmtmPmScFnzEdVtMnvICvLoJFZCjEYmGR0ZNiFPMg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A/NMxiuvers4CUp3LTTdzKubv7y9Onyr7UrDUHinEZ8=; b=DcmxF/oI9aj1BjjcvCyLMS6r58aGbNvaZp0blS6vko9McULju2Bu8ncoZfBJUllpopL8QQyAKQMUss7XCftV5Osp7rhHrfzvwQcDoS6fAamlcSg5rJmx6C/yJ2p4EDor3+xniY1xmp0G12RQF0+jHyHo9uuT6glE/OvglmW5Dt8zkBncvRJjk3NofNjS4XCsTTymcyWJ4u7Wv85Rxac/M3fDj856aTHx3s6w8pP/ccOrR6peAB7Q0j3MSpQNmk+a5dJx/eto8epVsGLkbSPXXpKAkvv2LevkIogQu26AuTf89SgwbCWRy065BKBorwrdyNM7sJnsT0s6i1N9N8OBvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A/NMxiuvers4CUp3LTTdzKubv7y9Onyr7UrDUHinEZ8=; b=SWgsZchIPIUbxcC0rCn2bK0tUn3y2Lhwr8Q1x+ETxHrn2mMqJp0kN4G9H6er1hkGTKn2VpDSNipXGLSpcBymd6CzFRsLIVFQKT7mOeGSuYo+WE8VcTCWhyu8etFjMiUrmoDarGhjpDSzb4ByNapSzFyaPtV/k4/Kw2+wZX/X9ck= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM9PR04MB8700.eurprd04.prod.outlook.com (2603:10a6:20b:43f::8) by PAXPR04MB8878.eurprd04.prod.outlook.com (2603:10a6:102:20d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Tue, 3 May 2022 09:39:51 +0000 Received: from AM9PR04MB8700.eurprd04.prod.outlook.com ([fe80::9120:6407:db5d:462c]) by AM9PR04MB8700.eurprd04.prod.outlook.com ([fe80::9120:6407:db5d:462c%7]) with mapi id 15.20.5206.014; Tue, 3 May 2022 09:39:51 +0000 From: Xavier Roumegue To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, stanimir.varbanov@linaro.org, laurent.pinchart@ideasonboard.com, tomi.valkeinen@ideasonboard.com, robh+dt@kernel.org, nicolas@ndufresne.ca, alexander.stein@ew.tq-group.com Cc: Xavier Roumegue , linux-media@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 7/9] media: dt-bindings: media: Add i.MX8MP DW100 binding Date: Tue, 3 May 2022 11:39:23 +0200 Message-Id: <20220503093925.876640-8-xavier.roumegue@oss.nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503093925.876640-1-xavier.roumegue@oss.nxp.com> References: <20220503093925.876640-1-xavier.roumegue@oss.nxp.com> X-ClientProxiedBy: PR0P264CA0111.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:19::27) To AM9PR04MB8700.eurprd04.prod.outlook.com (2603:10a6:20b:43f::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22f7b813-9e00-4e72-1427-08da2ce8df1e X-MS-TrafficTypeDiagnostic: PAXPR04MB8878:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W89viVG3GTsnFiOleXBhWTBk/X6HnDwye7E+gIMtqQvrHPrFi/EXjG+QWw1rB5OQf6SjSvWQLUlzfhtTMvyODrDXkopxhwA8XFY9rQ6WS7/KRE2NThVlOXfcU9/N1a1QzZIPL0Cox7DdP9Ub/lxdjDyJhlTkDbq5pNxIa1rs+kMq9s8Q3PU67HSspHBV63NO/4WdzaoovLIfoG+k/horLFBQ+3dCpXdUbxLteSMN+S/Qjnye0Apf8SERcUhwy0EHcKeq338f9ZEKu6ky5yvHeSksqJfesYjygCJVyfpUo1MI6TOR0yNtc7lW227WGZgl0iiyq7RMFcKnTalU1Y9j4L4wJnJVoSEpx/LAv16dxKyFCDk/npajJb6fLMxP4UoTE0JpDw3lRRJLsecUoFl+1oWKZT3qL/Qwpf1PGTEZfFW0Ed2vCqNlA7+we9KFQZZQMZYldjWwIH+1JX8oR/fymJo0ILNE6NNxFH1MdkfuLntTWHJILz48ngfpieRfYR92xzUDQ5Y2NGFNyf5amyDrPsrFPnW4fz3dVNI7IAux86bWwDCxYBeEdSdrOEQuR+vCUzUNzjawLTAopsRoYA75GTRsiZ4J5v1daIIarcCkQwX+BL8gbKikurho5VFFvG7Rv2AW53mA/6EVPZ0W3hUopuoDWxipWzPTqQ62GBonkkLQ61ois6uJqR1ymKCSUcvAeDMlIRCAQtkByhfmM9deEzxHg5Gr3+fatFUfeQCd8Ew= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8700.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(86362001)(52116002)(6666004)(6506007)(966005)(6486002)(38100700002)(508600001)(83380400001)(2616005)(5660300002)(6512007)(186003)(1076003)(4326008)(8676002)(8936002)(44832011)(2906002)(66946007)(7416002)(316002)(66476007)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: /uBg2VWIDyFtBqbn7SU0K1eaOFzJrU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ixmv3mJ7y1AuK5SEMNTtxPxPn6/Ereh7FZwvE8r7iZvqD2v31WUHQQuYQvS5Ke/vLP+e0JqNuf+5NWUYmxcrBPlfo11XXFDxmCU6zxVXM3lOs6NzUyXRiHY2I2V2kdWJ5athn+SvrXIqj/tKfPZFgjFR0NPef2eOsykkgaFjW8F9HwDjlnMytuNQfpY4Qh3HfAovlvYgrzPPutXZRUS8wjp7Qo8+QJBgcUOXARrsIqNhyv2zFXWlQrpy6xVMTo8BDuuAkog6Uq7CrRy3Pxy4r+YAXdpNixc0VKIPhr4/WRVjXcnhVstdl7xuggqA9U/mtsT8ph27/VDT8PY0sTL59YL2IzQI/H9ML2upbMFR3dpj68V1yK8INCOkr3XpwTzj9pGoNKqPkkfyfb919JxzmRLdmU3AWmhAdF7e4mfTfb2fQAuwPnGOOYtwO/Dnuh8IuqMKFtS6FqcVM7c96bYEs9V8rUSmAJ0Uo/XiqwfLSEKeo7gonW1m9/wf/qimVkwPKnEmxS6bupLMUxAaBBiy0pVj1UeugCcizsPJDBc+Ql16OSe2PlTq0mJtIUL/SrCyUkcV/en285tjHwkqWoLkZLhoteH+hqR4LspHbQtBHOGGdzqnqDLD1b3QNntQ/S9Yl2LIDf+xs3fq5MqWAVuvYFxrGSLkSeartVhgYVGvBCouZfSEGxr1bKfneiVECWP1 X-MS-Exchange-AntiSpam-MessageData-1: UcdqMGaOErf+UKHn/D/4WLhi34HcIKrLmGU= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22f7b813-9e00-4e72-1427-08da2ce8df1e X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8700.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2022 09:39:51.6015 (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: 0ti1+uapG9n/Uyi9gSCBF6ZcutrnLwubRimIpp4ldcyjEjHfowjIrYvXrPihzI3qfaXmk3mVfarBYflBNE+1Kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8878 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add DT binding documentation for the Vivante DW100 dewarper engine found on NXP i.MX8MP SoC Signed-off-by: Xavier Roumegue Reviewed-by: Laurent Pinchart --- .../devicetree/bindings/media/nxp,dw100.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nxp,dw100.yaml diff --git a/Documentation/devicetree/bindings/media/nxp,dw100.yaml b/Documentation/devicetree/bindings/media/nxp,dw100.yaml new file mode 100644 index 000000000000..21910ff0e1c3 --- /dev/null +++ b/Documentation/devicetree/bindings/media/nxp,dw100.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nxp,dw100.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8MP DW100 Dewarper core + +maintainers: + - Xavier Roumegue + +description: |- + The Dewarp Engine provides high-performance dewarp processing for the + correction of the distortion that is introduced in images produced by fisheye + and wide angle lenses. It is implemented with a line/tile-cache based + architecture. With configurable address mapping look up tables and per tile + processing, it successfully generates a corrected output image. + The engine can be used to perform scaling, cropping and pixel format + conversion. + +properties: + compatible: + enum: + - nxp,imx8mp-dw100 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: The AXI clock + - description: The AHB clock + + clock-names: + items: + - const: axi + - const: ahb + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + dewarp: dwe@32e30000 { + compatible = "nxp,imx8mp-dw100"; + reg = <0x32e30000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>, + <&clk IMX8MP_CLK_MEDIA_APB_ROOT>; + clock-names = "axi", "ahb"; + power-domains = <&media_blk_ctrl IMX8MP_MEDIABLK_PD_DWE>; + };