From patchwork Mon Mar 28 14:13:07 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: 12793661 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 26C7AC433FE for ; Mon, 28 Mar 2022 14:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236954AbiC1OP4 (ORCPT ); Mon, 28 Mar 2022 10:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243700AbiC1OPs (ORCPT ); Mon, 28 Mar 2022 10:15:48 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140051.outbound.protection.outlook.com [40.107.14.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48EF79FFB; Mon, 28 Mar 2022 07:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DctxPPfkyqs2Q/a0+tli0oa9x4laYBVWVLHKpRMamBUyTSseYp+ZNfNOYLbc5BOjNiXTxvSyKvZzZlR30JEsUnEyh3QhieNowAo/e/fBQGrcoskmdFhMdUwFmXN2HEeDs5xGUgsFZz93bP4+dHXgxDVpl4EUtQpEXfhNPz+5gNYEdRazBqOWSXbGwnTJa7XU4PDCXdlr1BtTsCoUtCfilh+RGVGpEEPw084ZmbrRmziURnk6b/5bRshJ7T6SLyMVtLrBU0jIqqMYVCZO8Hc2ibb7mvilRfIL9VoWE62jFQWs5Z+zp8k0d1YpDzU+NcgtXFsoRTXklt71xGReh4gKhw== 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=lHHrZ+siSQqYV4FfcDxPy29myh0C9hhjkEEpjCuVxlLTakoPR5sNz6yOUTUhR7MCuTqALVDM/DvyozxRG+BbIdmeFCwf1Stuau+5bdg3uQELYR7/i8jum//WxCefIDvDNLxBpfnjk8M2Kkhs6AZCRvZF5yqRcRPMt7EcwyWs3mMw1stxBkdIkp/11TC27HTEuHsW7kkDv7P0kNWfcANovwIP55bhntoPCghnH44y0t6recVTqjkXFglY83duKQqb2gV6tcnu97ABSwICCdRrICP8/4IGpPJnLmDycWYqEInoRe/dUOAI2bjr/U//CV2eIHKywmeagc1jlMP/DJnH5w== 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=ZXfMMw87dyaAmN16I08bWYyqlYVaHxSi+mP5xBICNI69Q6EDw/Cz0XSzhfBOVO6A2MTgO36omyBZuOEZjnY75w05khpOcdUOQZddbKsWM0Widmz65k8lG9Fe7Q7w7KYxFMxqsMR8KkDOFsYyKDTiGVIukBzrLlfp3QW1XfUmq+w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8703.eurprd04.prod.outlook.com (2603:10a6:102:21e::22) by AM0PR04MB4418.eurprd04.prod.outlook.com (2603:10a6:208:6d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.22; Mon, 28 Mar 2022 14:14:02 +0000 Received: from PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::45a8:8093:26f8:37d2]) by PAXPR04MB8703.eurprd04.prod.outlook.com ([fe80::45a8:8093:26f8:37d2%7]) with mapi id 15.20.5102.022; Mon, 28 Mar 2022 14:14:02 +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 v4 7/9] media: dt-bindings: media: Add i.MX8MP DW100 binding Date: Mon, 28 Mar 2022 16:13:07 +0200 Message-Id: <20220328141309.177611-8-xavier.roumegue@oss.nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220328141309.177611-1-xavier.roumegue@oss.nxp.com> References: <20220328141309.177611-1-xavier.roumegue@oss.nxp.com> X-ClientProxiedBy: PR3P193CA0032.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:51::7) To PAXPR04MB8703.eurprd04.prod.outlook.com (2603:10a6:102:21e::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99df2a12-eabf-4f87-3bf9-08da10c53552 X-MS-TrafficTypeDiagnostic: AM0PR04MB4418: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: /vhMvwoqPf8KlSblPrT4+WGXc/tEbpB/nJqF/8u3H3MMjf34y0epJCdQ1jkaZgK2herPLNkJtLqCiiWT3DpIT6VNFA8IyqJ61MeKt5a9q1EEOFUH6G8615H4acgBt6iXHMPUpJJOzSilC66idbVggBRiUXnU7FO474GyV/xrIIZSufyktxodth4APCIytrg2I3VhKWHQ6K9bxIm4A2Ou6j/He7Mn1Bi6l5PPDGEwGFjmn5sL/pIuj3ipO+9O2PoKyRKNTCc+1xPw79CPGtiXiNlMAiVzOqRgzaXiGZahsj458raFcGh5q9tH6wKUmHJ7MDJYdlB7WHJDIGJ2oIUwef4ccWkHEhzcxWGDtxFIK+rAcs6NbGxBHsu0hoQpE8HaqEHqbz/Io7SZUcrilKOBIA4l1kYbJ3yZcu0rCg5mu5rSgbaxdAv0VJntUY5QEnxT0sqrilGRVmxuZL6h/iMHF3Rj5fVngg5CBimVm4Pv/KenpUB4v2WrXm3pf1BTOwXMCx7M1HwUqdSqBdxfWVSLVnIMGyLCGn6mJJY6CHg53NBlY74uIN2Pt6DhA/blBFZQY3b5M4hNnaD8BTn2xwRYicmAIMdxbk9Lru1eazK1Mv0mqV0+dNk7f6vR85iP4AbvIguxieqFjudh86Nqs+eKHihC8OlJNnMIZHb+HGBXYK0AqpYeAQNBI6PMHTRBBv8rqoBs4gN4NRzgKY2YMJWsFld8DBDEjJS2J2EbIDUi+BLHM4rca5TGkygBfAKS6U+jUD/fo0uH4PD3eom7x3NMuA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8703.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(66946007)(66556008)(2906002)(86362001)(6512007)(44832011)(52116002)(7416002)(316002)(508600001)(8936002)(4326008)(186003)(966005)(6506007)(38100700002)(66476007)(83380400001)(8676002)(6486002)(1076003)(5660300002)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exch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Va+jJm6lm/0LdCeR9z6UuIlnbsyVkqVyoxxbowTXdB5KwEPvn6RnKbLRscmogvEE/TILZCCwn6lTKRIy3e6/tvGLxMQC7WB6/Hs4Bjp4KH2W9vCPLk+WFkKCKSV0leevu41gEjEv0NFJeugb1tdVIrORhWUvQ/paU2mR2k3dZs06eOguVFH2ilNnDtyfnQ4ReKoG+ddVJ1UTNlN1vj1g9PhvNHIHQsNtAIkKECUWe/oOqzKqXio9+TM1sHaYz+xXoR5d7pZDiCgiMMV4bNOCWqsBg5APSAT0jGJ92oRkZCHBV/bWHq5xNz/ZDoKaOb+nM+xmFVHP7xEPVUXdY3sYOOEsThEHCPk56mb7ZxoxP8xI1Ivo8oTinWty4/nDLsbruh3qE/UbzTPfxtwGou5ccGqEEJmJGY5XeT3Ouw+a2PO5tZwXrQ/DAL9c2sXeMltPCx1RcAEfOS0qEBL4xr/+DfzKmgBob6NSHdbdk8iGIu7phTWUqt1jCbmovYAyf1SeBWl9ZikBpZ3F+Jn569wiHWnYKzvW7W8zMYgckatkHSZuGIwcRcWfzSaW7VRXLT+TduIOSc6fXlHBKilfN4P6jWG34MI6kpc6pSTgEb9oprL2S7vdfgI9XOtlTS5rDdcyqvhx3PeGR7Mg86CH+F/yYyzQtcM0tZjti6Dcpa3FtquHZWbomShzMoR5VxI4wqlEjMKBXNV+M2OfHgYdjOtbvmYu X-MS-Exchange-AntiSpam-MessageData-1: sKSzSg3IrMpl+hZpZ9rZ3zHdCUXyWXzYDwo= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99df2a12-eabf-4f87-3bf9-08da10c53552 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8703.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2022 14:14:01.9591 (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: VD40haEesfS0RYZrT6BMcdfSkCJ2f+cZLcThThDwhb5hTji7hZUsKmp6ZcKYgS2YwFBgiWEkLeSvy5+OxWNhZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4418 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>; + };