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: 12355901 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 1B46BC11F69 for ; Fri, 2 Jul 2021 10:25:12 +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 E1260613FA for ; Fri, 2 Jul 2021 10:25:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1260613FA 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-arm-kernel-bounces+linux-arm-kernel=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=u9pmdOFrD1XU5b3p6vJDYGu7c7gzS+muFCi7v0i8DH4=; b=WXhJlgpsNZmtAK Gy0HtdhUrewbRq5Fw2GX2jp2ldPI1tVq94LFQW3LK7BGPNv76hT61TiThFCDBEO9RPo0yoiK8XYM0 q4snuatw+aj0E8dc1PJ/D8x+EYeaRusjOXQ0lemzgWLtW4TUOvEBaPRuKS+cMXyEVA9v6OgoqZUve AJwhO1RCbbXo2ThxIKKhEuMeet8Y4vqi40HApDLYRj0mhASKJz+0b9Tj7/E6eURVSIiaaRclR802H KjzhCmqkumZ961oi2sSa4D0f0DPRLYkBNk3XoRNnpkQamwNX/PgB1dXnnSwjvCH6mXyfG+u2cj7eh lKs/qY1VSXH1Z0qIMSqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKR-002kqE-MJ; Fri, 02 Jul 2021 10:23:23 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKM-002kn5-Nx for linux-arm-kernel@lists.infradead.org; Fri, 02 Jul 2021 10:23:20 +0000 Received: by mail-pg1-x52a.google.com with SMTP id u14so9067976pga.11 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=nYxPGoeVsisYXZ4+RZXpeQPy0x0K8+74/updQY36JlBAIePP+LY5xyb6EGnWSORix5 LfCiTgrWLWq3vcfNomkJdnAZb1dZQnpo0kHwvzXJVkxjfoBvnTfAf2+946pwzryvLmrI b8OC3PHF3RXMGkv6YPVJK13A7Tk6M+4wZm/OVq8acFebOjJp5aBF2+YY4+mRuMJ3QRyz VMO3su5rOnC0QfFbk9KHhjGDxZhHiA9t2wZ9wEqunL4BKQJah/8iXgPr2Pd3FGCPECvS fJg8s3x6VmSDFH3tBuu29ENlN+Vnxl3HxZVsMbSY4QGXqtcg8uSBqTiB3YKhWM5ixd7p RPEw== X-Gm-Message-State: AOAM533+EKj9T14wOq5DGM4Jv3E7n7e48KD6e47/9WMY/slWVlcaGNlJ Xa99Vb7+Phtw7QPUeNcDpalPrQ== 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_814149_ADDBDFFB X-CRM114-Status: GOOD ( 19.71 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12355899 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 E6B98C11F68 for ; Fri, 2 Jul 2021 10:25:10 +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 AB9EB60FDC for ; Fri, 2 Jul 2021 10:25:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB9EB60FDC 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-arm-kernel-bounces+linux-arm-kernel=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=J/Ol1DxVtp0MK9Mu/0zUPLUsVdKVGaf7fFZ5OU1FPRc=; b=TU9Z8WZeRs08Ue 844cncrUHXmMLtBqaO4OqyNP3p4Oy5yyarkbZDpQ1z6TNIAnVkGUWfnemS4w0agZOUkfDrcuy5dbk 9r1AR4zlLvqQw22UcllrVWqzX+RCd56QgoDlX2fPtL5vwzed3WE+fVsNONmUBjEboEtoroHOkth1l Fs0ie0/A4DtOCHioCB9DKHsyMPSfjsuzJDnNppRByDUqxKwHyxhum7XhKE1uSrhqcMY2WvjRqyk69 /EZVXho8Xp23xmNnDzpYrhTV+QPEYWSIBZfsoXlbhtEGRK1J/yHS2/2f7TJLvBuiiRtY97Lx/6f2L iHUFwMuZ38lb2wxcvBlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKd-002krn-On; Fri, 02 Jul 2021 10:23:35 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKN-002knN-Gh for linux-arm-kernel@lists.infradead.org; Fri, 02 Jul 2021 10:23:21 +0000 Received: by mail-pg1-x536.google.com with SMTP id 62so1005058pgf.1 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=neuX1f1E+2iET/StUgxlXMZ121u0fr21oormIyWgZq5zJhfZwN/GBdqFVtUfXVgO3F SvahjCeJTVirBNWAWXnZW+SB7Q43DAGInrfzUrRJcZGAStPb0L9284UVYNVXH9hvCACe yVnxJqfShWWHID60bWgUhFWWd9Oa6F1TiZpoPpkxZ1iZDasJ3M7btWarlqbRKecZ1it9 IqrqAkKEr7A2L8BMKhL51Il4ezNZzpIgrc71oLvl+Z5Z/50a+Uer846r57SsfpoIqDNJ ShI7S5RgwvT8a1Tarlv9imHzAWO2pVpgpKxGjf7g5DwjY2grmJdYfrm0EHKicHpGjQnT T+Aw== X-Gm-Message-State: AOAM530sbJDWACNsh4qnHw9vY2rg3/QrI0iA6ANdfMozpZ2zJz/RPT3B cFtW64npIvy4LraKXvewhDVVuQ== 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_616496_AA208BAB X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12355903 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 BDB23C11F68 for ; Fri, 2 Jul 2021 10:25:14 +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 89927613FA for ; Fri, 2 Jul 2021 10:25:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89927613FA 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-arm-kernel-bounces+linux-arm-kernel=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=SS0U+VDzC91bXtYIQ0V9ER9HOfzqYAeAmOx13J4c3S8=; b=I0Yp4RAcrUIS6/ 3z/kftMtDoT68dxzx45ghaNPvqgTElT3KT33x18N2OkrKVG+FCRGuyG4TY3JL4/wuVeYw4YsA5Sci /Sdkler0A3iQnlrbgZ4iEihzurnaZ7yfNniHN+D7PtbVJfPds3EftOZ4SnuhftdON6I5YO8q9lpw6 LE6ZnxBxtlJUl7SWT0tgzmIMeZq0kHbdfx2PzjnB29RKlMu5GqUqEsI94X613DScmXtbzG3EgZMEn 6FLpFpQUYsSKXuhsh/Mb10aFa83o5aajIspAXmq6cb5kf0hQ7+OgxschGj64GthJFJfMEcN+wed0Q iKyzJuPrYh3MiCdpsuWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKo-002kut-RL; Fri, 02 Jul 2021 10:23:47 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzGKP-002kov-Ig for linux-arm-kernel@lists.infradead.org; Fri, 02 Jul 2021 10:23:23 +0000 Received: by mail-pg1-x52d.google.com with SMTP id o18so8471328pgu.10 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=LyT6qUq9jRVCR6H9zoKzScMM283g6TvrKxCDN4gTaAEpM5Zz531ZhvynxyhGxnBNlL AsmZ/xCbOXOasEWkw5hnRJ+G8m6SE8+lcYfeC9+ipcB0qMEotDdi1ElefjWsQBw7+WeU u7bNEqeZ3jPX7LbKLpY/884EriPod6hStdrTtwUMfC1Awrb2ZcoyQlMQrVnkxIDYDVCm GRpzWz4zpQWymVKwjUnVe+ICBf9JCk7QdUA9QOsYTdlCqoiYOxFKU3jhfPywRGeI7fhT a8G8NarPtvJYLChiGQkVbnvk77R9+KsTmeW6TDHtOf8WtwZf2dzrsQXL6dE5g9aDfJG7 biRA== X-Gm-Message-State: AOAM531ttUp/VNG6YCrTURBp/HJ2buTlama45VAlrtizshcQczJUZzp3 S402aRMwr+0dv7v5BnjxGOYyeA== 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_682681_80D5D79C X-CRM114-Status: GOOD ( 12.39 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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>;