Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp810804rwb; Fri, 23 Sep 2022 04:36:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oj4VtBN4CeNTsC+/pXdUERABmddKPEWn4ioH7bzRWORuTip016Zh3/cONBsdQtwkZcyYa X-Received: by 2002:a05:6a00:1304:b0:555:6d3f:1223 with SMTP id j4-20020a056a00130400b005556d3f1223mr7012232pfu.60.1663933002754; Fri, 23 Sep 2022 04:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663933002; cv=none; d=google.com; s=arc-20160816; b=wnkvysNIHQbpuc6/R/UMTok+omZH5h4Yzc0c74TIytavqYHf+Aj7+SriOsjjNLv0l5 VTJu5gc31gjNlTUmcdlqUh7KsDF2vFbF6E+rzR/mwzvIv9Iy6OJUY0Hugr9ON5/3T1vz ZB18121GzSYZ3SQfrJ5tIh6r4MtUO95uGSohtDwW4eLCXw4GiS9RQqB165xIWcF1HL/8 4N3ZcmFVMOJWUsvqZTh59oozffeMvZV8EPTFXJadWbNN2UuPscaujw8z1DooD5XsFnlc o+UKkvZC9TEUkcFUamP24P9PvUo45pT8pfKvEMdsgZ73RXCMb/B7PMrYxyvuVRK/9y1V 1R9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IL2Qzd828Ualos45ERqPlmPSuhHUIL56hVLWxc3qLSA=; b=gAyuEaPwfo1Hn+OAR/3h4eTxOyaOuTOgFqhJg30vaPiTTH9AicwXJzvFqRF8WJzlTD jeNsBJsTEAAssyLE+k+S0OmmAHm453vJbgVqB2jHXd5FKumjKNDqJYZPzjM2YcgL74O1 tXyxnirPqUQ3fKx7BYIuvy/kX4aHIWyWjUN+ITVU4jDQgIpunQjx+UEHm7/paa8P+k2j YgMAgLxJsaSa0WbYHJVJ7QoC+T/AUu5Cacjkkfz+xn+rAXJOxksMdWo6g6P3S1HOWJzl SmtkJN1Y8XdAb6qXKL6A9bC88P0OdI+zoim2MxEWZPI0eeCW7KOPAjo4KG6nz50rQllF fuMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtNpKxd1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p28-20020a63951c000000b00434d4a0be40si10230422pgd.589.2022.09.23.04.36.27; Fri, 23 Sep 2022 04:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtNpKxd1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbiIWL3J (ORCPT + 99 others); Fri, 23 Sep 2022 07:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiIWL3G (ORCPT ); Fri, 23 Sep 2022 07:29:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2017183AE; Fri, 23 Sep 2022 04:29:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7DF41B82289; Fri, 23 Sep 2022 11:29:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71C17C433D6; Fri, 23 Sep 2022 11:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663932542; bh=bMYt1/N3KNrv0i41IENSYS+pss/KJGw9J8JCAluJZe4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mtNpKxd1lGQnHI5nG3P2zGAtV6XMmlokHgE/SVoqu0TriQbTz+abC3DxNjhX6waeg kJmhxsJpW9KtW0Uu9l0o4PEajLuS22INuxkqTgYvgRTwk8DmtobAJUTE5nhQK5Kjh8 66wKro/NQtoRl96QDWkMy4Za0Mnw2WowaVo3WtrqqlB3NaK3HcLKEIgonO0IYR+vD4 OLK148heaY+Ls5+ii+KOc7ayVyIAhHBaPpUdcSSpuFXtxternihO4madYiZauN07nF iDFdvFw9eGM/txPBfDzWmzQkoz49yrGiaDMCMtW2jpxKUTicjLU/B6S9H/mJTnq3v+ dDN6KuFoTqLOQ== Message-ID: <3bbdfb31-2ba2-7345-54c7-82a67d95e30f@kernel.org> Date: Fri, 23 Sep 2022 13:28:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [V14,08/15] dt-bindings: mediatek: Add mediatek,mt8195-jpgdec compatible To: Irui Wang , Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tzung-Bi Shih , angelogioacchino.delregno@collabora.com, nicolas.dufresne@collabora.com, wenst@chromium.org, kyrie wu Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Tomasz Figa , xia.jiang@mediatek.com, maoguang.meng@mediatek.com, Rob Herring References: <20220915064337.2686-1-irui.wang@mediatek.com> <20220915064337.2686-9-irui.wang@mediatek.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20220915064337.2686-9-irui.wang@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/09/2022 08:43, Irui Wang wrote: > From: kyrie wu > > Add mediatek,mt8195-jpgdec compatible to binding document. Use scripts/get_maintainers.pl to CC all maintainers and relevant mailing lists. > > Signed-off-by: kyrie wu > Signed-off-by: irui wang > Reviewed-by: Rob Herring > --- > .../media/mediatek,mt8195-jpegdec.yaml | 169 ++++++++++++++++++ > 1 file changed, 169 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8195-jpegdec.yaml > > diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegdec.yaml b/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegdec.yaml > new file mode 100644 > index 000000000000..9135cf889d1e > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mt8195-jpegdec.yaml > @@ -0,0 +1,169 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mt8195-jpegdec.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek JPEG Encoder Device Tree Bindings > + > +maintainers: > + - kyrie wu > + > +description: > + MediaTek JPEG Decoder is the JPEG decode hardware present in MediaTek SoCs > + > +properties: > + compatible: > + items: You do not have more than one item. Skip items. > + - const: mediatek,mt8195-jpgdec > + > + power-domains: > + maxItems: 1 > + > + iommus: > + maxItems: 6 > + 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. > + > + dma-ranges: > + maxItems: 1 > + description: | > + Describes the physical address space of IOMMU maps to memory. > + > + "#address-cells": > + const: 2 > + > + "#size-cells": > + const: 2 > + > + ranges: true > + > +# Required child node: > +patternProperties: > + "^jpgdec@[0-9a-f]+$": > + type: object > + description: > + The jpeg decoder hardware device node which should be added as subnodes to > + the main jpeg node. > + > + properties: > + compatible: > + const: mediatek,mt8195-jpgdec-hw > + > + reg: > + maxItems: 1 > + > + iommus: > + minItems: 1 > + maxItems: 32 > + description: > + List of the hardware port in respective IOMMU block for current Socs. > + Refer to bindings/iommu/mediatek,iommu.yaml. > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: jpgdec > + > + power-domains: > + maxItems: 1 > + > + required: > + - compatible > + - reg > + - iommus > + - interrupts > + - clocks > + - clock-names > + - power-domains > + > + additionalProperties: false > + > +required: > + - compatible > + - power-domains > + - iommus > + - dma-ranges > + - ranges > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + jpgdec_master { No underscores in node names. Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "mediatek,mt8195-jpgdec"; > + power-domains = <&spm MT8195_POWER_DOMAIN_VDEC1>; > + iommus = <&iommu_vpp M4U_PORT_L19_JPGDEC_WDMA0>, > + <&iommu_vpp M4U_PORT_L19_JPGDEC_BSDMA0>, > + <&iommu_vpp M4U_PORT_L19_JPGDEC_WDMA1>, > + <&iommu_vpp M4U_PORT_L19_JPGDEC_BSDMA1>, > + <&iommu_vpp M4U_PORT_L19_JPGDEC_BUFF_OFFSET1>, > + <&iommu_vpp M4U_PORT_L19_JPGDEC_BUFF_OFFSET0>; > + dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; Mess up indentation. Best regards, Krzysztof