Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1262582lqs; Sat, 15 Jun 2024 01:11:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbfggNi+3CwK8D1Od4JebcI48rVsQBZ1g5x1lvQ2XZRyik/fVqw8ZPLEUlLmjT/15R1AY+QBClIsYM6CWXXzl/1BcgpjRQ0Ukj2NWatw== X-Google-Smtp-Source: AGHT+IFQYqtM7Kk56gjOLV6Uv7Vcv8ZBpVmVwGlFWSs3QjROftMBiJqbWFPknoF3wBdVwjg7L/70 X-Received: by 2002:a05:6102:815:b0:48d:9ae1:509 with SMTP id ada2fe7eead31-48dae3d8cffmr4575899137.25.1718439116115; Sat, 15 Jun 2024 01:11:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718439116; cv=pass; d=google.com; s=arc-20160816; b=VyO0h12jQObNU0NDo4/2M3RwpWkrOhfHt1EeoyFSvY9OjD6RM8YI5oTs54v/VOXkee 21UzdoU1ZU1JYrOxCDNICQwPbMJO/B0Ic5bxSfm5Mk47r4iQA6bPa+svrSY2xOQj6MZZ INTNmXb2Myh+AvVhr+x2bu3YIcaYhXko7M+5l6NY1czlaNvhwYQTFbwdd01A0lv8LxJO U/YK6FFGxSSJbR0aDfol8V0wiYD2xELCvp8cy63QXRJzalesUv9c1Eg7d3jDNxWTzL3j LKKERdH42AJlCzRTp06sp5LS52ByGv/mBqZ3SGuUeTMnEnCPO83Oh+8+4NVYQBcPHhcW kcqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KD9XMEsUfvBdMg6V4GnJ0Xmth7fRvLlwhgghB2MFr/I=; fh=TCNZ/GcxMWzrOnyCmANFVmx4sQPcMNb9FXNr8UdcVQ4=; b=0S99RLb2qr6sqs3LqhLvu7JaoIeu1dFArQsrAlMUZcPRPFCvSSnwR9e+4j5G1GRuwK bdkdW3LS8fXJ50bXt1oDfnF1PtjkK0yRHuQQoppObA2BWsKfQ64o1Ao3NRZW4cdg1Rj/ ptuvRR8Il1CFmJffzeKJWdDWxtIEKFWYvh0cbn0Nokod6XnmWx5wXJjpLhVj9CP+cPcJ 5HaBGJE0WUy5l8G2wsRDlsmi7xfFKjIKsC9b+PnSHFc4OVW7uReWwZMhnIEL+Xr5QD75 i2py9/Jo2pZW7pxvQyVbOn3lf2vZiCBSy4+bFmubuLbWABM/Kb49w2r2MOb09ATAO5uX daaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=y0fF29Kl; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-215764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798ab8ffc40si541364985a.301.2024.06.15.01.11.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 01:11:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=y0fF29Kl; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-215764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C790D1C21DBB for ; Sat, 15 Jun 2024 08:11:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45EE518EB8; Sat, 15 Jun 2024 08:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="y0fF29Kl" Received: from smtp.forwardemail.net (smtp.forwardemail.net [167.172.40.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A91717C9B for ; Sat, 15 Jun 2024 08:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.172.40.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718439106; cv=none; b=Q0pdX4OQ/rHOZzuX3brwoh24NwnTUrM5aBmGb1QbzG0Qi1G+wWjqt1Oa+8N/pkMPt7+NXfxBZsJuiXjNU1LXMMmbAwCcvvCs4m143gHFQNBK4sRfW0O8KxcvsiTVCUItlj3e1TGx9yhNendyV+ztBgZxEZR7N55DyRWXa24PhA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718439106; c=relaxed/simple; bh=VLOfu2sHlSblRVxS7M24YOwUMCWmyAxHORa4eJ1jtGE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hcYJNIyJoQlt7dPXZ1UCbflMvTlw0B2kAc5NuupDmQd6ILmgfbjwwXtHXKglRZXnYVUac/EUcbbWbhdbirhIZRYUN4yRXCASyaDImrRNqcV0I/TEytHpwW9I/38XB5zYFS7+Ac4gMjlIzMWWu06G+wk8aZWE4E3PG1ZrhI8islY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=y0fF29Kl; arc=none smtp.client-ip=167.172.40.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: From: References: Cc: To: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1718439068; bh=KD9XMEsUfvBdMg6V4GnJ0Xmth7fRvLlwhgghB2MFr/I=; b=y0fF29KlmtPU2HFDuFwRWA4MhxHmNZxGVUD/h5xkUSYQC1AHBRVFTqCjt5avCPyhtrAe6BYnG Fxj0B9vKfIC6vnQtvKf4D1BT5tfmbSGwMJnGErYk3xtmM9N2oyCx5BqpKM2LjMg9qeQPPyFJsyj L0zFvwFR95a60P7FEJ0wOYgCsO7XAQ6R1Fs3qHN+MxLZ91tKKrRqvAHagXzRBGRtdJSQUDF0jDV bHpkYl1CZkiLTJeLhCIVOjIaGbemeTWsJHgB+zNgJSz6970n6xlnHlCIww/CwERqJbkOsfwRwcR Yzc1z7cKv018sN4XvgzIPDndgdrLxU4Lrd/doa8FVxeA== Message-ID: <442bbb41-40ed-4e6c-b854-02b636f09fc3@kwiboo.se> Date: Sat, 15 Jun 2024 10:11:00 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] media: dt-bindings: rockchip: Document RK3588 Video Decoder 2 bindings To: Detlev Casanova Cc: linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , "Greg Kroah-Hartman" , Sebastian Reichel , Dragan Simic , Alexey Charkov , Cristian Ciocaltea , Diederik de Haas , Andy Yan , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev References: <20240615015734.1612108-1-detlev.casanova@collabora.com> <20240615015734.1612108-3-detlev.casanova@collabora.com> Content-Language: en-US From: Jonas Karlman In-Reply-To: <20240615015734.1612108-3-detlev.casanova@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 167.172.40.54 X-ForwardEmail-ID: 666d4c9a01f41f7e8a2106cd Hi Detlev, On 2024-06-15 03:56, Detlev Casanova wrote: > Document the Rockchip RK3588 Video Decoder 2 bindings. Why the need for a new schema file and not just extending existing rockchip,vdec.yaml with a new compatible and the new clock? > > Signed-off-by: Detlev Casanova > --- > .../bindings/media/rockchip,vdec2.yaml | 80 +++++++++++++++++++ > 1 file changed, 80 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec2.yaml > > diff --git a/Documentation/devicetree/bindings/media/rockchip,vdec2.yaml b/Documentation/devicetree/bindings/media/rockchip,vdec2.yaml > new file mode 100644 > index 000000000000..e54891b46986 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/rockchip,vdec2.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/rockchip,vdec2.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Rockchip Video Decoder 2 (VDec2) > + > +maintainers: > + - Heiko Stuebner > + > +description: |- > + The Rockchip rk3588 has a stateless Video Decoder that can decodes H.264, > + HEVC, VP9 and AVS2 streams. > + > +properties: > + compatible: > + const: rockchip,rk3588-vdec2 I fail to see the need to call this vdec2 instead of established vdec. Suggest this is changed to rockchip,rk3588-vdec. > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: The Video decoder AXI interface clock > + - description: The Video decoder AHB interface clock > + - description: The Video decoder core clock > + - description: The Video decoder CABAC clock > + - description: The Video decoder HEVC CABAC clock > + > + clock-names: > + items: > + - const: axi > + - const: ahb > + - const: core > + - const: cabac > + - const: hevc_cabac > + > + assigned-clocks: true > + > + assigned-clock-rates: true > + > + power-domains: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - power-domains > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + vdec2: video-codec@fdc38100 { > + compatible = "rockchip,rk3588-vdec2"; > + reg = <0x0 0xfdc38100 0x0 0x500>; > + interrupts = ; > + clocks = <&cru ACLK_RKVDEC0>, <&cru HCLK_RKVDEC0>, <&cru CLK_RKVDEC0_CORE>, > + <&cru CLK_RKVDEC0_CA>, <&cru CLK_RKVDEC0_HEVC_CA>; > + clock-names = "axi", "ahc", "core", > + "cabac", "hevc_cabac"; > + assigned-clocks = <&cru ACLK_RKVDEC0>, <&cru CLK_RKVDEC0_CORE>, > + <&cru CLK_RKVDEC0_CA>, <&cru CLK_RKVDEC0_HEVC_CA>; > + assigned-clock-rates = <800000000>, <600000000>, > + <600000000>, <1000000000>; > + power-domains = <&power RK3588_PD_RKVDEC0>; iommus and resets seem to be missing? Regards, Jonas > + }; > + > +...