Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp148760rdb; Wed, 18 Oct 2023 23:11:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1SBwfPRU5bDWkvzI3JXE2mNlJKfBCvu/aVQvG43tcJuD/oEg/lr3eengx9j9sS63Vqz59 X-Received: by 2002:a05:6a21:47c6:b0:16c:b5ce:50f with SMTP id as6-20020a056a2147c600b0016cb5ce050fmr1077420pzc.32.1697695905954; Wed, 18 Oct 2023 23:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697695905; cv=none; d=google.com; s=arc-20160816; b=BoDhGdRQnxUKMZTzRshbU/GvMC7cPa5FHZQzgtHKU1xK+0GJEO0VMLEGCeNEZg7Hxy utiv5/zcOM9J8yvbZXKYfuNwhzV0NnhB8z4CwBkO00be9iPj+hcRqeYuhNF1PhqMoWQv VJGT2RvbcC2WPmlOoNgh/jAtVuAuPxOZVhwZQ5jRp3yHTiNoUb64XFUScAnssDE2QRn2 xl6J2GzMzlckKbNLz8WduR6v3nlirmnh4YsppxevOyCF3q8TmcAoJ1M+4YN39T+9YxkV FSXrfJl3HA1gryFIKY+cXRAfDcXeg0sTgdlD5ViZ18EpGbrouAs4lBe+uTCFLaMskVsi JKDg== 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:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=730YXzJM/veidNKheQX/2/WJuZLbsKNszAfJOtRDQjk=; fh=HaG/aruulCWRnS6PV3Flm/fIqGmwzYcoDrB6QSkxoxM=; b=j1rlYWVu/i1UPGkUHbIgD7PZ9J+XVuQwkVog2UqjrQjXjErFFYjMkKRaj46AwrIN+s q6HPd3SgZYvF0Hl0gdvCDIFUhDyOtBEwRX2Vkgj6OzDzxNmLaomhl3vaSTGqoBtMfxcQ UW0v4vnvKkVVphr+ZAACDaZ0izvBwNU/yWzTro1PtAjAB89bQl+saObZifx/kZIOiOIF cuWfA4xiR7+31yHgOi6ThYpTumGPyQz7yqQ5tm6aVPnOC2d45OLITBiLYWq2Gc24GCud Qvt5C/aIFOMROnu09UEWBWoSU89i0xBeKB4Ykd1l6ytitLjVdJX59JWNBPDk+pYazKoW 9lpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SQcFSLKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ay9-20020a17090b030900b00276df8c5b83si1340798pjb.143.2023.10.18.23.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SQcFSLKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D6CD480539A1; Wed, 18 Oct 2023 23:11:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232852AbjJSGLP (ORCPT + 99 others); Thu, 19 Oct 2023 02:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbjJSGK6 (ORCPT ); Thu, 19 Oct 2023 02:10:58 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A32701A7; Wed, 18 Oct 2023 23:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697695256; x=1729231256; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=730YXzJM/veidNKheQX/2/WJuZLbsKNszAfJOtRDQjk=; b=SQcFSLKzIHJEDOA7F/XPFFQheHAtN443vno+gcCPT2tC1ksc25Bw9kda vLOUsgouUKKxSgcyb4JMVk6Q6YOGIn1uiuqv9rSx3vMKLGaMRrWz+kAYD 6ybPYi5yhFxKSe1EDXZa15/mZ5Uj2lxoJDfoG7A3ApoJEruEVXSz2x76G D7jA2uynUuhoWPAhy5QBhQ18RaLPUdGVBs6N15gpQ0oJ6LcN/+STYwdYd bNhUWP53yaYU0qYf3Sgx+vms9BB03B+vEdTy1T1lvNwJ1gXG+tjMctIUD xO8rWmDFc46aG3bW46mKPK3JtG91bZtPKVXaBnpIePbF0up/giFKAMju/ Q==; X-IronPort-AV: E=Sophos;i="6.03,236,1694728800"; d="scan'208";a="33540707" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Oct 2023 08:00:51 +0200 Received: from steina-w.localnet (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id A3141280082; Thu, 19 Oct 2023 08:00:51 +0200 (CEST) From: Alexander Stein To: linux-arm-kernel@lists.infradead.org Cc: l.stach@pengutronix.de, aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Ford Subject: Re: [PATCH] arm64: dts: imx8mp: Add NPU Node Date: Thu, 19 Oct 2023 08:00:53 +0200 Message-ID: <4261115.mogB4TqSGs@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20231019022300.1588041-1-aford173@gmail.com> References: <20231019022300.1588041-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:11:37 -0700 (PDT) Hi Adam, thanks for the patch I tried a similar one. Am Donnerstag, 19. Oktober 2023, 04:23:00 CEST schrieb Adam Ford: > The NPU is based on the Vivante GC8000 and it enumerates as >=20 > etnaviv-gpu 38500000.npu: model: GC8000, revision: 8002 >=20 > Signed-off-by: Adam Ford >=20 > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index > c9a610ba4836..1ef8d17726ac 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -2012,6 +2012,25 @@ vpumix_blk_ctrl: blk-ctrl@38330000 { > interconnect-names =3D "g1", "g2", "vc8000e"; > }; >=20 > + npu: npu@38500000 { > + compatible =3D "vivante,gc"; > + reg =3D <0x38500000 0x20000>; Do you have some more information about the actual memory range? RM says 2M= iB,=20 but NPU memory map lists up to 0x664. > + interrupts =3D ; > + clocks =3D <&clk IMX8MP_CLK_NPU_ROOT>, > + <&clk IMX8MP_CLK_NPU_ROOT>, > + <&clk IMX8MP_CLK_ML_AXI>, > + <&clk IMX8MP_CLK_ML_AHB>; > + clock-names =3D "core", "shader", "bus", "reg"; > + assigned-clocks =3D <&clk IMX8MP_CLK_ML_CORE>, > + <&clk IMX8MP_CLK_ML_AXI>, > + <&clk IMX8MP_CLK_ML_AHB>; > + assigned-clock-parents =3D <&clk=20 IMX8MP_SYS_PLL2_1000M>, > + <&clk=20 IMX8MP_SYS_PLL1_800M>, > + <&clk=20 IMX8MP_SYS_PLL1_800M>; > + assigned-clock-rates =3D <1000000000>,=20 <800000000>, <400000000>; 1GHz for ML_CLK_ROOT is only available in overdrive mode, 800MHz in nominal= =20 mode. See datasheet IMX8MPIEC Rev 2.1. I don't think it's a good idea to=20 configure for overdrive mode by default. Same goes for CLK_ML_AHB regarding 400 vs. 300 MHz. Best regards, Alexander > + power-domains =3D <&pgc_mlmix>; > + }; > + > gic: interrupt-controller@38800000 { > compatible =3D "arm,gic-v3"; > reg =3D <0x38800000 0x10000>, =2D-=20 TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/