Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1857375pxb; Mon, 22 Feb 2021 12:49:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/bOAyfPH9Q5Uoi2odfNOgq7XdadHy8ZWsWZhNqzwNsl6knlBHQwUiuVc+en+HU4JVMJhn X-Received: by 2002:a17:906:b055:: with SMTP id bj21mr22820535ejb.355.1614026995349; Mon, 22 Feb 2021 12:49:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614026995; cv=pass; d=google.com; s=arc-20160816; b=eq0sLK3HWXeW2P7xj/RE1au0PGu2WDesuVeVLr4S5F2nNydawI4saYg/3ZsMX04Ka+ 83LSWd7F66QX9UZq7Ez50nwAyY1vzxToFUDrkYsQSE+pXKMNxtmMHhic3aU+hZtHlmm7 bw1++rPTNrcT/vuSWLaGh/cyky+FZeiTo/0FXYDscb5JGVcK3o0ZKtFfJi6A7uFyLdP9 4s1k1ptAu3aUaGWJGqAUzGWcEQzxINppsOPCJ7NxXb/CesObtxGaXTxIfWB+ibkSdGmT X86SKsY3TxuYZ0eP6zIjvqtq3ssiMngH5+jyZFfkZuTgmAKx2VfaNJfvqhNwPc46u9Zn 6ftQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uj1VPd+1MHpWEAhTg6aEoVSLhrHzw9uyT2URHulsN7o=; b=jhk2ECurqPXoVm+zvY65Rhz+dH/oCQHdWePXFlcXP75nYhDfwy4Zs7LjPaK+mVqvEb Nu5hZLuRA1ZGpAx1F8B4i61pIgce9+0n/UgqMX2j0iNPljRuBM8B/2O36p2CQ/67r5YH ghmL6p3Vn3mqnAzEXayT5ZXSixE0LiGqQNlemof0kRKB4zmhRNweSE/0ScWTcyqERpb5 zMTCfDQ4miQ31CcUVa299sRHn5foQfFvxipKVj97DFlt6kMZ2m283CN95K4E8U/6ph9c OpE0P63p5LkgmdVE86vuSKge6imlnXqYagN7jDGIoVuVMfHgn85LXfoAz/6X3l5Q+uQn Ks/g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=cOUfBKY4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.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=fail (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 v5si12707146edc.346.2021.02.22.12.49.31; Mon, 22 Feb 2021 12:49:55 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=cOUfBKY4; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232897AbhBVTMA (ORCPT + 99 others); Mon, 22 Feb 2021 14:12:00 -0500 Received: from mail-eopbgr50048.outbound.protection.outlook.com ([40.107.5.48]:46215 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232702AbhBVTJk (ORCPT ); Mon, 22 Feb 2021 14:09:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IocNrLuDB8ZwBAj4yekOsokA1ZLpN2SAqBTpTRs/+TjqWgbAzB+O6jKfs9iKA4hEK+X7zH3qYykjQbUfA+pXpgT+id/AOhY6n7nf/SkvJGUajt/SqtY9jLbvuL4x/iMLxTKVRi4b0QNVzh3HnYWNE5La74Djxa8j0RoTjdP0c3W0UatoVaZuZNmzrWOKFPJuNeDeGt5UGYsggE6BAhXZy4FhZ00rTPtdps5ew0sb2AkILlp4ddr61QqPeebsbEjyn/SZ3RoVWFOSZHQzI8lz2ic1SM6zVDqcim0U+ysdkE3M9DCNvQYIdohF8aZnJFmra28q+Hz1HTgyGwVZ574zhA== 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=uj1VPd+1MHpWEAhTg6aEoVSLhrHzw9uyT2URHulsN7o=; b=B4KB0EQYNHRF2bEFpzgHhu5LD8Z9rXhqoWEx5VpsK5PdoUy+iEChy6bzkoj9sOqRpeJTgi4rqi7dwFp6Gfib1/d4zVYVIbLDScfFHwfaoUU2k4P1gvFYDyGL9wYNI9vMB5PYl/o0eVv0L2g4uZ69BYFnk17nszXVgc0L1c3bJefINPaQ5A1JlSNIgxM7/zUULSiWR3iCmPifOuvcbToDb1SqcZaLfP3clkbafT92KUSaz0OMak3FeXxdbwoai/W2a01/PmoJGS7EXnVUtqNzrschJbpPBty1G99PMzIjQbpNcWfh8immfLjiqD8ZkATm87ecWqNkzcj54wwlETos5Q== 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=uj1VPd+1MHpWEAhTg6aEoVSLhrHzw9uyT2URHulsN7o=; b=cOUfBKY4+IxUNPHVHMRrvEvkDl7cw3cWOh/nH20L3qBtYCsQs7A4iaVeTge8+B0NEeEkO5tpuzAM0R8NazXTUpkpan7vBKZJuNWSgMc98RqMTecdVuorlNCbkPI/XvToG0KMxJ1i3LKFB7TNJ0jx8yTCHEjHhg8JkhaFzINttlU= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM5PR04MB3137.eurprd04.prod.outlook.com (2603:10a6:206:c::18) by AS8PR04MB7591.eurprd04.prod.outlook.com (2603:10a6:20b:297::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26; Mon, 22 Feb 2021 19:08:09 +0000 Received: from AM5PR04MB3137.eurprd04.prod.outlook.com ([fe80::618c:8b68:e3d9:a8c6]) by AM5PR04MB3137.eurprd04.prod.outlook.com ([fe80::618c:8b68:e3d9:a8c6%7]) with mapi id 15.20.3868.032; Mon, 22 Feb 2021 19:08:09 +0000 From: Mirela Rabulea To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, shawnguo@kernel.org, robh+dt@kernel.org, p.zabel@pengutronix.de Cc: paul.kocialkowski@bootlin.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, aisheng.dong@nxp.com, daniel.baluta@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, mark.rutland@arm.com, devicetree@vger.kernel.org, ezequiel@collabora.com, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, dafna.hirschfeld@collabora.com Subject: [PATCH v8 2/9] media: dt-bindings: Add bindings for i.MX8QXP/QM JPEG driver Date: Mon, 22 Feb 2021 21:07:31 +0200 Message-Id: <20210222190738.2346378-3-mirela.rabulea@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210222190738.2346378-1-mirela.rabulea@oss.nxp.com> References: <20210222190738.2346378-1-mirela.rabulea@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [86.124.171.30] X-ClientProxiedBy: FR2P281CA0026.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::13) To AM5PR04MB3137.eurprd04.prod.outlook.com (2603:10a6:206:c::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (86.124.171.30) by FR2P281CA0026.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.8 via Frontend Transport; Mon, 22 Feb 2021 19:08:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5d43e338-0928-46cd-6ea8-08d8d765319b X-MS-TrafficTypeDiagnostic: AS8PR04MB7591: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bfJZui0kx6qhjK1xwH2YOM3AcNIEbv2cNpFQqz8TFx5RTqRcmxy6+0D+AfCbneNcxYcAUEyZZ5zl8Zh+KPYM2u8QG/T2fU4YwzLB3IJh1te3yIKY6mX2NDPOj4Ln4vWBumB5fr825g1C8nnL/q2kK2KPM5ZIeKOceN7rMym+H3mpEGj5/Thzr5QTFKSfaieYgM/+rwFiRQ3PWOWv/KszVDszlnxpNWGUuomzDS+MhiV1vsHdosu848tyBOCXjxaUUXvdtWAMsU0vvZox9JsnewbJ8/O9bt4tLinmvLgkqdxe+sakRjYdMhVty2grnWDEcagWfs1Hr8PgY3xV11fNNNwGtlgP/xR0E8yhC2x4K9o9SredgeOuUXDfemCFx04glpDHq7/N00BVw11BspvemOWX4N6YDNMNPY3uShZqTijYwQ4vBdDbTfmHPovvrjhckPFh0Ld/ZJOYPzgdy8JUUc5wircBr0N/sOD5tuc22Ua03Qtx9oX3m7tA9CqfWg+vrXDwovU8GcmtZSP/aAlt8flbsQZayc2ZwtTL/Pi5G2wX5u+HbMEKh05xxg2aqT3TkmQl/ZbdOB2I1ZzKGl1DHPvG/wp5Yimi/KwX3uELfFG410O7QbJvrTDwz3wn/5zGjOEtPtDLGKHa7qXvtQEn9lu8rVvIi5KwQs/0mjxDs8c= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM5PR04MB3137.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(396003)(346002)(39850400004)(376002)(316002)(6666004)(2906002)(956004)(2616005)(52116002)(8936002)(186003)(69590400012)(1076003)(66476007)(6506007)(86362001)(44832011)(66946007)(5660300002)(478600001)(66556008)(6512007)(6486002)(966005)(7416002)(4326008)(16526019)(8676002)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?dYigkukjpn8C4G7sipTZQG7GxaqiI1TCRk2Hb9zq3DavUYSpQ1xOghcJP8IP?= =?us-ascii?Q?WwNCj+0xjcc5uWgEvb1GY6uVxwwHRdcEOWA+jvsRF/e6Gm/FQ0Kp0rtosHQR?= =?us-ascii?Q?CaEd68yzBTqbAUAC/QyOfi2mlzI3Dl2yIEoQYfHfUvruS3xwTtrlW1BlKj9Y?= =?us-ascii?Q?Vte8JoDkYsQxvOfRCjJJg5HGd/zuM741tCKHZAgALcgUxkSHBoG4nQHCmx1l?= =?us-ascii?Q?pO7aPTGBxs5QnR0gNyyl9OhEmDQhqXkWPevPgbqWYvJK3BfW5FNMG3h3eNt9?= =?us-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pLgaW+OZbfcRHykI?= =?us-ascii?Q?FwVQwIu38mzCFOnFk79KuZC4cyzs+mWhxgh0RycSpt5OVDd+lKmOvsC+MlLj?= =?us-ascii?Q?OwbcZLXgmZHSrjLkLlfHT9wi1QqD8QSV5Nu+yRDJH6Ipa9QGEzxT+g1F9qAs?= =?us-ascii?Q?D60+tG2C5ypklDglppHq62Z2?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d43e338-0928-46cd-6ea8-08d8d765319b X-MS-Exchange-CrossTenant-AuthSource: AM5PR04MB3137.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2021 19:08:09.8502 (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: YY6TJOwfAif52YyhnfDLliH9g7zf2B3/0CYCQSQ0J0drOL92oHpY01lK2+2SfuC70l9iyGOIs1SKTkUim6+/3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7591 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mirela Rabulea Add bindings documentation for i.MX8QXP/QM JPEG decoder & encoder driver. Signed-off-by: Mirela Rabulea Reviewed-by: Rob Herring --- .../bindings/media/nxp,imx8-jpeg.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml new file mode 100644 index 000000000000..5d13cbb5251b --- /dev/null +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX8QXP/QM JPEG decoder/encoder Device Tree Bindings + +maintainers: + - Mirela Rabulea + +description: |- + The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs is an + ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline + and Extended Sequential DCT modes. + +properties: + compatible: + items: + - enum: + # JPEG decoder + - nxp,imx8qxp-jpgdec + # JPEG encoder + - nxp,imx8qxp-jpgenc + + reg: + maxItems: 1 + + interrupts: + description: | + There are 4 slots available in the IP, which the driver may use + If a certain slot is used, it should have an associated interrupt + The interrupt with index i is assumed to be for slot i + minItems: 1 # At least one slot is needed by the driver + maxItems: 4 # The IP has 4 slots available for use + + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + minItems: 2 # Wrapper and 1 slot + maxItems: 5 # Wrapper and 4 slots + +required: + - compatible + - reg + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + + jpegdec: jpegdec@58400000 { + compatible = "nxp,imx8qxp-jpgdec"; + reg = <0x58400000 0x00050000 >; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, + <&pd IMX_SC_R_MJPEG_DEC_S0>, + <&pd IMX_SC_R_MJPEG_DEC_S1>, + <&pd IMX_SC_R_MJPEG_DEC_S2>, + <&pd IMX_SC_R_MJPEG_DEC_S3>; + }; + + jpegenc: jpegenc@58450000 { + compatible = "nxp,imx8qxp-jpgenc"; + reg = <0x58450000 0x00050000 >; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, + <&pd IMX_SC_R_MJPEG_ENC_S0>, + <&pd IMX_SC_R_MJPEG_ENC_S1>, + <&pd IMX_SC_R_MJPEG_ENC_S2>, + <&pd IMX_SC_R_MJPEG_ENC_S3>; + }; +... -- 2.25.1