Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp347680lqo; Fri, 10 May 2024 01:28:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgoY+Zs1BbmbBw9KQVAizb4Y9h3PyeWbVoH81qjDxZjNOC3qSHgPComHZZ50XyVVZvYHg2Sl8taxMX5No4c1DgWGsfETd8z4vuB55HUw== X-Google-Smtp-Source: AGHT+IEPqFJOYk4NaAwBsOUKmweJlXKbFXGqOrbnbEWU0EWrgeU3xj9tVwcrBk9sNRP1dMOmExw+ X-Received: by 2002:a50:ab56:0:b0:572:68d8:dc37 with SMTP id 4fb4d7f45d1cf-5734d67ecd3mr1268583a12.30.1715329695579; Fri, 10 May 2024 01:28:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715329695; cv=pass; d=google.com; s=arc-20160816; b=B6uImqsS6ZlUj5/MZUIypAjcR7R+G+6cL9UmpLIzDcboccAsLwxrZRZEcktw2yBkRi 1yBHndwLfy06aeuHtM3dv3BnCQ4JLO5G+LKwOTaOMFZz3gCc5Lba/THhNLDETqdTsk8J fLCkkGaaovOQhzEfwhfsOGAjYcxcj4SjwYeh/6x0728BSSkKkOs+kEIlI0GCY56thJW9 iKvkkad/mgmbu3VcmqHrgZu/D1yJGzcKcqcSxbtvudIS5C6dAAKQks2t24qI7dkIpSTe ehst9Y8yl6X220ZqINe7cnLbazxBdl1+Xizzbzt5QmLxD8kFNKAU4c3Prs2d+UhmKAwn wRwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RrQgSOOB0K/kPhInsXq/vXswdEz0kzfHdTfIqv6m4Mo=; fh=OSIR7GL9fg023HZPlsI8qVdE5u7dxhE2qB3y5LFLFxE=; b=RDrWMYjGWKkRyGNhGWfrxtU/MJjCl2tuvDFxvkqNW0vjEIoB8ZpHginjnVgXouecYq eEFmoGVGTqFwBNRNkq9LudFJMZcNgYu0ncQkk9KvOmGUFCG+y4yt9//fujl6tnuXdKii A3nr7e+ZTH150EY/hR4p6fEfdQ7Nd6tdIDUV6v4K2mgxx9uMe0uHw0oin77yX7PN4i57 01AKdRQkSaDSKyWvi8bO7JCXtVx0MyotGh2l/d2V1AW7cquUFzDvekMLW6PvBszjNZfu nnIRAmnTwFbqqoaa3xuuDdr7zgbWP8oNwVKSUp+MoMggwzZ/+4qYum6hCKqGrXnX7b2X 5dgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NZZ1jBf+; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-175435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c36e5e7si1651297a12.561.2024.05.10.01.28.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 01:28:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NZZ1jBf+; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-175435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 268071F2244D for ; Fri, 10 May 2024 08:28:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 130C015FCF6; Fri, 10 May 2024 08:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="NZZ1jBf+" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61351C136; Fri, 10 May 2024 08:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715329683; cv=none; b=LmgL58Tcq7YZAyii9nZUGf9GQGGyoNxLVCqCJQkfztLnAvr1NmxWYip+gCVcLaw423gbowZG0uegJ4V3mnZhqXfkJn2aSysUNGdgLL/gFSiLUi4sBCzHmgiwv5Z6BcWuLd2jLjVyDqxHPUuBwZfp2uANnUhVx6UgxTx4jj5l8XI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715329683; c=relaxed/simple; bh=Th/MNqgPiNDw0WzqEWeeybcUPLMcePATe5G9KwRXADQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YmH7lYgqNmqAFDx99m0511vWivOv9/fMO/cJq3upYI/96EexMKyZ5SUCA52mx03FHOFQXJ+Gm651yVP18YwLEWwXJCl2fEPJT2aNsJK1Z908PC3PMAqUUzl6TrPjz1Z70bPtkqbH+4TYSOgeaf8BGi7KFSUH0XYwzlLdwfPEYt4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=NZZ1jBf+; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44A8RqaF015904; Fri, 10 May 2024 03:27:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715329672; bh=RrQgSOOB0K/kPhInsXq/vXswdEz0kzfHdTfIqv6m4Mo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NZZ1jBf+mO8gotoKbpqlnOo9DVJYEUwaITsv/AQL6W9bSL6XcUV2JdC4aiwB939gy H6R7n/mSAifJK+AoXU4fxV2joVjQhS87aZIV91yOs8qClR+kJbBI2Ee5TZIJcx9Te4 85Ybt47gEq/W9ZKMDUOJ4aIOFiLHlyH8sIIOr9GY= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44A8RqoV013507 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 10 May 2024 03:27:52 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 10 May 2024 03:27:52 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 10 May 2024 03:27:52 -0500 Received: from localhost (ti.dhcp.ti.com [172.24.227.95] (may be forged)) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44A8RpjQ058552; Fri, 10 May 2024 03:27:51 -0500 From: Devarsh Thakkar To: , , , , , , , , , CC: , , , , , , , , , , , Subject: [PATCH RESEND v7 1/8] media: dt-bindings: Add Imagination E5010 JPEG Encoder Date: Fri, 10 May 2024 13:57:50 +0530 Message-ID: <20240510082750.1266236-1-devarsht@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240510082603.1263256-1-devarsht@ti.com> References: <20240510082603.1263256-1-devarsht@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add dt-bindings for Imagination E5010 JPEG Encoder [1] which is implemented as stateful V4L2 M2M driver. The device supports baseline encoding with two different quantization tables and compression ratio as demanded. Minimum resolution supported is 64x64 and Maximum resolution supported is 8192x8192. [1]: AM62A TRM (Section 7.6 is for JPEG Encoder) Link: https://www.ti.com/lit/pdf/spruj16 Co-developed-by: David Huang Signed-off-by: David Huang Signed-off-by: Devarsh Thakkar Reviewed-by: Rob Herring --- V2: No change V3: - Add vendor specific compatible - Update reg names - Update clocks to 1 - Fix dts example with proper naming V4: - Use ti-specific compatible ti,am62a-jpeg-enc as secondary one - Update commit message and title - Remove clock-names as only single clock V5: - Add Reviewed-By tag V6: - No change V7: - No change --- .../bindings/media/img,e5010-jpeg-enc.yaml | 75 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/img,e5010-jpeg-enc.yaml diff --git a/Documentation/devicetree/bindings/media/img,e5010-jpeg-enc.yaml b/Documentation/devicetree/bindings/media/img,e5010-jpeg-enc.yaml new file mode 100644 index 000000000000..085020cb9e61 --- /dev/null +++ b/Documentation/devicetree/bindings/media/img,e5010-jpeg-enc.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/img,e5010-jpeg-enc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Imagination E5010 JPEG Encoder + +maintainers: + - Devarsh Thakkar + +description: | + The E5010 is a JPEG encoder from Imagination Technologies implemented on + TI's AM62A SoC. It is capable of real time encoding of YUV420 and YUV422 + inputs to JPEG and M-JPEG. It supports baseline JPEG Encoding up to + 8Kx8K resolution. + +properties: + compatible: + oneOf: + - items: + - const: ti,am62a-jpeg-enc + - const: img,e5010-jpeg-enc + - const: img,e5010-jpeg-enc + + reg: + items: + - description: The E5010 core register region + - description: The E5010 mmu register region + + reg-names: + items: + - const: core + - const: mmu + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + jpeg-encoder@fd20000 { + compatible = "img,e5010-jpeg-enc"; + reg = <0x00 0xfd20000 0x00 0x100>, + <0x00 0xfd20200 0x00 0x200>; + reg-names = "core", "mmu"; + clocks = <&k3_clks 201 0>; + power-domains = <&k3_pds 201 TI_SCI_PD_EXCLUSIVE>; + interrupts = ; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index c675fc296b19..6f0f077e0427 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10762,6 +10762,11 @@ S: Maintained F: Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml F: drivers/auxdisplay/img-ascii-lcd.c +IMGTEC JPEG ENCODER DRIVER +M: Devarsh Thakkar +S: Supported +F: Documentation/devicetree/bindings/media/img,e5010-jpeg-enc.yaml + IMGTEC IR DECODER DRIVER S: Orphan F: drivers/media/rc/img-ir/ -- 2.39.1