From patchwork Mon Dec 6 13:04:23 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: 12658313 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EE3F5C433EF for ; Mon, 6 Dec 2021 13:04:45 +0000 (UTC) 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=vfkGvZBSfaR/pg3vU8X0gQGrJjsWk0o+pv/gci33WKI=; b=xZ5y2pwUG2HfHA VPMfIxspTA8l0ZeTjYQR2wtaA4SSme3mmAVWwSX8NKtmow5HwMUPTO7k+A74sXo8HZ3LNcsyLE0bD zyRfvuETctMJ+/b3AcxnODnWCVkftPN8LiPjiQTYuVn2kmacnZikl2IlbFtFeYbWAu/ijS8hnTgoa ca5TUfF7+6dIy5aPTmQmXChJ3y7vS2y7PECxJmu/+Igcvy5XZH6zkhHku3J+Jm7Xvk8iIlp5D2RMs hKf1bUr8Gtcm2GQRtgJvxpNVM3/EDm0u2RSUuNfnwW8XzbmmhhXnGoAJIGJpZo6gzJsftBuosD3R+ +srYHns/A7EHd9w8tcFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muDfa-003tnz-IE; Mon, 06 Dec 2021 13:04:38 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muDfX-003tlM-2M for linux-mediatek@lists.infradead.org; Mon, 06 Dec 2021 13:04:37 +0000 Received: by mail-pj1-x1034.google.com with SMTP id p18-20020a17090ad31200b001a78bb52876so10755361pju.3 for ; Mon, 06 Dec 2021 05:04:33 -0800 (PST) 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=d+Fgu1qSx2f0dhJDqHDpiwW73ReZkuYvOU6/ErlqIf8=; b=lwnUredu6XU1WNNsQk8jSMi3DqVgqmVWIU7332HtwNzniM5GqOGZuKAAKk3+39JuGw LJivOmQE0ivr5esLy45HvpitVlJ8C8QbqTvDTA8um4Im7pfuiqAPRbevpZjHfkX6zRuH txEhmCUCJimLhPfeFJKZIDBxRJGKxSkic19TQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d+Fgu1qSx2f0dhJDqHDpiwW73ReZkuYvOU6/ErlqIf8=; b=VrRw7Ura4QcUg5Z/h+cW6BNQq8HI2rxLIZBusBMjz7IHyZbmM/yRVYZe7bMmldAjyB 6eoYNJP7rrrj1j1hfQFz1M3eobtEJJWC3LuqsynYEND9RpPfXUCmkVVJpr80CSZ3/IDK a2caBRu+I6uSGWexcfCTA2ML2uepSiTPVTnradb9DSNhWcDZBbx23KHg1F4BoGP2GoIq ptTwT1yy+2Ttzp8GqzzVvq6pyDzy75cRH8snGwoGkLAYYtzqXNm1Y9vDpW+wClzhe8UD 3H27SibhXp4EdTmk/ml1H55wz/ovTEPLfaAXwzHCocHEpErD6srxUCD1zJw03OAmapVu bIGg== X-Gm-Message-State: AOAM530Bk1PLAzKltF5g+9FgKjbBkdkkgwyk2q9d8XcVaZjEeN1+2X3l BHm75S6SDVk/sjLXSdNSc6rF8A== X-Google-Smtp-Source: ABdhPJwn+JSoGJxO3LQdN4rECBaaqpu+CLStVqXpY1egQDkXXAzG9sz300CI3VPUd4OLhabP1VVbqw== X-Received: by 2002:a17:90b:314d:: with SMTP id ip13mr37113106pjb.228.1638795873332; Mon, 06 Dec 2021 05:04:33 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5044:6464:4ad7:572c]) by smtp.gmail.com with ESMTPSA id v25sm12402292pfg.175.2021.12.06.05.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 05:04:32 -0800 (PST) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , linux-media@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, yong.wu@mediatek.com Subject: [v6 1/3] dt-bindings: mediatek: convert mtk jpeg decoder/encoder to yaml Date: Mon, 6 Dec 2021 21:04:23 +0800 Message-Id: <20211206130425.184420-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211206_050435_166722_2FAB7217 X-CRM114-Status: GOOD ( 16.67 ) 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 Tested-by: Benjamin Gaignard Reviewed-by: AngeloGioacchino Del Regno --- v5->v6: no change, rebase to latest linux-next --- .../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 39c1028b2dfb49..00000000000000 --- 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 00000000000000..9b87f036f1785b --- /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 5e53c6ab52d011..00000000000000 --- 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 00000000000000..5e35ecfd21f1b7 --- /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 Mon Dec 6 13:04:24 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: 12658315 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A01CFC433EF for ; Mon, 6 Dec 2021 13:05:10 +0000 (UTC) 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=atWecAtjZCPC/cmouVlzB7Mf5dJjRuUM3Gyg+OI6Lv0=; b=dIx5TsRVx0WPJq ektuf2p1jyZQDcvfrwOtgif0jvf0HKnmBk4N2Mvn1qC0HJ/qXXWrGTxkZw7BW0CMe2iq+5V7LEzHZ 2lt/U5Z7NtmbCUkZDdPJCE+0aMWYdDVDnYJB4L7kaRWm4MrIWpjWSQoIF8xt6nUR2P/of3J/Skwpn 0iFEAjzKFQPXmwUUpuXP5DlLM1N1XIrRjGzeweiFawjFmEYJBvHSAC4Ee+rs+MwbM5FTf9EbHf9sw iBS609SMlSM2OYIjiXP7u8TF+x7dISCPcROw+9WhX1oGASPvMZVPfbFLLCkooJeeJdBqr9kEWjkbR oJi3E7T4ZpLSeTWQACbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muDfz-003tws-BP; Mon, 06 Dec 2021 13:05:03 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muDfY-003tm4-8e for linux-mediatek@lists.infradead.org; Mon, 06 Dec 2021 13:04:38 +0000 Received: by mail-pj1-x102c.google.com with SMTP id np6-20020a17090b4c4600b001a90b011e06so8263765pjb.5 for ; Mon, 06 Dec 2021 05:04:35 -0800 (PST) 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=gQR+kR3WwpJ3Zy26d331pKgr2CYPFgiv2xZ+MCXMP8M=; b=h/lHjJphG4555stXlAjuauMjPqax3T/xIUWCDpSsBXjMktavAXzGmylbtFiOziwDpe ZCDqmnZEJnuBljR3SdS0WhaZh4Ed/Fo+RATgXH/+ID5tC75UKcUm5vvt7hnhI2vzgKoj PqFIud/7E4pLwKXZ80cWh7C17RIxaImNqffZk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gQR+kR3WwpJ3Zy26d331pKgr2CYPFgiv2xZ+MCXMP8M=; b=G0qktwEschY3lmJIebwTILnSvg4deJeyUb2slGnk85tZTwR+IOYcSq/PfBJY2+jfHe XwTkN3GVr0YImFW5N0juwb8VHjiHsIfNzonaQf79MDwEDvOviEBk0XrG+01syYxWb/gu 5OB5znL0A3Q4qM38rXPZ2vCI4IgSAz95dB3rUNUSpOZEPY66gsnY88E4A2K655E30QON 1VgTX6CmPvZwgnRclYIRf7YKE+81PU23W9SmEaKlBghAixPeawidi4U4bAw4OR32NpuO u6rH5JgG7E0nZWGxQG2zIhFXWbefaFfiHzv/s93VIuGf1RVA2X1AzgYWcvEsP03WxQT8 N4gw== X-Gm-Message-State: AOAM532DyF3zr+wFbV24XGag7M32G/OzH7NNDgdbl5aR4BY6wTdRKxy6 Y0MSNKzRGepSPKpykWE/58Jbcg== X-Google-Smtp-Source: ABdhPJw3w67XPpbowJr/xRyiaADp0b3n5k+jd8bmuixQtzKdWHKfEg0QX6nbBbiL+1/SvdSpMP0eyw== X-Received: by 2002:a17:90b:4d08:: with SMTP id mw8mr37474521pjb.236.1638795875119; Mon, 06 Dec 2021 05:04:35 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5044:6464:4ad7:572c]) by smtp.gmail.com with ESMTPSA id v25sm12402292pfg.175.2021.12.06.05.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 05:04:34 -0800 (PST) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , linux-media@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, yong.wu@mediatek.com Subject: [v6 2/3] dt-bindings: mediatek: Add mediatek, mt8183-jpgenc compatible Date: Mon, 6 Dec 2021 21:04:24 +0800 Message-Id: <20211206130425.184420-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog In-Reply-To: <20211206130425.184420-1-hsinyi@chromium.org> References: <20211206130425.184420-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211206_050436_329426_AE4C2C00 X-CRM114-Status: UNSURE ( 8.44 ) 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 Reviewed-by: AngeloGioacchino Del Regno --- v5->v6: no change, rebase to latest linux-next --- .../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 5e35ecfd21f1b7..fcd9b829e03662 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 Mon Dec 6 13:04:25 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: 12658317 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4A07CC433F5 for ; Mon, 6 Dec 2021 13:05:25 +0000 (UTC) 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=9CpJchKdhy8tNLgbNIs2kNHhG8oGFfPkr6tlZxGk8bU=; b=O3hMLnMK7mQJy+ PEMyJDvCcEsL7bB7EnZsDHuE7eFCf0GFT3uT4TiKY36fEbdOUQf4fTaqo357mlRGlNBjpQByhipuK /d1TNhKNx37Xrq1iz3e4BR89nb0USGZ08Fn8XGOzfUgHyQ8NI/iS1/47K5y189xjGkHI+kqZJwbOs yCkMLDFtbFH00lySMuWV0xOFYkarYZ1jTLZxzxCyzWdLGQ7iHJeyn1yNIv/Ld14qnduTiB5VAK382 5q8Gmo469vuQx+ieiDVzWrTfOSywYOCBfWRp6TKe26HONbO9cYW5JC/ip6aCoDmfPaNnP43HPKbjQ UyKvkiZHUy+j0HSgDzIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muDgC-003u30-NM; Mon, 06 Dec 2021 13:05:16 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muDfa-003tn3-2m for linux-mediatek@lists.infradead.org; Mon, 06 Dec 2021 13:04:39 +0000 Received: by mail-pj1-x1033.google.com with SMTP id np3so7696734pjb.4 for ; Mon, 06 Dec 2021 05:04:37 -0800 (PST) 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=EZNxS2Er2+TWPCvjwKrCutia6d+RziQ5eq8Nih9Wpag=; b=NwQdgeQkNdIYvLlsCYBFOR7AArMeA4ocHnxglBH96EmJ72XZY4K6lP0WXCMPZC5MRd e+xFSAfy3OIMsGoCjnF1s7RECqJpn+ibnWq/3RijwIqsS0/GA1OD6qEdDWL9wxC28o7F QlNXB+IfCpWa0uCAhBQoxLGfF26k79BLgWYFM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EZNxS2Er2+TWPCvjwKrCutia6d+RziQ5eq8Nih9Wpag=; b=FkkQSU7gr3VtaYtU5TUc/3F68hIvHILiDEY+t9ktOHgqlAqjcEhd6tUw4ZDuwrSw2T EXylBwl283VTlshkjxe4PzOTBUQE4vxUWHx0o7euH6sXPb7x5QSLGX7xCMgjaU1vV58D 0cqYRymbhA9dDwOo2zaGnDl/HuYPR5ddOWk7cdKieqTMXEchHnHxxTaOgLcWxbyI/PHX wnU3ELWDjSmwpL4BBUnSaLQhtJ/ZyjJ4U0Wv/Sby8aLC3gaC5QgSV0aUtQTFNmiQBn9h O2+jccZ2wsSaF3WHL/boADVhjIHf3SeDgv6E3xUin+hJepZFIexpFgu3tKqPOORbZA9K PyAA== X-Gm-Message-State: AOAM532mJFDUgrZ7LArVpHjSo0nZ1MqgvLlp8yA7aCj5x0T7wqXUcxgg 5xkaNIUH7IZ2Hik4ZlLlwBzoiQ== X-Google-Smtp-Source: ABdhPJxzHx6MmM0wI6OVhtmYu60irjAp+3SFk9nmVn9Dxj4qPjt0SsnUvMGMavc7yAJJu47x0/ncFg== X-Received: by 2002:a17:902:b110:b0:142:7621:aecb with SMTP id q16-20020a170902b11000b001427621aecbmr43580422plr.55.1638795876908; Mon, 06 Dec 2021 05:04:36 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5044:6464:4ad7:572c]) by smtp.gmail.com with ESMTPSA id v25sm12402292pfg.175.2021.12.06.05.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 05:04:36 -0800 (PST) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , linux-media@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, yong.wu@mediatek.com Subject: [v6 3/3] arm64: dts: mt8183: add jpeg enc node for mt8183 Date: Mon, 6 Dec 2021 21:04:25 +0800 Message-Id: <20211206130425.184420-3-hsinyi@chromium.org> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog In-Reply-To: <20211206130425.184420-1-hsinyi@chromium.org> References: <20211206130425.184420-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211206_050438_156032_25F2E4C9 X-CRM114-Status: UNSURE ( 9.22 ) 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 Reviewed-by: AngeloGioacchino Del Regno --- v5->v6: no change, rebase to latest linux-next --- 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 ba4584faca5aea..ac6b0c12d3b339 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1530,6 +1530,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>;