Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1807486pxk; Sat, 26 Sep 2020 05:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa+/cJ9NmeXSExRyDS11/+nkKTnWrSR4pJ5Xf0p+2e/IycDFCqMWH4wB2tA8aDmPkk0rbu X-Received: by 2002:aa7:da0f:: with SMTP id r15mr6296856eds.321.1601124996354; Sat, 26 Sep 2020 05:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601124996; cv=none; d=google.com; s=arc-20160816; b=vRkoLSJjIpzeUQqFHQySHpbuNDPXdmrb73FmoLOKgJRJ0KpE9I9+0AlAtz5rI+fRwn DyLUiCxG84kMmHPeycwDMVFhaCfW3EexGfBDBIUrfIK4eg5zvdTBCKtJSNMR115WFasq I1ivZNzqyXrprcyX3Nyrf96JUXBtnKurZKwhPYxScBrb4v8jWTcfjiOmSp7voJ6Ma9Vu D2nZFn01wjNiny2Kl4bIhonO7ZO/R7dCxiHbwShrtuhpKas+Luag+kMO+FvzqfMSTP/H EDh0hE3HRezu9j7S7y7aDoW3roIZvDRZUSDFImq8KlHIpKJF0yulh+IWTLe4mHCWqI4u rL8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oGAMDzu1oh/T5IwloW98IBM0ob51dpv+k1Xbgc+XAso=; b=MwKLWG6JgZ5FG/S/wjdlL/MOt9pdECMHIcoWDnyPBkrPK1VWPmgprlrgzdXomTaAks zmaWQaXHdHo3ZkpESh8tnPnMi01u6EySTNRdb9/EwFqjuKBlrtNP14oExgLl5XirEkeb tmlWQzhY+VFh5gtReYSA/Qc2zFZvpEx+9t2HVN3gov/nzViaToIRHi3TwZ5Ix8CZRiC+ +ADUUQgt2kJuqEIHDC3QUcPFFIzwQvJuYiHLlge0Md447fo+IcLF/7nrBbn2Noi/9qjz SIpFYPecXPYj9QkQ28TOLwiJ7r4bk9Lz+dpnq6/BVMvjFwmDVyzY/CAdTNMDCh5qGVVD 21Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cVa20L3V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si4120010edq.10.2020.09.26.05.56.13; Sat, 26 Sep 2020 05:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cVa20L3V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729654AbgIZMyl (ORCPT + 99 others); Sat, 26 Sep 2020 08:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729390AbgIZMy1 (ORCPT ); Sat, 26 Sep 2020 08:54:27 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42E08C0613CE; Sat, 26 Sep 2020 05:54:26 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id j2so6846437wrx.7; Sat, 26 Sep 2020 05:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oGAMDzu1oh/T5IwloW98IBM0ob51dpv+k1Xbgc+XAso=; b=cVa20L3VE8PvMjR5n1k7BkYn0VMbDcnI63zk/3WZ55q/H9XdmNLPd2DiCzpjBbtoQU nscfr4eIsTTxbqmLY7QkSZhXX4yb0q4ClhU/ZKLWh7jAKWeyzrLsevVBUkgvbEFBAKqa 48om8J5nYkLKyVl9qmjSQ+7aFknGYP4dA33x7AlybUbmS3hqJ+FfQttUYhTwsipNSZHL RqoQG/sObwdck5l2XszsPETpPa1GSH6TgsUTRyz2hvpqOvGXjBCSeABGA5PQMNac3yuC HmZjwt782AAFFnHk3GiUQLizI3gMk11ffq13vUtIEqxVS579zbi90P6lGGj34/tAr6dS Otew== 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=oGAMDzu1oh/T5IwloW98IBM0ob51dpv+k1Xbgc+XAso=; b=Ex8iYewc7o2urQc4jjdpfODzCuBfXde1pbf3CWGsGlGrrRGl+neU8z+T3Mvt6uoCIl NAKpnClV7YIP32RYW4ptSngZ29CbGacDT5dnLGL4fcvz6wod0kGDh6i1VtPAZaCHJbHH ThwDdg925+N1gCto+gVSGcxk6JGs5L6SfI9DIS92JtmpolAfG36ttxtVn0F/Bf8luFwM FC19V9FKQrLfYRmmGrALxBizbLiRBzVSGrTrMeXWXIcILV6TYpUO6QDf+EYUAE41HrsI QkMGaUN3EJUk7ZO/InpculwtjMFSorcpPWn2mMuGFGBf5xYT3eUa5u/eCmrMQ39uA9b3 Zqtw== X-Gm-Message-State: AOAM530T0UT75KnopOQBdcdWGvV9EDkjd7YfoblXaTZsiB6VAOD5Pox9 FTo9g8CiOp3Fh8XOFJU37Z4= X-Received: by 2002:adf:eb04:: with SMTP id s4mr10106860wrn.81.1601124864889; Sat, 26 Sep 2020 05:54:24 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu ([2.237.20.237]) by smtp.gmail.com with ESMTPSA id 70sm2617707wmb.41.2020.09.26.05.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 05:54:24 -0700 (PDT) From: kholk11@gmail.com To: stanimir.varbanov@linaro.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, linux-media@vger.kernel.org, kholk11@gmail.com, marijns95@gmail.com, konradybcio@gmail.com, martin.botka1@gmail.com, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] media: dt-bindings: media: venus: Add sdm660 DT schema Date: Sat, 26 Sep 2020 14:54:12 +0200 Message-Id: <20200926125412.13024-4-kholk11@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200926125412.13024-1-kholk11@gmail.com> References: <20200926125412.13024-1-kholk11@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: AngeloGioacchino Del Regno Add new qcom,sdm660-venus DT binding schema. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/media/qcom,sdm660-venus.yaml | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml diff --git a/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml b/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml new file mode 100644 index 000000000000..78c4a4ec4fe3 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sdm660-venus.yaml @@ -0,0 +1,153 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,sdm660-venus.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,sdm660-venus + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 5 + + clock-names: + items: + - const: core + - const: iface + - const: bus_throttle + - const: bus + - const: vcodec0_core + + iommus: + maxItems: 20 + + memory-region: + maxItems: 1 + + video-decoder: + type: object + + properties: + compatible: + const: venus-decoder + + required: + - compatible + + additionalProperties: false + + video-encoder: + 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: + maxItems: 2 + + required: + - iommus + +required: + - compatible + - reg + - interrupts + - power-domains + - power-domain-names + - clocks + - clock-names + - iommus + - memory-region + - video-decoder + - video-encoder + +examples: + - | + #include + #include + #include + #include + + video-codec@cc00000 { + compatible = "qcom,sdm660-venus"; + reg = <0x0cc00000 0xff000>; + interrupts = ; + power-domains = <&mmcc VENUS_GDSC>, + <&mmcc VENUS_CORE0_GDSC>, + <&rpmpd SDM660_VDDCX>; + power-domain-names = "venus", "vcodec0", "cx"; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc THROTTLE_VIDEO_AXI_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "core", "iface", "bus_throttle", "bus", + "vcodec0_core"; + iommus = <&mmss_smmu 0x400>, + <&mmss_smmu 0x401>, + <&mmss_smmu 0x40a>, + <&mmss_smmu 0x407>, + <&mmss_smmu 0x40e>, + <&mmss_smmu 0x40f>, + <&mmss_smmu 0x408>, + <&mmss_smmu 0x409>, + <&mmss_smmu 0x40b>, + <&mmss_smmu 0x40c>, + <&mmss_smmu 0x40d>, + <&mmss_smmu 0x410>, + <&mmss_smmu 0x421>, + <&mmss_smmu 0x428>, + <&mmss_smmu 0x429>, + <&mmss_smmu 0x42b>, + <&mmss_smmu 0x42c>, + <&mmss_smmu 0x42d>, + <&mmss_smmu 0x411>, + <&mmss_smmu 0x431>; + memory-region = <&venus_region>; + + interconnects = <&mnoc MASTER_VENUS &bimc SLAVE_EBI>, + <&gnoc MASTER_APSS_PROC &mnoc SLAVE_VENUS_CFG>; + interconnect-names = "video-mem", "cpu-cfg"; + + video-decoder { + compatible = "venus-decoder"; + }; + + video-encoder { + compatible = "venus-encoder"; + }; + }; -- 2.28.0