From patchwork Mon Feb 15 16:02:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 383004 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, 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 50BBAC4332B for ; Mon, 15 Feb 2021 16:16:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 21B7A64DF0 for ; Mon, 15 Feb 2021 16:16:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbhBOQQB (ORCPT ); Mon, 15 Feb 2021 11:16:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232691AbhBOQCm (ORCPT ); Mon, 15 Feb 2021 11:02:42 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E88BFC061223 for ; Mon, 15 Feb 2021 08:01:40 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id v14so9507761wro.7 for ; Mon, 15 Feb 2021 08:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SIR8kxlA4Jty9/otffAphB5/jPhHJK1wsDSo+IREMHg=; b=xAUHUH2ZGTK9itsUvPnViiXQnYk2p/FdoaR+mxhqrVTnKd5ialKAionRBo3hhxAsGV /hoc4W3bhajapFNiS+JVgjy5o4u+1cLwo0tLqJcqrYvwQeIGrFt1pijroCfMihJGia/S 1eTUmEvzA4TH+DyU8Ii0eRjofSXgKo5jnli2HSDBKjdS7vmyGAR1PHK8CFCjizyeXr7c myM+sbEP9w30bzgRRwSPF/F3GlHW4IaymBsO3Qk5GGw4c0autgcgxaXcbtNIEe0P1HZL GAxZovG64fPEaHY8aC22YUTt2cdKAnkiToC53kfgkja28dxun/oZQYIPILT/cv6FB+0O AEpw== 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=SIR8kxlA4Jty9/otffAphB5/jPhHJK1wsDSo+IREMHg=; b=jkZfQCB+r43ETCnND0JhdlP0tRAELyBK1lbngQ0F1EZG0qjkekgLJtghIRdOfsLCeB U6De9XHPAdQnvxbMKK8Xthq4tE2bH5c6XAp45tswKnj+byBx5MvVQddpSsQfbJ6jL2mB GcqV+FFUKnDViOm7AlsLfLcub6wadNjKIJEMIuQrRsAoOJZ8R5YQ4JGxniXSCBhVRHDh 0aWqgj4gTju3v7vq38aZo2d9aPHiRIWvZnoomvyWDS8FoLRjHc9oZGsjqEV0Ppld/g5X +rfE9R53Yxt4c9sUXhV04BfKSOEEx6mJhpVyma2J0xJ0rtw+UmDFt9zvbhoKzNTodgib 9nIw== X-Gm-Message-State: AOAM5321KeVDckcNmaWdpOfBOhz66hcuhSl3cBZAH7GI5hwVhgXP0mzt ojV/E4puSxnLzTTYCByF5eYPtg== X-Google-Smtp-Source: ABdhPJxfJajEcL7wyvjJiHAxOyj00f/iUHnAV6kOd/ACwpwuqYrfHNuFh6oAV4p6EvVHv81pPBZNlQ== X-Received: by 2002:adf:ef4b:: with SMTP id c11mr13862618wrp.0.1613404899634; Mon, 15 Feb 2021 08:01:39 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 101sm14698659wrk.4.2021.02.15.08.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 08:01:39 -0800 (PST) From: Bryan O'Donoghue To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, stanimir.varbanov@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v2 1/2] dt-bindings: clock: Add missing SM8250 videoc clock indices Date: Mon, 15 Feb 2021 16:02:53 +0000 Message-Id: <20210215160254.1572615-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210215160254.1572615-1-bryan.odonoghue@linaro.org> References: <20210215160254.1572615-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Two indexes need to be added to videocc-sm8250.h for venus to function properly. Rather than adding the missing indexes when used we add them separately here to keep checkpatch.pl happy. Signed-off-by: Bryan O'Donoghue --- include/dt-bindings/clock/qcom,videocc-sm8250.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/qcom,videocc-sm8250.h b/include/dt-bindings/clock/qcom,videocc-sm8250.h index 2b2b3867af25..8d321ac3b1fa 100644 --- a/include/dt-bindings/clock/qcom,videocc-sm8250.h +++ b/include/dt-bindings/clock/qcom,videocc-sm8250.h @@ -16,6 +16,8 @@ #define VIDEO_CC_MVS1C_DIV2_DIV_CLK_SRC 6 #define VIDEO_CC_PLL0 7 #define VIDEO_CC_PLL1 8 +#define VIDEO_CC_MVS0_DIV_CLK_SRC 9 +#define VIDEO_CC_MVS0_CLK 10 /* VIDEO_CC resets */ #define VIDEO_CC_CVP_INTERFACE_BCR 0 From patchwork Mon Feb 15 16:02:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 382968 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp1201093jao; Mon, 15 Feb 2021 08:18:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwkq12ajf4Q6ffjgHJgBFX0+n8MwA0h2f+8K5c8lrijFNlYXUz3LUjy7SY2mmkEkayMmzk X-Received: by 2002:a17:906:1c11:: with SMTP id k17mr15953536ejg.70.1613405917642; Mon, 15 Feb 2021 08:18:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613405917; cv=none; d=google.com; s=arc-20160816; b=X93YiM6DgKChNhifoxcG3By6lFcogZwAsKRbe6J2hdszAzY6OiQrZD/FC176OMNGVd sQ6o2CuZpOPdHo5+2gT9Vn2zW7hQ651ji9eX+Eb9vSC+hRHL3GEJczBQ3MwCI1H2HZB9 iLhVQVtQUn8NYGdgQfMA0flQUUqVmKiWaHN/eR2YKVKrnDvbxeOYkjGLo7JyVbDB2Rio UR8nYIBoXfFLjc+VoQlTVsJlMHaY3zlmgDnkpyIgw+fDytmuRQJW+RVEFwY3EfanHPFN x00UjnMplhvoRZAh0xS60Ay9+heHhXX8IMl/BA42GBxRCbPeoJtwYRVgi3J4CJKOxpX1 5E5A== 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=JxRZlErNXPjnpC+yN0itO0sslWLEquDG/p8f0PT1wRA=; b=KXXJYuUrEcbaAwdVwbSiuH6nkUmrDZ9zWuFMW7haNjzdwqzKy/YQO8BgvXE+NSpoG5 3a3Sg0W7hmU88dVq7vdJY5jMWjNbYXfuBihQlQmi1XkYSDa/0Wcy6nEs3hLxCTuAhcAU CE3nKOAhMcc2htEoCxXKpk3rVw8wQCj9qbeVx+DCZMxNvet1qxQRG71aB7yyZDheELVw RKSP7/bns5CR5NMJe2D99CeEAgKuDBjukTI9MO5ibJzJJopkdkEmSYAgK3v+e/E3Y7AQ oq/4883sCJriPqQJPIxrbVMZIGKiBNlQM4zSvECRVnBWv1KFo5rTPNYKRxWX3+7880jK ymkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sLI2bR23; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si9615450edw.448.2021.02.15.08.18.37; Mon, 15 Feb 2021 08:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=sLI2bR23; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232005AbhBOQP4 (ORCPT + 16 others); Mon, 15 Feb 2021 11:15:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbhBOQCm (ORCPT ); Mon, 15 Feb 2021 11:02:42 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3F6C061224 for ; Mon, 15 Feb 2021 08:01:42 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id l12so9560258wry.2 for ; Mon, 15 Feb 2021 08:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JxRZlErNXPjnpC+yN0itO0sslWLEquDG/p8f0PT1wRA=; b=sLI2bR231U91KLt3ANmrRMnWDsYMaa4YwuNRarrmXaGrn7f/zb4lh5/iFepp5xzWk7 84Ej47LtyFUOI2SdQkXcd4Qb7HsDhNZ8NeSfq8zMfnJvM8uUqwXFbPHmY5wG6s++0Yu1 AgkcJV7xRy9eTOHcESkGhqmD0IXES7EiO0kg/5k9rMlhAtRejMbeWs3021r6xCrIqfl4 ZYIoOI7n8dlNrvIMMOyqCVBEQwffJOFvcako3Y8pSFQxKX5gzkKGb5YDRQV8NYcjPWXB VeshivIcEHf5JVUznrGbROwx+TZUoujHPsk2rniwOtBfa3Q1+arI8UQlzytPZWSXMTJ1 CjdA== 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=JxRZlErNXPjnpC+yN0itO0sslWLEquDG/p8f0PT1wRA=; b=DUso4v0lO0lkXC1KZ+VI4wSAgCn9FbwV4BgWFskc+bQXlNI66nHdvT6fJe+nLXSwYI I+S9LYT2yQLp0TV101quFC0gItpOv82Ty2uLGKBXA12wbS8o6zBzedpC1RxG1cJatf3K mX6eGyvsSc1oaVePuHfLbSJLL1Gpmu74HseZxo2AeuCPAZfk72l8I+Z5UOnIHUM8gdXN QCs9Xy+SFXsZm9nEIowKviNqud0Aj8T98g0ozW/Yv5XqZasYF4VkajNfTGI4pwKtKJun UD4aB/CsYl9t16FuSKdRfB+lpWSP0ddyZvrJ+rgtr+hs8E90mUm+VyhALO74mgnJDddf cgsA== X-Gm-Message-State: AOAM53108FGSl/J7Y9UlSWSKFZGLAZ5kKdcoKjpkSLGIanBwUUqqaTDL fhWByIA1Zx19LOJquDJI/L2qIAa+IDHj4w== X-Received: by 2002:adf:80c3:: with SMTP id 61mr19256425wrl.100.1613404901155; Mon, 15 Feb 2021 08:01:41 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 101sm14698659wrk.4.2021.02.15.08.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 08:01:40 -0800 (PST) From: Bryan O'Donoghue To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, stanimir.varbanov@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v2 2/2] dt-bindings: media: venus: Add sm8250 dt schema Date: Mon, 15 Feb 2021 16:02:54 +0000 Message-Id: <20210215160254.1572615-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210215160254.1572615-1-bryan.odonoghue@linaro.org> References: <20210215160254.1572615-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a schema description for the venus video encoder/decoder on the sm8250. Signed-off-by: Bryan O'Donoghue --- .../bindings/media/qcom,sm8250-venus.yaml | 167 ++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml -- 2.29.2 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml b/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml new file mode 100644 index 000000000000..7b81bd7f2399 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml @@ -0,0 +1,167 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,sm8250-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,sm8250-venus + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + minItems: 2 + maxItems: 3 + + power-domain-names: + minItems: 2 + maxItems: 3 + items: + - const: venus + - const: vcodec0 + - const: mx + + clocks: + maxItems: 3 + + clock-names: + items: + - const: iface + - const: core + - const: vcodec0_core + + iommus: + maxItems: 1 + + memory-region: + maxItems: 1 + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: cpu-cfg + - const: video-mem + + resets: + maxItems: 2 + + reset-names: + items: + - const: bus + - const: core + + 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: 1 + + required: + - iommus + +required: + - compatible + - reg + - interrupts + - power-domains + - power-domain-names + - clocks + - clock-names + - interconnects + - interconnect-names + - iommus + - memory-region + - resets + - reset-names + - video-decoder + - video-encoder + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + + venus: video-codec@aa00000 { + compatible = "qcom,sm8250-venus"; + reg = <0x0aa00000 0xff000>; + interrupts = ; + power-domains = <&videocc MVS0C_GDSC>, + <&videocc MVS0_GDSC>, + <&rpmhpd SM8250_MX>; + power-domain-names = "venus", "vcodec0", "mx"; + + clocks = <&gcc GCC_VIDEO_AXI0_CLK>, + <&videocc VIDEO_CC_MVS0C_CLK>, + <&videocc VIDEO_CC_MVS0_CLK>; + clock-names = "iface", "core", "vcodec0_core"; + + interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_VENUS_CFG>, + <&mmss_noc MASTER_VIDEO_P0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "cpu-cfg", "video-mem"; + + iommus = <&apps_smmu 0x2100 0x0400>; + memory-region = <&video_mem>; + + resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>, + <&videocc VIDEO_CC_MVS0C_CLK_ARES>; + reset-names = "bus", "core"; + + video-decoder { + compatible = "venus-decoder"; + }; + + video-encoder { + compatible = "venus-encoder"; + }; + };