Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5036569iob; Mon, 9 May 2022 07:22:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAFysqvZ3jeunvvo0z/5+doDls75bROELwh8ydKlDW+vmKK0FP1ir63e195eAgpaIG/FUy X-Received: by 2002:a17:902:9304:b0:15c:fe50:6581 with SMTP id bc4-20020a170902930400b0015cfe506581mr16041258plb.132.1652106177390; Mon, 09 May 2022 07:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652106177; cv=none; d=google.com; s=arc-20160816; b=nvRVdnNF2evf8+TJss8aTBA8uMNeXtxAYZ+ItpQprASc6bhhoy/k+X6KvhZ6k+nXTh bGR8pZg+vOACP2FjSu5wKyzypFUx2QYRnsSAm4QB8gx/jSne7itLIo55wrpzkFgXgEFq W8t/U8WEJzybC47XvFJ2Tk0pqWH+BGdkUr9utLi1ap4u7RNEMub26NETQKI4zDGZwYV0 UiLcEUAm3XzzzKA7EIfWEyqOGgpnOAam025ytQKCCQqlEQVtEQPfiOkZCNltX8///N32 ZFbPjK95WRzuzS8wdwFfAV0faPKhsnaaKcEMDvTifv1qDBWlChopzeRk2hFWk1yM0+2w JmeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+8+QqXVKL5wTk1USxhSJy91rHhDM1q+WdZU6lGP6JQ4=; b=Hr+f+dcXgw7LAXZPJa2fUxuFGlmmYHVcDabNfTRI7n0lduF7etTtWwPNInkQ+k+oSw VfosfzL9Vjz/b6XAW3masIOngHNzyvBqx2KPChKEtN3kijVbApQPXrPMqz3pPKZNi+zH sHxrJd1FWEsnCcFzLL40xnZz76SPaLdr3tx/NcV+H2/bjHTFumR5C44gXV/03nZ81kJS SXpWKCJ33rg1upB0uxFNNT4yQZr446KEL9KPIDcrzdM+J0re3/w8+KHh8PjCRAjlAsLd 9ME5+PmpwQGAqv9B/Tsn/soZbUX9DUB24eAhnqBbgklyL4ayw/3SZFnKUeHqcRyl8bi5 RwOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=Se5eMb8Y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id pi19-20020a17090b1e5300b001dc24e4fa84si23096802pjb.130.2022.05.09.07.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 07:22:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=Se5eMb8Y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8AFB0208F63; Mon, 9 May 2022 07:17:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236879AbiEIOVV (ORCPT + 99 others); Mon, 9 May 2022 10:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236921AbiEIOVT (ORCPT ); Mon, 9 May 2022 10:21:19 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E7A320131D for ; Mon, 9 May 2022 07:17:16 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id gh6so27178168ejb.0 for ; Mon, 09 May 2022 07:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+8+QqXVKL5wTk1USxhSJy91rHhDM1q+WdZU6lGP6JQ4=; b=Se5eMb8Ygo8+NTsu2WGGmLwSiZe3RssFpzMyc+7jXSDykSJnAVSZVnd/OngGPWZciL TqOhSSgSmDT040EiixkOlRjSjs+ukuyf54/dNj07uwd2adCU7iAHQeyZ6NPWcbIYVPwR pnseMj0cI03Ui9b5xM9w/yOlvf2/OlxlznUm1jexmSPMmaEiax93PQoJ/G6Q+n7fow9z IeuitDasdXBRSpB+6VIA+P3OanKlTTP+m6n8bakAwn+q9cJfZqwF1lR8LLdZPHpM+15i QZvAmWZBOy2/SBull0eHOksCzYbIomn1nr2T6ttdbSEDr1YAhsbO0VVKPlHOwot8XrnA S8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+8+QqXVKL5wTk1USxhSJy91rHhDM1q+WdZU6lGP6JQ4=; b=zPS/1cFUbKZF2yUZG2zYwfeoBshwDaeCI4DjUxdu5zFkZRpAoHhImGqw//PsHMg1Pq VXcH4XoU0z9k5SjxTKiTsxxMBZ5wVCPDxL790K5YwjTDcRJz32v0NbsHC/6Hgy+4hAQt ampOY6LpXS8IdEB/PkdQW8/mtoxW2Crc94evougXKQkcB7C6+zMqjWqLShmdx8iMpcVz mO/3adkn21+SdVOCzDYyzXZczg7KsP0O1vTDcq4W7nRxLvtie6lccprdV5Iti5vL3FRh cdPu9lvm77aHchtzIfu0PjgIWRLloyhl0JW8qPHJnVAp9/ZcAUeAM1NA6qQqCQo3gcG4 89uA== X-Gm-Message-State: AOAM533hQBw93xtMHuB/oYVLpkzwLPU+yLmkPOL3uQ+H7sPyPEDOfU2o EOpa1qckpAOHMSXYHo+x2gUju60Z7s15SD00NfvM6w== X-Received: by 2002:a17:907:a0c8:b0:6f7:492e:e74c with SMTP id hw8-20020a170907a0c800b006f7492ee74cmr11393092ejc.670.1652105834875; Mon, 09 May 2022 07:17:14 -0700 (PDT) MIME-Version: 1.0 References: <20220508202544.501981-1-frattaroli.nicolas@gmail.com> <20220508202544.501981-4-frattaroli.nicolas@gmail.com> In-Reply-To: <20220508202544.501981-4-frattaroli.nicolas@gmail.com> From: Ezequiel Garcia Date: Mon, 9 May 2022 11:17:03 -0300 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: rockchip: Add Hantro encoder node to rk356x To: Nicolas Frattaroli Cc: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , devicetree , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Nicolas, On Sun, May 8, 2022 at 5:26 PM Nicolas Frattaroli wrote: > > The RK3566 and RK3568 come with a dedicated Hantro instance solely for > encoding. This patch adds a node for this to the device tree, along with > a node for its MMU. > > Signed-off-by: Nicolas Frattaroli > --- > arch/arm64/boot/dts/rockchip/rk356x.dtsi | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > index 7cdef800cb3c..2e3c9e1887e3 100644 > --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > @@ -508,6 +508,27 @@ gpu: gpu@fde60000 { > status = "disabled"; > }; > > + vepu: video-codec@fdee0000 { > + compatible = "rockchip,rk3568-vepu"; > + reg = <0x0 0xfdee0000 0x0 0x800>; > + interrupts = ; > + interrupt-names = "vepu"; It this block "encoder only" and if so, maybe we should remove the "interrupt-names" [1]? The driver is able to handle it. See: https://elixir.bootlin.com/linux/latest/source/drivers/staging/media/hantro/hantro_drv.c#L962 You might have to adjust the dt-bindings for this. [1] https://lore.kernel.org/linux-media/20210324151715.GA3070006@robh.at.kernel.org/ Thanks, Ezequiel > + clocks = <&cru ACLK_JENC>, <&cru HCLK_JENC>; > + clock-names = "aclk", "hclk"; > + iommus = <&vepu_mmu>; > + power-domains = <&power RK3568_PD_RGA>; > + }; > + > + vepu_mmu: iommu@fdee0800 { > + compatible = "rockchip,rk3568-iommu"; > + reg = <0x0 0xfdee0800 0x0 0x40>; > + interrupts = ; > + clocks = <&cru ACLK_JENC>, <&cru HCLK_JENC>; > + clock-names = "aclk", "iface"; > + power-domains = <&power RK3568_PD_RGA>; > + #iommu-cells = <0>; > + }; > + > sdmmc2: mmc@fe000000 { > compatible = "rockchip,rk3568-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x0 0xfe000000 0x0 0x4000>; > -- > 2.36.0 > > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip