Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19138047ybl; Fri, 3 Jan 2020 16:44:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx9DJpOWsSDTEWbuFOsWS86k1AuQYu+ppMtReQUSZBlvU0oyrBYX2Mb4sEqVnNDCinV6isq X-Received: by 2002:a9d:3a66:: with SMTP id j93mr99051681otc.25.1578098696115; Fri, 03 Jan 2020 16:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578098696; cv=none; d=google.com; s=arc-20160816; b=pIRbdyAUS8Nv9lYed5L0Ly4cH61L70cN4jICLRkBCWF5k/1saqQlaIXyakN1sYwDrv EDGMXQ4RWq+e4pHB1ex6BpUsFb0Bs+EcWTZKc30eKILv5dxvy6o8Y20CX8ge6rkEHWz2 5S2+ERK0ITFpsJdDTIXTtZvBQvmA/XHamzZ58tP3Ro/TLgx1BryW2ifPNn/MJP7DxbOs 01EHZnmxnCIgYinta+ssJbkjvdrHybYqzMGiGzXqa1w/2ESPpnPDrD2OS5r8SiAQGSe0 VhKChQ1iTfuYQMBKyuOg2ZQgpYc6ynNw/YcqhjIc6MkeoYc6/DRfXXpx2Wm0Njhc304o 1mrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KVOAVEbJI4by8dHylpbGdlYjAc7ICQ7+bWPH7m8U5UI=; b=NHdGxWf1O9wYBMzNBrztPhRZXu0SHYtSOXUkJmRgGScYvj0Kka0QoUBLUTw5YdMSd/ 7Sq5F7t+rHQusYe2Zol/Gm5E03xNYUUH1HApSLfK3pHt995SFYPONcrhorlx6yLwSJZ7 7sN1l3k9W249pR8TDLiyNsk143q8K0g+L8cKQgPDWJ1NBvXD90nAlyq2lMLCYO4N5B/3 Iqqbuf3448rksEXumdg7OAu14VqZqiYBAFNkgGp24QpU06MCxJRnI76HfGoX6XBbB8OZ ues1QcKJEy9R3UWBFVlgtXyodUlzqAzu5dgQqmECjfRjfItfGdwww70efFH2edqai3CY cMQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si27837898oim.180.2020.01.03.16.44.42; Fri, 03 Jan 2020 16:44:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727154AbgADAoA (ORCPT + 99 others); Fri, 3 Jan 2020 19:44:00 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:35919 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgADAn7 (ORCPT ); Fri, 3 Jan 2020 19:43:59 -0500 Received: by mail-il1-f196.google.com with SMTP id b15so38053710iln.3 for ; Fri, 03 Jan 2020 16:43:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KVOAVEbJI4by8dHylpbGdlYjAc7ICQ7+bWPH7m8U5UI=; b=n9tC0CHsn5Hv3Gl6c/IkYq/ZzXfTPrvtBXkvBPr5eGpGgvlcMJMpDxM3bC3xv7KNOw A8FdpdE/CF1N3GFspDkbbehGzhNM0S+frVkZWdABuV0O0LD4P3CgfHY8AQRKp/567s6g MCVtG0ji7OQx8dxl7m+TJlTu+AmgGL5b2StcBg/4O4JCBKOr2x/YNG9cug3b2e55UsKn H5EQ0nQ9/A61iEbG95uHDalEak4WU2GbZAxXaAZ/AXrnWQlPTCDUaZy33WvcPVEyassP yEQ4TkPtXWrnGtATQo2+RwzWXkryyi/3uIpg1wyGMYr0cmZnv6wV4s3mE+MQZInR7ZDx onAw== X-Gm-Message-State: APjAAAUz7bWZVnLzvetgEN2Qgg+ujFKYYngrxTm9S7gRv0xpYdZH+cFE 40HKxHPN5BCkEBhHf9ZbYdJMjUc= X-Received: by 2002:a92:d98e:: with SMTP id r14mr70716484iln.15.1578098638918; Fri, 03 Jan 2020 16:43:58 -0800 (PST) Received: from rob-hp-laptop ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id x25sm13054779iol.6.2020.01.03.16.43.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2020 16:43:58 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 2219a5 by rob-hp-laptop (DragonFly Mail Agent v0.11); Fri, 03 Jan 2020 17:43:57 -0700 Date: Fri, 3 Jan 2020 17:43:57 -0700 From: Rob Herring To: Dikshita Agarwal Cc: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vgarodia@codeaurora.org Subject: Re: [PATCH V3 2/4] dt-bindings: media: venus: Add sc7180 DT schema Message-ID: <20200104004357.GA16614@bogus> References: <1577971501-3732-1-git-send-email-dikshita@codeaurora.org> <1577971501-3732-3-git-send-email-dikshita@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1577971501-3732-3-git-send-email-dikshita@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 02, 2020 at 06:54:59PM +0530, Dikshita Agarwal wrote: > Add new qcom,sc7180-venus DT binding schema. > > Signed-off-by: Dikshita Agarwal > --- > .../bindings/media/qcom,venus-sc7180.yaml | 136 +++++++++++++++++++++ > 1 file changed, 136 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml > > diff --git a/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml > new file mode 100644 > index 0000000..b78952c > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml > @@ -0,0 +1,136 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/media/qcom,venus-sc7180.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Qualcomm Venus video encode and decode accelerators > + > +maintainers: > + - Stanimir Varbanov > + > +description: | > + The Venus IP is a video encode and decode accelerator present > + on Qualcomm platforms > + > +properties: > + compatible: > + const: "qcom,sc7180-venus" No need for quotes. > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + maxItems: 2 > + > + power-domain-names: > + maxItems: 2 You can drop maxItems. Implied by size of 'items'. > + items: > + - const: venus > + - const: vcodec0 > + > + clocks: > + maxItems: 5 > + > + clock-names: > + items: > + - const: core > + - const: iface > + - const: bus > + - const: vcodec0_core > + - const: vcodec0_bus > + > + iommus: > + minItems: 1 > + maxItems: 20 As I said on the other Venus schemas, can you really have 20 IOMMUs attached? This is a single SoC, you should know how many are attached. Rob > + > + memory-region: > + maxItems: 1 > + > + video-core0: > + type: object > + > + properties: > + compatible: > + const: "venus-decoder" > + > + required: > + - compatible > + > + additionalProperties: false > + > + video-core1: > + type: object > + > + properties: > + compatible: > + const: "venus-encoder" > + > + required: > + - compatible > + > + additionalProperties: false > + > + video-firmware: > + type: object > + > + description: | > + Firmware subnode is needed when the platform does not > + have TrustZone. > + > + properties: > + iommus: > + minItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - power-domains > + - power-domain-names > + - clocks > + - clock-names > + - iommus > + - memory-region > + - video-core0 > + - video-core1 > + > +examples: > + - | > + #include > + #include > + > + venus: video-codec@aa00000 { > + compatible = "qcom,sc7180-venus"; > + reg = <0 0x0aa00000 0 0xff000>; > + interrupts = ; > + power-domains = <&videocc VENUS_GDSC>, > + <&videocc VCODEC0_GDSC>; > + power-domain-names = "venus", "vcodec0"; > + clocks = <&videocc VIDEO_CC_VENUS_CTL_CORE_CLK>, > + <&videocc VIDEO_CC_VENUS_AHB_CLK>, > + <&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>, > + <&videocc VIDEO_CC_VCODEC0_CORE_CLK>, > + <&videocc VIDEO_CC_VCODEC0_AXI_CLK>; > + clock-names = "core", "iface", "bus", > + "vcodec0_core", "vcodec0_bus"; > + iommus = <&apps_smmu 0x0c00 0x60>; > + memory-region = <&venus_mem>; > + > + interconnects = <&mmss_noc MASTER_VIDEO_P0 &mc_virt SLAVE_EBI1>, > + <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_VENUS_CFG>; > + interconnect-names = "video-mem", "cpu-cfg"; Not documented. > + > + video-core0 { > + compatible = "venus-decoder"; > + }; > + > + video-core1 { > + compatible = "venus-encoder"; > + }; > + > + }; > -- > 1.9.1 >