From patchwork Fri Jul 2 10:23:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12355907 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=-17.1 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,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 7798CC11F68 for ; Fri, 2 Jul 2021 10:23:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3F2F361413 for ; Fri, 2 Jul 2021 10:23:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F2F361413 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yt+Dhu94UaOPuFE6m2MIjB+rl06wThctSj6M9UL+AW4=; b=APedJ40gCrh4cY Q3nVznVRlRK4JAh/6F/O2YfQh5cGI4AHp3PHzP5ZxKh+Dhh3LmGZ6bX23u3cgjpHO7u8V/ngs7V11 GHYWog0I0zpph38DpOIoQsg6mM/boC0ZWm6scCZ3WNYuoD1HRXN80LWD7pepxc5wGbaUvjBdtwpqs oUBmqc1LXxObFbOR44FFr/W078a7pJt8xA8fZw1ZmZ/axOiEQ5lJb2cntMHt7ss/64ZcYlNQEtf1t AINTuCsmBprGoYvVlFXuXMtIFMuKQT4kQF/m5rUZySdsAjnV24kMl/gVDgfkDPSjYENxN06chbc0r o+Ohd+YWRagfo+638FGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKm-002kuD-R3; Fri, 02 Jul 2021 10:23:44 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKM-002kn6-Oi for linux-mediatek@lists.infradead.org; Fri, 02 Jul 2021 10:23:22 +0000 Received: by mail-pg1-x52e.google.com with SMTP id d12so9096683pgd.9 for ; Fri, 02 Jul 2021 03:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UQMYs79zEZ9cRPxEWnt8NOjSh4NRvCnWnv+pz9y9wNY=; b=PwctM/niWuHFFDZngtCSzCOdsXOOeeTV0vHuTTdDqdnskpgMYuxNX4XNP6n6BZ7N0p 4V+LFpPgR91uvjNy8W9xpKOu38FlwITSFRjvGMKI+tXd3+yNn9X6PkDEl3dv9fqXNkI4 mxoHwFyTTX+LiwfG/ozYa/fhPWNewIIgf4tfU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UQMYs79zEZ9cRPxEWnt8NOjSh4NRvCnWnv+pz9y9wNY=; b=s3J0ZiSai7RrLh32X+MNaWUt7R9nT2s9EAiAFowZ6T3446oYeASdHu0wMlT/zhfU79 qCUpkr/n0ERP2GtlPcpqEDrYpKouRVnbqgiyOC1S01HF7r09PJiAUN36Cx39gQbYDBEg DxsDUasKWtleTNbp6US8R3tOv0lCRBB75/5HueBDitfNvR1TsPrzeNUFV38bUIVzSnDR itXhPRxuPXym7f1bqHSygJwH7OAYaN/uj49TDK28lBWnztnIz2tmHWbuMn8EpZiUYHzi psm8K8W9C1xuPRtzLZDpoW3lMZFE21P4qYoTJMqMLR3FDChuCJPBIWR1pL3IeKHeSJUE Rdfw== X-Gm-Message-State: AOAM533sHBXQRH9aXHyMzqN5DY2c7MRw5uc2nwOumabKYxycqPan1sQK xbLrYJKRyRfyaGJ5k36coEg6kA== X-Google-Smtp-Source: ABdhPJxXn/xM65ulk5EJtA5BL3WqwTO2Rmq/NSmSZHW63r1jiZiQitM6a1gZq/I/pQVM3jXtKYNt2A== X-Received: by 2002:a63:4e4d:: with SMTP id o13mr971062pgl.361.1625221396404; Fri, 02 Jul 2021 03:23:16 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:b63b:3ac0:4dda:fdd2]) by smtp.gmail.com with ESMTPSA id d13sm2863484pfn.136.2021.07.02.03.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 03:23:15 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , Mauro Carvalho Chehab Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, maoguang.meng@mediatek.com, yong.wu@mediatek.com Subject: [PATCH v5 RESEND 1/3] dt-bindings: mediatek: convert mtk jpeg decoder/encoder to yaml Date: Fri, 2 Jul 2021 18:23:02 +0800 Message-Id: <20210702102304.3346429-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210702_032318_836250_913DB98A X-CRM114-Status: GOOD ( 18.52 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Convert mediatek jpeg decoder and encoder bindings to yaml. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring --- .../bindings/media/mediatek-jpeg-decoder.txt | 38 -------- .../bindings/media/mediatek-jpeg-decoder.yaml | 89 +++++++++++++++++++ .../bindings/media/mediatek-jpeg-encoder.txt | 35 -------- .../bindings/media/mediatek-jpeg-encoder.yaml | 80 +++++++++++++++++ 4 files changed, 169 insertions(+), 73 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt create mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml delete mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt create mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt deleted file mode 100644 index 39c1028b2dfb4..0000000000000 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt +++ /dev/null @@ -1,38 +0,0 @@ -* Mediatek JPEG Decoder - -Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs - -Required properties: -- compatible : must be one of the following string: - "mediatek,mt8173-jpgdec" - "mediatek,mt7623-jpgdec", "mediatek,mt2701-jpgdec" - "mediatek,mt2701-jpgdec" -- reg : physical base address of the jpeg decoder registers and length of - memory mapped region. -- interrupts : interrupt number to the interrupt controller. -- clocks: device clocks, see - Documentation/devicetree/bindings/clock/clock-bindings.txt for details. -- clock-names: must contain "jpgdec-smi" and "jpgdec". -- power-domains: a phandle to the power domain, see - Documentation/devicetree/bindings/power/power_domain.txt for details. -- mediatek,larb: must contain the local arbiters in the current Socs, see - Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml - for details. -- iommus: should point to the respective IOMMU block with master port as - argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml - for details. - -Example: - jpegdec: jpegdec@15004000 { - compatible = "mediatek,mt2701-jpgdec"; - reg = <0 0x15004000 0 0x1000>; - interrupts = ; - clocks = <&imgsys CLK_IMG_JPGDEC_SMI>, - <&imgsys CLK_IMG_JPGDEC>; - clock-names = "jpgdec-smi", - "jpgdec"; - power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; - mediatek,larb = <&larb2>; - iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>, - <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>; - }; diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml new file mode 100644 index 0000000000000..9b87f036f1785 --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek JPEG Decoder Device Tree Bindings + +maintainers: + - Xia Jiang + +description: |- + Mediatek JPEG Decoder is the JPEG decode hardware present in Mediatek SoCs + +properties: + compatible: + oneOf: + - items: + - enum: + - mediatek,mt8173-jpgdec + - mediatek,mt2701-jpgdec + - items: + - enum: + - mediatek,mt7623-jpgdec + - const: mediatek,mt2701-jpgdec + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + minItems: 2 + + clock-names: + items: + - const: jpgdec-smi + - const: jpgdec + + power-domains: + maxItems: 1 + + mediatek,larb: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: | + Must contain the local arbiters in the current Socs, see + Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml + for details. + + iommus: + maxItems: 2 + description: | + Points to the respective IOMMU block with master port as argument, see + Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. + Ports are according to the HW. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + - mediatek,larb + - iommus + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + jpegdec: jpegdec@15004000 { + compatible = "mediatek,mt2701-jpgdec"; + reg = <0x15004000 0x1000>; + interrupts = ; + clocks = <&imgsys CLK_IMG_JPGDEC_SMI>, + <&imgsys CLK_IMG_JPGDEC>; + clock-names = "jpgdec-smi", + "jpgdec"; + power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; + mediatek,larb = <&larb2>; + iommus = <&iommu MT2701_M4U_PORT_JPGDEC_WDMA>, + <&iommu MT2701_M4U_PORT_JPGDEC_BSDMA>; + }; diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt deleted file mode 100644 index 5e53c6ab52d01..0000000000000 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt +++ /dev/null @@ -1,35 +0,0 @@ -* MediaTek JPEG Encoder - -MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs - -Required properties: -- compatible : "mediatek,mt2701-jpgenc" - followed by "mediatek,mtk-jpgenc" -- reg : physical base address of the JPEG encoder registers and length of - memory mapped region. -- interrupts : interrupt number to the interrupt controller. -- clocks: device clocks, see - Documentation/devicetree/bindings/clock/clock-bindings.txt for details. -- clock-names: must contain "jpgenc". It is the clock of JPEG encoder. -- power-domains: a phandle to the power domain, see - Documentation/devicetree/bindings/power/power_domain.txt for details. -- mediatek,larb: must contain the local arbiters in the current SoCs, see - Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml - for details. -- iommus: should point to the respective IOMMU block with master port as - argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml - for details. - -Example: - jpegenc: jpegenc@1500a000 { - compatible = "mediatek,mt2701-jpgenc", - "mediatek,mtk-jpgenc"; - reg = <0 0x1500a000 0 0x1000>; - interrupts = ; - clocks = <&imgsys CLK_IMG_VENC>; - clock-names = "jpgenc"; - power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; - mediatek,larb = <&larb2>; - iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>, - <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>; - }; diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml new file mode 100644 index 0000000000000..5e35ecfd21f1b --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/mediatek-jpeg-encoder.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek JPEG Encoder Device Tree Bindings + +maintainers: + - Xia Jiang + +description: |- + MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs + +properties: + compatible: + items: + - enum: + - mediatek,mt2701-jpgenc + - const: mediatek,mtk-jpgenc + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: jpgenc + + power-domains: + maxItems: 1 + + mediatek,larb: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: | + Must contain the local arbiters in the current Socs, see + Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml + for details. + + iommus: + maxItems: 2 + description: | + Points to the respective IOMMU block with master port as argument, see + Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. + Ports are according to the HW. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + - mediatek,larb + - iommus + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + jpegenc: jpegenc@1500a000 { + compatible = "mediatek,mt2701-jpgenc", + "mediatek,mtk-jpgenc"; + reg = <0x1500a000 0x1000>; + interrupts = ; + clocks = <&imgsys CLK_IMG_VENC>; + clock-names = "jpgenc"; + power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; + mediatek,larb = <&larb2>; + iommus = <&iommu MT2701_M4U_PORT_JPGENC_RDMA>, + <&iommu MT2701_M4U_PORT_JPGENC_BSDMA>; + }; From patchwork Fri Jul 2 10:23:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12355905 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=-17.1 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,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 DA9D3C11F68 for ; Fri, 2 Jul 2021 10:23:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 98BD361410 for ; Fri, 2 Jul 2021 10:23:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 98BD361410 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7qGgF8B0QTzVGl40csCXP8w8pwJD2AZzILWRTY/KOCA=; b=IRIeP+6eV3KGBz teynXB+WDbEyCliLjxncZlWmlumaWpxGlAnHiQdLC3UlrKKyCkbfjEesCcELj6Q1kvxhC6ttZFwnZ Mc0xE+j0y3P6k44nu/n//YlgQNM1sjX7AwnfANRob2kNIk5EQh1Lpf0M/vx/rGTRZfqBAhDuJ7L84 /dIHQraGJnq9F5JBevir5ssu/INRvXNDP+cq3DQlq5Ou5B+An+Q3VqVcBqm0Nvfv7R3ex+LgrjiPp tOfC12fYMKugHfmNffst0JSDTf3DUT5s9SwFyIrdUVSPQ0XJpW/ljwSOknwmGTT/zBsjyHSq5L+5q 5hRKYbglxXqA8aF3m7Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKc-002kre-2Y; Fri, 02 Jul 2021 10:23:34 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKN-002knO-GR for linux-mediatek@lists.infradead.org; Fri, 02 Jul 2021 10:23:21 +0000 Received: by mail-pf1-x435.google.com with SMTP id x16so8509126pfa.13 for ; Fri, 02 Jul 2021 03:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UhoYD5NgEf4BoTnpIK3bxc26o2f3DMv5QYbRT9lyhY0=; b=ei1C7w4C7ILwqSzLafB9/8CxwhsIANZcBJoELDjHYON5cDQwlqXriDSKn2Q14wem6U CynjpZ4A2/H8qW9XN6UcfOUHVrH/WFLKZfLQUTilkI84+4dFHoVgtlZTdqnkdZMirvgN OLlUmlp5Wm2mrB1Gmr3KYq7DOhdP7BHGJB37g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UhoYD5NgEf4BoTnpIK3bxc26o2f3DMv5QYbRT9lyhY0=; b=PLtoCDUGjiMz0z6nnkP2Zn6Kg44Ut5VvePAUXdJu8ELgnsiWt3UuVnJCmWSeHSyUp0 j9eNG5Y0euuTknIdy3L57q676woKsUfNGsBL9oXVkcTg/gJ8u5C9i8x2Qn8MyFoaBxyI kQ3Moe/9GYw6w/n7Vo/ruDQ5q4DLhDYVEVCn5eVUEIMuNT9aN+3K32Namv0eMvmbIdpr wdYJW6baL/DC0qWSR5yUL3hsw7WuBJKgfqh29GAKeN9I32grKOAKy0AtxzGgJBLWrKjk lAUEQPFbwEIV3CvivlscVg4Giv+aABz/niidn2XEy8f9ciKZliLUrM+Bq4Vk8sJIZJRa uOeA== X-Gm-Message-State: AOAM532n279ZOazjjojQQxD9dQ9neekHsrwrh0ypdXjPMf/fOYNTtYUi gv63MRsmVzxA6FptVUfmD5pIEg== X-Google-Smtp-Source: ABdhPJy/ZWQuZSLe/dkNz3Q11/wNxXdhcy1mjRjSeGuCv7THVpU48WmxfkQul3NL4GEqZ3CiA3JC7Q== X-Received: by 2002:aa7:8f2f:0:b029:313:f1e6:d576 with SMTP id y15-20020aa78f2f0000b0290313f1e6d576mr4457944pfr.25.1625221398436; Fri, 02 Jul 2021 03:23:18 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:b63b:3ac0:4dda:fdd2]) by smtp.gmail.com with ESMTPSA id d13sm2863484pfn.136.2021.07.02.03.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 03:23:18 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , Mauro Carvalho Chehab Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, maoguang.meng@mediatek.com, yong.wu@mediatek.com Subject: [PATCH v5 RESEND 2/3] dt-bindings: mediatek: Add mediatek, mt8183-jpgenc compatible Date: Fri, 2 Jul 2021 18:23:03 +0800 Message-Id: <20210702102304.3346429-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210702102304.3346429-1-hsinyi@chromium.org> References: <20210702102304.3346429-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210702_032319_620073_122A42BB X-CRM114-Status: GOOD ( 10.11 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add mediatek,mt8183-jpgenc compatible to binding document. Signed-off-by: Hsin-Yi Wang Reviewed-by: Matthias Brugger Reviewed-by: Rob Herring --- .../devicetree/bindings/media/mediatek-jpeg-encoder.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml index 5e35ecfd21f1b..fcd9b829e0366 100644 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml @@ -17,6 +17,7 @@ properties: items: - enum: - mediatek,mt2701-jpgenc + - mediatek,mt8183-jpgenc - const: mediatek,mtk-jpgenc reg: maxItems: 1 From patchwork Fri Jul 2 10:23:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12355909 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=-17.1 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,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 37CD6C11F68 for ; Fri, 2 Jul 2021 10:24:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F31F961410 for ; Fri, 2 Jul 2021 10:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F31F961410 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MoIZq963znxw11NOOgQhDogITy3Zj91qVw29UIrBAuc=; b=ILJG6rXeV7I+So 5dKNfwR6aEjg6Gdp9vVujAM0cNtG8G5CjFYmWO+rsS2a8o6B3ij3+dffIkSP7DDHbZ6mrzlmJyEns vi8T6AHa3vP3kwMOOfC3iEpaCz2GNzwAfkOe/Ipam+Y1IfZKdIzoLMSHw8HIH8xVCUP5A2syE5TUS rCM86p99cjakLzYavpAxQQfpIWo8UE4xDXleo9IB5UUjjEFGLLS2feMqFPjyxoSKJ+DjY8NG27jw7 5/7cJJmcGsyzbFLobA/wUfSFdxhjQs2lARta5sE9Q8ASrgrTLZVuf7FtAdWM6MhlEU31HxJgBpdt4 Ro1Sjp5wW+m6Ej2rJszw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKz-002kz4-0Q; Fri, 02 Jul 2021 10:23:57 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKP-002kow-Ia for linux-mediatek@lists.infradead.org; Fri, 02 Jul 2021 10:23:23 +0000 Received: by mail-pg1-x534.google.com with SMTP id m26so9086619pgb.8 for ; Fri, 02 Jul 2021 03:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jp+Bhq4lKPiXlt4EaMla6Yc+MtggvqEHex3ImjFAmEU=; b=PWpyV8RSDVBda3F+KD+HwhmTw+MqtWuLLQXquKBpQIH5TTz0HMydEa6poyzI2T46Mz bKv4jJquVOihYOLEiuVq351KwNgctRsTxbZKAsXMJNP90FCyWbwCdXx+XiRORyGlHFKf nNBf1bIu4EkQxHIs3EEqgPGOl4UCgHvA3XDfE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jp+Bhq4lKPiXlt4EaMla6Yc+MtggvqEHex3ImjFAmEU=; b=qCYO5C7p8/9x36Bli1/zLTQzQG0CkF76k6nON0m4MmIdsMxPf3KO/SUpGkYEAXoLUD rfTBtbutVkO1gPGgWS1hCFkViNrw5S3AttwQkoQav9RqkPg9x3k4RrpMOInbGGKp14LO zprLluVLl6RO0u8BzKaMyMvnrsO7lV6kNox8YTS9WeY04M52BBH84c0BUwCImjfj0tzT vKDzreAF3QhtDTKQLIFm+d+oT+omn+LIpljT5qeINxmrxqn8PCsTUJZp835/3E14tu0C PL0+Pux8ogEzvFUtDGmygdcl2aSAW9uxz1grFMM1OQpfaftJ9fXKNfgyJA7pA/Z8E2lw mFKw== X-Gm-Message-State: AOAM530LhE5Zi4rFumknLuJkyXxNMNQ7iXyPxBz/UO7ltQ9kKEYZnBId iqv5uk58ZGBGSJp6MVIPKg1gXQ== X-Google-Smtp-Source: ABdhPJwoOPVoCSfUpMXiGFWZ9icm7QWpEkvqB7rr6mfeotvi+E2V0XfrHm9+YgiEdsFt0c9hFbdIcQ== X-Received: by 2002:a05:6a00:15d3:b029:308:b2ed:6560 with SMTP id o19-20020a056a0015d3b0290308b2ed6560mr4603080pfu.32.1625221400502; Fri, 02 Jul 2021 03:23:20 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:b63b:3ac0:4dda:fdd2]) by smtp.gmail.com with ESMTPSA id d13sm2863484pfn.136.2021.07.02.03.23.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 03:23:20 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , Mauro Carvalho Chehab Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, maoguang.meng@mediatek.com, yong.wu@mediatek.com Subject: [PATCH v5 RESEND 3/3] arm64: dts: mt8183: add jpeg enc node for mt8183 Date: Fri, 2 Jul 2021 18:23:04 +0800 Message-Id: <20210702102304.3346429-3-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210702102304.3346429-1-hsinyi@chromium.org> References: <20210702102304.3346429-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210702_032321_684294_0819BD1E X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Maoguang Meng Add jpeg encoder device tree node. Signed-off-by: Maoguang Meng Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index f90df6439c088..ca8ad953de914 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1435,6 +1435,18 @@ larb4: larb@17010000 { power-domains = <&spm MT8183_POWER_DOMAIN_VENC>; }; + venc_jpg: venc_jpg@17030000 { + compatible = "mediatek,mt8183-jpgenc", "mediatek,mtk-jpgenc"; + reg = <0 0x17030000 0 0x1000>; + interrupts = ; + mediatek,larb = <&larb4>; + iommus = <&iommu M4U_PORT_JPGENC_RDMA>, + <&iommu M4U_PORT_JPGENC_BSDMA>; + power-domains = <&spm MT8183_POWER_DOMAIN_VENC>; + clocks = <&vencsys CLK_VENC_JPGENC>; + clock-names = "jpgenc"; + }; + ipu_conn: syscon@19000000 { compatible = "mediatek,mt8183-ipu_conn", "syscon"; reg = <0 0x19000000 0 0x1000>;