Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp568809lqp; Wed, 12 Jun 2024 09:33:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDzRrhL0bgJs/RKQfA7IypgpDwjNRujaUYQ3cHBCMSr0TFTlwotPJhGP9P50c56tClC3cKx+ZhWB+qSLdp07DaLvfWZOycTUyvqcOIJQ== X-Google-Smtp-Source: AGHT+IEs25OJhjfw8qlJepbDDon8CVkNiHqoJ6kNhlvAi4HbN0yKoXHuwtQl/crm7hDepOPrGJ1o X-Received: by 2002:a05:620a:4153:b0:795:5bff:ce48 with SMTP id af79cd13be357-7981017ab6fmr20202385a.25.1718210037268; Wed, 12 Jun 2024 09:33:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718210037; cv=pass; d=google.com; s=arc-20160816; b=gWaliAnfjHoGHDjU960oIvmj6DgyMwappArIsHQGrkNQK7U6qjBDUmH13pEJ9y4f9c PH2zyuya5dtc72ug7f2ze+FcV19cUuxqGUT4k4ODQ+xnLTkVJ5iixDkBkQ1xwCmrbzmY JPK33SoJ6uNKaMEEVl17N5DF/U/Zl6QeYpCavVQ/f6KxmbEKmg4wcQtZYAKH+p4zPHhb N867m3i+YRfPjK50AneSq8D/cl6hpBm7b8JwK818XO2vo3t4bqL4W+n5L1e/xJvVBClt uek6q1OtcUMnaIJRK0Hd9ZoPqUE4sPX0H498E+F/oKVUy2XKRa0o2/MlzeIKT45mOf4m u4Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tfoaq2EClYwZV2kd6b1ua+NrtoC9eMwx7qPXu+CjewQ=; fh=XbEEjxbFjlxTnPqiq84/x9c9EOv3kXtHneT8iCYbGh0=; b=oYmI8WvexurLuKANcRGNiQ6UEEV5xprdCQnKwLkfBlVvx/2busz1sIDCN3NcqH4fdt giwVg9V6IGfmk8+sMN6JJV/a7wiStdDOsW857DcJ6XYQnQu4kehGYbqRHbaSgy1WSRoz d+M4R4nyjKZ0BPdf3n9+YDD+lxJW0zkJ1lmDqqZbf+yU4r6yOIynDnvy1+n/lNfRF7lf qNIc1kpXlIJF6V0Va1LbfpTu8Ny/EajEGSroCfOkhsgcS+UBkiJBi8IUuwjSPDtKP8x6 faPQ36T7RgELgElO08ioigZip+V/hcBDMrltNLwKeDb1o8S0CRTatnFizMb9H1p0IQUK YbwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="A/A94sjn"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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-797ee102250si350271885a.693.2024.06.12.09.33.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 09:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211919-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=@kernel.org header.s=k20201202 header.b="A/A94sjn"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E306B1C20D90 for ; Wed, 12 Jun 2024 16:33:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CAB3181B83; Wed, 12 Jun 2024 16:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A/A94sjn" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 107FE16E882; Wed, 12 Jun 2024 16:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718210025; cv=none; b=sFnnamH/5/tEeDvabl3HNTkgvgxCvuvgi4MD2gGDOAZ9wuWJckgyf+MOcKluDi/QLfPpIBBiUKapZt1j30vGoZ5cIVV4n1ubymIxnNUpiYnLhMazwGsamHYjNsixO+Mj/Mg156s0eMDpnTHLo1xQw6jxaPIgVPCsIJKlclZk/i8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718210025; c=relaxed/simple; bh=MsFhjqz8K5lYmvWMxKf4C54DDbJX7oTJcO1G+HwBc7E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nudIInqwEr3JzmA1GcRj03iZ6H7xWHmZVNW9JS3lhKvu+6tX5ItGptSCt5GO2rVIMTWG0b9nVLAr5SqPnqlAmaH9MmzD8qN8NUa88HTmjK9wHJ2eW2GcckwjCt0yrXZ0ZpxxjVi8LhqpdBM6Y51aZFSmQpJIVWm44lafRvXbRSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A/A94sjn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB245C116B1; Wed, 12 Jun 2024 16:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718210024; bh=MsFhjqz8K5lYmvWMxKf4C54DDbJX7oTJcO1G+HwBc7E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A/A94sjnqFJGlbWmyQihVESPvg0PkCzVg1I4nQ02bgdav01il2R4ztGU6aU1UtPu/ Cs7+1wksCp1mR6a3UAo/RXqX6mAnbdQq/EM7sUMrYJITwL+5zYgHjMDVKfrHruUtAS RnKDLhiXr05X3ho1yjomQFzqaIygS4HZ7MG0bWdbCTUtytX3JebZ9DKFwtDhCSolWW 1k42z7ipJMuR+qpDMWSijcqlC0NW3Asz1Nu/CewdfjZc/Zxnbo6V6TMnINfI7sBD6Z t8dFtbqr/dU/rB2CciVugp0ioOhNDk0/SW+HlKHKWiZeSic/siy3CXc6X/aAByuPHR KXtLiW/YqCk3A== Date: Wed, 12 Jun 2024 17:33:37 +0100 From: Conor Dooley To: Tomeu Vizoso Cc: Joerg Roedel , Will Deacon , Robin Murphy , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oded Gabbay , Tomeu Vizoso , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Philipp Zabel , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH 3/9] dt-bindings: mailbox: rockchip,rknn: Add bindings Message-ID: <20240612-thread-throng-a4a14ce0c6e8@spud> References: <20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net> <20240612-6-10-rocket-v1-3-060e48eea250@tomeuvizoso.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XO+bVuaSKPlkL0L7" Content-Disposition: inline In-Reply-To: <20240612-6-10-rocket-v1-3-060e48eea250@tomeuvizoso.net> --XO+bVuaSKPlkL0L7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2024 at 03:52:56PM +0200, Tomeu Vizoso wrote: > Add the bindings for the Neural Processing Unit IP from Rockchip. >=20 > Signed-off-by: Tomeu Vizoso > --- > .../devicetree/bindings/npu/rockchip,rknn.yaml | 123 +++++++++++++++= ++++++ > 1 file changed, 123 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/npu/rockchip,rknn.yaml b/D= ocumentation/devicetree/bindings/npu/rockchip,rknn.yaml > new file mode 100644 > index 000000000000..570a4889c11c > --- /dev/null > +++ b/Documentation/devicetree/bindings/npu/rockchip,rknn.yaml > @@ -0,0 +1,123 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/npu/rockchip,rknn.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Neural Processing Unit IP from Rockchip, based on NVIDIA's NVDLA > + > +maintainers: > + - Tomeu Vizoso > + > +description: |+ The |+ chomping operator is not needed here. > + Rockchip IP for accelerating inference of neural networks, based on NV= IDIA's open source NVDLA IP. > + > +properties: > + compatible: > + items: > + - enum: > + - rockchip,rk3588-rknn > + - const: rockchip,rknn > + > + reg: > + description: Base registers for NPU cores > + minItems: 1 > + maxItems: 20 For all of these properties, you need to describe the individual items. > + > + interrupts: > + minItems: 1 > + maxItems: 20 > + > + interrupt-names: > + minItems: 1 > + maxItems: 20 > + > + clocks: > + minItems: 1 > + maxItems: 20 > + > + clock-names: > + minItems: 1 > + maxItems: 20 > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-rates: > + maxItems: 1 > + > + resets: > + minItems: 1 > + maxItems: 20 > + > + reset-names: > + minItems: 1 > + maxItems: 20 > + > + power-domains: > + minItems: 1 > + maxItems: 20 > + > + power-domain-names: > + minItems: 1 > + maxItems: 20 > + > + iommus: > + items: > + - description: IOMMU for all cores > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-names > + - clocks > + - clock-names > + - assigned-clocks > + - assigned-clock-rates > + - resets > + - reset-names > + - power-domains > + - power-domain-names > + - iommus > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + bus { > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + > + rknn: npu@fdab0000 { Drop the label here, it's not used. > + compatible =3D "rockchip,rk3588-rknn", "rockchip,rknn"; > + reg =3D <0x0 0xfdab0000 0x0 0x9000>, > + <0x0 0xfdac0000 0x0 0x9000>, > + <0x0 0xfdad0000 0x0 0x9000>; > + interrupts =3D , > + , > + ; > + interrupt-names =3D "npu0_irq", "npu1_irq", "npu2_irq"; > + clocks =3D <&scmi_clk 0>, <&cru 1>, > + <&cru 2>, <&cru 3>, > + <&cru 4>, <&cru 5>, > + <&cru 6>, <&cru 7>; > + clock-names =3D "clk_npu", > + "aclk0", "aclk1", "aclk2", > + "hclk0", "hclk1", "hclk2", > + "pclk"; > + assigned-clocks =3D <&scmi_clk 0>; > + assigned-clock-rates =3D <200000000>; > + resets =3D <&cru 0>, <&cru 1>, <&cru 2>, > + <&cru 3>, <&cru 4>, <&cru 5>; > + reset-names =3D "srst_a0", "srst_a1", "srst_a2", > + "srst_h0", "srst_h1", "srst_h2"; > + power-domains =3D <&power 0>, <&power 1>, <&power 2>; > + power-domain-names =3D "npu0", "npu1", "npu2"; > + iommus =3D <&rknpu_mmu>; > + status =3D "disabled"; A disabled example is useless. > + }; > + }; > +... >=20 > --=20 > 2.45.2 >=20 --XO+bVuaSKPlkL0L7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmnN4QAKCRB4tDGHoIJi 0mrlAP9TxBQhVfDfgrJQbQo60aSn0bl4zIUbk97NiOySlHcMagD+P4zYal5XytkL kBIJ4zmFrRDcfCNFjF3XIqExV8y20gI= =Z+Wc -----END PGP SIGNATURE----- --XO+bVuaSKPlkL0L7--