Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp78101rdb; Wed, 18 Oct 2023 19:23:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVKHD9CyuVUgRlT2T9MxzWI4UHyJUMQIKrdyT1VMkVsji3ovDO15WmBe88ZCVq/LXPpAsz X-Received: by 2002:a05:6870:9b0d:b0:1e9:bda0:774 with SMTP id hq13-20020a0568709b0d00b001e9bda00774mr1372806oab.25.1697682226921; Wed, 18 Oct 2023 19:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697682226; cv=none; d=google.com; s=arc-20160816; b=f/XKBl86sFlsCn1vWKZiz0ecxL3WATub5QmH0CHSCAoSTTW/N8TVCzKM8ssoCaR/WT RogMW6iIrZybzZubF+FfeRzn7f9g9+PPeInOor2KN/Qdmh7eIlA+kQ1/47cRrj3GH326 1wLk8ZOk3x03S2s4F7IIj0YKYEhbREoTtRS8BAXJyr7OKekpwOlsVv9LyjTT8iIW1gHN ey00aKnfwo0J+63vJd8dzQugV745IlQSFkOZ45V8kUcsTt/ZqhxRsccFEpaZ1StNoN4y 99APny/4LlY/SarSda6cNu7ZEBP83Y9j14X7jfvy7JOfwpb+53MnEG3CBkuxpRMH1Vpt boNA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=dimg1l+YMRLp1DFCSJLkXMuU0P+ufAjg83AOKIFzRrw=; fh=3c42iaGut2ofsz32753QS0f3c5aB79bkkv8L8c0KlyI=; b=fy1lZwhIQ86qRY0+SQppL1hG+BBq2QCcYKisqO/mjInW4lmgvnARhrLCg/DQ9D6/OH 4UTiTTlLBwOUTxRZH5M3XeYXJKbmxJT/USVL99pJK4xZ4i4zeEVRDFJgAsFDaNsB0e1b Rfdmuc6pSeXwhMfytPFq84gjAWeM0PlZN/3k0+tMdvkfzuuf29O6yB6k7ui3J+75r4qz n56fZqCBB8VweO859g4W3fXznYf9qTYHt3vPez2SCsn8csXS5576SZpTwLqch4msK9SX fYF2Lseu2Mc1z4iBh9fOPxjywFk7bbHVwMpzD97pqR7VtMEsyYiXudrK2iRY+yUkd5AW y5qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dezZrkqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 62-20020a630041000000b00553800fe4dcsi3543324pga.583.2023.10.18.19.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 19:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dezZrkqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 744F1807CEF4; Wed, 18 Oct 2023 19:23:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231470AbjJSCXV (ORCPT + 99 others); Wed, 18 Oct 2023 22:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjJSCXU (ORCPT ); Wed, 18 Oct 2023 22:23:20 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EAC59B; Wed, 18 Oct 2023 19:23:18 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-419787a43ebso47763561cf.1; Wed, 18 Oct 2023 19:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697682197; x=1698286997; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dimg1l+YMRLp1DFCSJLkXMuU0P+ufAjg83AOKIFzRrw=; b=dezZrkqLJj+pBhm8MW8RKBAAHTDD7Ei/1NG2B7p6NT8IZmBT0JGx/eSvmrN+hCGBUm 3fRtdcNR65Gu7qH/lP9+l233S1a2BRtgAMdn8POYtZTIrRLJJVYxT4T7AH3phHBi7240 cRLwQDkOYaGZ6aBk31S5y3sR1Miwu5FCR/Abtb9NoFwzFuhhnTQ6DX0hnGqGsSP+h1q4 meXggAXasHSeczUfaZpf4DlJTT4XXV58R5l/3+zNwAgAGOWOBveqWjAoM6vP7PD4huhi rSXgHX4N6U68W0vQwSVK/XcClCeljIo/JBxSLMW035UrQ6EfbpwC/0AlMicKya7zj14L befg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697682197; x=1698286997; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dimg1l+YMRLp1DFCSJLkXMuU0P+ufAjg83AOKIFzRrw=; b=JOdgC3KjbH515w1FuahwRyIT+robOn7ZO07gusddSbCOOxYqA1ebNb6FdbuHNeXbwW Wf5NJHfcoZrxN5tcvcn9TeUm+rS3u1vCT6SxKNhyI1TD/yDQvN+tkhnxTQrIUrkkwY9e gc0HwR0FfC1zxKkFcP0Ss6dOolIXclnD3J1Dkn3BKaTSCKtWljh0iVSJy+pBZG8c2mye 3e7Cz2kMPquLgJeYg8pVy2ewoOqahqjPAkfedpYhC277NlYu3//SBuok1QyRJzTorsj4 ZvQaP2EDtbuUdOxbwjq8xz0Zt1IjPHJraloc6/sjsW3iOYp9LswIWruOaoLWTdVscSjX hTQw== X-Gm-Message-State: AOJu0YyLNqVecLB0/yarYkLqi+C7AP3xgv8xcgLrAdzwAM2VZA6WDZfl KkVzncgyN7bVwap4clNkVE4= X-Received: by 2002:a05:622a:1910:b0:412:14a8:24c8 with SMTP id w16-20020a05622a191000b0041214a824c8mr1212595qtc.8.1697682197359; Wed, 18 Oct 2023 19:23:17 -0700 (PDT) Received: from aford-System-Version.lan ([2601:447:d002:5be:be33:c8cc:260b:4a5e]) by smtp.gmail.com with ESMTPSA id jz14-20020a05622a81ce00b0041cbf113c28sm414336qtb.40.2023.10.18.19.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 19:23:16 -0700 (PDT) From: Adam Ford 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 Subject: [PATCH] arm64: dts: imx8mp: Add NPU Node Date: Wed, 18 Oct 2023 21:23:00 -0500 Message-Id: <20231019022300.1588041-1-aford173@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 19:23:43 -0700 (PDT) The NPU is based on the Vivante GC8000 and it enumerates as etnaviv-gpu 38500000.npu: model: GC8000, revision: 8002 Signed-off-by: Adam Ford 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 = "g1", "g2", "vc8000e"; }; + npu: npu@38500000 { + compatible = "vivante,gc"; + reg = <0x38500000 0x20000>; + interrupts = ; + clocks = <&clk IMX8MP_CLK_NPU_ROOT>, + <&clk IMX8MP_CLK_NPU_ROOT>, + <&clk IMX8MP_CLK_ML_AXI>, + <&clk IMX8MP_CLK_ML_AHB>; + clock-names = "core", "shader", "bus", "reg"; + assigned-clocks = <&clk IMX8MP_CLK_ML_CORE>, + <&clk IMX8MP_CLK_ML_AXI>, + <&clk IMX8MP_CLK_ML_AHB>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>, + <&clk IMX8MP_SYS_PLL1_800M>, + <&clk IMX8MP_SYS_PLL1_800M>; + assigned-clock-rates = <1000000000>, <800000000>, <400000000>; + power-domains = <&pgc_mlmix>; + }; + gic: interrupt-controller@38800000 { compatible = "arm,gic-v3"; reg = <0x38800000 0x10000>, -- 2.40.1