From patchwork Sat Jun 12 03:18:51 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: 12316833 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=-16.9 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 95EBDC48BE5 for ; Sat, 12 Jun 2021 03:21:36 +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 5BFBF6124B for ; Sat, 12 Jun 2021 03:21:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BFBF6124B 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=l9Gn81K8nxPAdx5x7iR1EZUJLNKP7sS8PEVKoy/3MOQ=; b=WpDQWPAqovbi7C yG4JsLWdKfoid4668+YMNFEXtfn7nJ/md+HlJ8XhmD+I48v/nhj/4eq0yt7JkIyBqdhbOtmsN6m5h k4rJAwSALf6lbUnojs7ljmTcUU+SV/cTUp5Yk0nwfvOu/74HiAqrjO1LjJnfSmUQB3UHnE9tsN0TM BnXN6S/EBWNOizcDfXJTAzaNW/vqB6znZ8jViGR9WNtgbdtaqU0qir2PwgKsFlT+PXtgf1lp4LO/x js6NZaopDnMvMcJS38xjG3iC/WYrJnEHlctJfaXkTD2GzAww23J8MSjazJKVAK/sAIMUcv18OUKzt B25ND/Zk78UI/9tYvsXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lruB0-007eZC-Og; Sat, 12 Jun 2021 03:19:14 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lruAo-007eWa-DR for linux-mediatek@lists.infradead.org; Sat, 12 Jun 2021 03:19:04 +0000 Received: by mail-pf1-x431.google.com with SMTP id x73so5983549pfc.8 for ; Fri, 11 Jun 2021 20:19:01 -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=XV0Qk0BuzN6wUqR1vqGpn6yoZA5f4NQ5Xcg4vWZ1Rm0=; b=WT/Kkp678WFEtTw3tvRLUPoitu5HOoHei1zdyPbjAhsjxmzrwvuEzgNUScmSXqNMPO 7gQgBA1SHjCAAMEEGkmB0q336T+bK8MBfvWcnQ9Yfo6RFEtdN8JjhFQzrDDSUtdjYSrx muxMc9nmNj7RRIXzift7eLaEYB7rc/Q4Fdxgo= 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=XV0Qk0BuzN6wUqR1vqGpn6yoZA5f4NQ5Xcg4vWZ1Rm0=; b=mDH8xjeKARiFE2wa0C9293H0lnAPqeOZkBKhjHyRKN8UYYksIlhzLp1XKcuICYKevI 61ZwvQmzvJH38Lrj7c9LQ4YXHJfzj8OL0G4qw4XvyHQe54IZ5Ln9/R3PHtmjnJqySHqC xXdDgWE3pHFcB00MdzbqAiEkvSIUMC8KXqB8RqS3rtFTYY833LXKpFV+tD1KEBAymwdE bGLyJex9hV5PIg/e8euaDFoTNdMxqLgZHXRneWTQdr5/oR6tORTs81wH+ihmuH+1lUSQ bGK9+RbPzHo3uXS/sh67XnlqL+GOByZqK8IzaYBEDcEkNPIkxtastWJbPN3dkxG4Ktgf uIag== X-Gm-Message-State: AOAM533+vEjTrwtekW/9kKRn77nzbvefJfZZNVnxo+MTM4EjhLyAXe1z A+RjGlUkNCe6jl3ney02DUjNYw== X-Google-Smtp-Source: ABdhPJyaFFhvfnYwF8dL6T3ALuNk5LE5muzp+I5mHnEB4e3fDMZHvlimf7X0gry/boB49yEVQWSkvA== X-Received: by 2002:a63:4c66:: with SMTP id m38mr6617706pgl.157.1623467940393; Fri, 11 Jun 2021 20:19:00 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:cbbc:c8a0:4601:2039]) by smtp.gmail.com with ESMTPSA id h5sm6688519pfn.127.2021.06.11.20.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 20:19:00 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, maoguang.meng@mediatek.com, yong.wu@mediatek.com Subject: [PATCH v5 1/3] dt-bindings: mediatek: convert mtk jpeg decoder/encoder to yaml Date: Sat, 12 Jun 2021 11:18:51 +0800 Message-Id: <20210612031853.3115482-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.272.g935e593368-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210611_201902_503095_87AF0B60 X-CRM114-Status: GOOD ( 17.31 ) 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 Sat Jun 12 03:18:52 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: 12316831 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=-16.9 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 961A2C48BE5 for ; Sat, 12 Jun 2021 03:21:34 +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 5A19461019 for ; Sat, 12 Jun 2021 03:21:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A19461019 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=DtuqdEmFiOKU3ZgDqTD5wO5ZO8mld8zhSmZMKcmKeCo=; b=rN1Pykd7p4N/MO mfw9Z4HzORtcBeg8+TPbikcn11XlsGJVHyyREecasPwHUDft4IrFbZTfmID/mX1Z7aDKWqJ0pul14 aHUSbK9//7BOmZYmqNEDiV1zjXogO/VwHaUU2Ekp0kEsaMVU1CqvDoEc9lo8OSHRgwKIk/dc0KOXV cxCqTv64fvu0T8L5pDCYWZ+3FZhPrx9D7fvj02vyj61+P7GXyDltbqY6rKWkQoyfaRzV6DYYL/IB/ Iyc2u9ah0EKwda9BtpWaMgxEytzL6WacwbwJ5wWV4xMZScxGmcTtQv6Tg5nqs7DuX3kbbTO2f1bRK ftqe3qgIsY9RzGBfD7sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lruB1-007eZM-Fy; Sat, 12 Jun 2021 03:19:15 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lruAp-007eWx-2A for linux-mediatek@lists.infradead.org; Sat, 12 Jun 2021 03:19:05 +0000 Received: by mail-pg1-x529.google.com with SMTP id t9so3972424pgn.4 for ; Fri, 11 Jun 2021 20:19:02 -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=iZrBmMYE0pMOpeejrZ6SD6PbgBG0c1CSAN0mNTGXUKE=; b=TNgcUBunGafH3meocpCHNnKt/NA0dXXg11PA8MJLnXVu2euTusqY8Y6Omd0109ghCk H0AgZU349VZO8eu0pOFsXQzALup4lPXVYpemz/57GnFvlV8QT+sYZytIoXvsbBfXlbTN UMVeOMEPggAA0zdhBz2L62mGEBBfcTnLlRksI= 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=iZrBmMYE0pMOpeejrZ6SD6PbgBG0c1CSAN0mNTGXUKE=; b=pO3NHWhsKHtC5fnTHfod8CLWtkGQuTnnOgP0Eb/kuaK7W6zXbBApNpOrhGcr/lVrt6 TXRaUmJuFgG56l1swtQ7vmmKDtcjiS2kOZm1cBvDps7vnw00nJriGhw1S5XSfaokoKkk 0hRmkC7i1UsvG4WrbnQGGcdrB5NIXy2zHLrbo5jEaUyhyQghVv189j1lgJGOub+xtUxQ Icgd52MbcERdgNSzWUrY/yeC8+3KXByOJcsNyy+B0+zuzqU0Lpf7BqNUNEUrz2UpPz9g bz4GhFj5evIs5V4ZazW2YuNzMiKU4F5OId62qWKB/P4FsOFx/1jMSQixU9gPn6GNzr4X KoCA== X-Gm-Message-State: AOAM530mEW/L28hXHu6RyJYIDkNPo306D2fJzwdklvb5clEm0en7bOKN hrDWN0vQAxvFH9FkHcTg651EFQ== X-Google-Smtp-Source: ABdhPJzXg020oCP9I7Nnr9yMMU4Dj1q2AfTjBBfaTk9JMIl35vhu5mQFfDgjlMLikbvgRNYDPfH5UA== X-Received: by 2002:a63:f13:: with SMTP id e19mr6513263pgl.112.1623467942147; Fri, 11 Jun 2021 20:19:02 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:cbbc:c8a0:4601:2039]) by smtp.gmail.com with ESMTPSA id h5sm6688519pfn.127.2021.06.11.20.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 20:19:01 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, maoguang.meng@mediatek.com, yong.wu@mediatek.com Subject: [PATCH v5 2/3] dt-bindings: mediatek: Add mediatek, mt8183-jpgenc compatible Date: Sat, 12 Jun 2021 11:18:52 +0800 Message-Id: <20210612031853.3115482-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.272.g935e593368-goog In-Reply-To: <20210612031853.3115482-1-hsinyi@chromium.org> References: <20210612031853.3115482-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210611_201903_114752_46BD820B X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. 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 Sat Jun 12 03:18:53 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: 12316841 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=-16.9 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 D86B0C48BE5 for ; Sat, 12 Jun 2021 03:22:36 +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 9CF226124C for ; Sat, 12 Jun 2021 03:22:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CF226124C 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=Tbf3QVJkQIHOt7013tS9/+B3jNj94Qmzfi0y6OcmvCs=; b=E3i98g7zDBO/C5 ALtqNLp1FcHh0TKp5iBUFMc4YBlGfe+/SBd3WdDxtsI5YuC0vak1C7ZqoFmuDlDhhtC0C21d6yCsr 46jzI/sgMCHuosWlBkeXBDqJJBym+RG4ahxVnfoK0qj+n/UgLDkgXA7UGZH+GGMd+CyUrBTYdORlz ybFaP7UowN8Xndxy21bqQWW7s4xcVTlDgX33+/BrlXX78u11OHeGUetogRb4uSChBxV27woyvAHtv MQPqsF7cu93kw30FIlgDGrfkpbPthPeogYqY3PqmYSLsDQzFnAsDIihaHb1AUJsOi7Ap0ZUHQhvuo f6hA+4QBmoHtMGeg1vNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lruC1-007ers-E9; Sat, 12 Jun 2021 03:20:17 +0000 Received: from mail-pg1-f179.google.com ([209.85.215.179]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lruBo-007ep0-NS for linux-mediatek@lists.infradead.org; Sat, 12 Jun 2021 03:20:05 +0000 Received: by mail-pg1-f179.google.com with SMTP id j12so3977122pgh.7 for ; Fri, 11 Jun 2021 20:20:04 -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=4QwvH5bGqHeUyZVp5Ps3bAzGRgv84nKw9pL18XwdnBM=; b=iXquLxweg3SptlHKfWh1N9xBYQVkWZU+sg8cR2LhTOsGZuSLC38gAQ3ayu2fXU/VDI 4dCEYFZNzQAHfCoDNEQlOWz5o4Rm6+m40HjB5JXP0AqBNLvmhsCQteXRJl6BllHdtMlT JwmrP6sTE4Pug/FOpvakWoWM5eLQ5ujnYnHqg= 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=4QwvH5bGqHeUyZVp5Ps3bAzGRgv84nKw9pL18XwdnBM=; b=ALaniKJqCCgt4fL4ZE7bcojAOhElhcwBeq5yH15LTn4LwlNFJYPbamylShIAgM5ana k0yfdWquIixOB0MX6T4n+co0/3F5Ou01ksDoaPxxVwXrcVLbyZhKwx+NUgXbR9lHpj5U fiyeWQ0zzkpycWzx93dXezYJkyGk5DkaDEb7aOoNtFM4H29uNQrR42zb6fctaKEOFc5H OMxZFdYKAdSsLQ4kz/RgsASC1iRmrix0aC71ILAZqfDuGghNQAqtaGosjDLE2W5Vv/ww gIv8yDb9OuDeZcvhKOeYIUtQQL8xA5PkuUEyNH3sGlyjfMBRMmuge/JoOkjs4R/HJxPA NcyQ== X-Gm-Message-State: AOAM530y+ZmPg+1WElH3ShiiXtHoMQDwLRAr6EXMA1NzIPCIF1v0Nirx Z6UQgp+LV25PvVCOWVKFCjAsxw== X-Google-Smtp-Source: ABdhPJyWlvLaCN0zazKtkeyI88Zfmd5LHNUF4MilDnvjYVTdK+P5DUEdpdazd43Qm0f/JEM/rNbn3A== X-Received: by 2002:a05:6a00:16c9:b029:2df:c620:8156 with SMTP id l9-20020a056a0016c9b02902dfc6208156mr11231224pfc.40.1623467943989; Fri, 11 Jun 2021 20:19:03 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:cbbc:c8a0:4601:2039]) by smtp.gmail.com with ESMTPSA id h5sm6688519pfn.127.2021.06.11.20.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 20:19:03 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, maoguang.meng@mediatek.com, yong.wu@mediatek.com Subject: [PATCH v5 3/3] arm64: dts: mt8183: add jpeg enc node for mt8183 Date: Sat, 12 Jun 2021 11:18:53 +0800 Message-Id: <20210612031853.3115482-3-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.272.g935e593368-goog In-Reply-To: <20210612031853.3115482-1-hsinyi@chromium.org> References: <20210612031853.3115482-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210611_202004_784793_F4121871 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. 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 c5e822b6b77a3..d54b4532fc3f3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1329,6 +1329,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>;