Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1622173iob; Sat, 14 May 2022 14:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEXwi7Mq1c3qg/rs+lqTZXbMvzaoGRbnfmwqu9Dw7p/zZRh8/y0Spb9mUe51n9etIaJhJw X-Received: by 2002:a7b:c114:0:b0:394:47d3:693f with SMTP id w20-20020a7bc114000000b0039447d3693fmr21486213wmi.42.1652565363843; Sat, 14 May 2022 14:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652565363; cv=none; d=google.com; s=arc-20160816; b=JA2Hu29iMIl9qm88JSVPCRP7ooHl6ib5xf0H52tjjOH0qmEmfSBUVj8mtRvvzq/UFH 8vzLljb/0RHWxlxF874mBHJfvPpKA7fzpoL+j5LdUE1jWKWhhBARYYWwUJn5Td2u7Bff h23niPDfx18Nh+s4+OltddPtzDIaiYBAOqk6130BR90HAFQf/jvwooP+GOcjFxIZ1QB3 2G1kRCWvV+dUXWb3ZkWOmE34GuU+4nPp9z7e2erWvdD2l38FYVOdTpcGPNUSk0CJ7uJA pSd7a1E/DYwOxvCPDoOtq2axUjVSmVChJgmA28TOO8jKm+ZIz1NZsISfDilVwku1Y/RZ EXxA== 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=7nM+O9rcnvWoPgEj551BXLaNSuGi3Sqb5ztVGD4qhv4=; b=TxnP1n09agkNxB5sLe3Wpn29agO3BPRbwpzEG5d0stE9bl5vsed4TIxRkA8lzAyNPU y6SN7sM2p80vg2bweV7nAcJ5lsnHh/SqSDxr/1NdReaGWSQcnn6iqEZaKlJpaZd0s+LA M1oDa22xKld12YzMLuluo9f2sxUXb9+KOAoTxzFQx7kzfO5Ya/voQQo5OlpOCkx4Ti3c Qv2+MuAD1R9yJJPPq/CAg48VTmXBhUdkmWRzopch4IXXZAoNdkBmg48m9vpEXYO3WyXe LjKleRlsY21QqsBfqzGf0EGF1Mz+7EdKwbWtWpvBVVRTv68czUGqcSyFgcGIAnBS7cm5 27Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=masoxyIt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a5d46c6000000b0020d03d39fd0si821859wrs.996.2022.05.14.14.55.38; Sat, 14 May 2022 14:56:03 -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=@gmail.com header.s=20210112 header.b=masoxyIt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232653AbiENNgv (ORCPT + 99 others); Sat, 14 May 2022 09:36:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232645AbiENNgt (ORCPT ); Sat, 14 May 2022 09:36:49 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2417922B27; Sat, 14 May 2022 06:36:48 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id ks9so20980907ejb.2; Sat, 14 May 2022 06:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7nM+O9rcnvWoPgEj551BXLaNSuGi3Sqb5ztVGD4qhv4=; b=masoxyItOVKrANFWKJdgypb3tEPp8p8acKsSxEyuYIDqy9bxP16M/Gzx+bBWBdLKXU OJ5LSRnTyx19ejGGLlLo3mot55qjl4/WU7mhVHx0YbeAVjRMg2Gj1nPAEvq/C9ohv5yF xleLGuQwdEwPrYAYsqv0YxR25XeMOpfVW0dWYB9GynEFVgglGSWORBlTwrHTtEyf7DoI PwFxB7/lnztlKc83IfrzPrixhoVEsgGe94MsAO7wItudyl1UCsAi7LraRjiL0B6VJCV+ sugN+zy+Y1J1TbE7j5tczgDa4T4L1JwlSzPMrCV2Fuzc2vFlKGb9ZxPH4gbN/0UA0JVg sKLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7nM+O9rcnvWoPgEj551BXLaNSuGi3Sqb5ztVGD4qhv4=; b=6w67ztn7IH92dbwMG6h02UHBxweGe+NjGULK1O7zB5W9Me06rQgs+cYbvyb+PGOsud aQi4ujOKA5KBzlI7g5Y28wpRYhhJ+9TBKZWJanQz9O1mknC0Yz/e/L8j3vysJbX9nXpM oWX75Ve1V3sdBAW78amycdoKf3VbMRXjAdezpDOAQeQFQ9zPXDuThHjUfllDGKM4l2Fw 1DumqSfFY//GsvNDzc/jpjUjcwRPiG/frrMuwCEPFy+/KM+JR+y0B49QmQK0wzJk0UhO L6FRklhdn+sbWVBoIavutKH+VeLgYK8ByI9ttGmvOx8hhXMD594aUjkaP5VSQ9OrwCHF /sMQ== X-Gm-Message-State: AOAM530xcd5tuDOgabspNR7kbENkLUoWFsgVNvk8B2Z1HOTbN/zTbzxZ xGtrzoeSOzSV+rjVEagwYIewjNir7Sf/8A== X-Received: by 2002:a17:906:4944:b0:6e8:a48d:804e with SMTP id f4-20020a170906494400b006e8a48d804emr8250192ejt.164.1652535406688; Sat, 14 May 2022 06:36:46 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id ci18-20020a170907267200b006f3ef214e49sm1736739ejc.175.2022.05.14.06.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 06:36:46 -0700 (PDT) From: Nicolas Frattaroli To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Nicolas Frattaroli Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] media: dt-binding: media: Add rockchip-vepu binding Date: Sat, 14 May 2022 15:36:02 +0200 Message-Id: <20220514133604.174905-2-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220514133604.174905-1-frattaroli.nicolas@gmail.com> References: <20220514133604.174905-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The RK3568 and RK3566 have a Hantro VPU node solely dedicated to encoding. This patch adds a new binding to describe it, as it does not really fit the rockchip-vpu binding, since there is no decoder. Signed-off-by: Nicolas Frattaroli --- .../bindings/media/rockchip-vepu.yaml | 64 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip-vepu.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip-vepu.yaml b/Documentation/devicetree/bindings/media/rockchip-vepu.yaml new file mode 100644 index 000000000000..b7ba5bf3517a --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-vepu.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/rockchip-vepu.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Hantro G1 VPU encoders implemented on Rockchip SoCs + +maintainers: + - Nicolas Frattaroli + +description: + Hantro G1 video encode-only accelerators present on Rockchip SoCs. + +properties: + compatible: + enum: + - rockchip,rk3568-vepu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: aclk + - const: hclk + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + + vepu: video-codec@fdee0000 { + compatible = "rockchip,rk3568-vepu"; + reg = <0x0 0xfdee0000 0x0 0x800>; + interrupts = ; + clocks = <&cru ACLK_JENC>, <&cru HCLK_JENC>; + clock-names = "aclk", "hclk"; + iommus = <&vepu_mmu>; + power-domains = <&power RK3568_PD_RGA>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 9ce78f2275dc..f901a42e5d0f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8637,6 +8637,7 @@ L: linux-media@vger.kernel.org L: linux-rockchip@lists.infradead.org S: Maintained F: Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml +F: Documentation/devicetree/bindings/media/rockchip-vepu.yaml F: Documentation/devicetree/bindings/media/rockchip-vpu.yaml F: drivers/staging/media/hantro/ -- 2.36.1