From patchwork Thu Mar 2 09:33:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1750524 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ih++S7fn; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PS5XC5VrCz2460 for ; Thu, 2 Mar 2023 20:34:03 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229453AbjCBJeB (ORCPT ); Thu, 2 Mar 2023 04:34:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjCBJeA (ORCPT ); Thu, 2 Mar 2023 04:34:00 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D2514EA2; Thu, 2 Mar 2023 01:33:59 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id g3so9565068eda.1; Thu, 02 Mar 2023 01:33:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677749637; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pKDeRQ/4JLfwuQ8OdxmCXpTuWBhIo0gbvATYdHXRLEQ=; b=ih++S7fnHJ04ORwtbMTVqTpMuwCk2PKSX2FYJZwPgekoz7g0cQPGQzc2nhQYXcNM1v yM0FkuIfoR8tOZyrmx6Pp/yrRPgiaEz1AHO+m19e5GGmN4dewrMcdVlP5jxv4yg0h2eD klBXvzpL9bq2zdKggZSWOzM8B/36dLcB52UpSzmfBqusi2bniiXUoJTSlbFrZYxioOu7 jtCk2NwWb66fhIThXaxfCJ5wUNXGM/LLaOETMXEtxr9DicP+Ha6NBTPSdsfXGDGqVA0X oLRDaQueRbp6Wu4NRvW4E/1Kpa17NlSZpZGDmxTScoTpiNvWalxJ42fQjP8icKBv+6D8 J+Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677749637; 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=pKDeRQ/4JLfwuQ8OdxmCXpTuWBhIo0gbvATYdHXRLEQ=; b=5N24SeAA7Dy2t/l/Q3UdYWo3eGoLcTZ9PrZpQ28KGZnBaQc4iVTg8l9GYeDPyg+yWK usiFApinLOuZCS9xdej9y1l58Cx2rruW5HoadOPAxpXfwTv8ovheOA2YKGmLlUuxMLrW J/pdkJxJYuozZZmpCn7VR+y1rPrXGrnY6fZVWeEwMMHXAl2Bi/eg4R1VBTNXg+x1Xb/c 29oD3YfMdlL46XhIVxieeTAyXqbcdw95aSelos42kKoZ1WLEkntugWyOduQSMfhcS8NT 4L3+v7UH8oKJ/xU76o+JIW71jBRjXRQkLYW2hF5LFB6K80ylPYpM1GNoPZTDNxi/eiHn Eezw== X-Gm-Message-State: AO0yUKVEEVTbsI6yWv7XncJjb/qrJnUBX+JOagdDZJh2Ge1Qtfw+nkyU YrkJ3NjqUUSVsgD29s29+4E= X-Google-Smtp-Source: AK7set+SvI+Kkueg3IpSyU/iRjuqghNL9lpO9dAXmgvOIQ7kroCKqlb02D4T9ERKJu+x7FPQuyiGZw== X-Received: by 2002:a05:6402:416:b0:4ad:7c30:2599 with SMTP id q22-20020a056402041600b004ad7c302599mr11097738edv.13.1677749637208; Thu, 02 Mar 2023 01:33:57 -0800 (PST) Received: from localhost (p200300e41f1c0800f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1c:800:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id b44-20020a509f2f000000b004bf76fdfdb3sm868339edf.26.2023.03.02.01.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 01:33:56 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] dt-bindings: tegra: Document Jetson Orin NX Date: Thu, 2 Mar 2023 10:33:50 +0100 Message-Id: <20230302093353.3873247-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-tegra@vger.kernel.org From: Thierry Reding The Jetson Orin NX is the latest iteration in the NX family of Jetson products. Document the compatible strings used for these devices. Signed-off-by: Thierry Reding Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/tegra.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/tegra.yaml b/Documentation/devicetree/bindings/arm/tegra.yaml index 939a77c767bb..6c13d5e5719a 100644 --- a/Documentation/devicetree/bindings/arm/tegra.yaml +++ b/Documentation/devicetree/bindings/arm/tegra.yaml @@ -213,5 +213,9 @@ properties: - const: nvidia,p3737-0000+p3701-0000 - const: nvidia,p3701-0000 - const: nvidia,tegra234 + - description: Jetson Orin NX + items: + - const: nvidia,p3767-0000 + - const: nvidia,tegra234 additionalProperties: true From patchwork Thu Mar 2 09:33:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1750526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=AyJJBhux; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PS5XD5VDlz246G for ; Thu, 2 Mar 2023 20:34:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229675AbjCBJeB (ORCPT ); Thu, 2 Mar 2023 04:34:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjCBJeA (ORCPT ); Thu, 2 Mar 2023 04:34:00 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B67BA1515D; Thu, 2 Mar 2023 01:33:59 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id g3so9565202eda.1; Thu, 02 Mar 2023 01:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677749638; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1gljsncSazEBidrD5SMWZ+vpM35ok5DGJL+jTv+84I8=; b=AyJJBhuxms+sTAfhOqaP/czHtGKtFZ4naopBeyoLB55PzJvZP+znndHtScsgjHMvsK X2H+ND2QQUNYr6gMANLyKt2KAnkqtQKuIbXbEfokglJ6o3Q7XQK7ptHovzx3Cpj6/QFP b0tGhF0YHRyDjmNARdktno+M5XLcr+n/PB98eDjeShMSqOVfF/9iVIGtI51JSG+jc82f +ZH7RFfRR0CEAEe8bVuDdNCF8rRW19oK7wGn0Uw3RdaScSON2i2ZRpO4s9G2BcC4cP+Q 49O3pXSIO3bakrVFNM+6rZzslFNdFvQ8lTH7q7gPk/nz61Yhsn/T40Q97IJ112qNJg6/ V1cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677749638; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1gljsncSazEBidrD5SMWZ+vpM35ok5DGJL+jTv+84I8=; b=jFgMvprfonQWLxVQ0ScP6MYOKVDg6mkhUA6ABUMIQ49FZXFAJ9TET/CKSJ8Y0iM5ln kfbiTySRPmjxdo0itNZStG5oxKhNYwkoXWY1gEr1L94TzfYYGrICTvkqn13+gSk15xGP Hz/3Rlq2wAkJQSGpnfa75qVcyga267eu1aDSuQum/I+sE+p1bZC86n3WSpA/PxBlx6v8 jx5ph/hbKddMY3KMG+7yN9rmxbH10F/6GzwIZDzdloLeylOudxvTIugNU6oIbF8x1yBy vp8hwf73JrVo7SFmxL/OUzduNAxIOg6JARy4GLDlR6erAncVqgp8x3jJfbLoWF8dobrR Djqw== X-Gm-Message-State: AO0yUKVMpe8uwedZWjg65uP7bOSLgZBoSexcX46dymVwUitIRwR86oPr ojakk2rDArDrCS1cIfOu5iHhp/amVZE= X-Google-Smtp-Source: AK7set/B38J1OEUNHsptqkT4jA+2Xqre/FJ9esyq2rILMyXBd1lnt3elRdMzTx9Hp9M+tKda+LcptQ== X-Received: by 2002:a17:906:d8c8:b0:82e:a57b:cc9b with SMTP id re8-20020a170906d8c800b0082ea57bcc9bmr1640072ejb.24.1677749638245; Thu, 02 Mar 2023 01:33:58 -0800 (PST) Received: from localhost (p200300e41f1c0800f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1c:800:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id e6-20020a170906248600b008e53874f8d8sm6826428ejb.180.2023.03.02.01.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 01:33:57 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] dt-bindings: tegra: Document P3768+P3767 reference platform Date: Thu, 2 Mar 2023 10:33:51 +0100 Message-Id: <20230302093353.3873247-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230302093353.3873247-1-thierry.reding@gmail.com> References: <20230302093353.3873247-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-tegra@vger.kernel.org From: Thierry Reding Document the combination of the P3768 carrier board with the P3767 (Jetson Orin NX) module. Signed-off-by: Thierry Reding --- Documentation/devicetree/bindings/arm/tegra.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/tegra.yaml b/Documentation/devicetree/bindings/arm/tegra.yaml index 6c13d5e5719a..014b32f780fe 100644 --- a/Documentation/devicetree/bindings/arm/tegra.yaml +++ b/Documentation/devicetree/bindings/arm/tegra.yaml @@ -217,5 +217,9 @@ properties: items: - const: nvidia,p3767-0000 - const: nvidia,tegra234 + - items: + - const: nvidia,p3768-0000+p3767-0000 + - const: nvidia,p3767-0000 + - const: nvidia,tegra234 additionalProperties: true From patchwork Thu Mar 2 09:33:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1750528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=B2hcDwkb; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PS5XF4KqVz1yWy for ; Thu, 2 Mar 2023 20:34:05 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjCBJeD (ORCPT ); Thu, 2 Mar 2023 04:34:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjCBJeC (ORCPT ); Thu, 2 Mar 2023 04:34:02 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1773814EA2; Thu, 2 Mar 2023 01:34:01 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id a25so2532535edb.0; Thu, 02 Mar 2023 01:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677749639; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tNhjfyslff64zUgHAEjxExE6KH84HCgycvbeeDK9c0k=; b=B2hcDwkbIdy/Z2bwFaY997MIOqIQ2qhIzig2woFUfIyuXxLYeIp4JiBABJIZrRYVyY 4pchrLX0CfYyEVrsOB4fgdCDZ88Z+EurlMm+7SOsM1I5RNeIiRnTak4L9L4TsskQiZzo qrUL0G/yan5KFSzx7BghhrWX0bflWe2AWWScYdHc9Xo4yW7UpCaKJb4c5dg1NOM6oME2 5VLA7OsdBJ3CRztgO3kPlwCkZUEuQRrioYrNZgf7pqkdb8PkuDvYyXVhg7ZLbesQ3rI0 8SaadTelVFdm/pyKw4Gnh/6HdJwVepExFUG4g95eU7F4+pBR0i7oHXc1dAHGE9+6HRhE e9sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677749639; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tNhjfyslff64zUgHAEjxExE6KH84HCgycvbeeDK9c0k=; b=b405tRQuBPWqClJ1Z4p3gecmF6k3PLYYrPM0pOpgOvkCRWOeKXk3u6cHQcfXpR3am/ GIwnixYNvB7k10N14z2+ONMS/D0ebTIU/77Ukb3c/IAxonCw7s8cg6ekyrlZvNOi54ih wQ9OaM4ORJk+C4uTBIzdwKUyuxoOTcBYCaR3s2vaGqj2Jbe/uN0b0/XKHDWzUmD7u+Ht I0ImY2aik5huiWbw7A0QswXL/ZLRuPKgjMPVSx/uO7O/Jfu6ZQ+ZlmXyItAWFlvr3a0k W2OLXNK6SnhFQHqxJ+oYU9vmj8evAc00QoQM9AcIuXqHCOD/a/wTKQimzmWN+o313cxV uVHA== X-Gm-Message-State: AO0yUKVc6+6SdbCw5OWmtisrUNynIVOOKm/amBTrLL1kihPzsiSqDYLl 7BhpFtGc6x6BOg7xP7wcQVE= X-Google-Smtp-Source: AK7set/QxzGCXIZMibKmmEKSVHtLgM2PJGiFWOWouIeWCk9vSXu9lrMXF+6+xdXma2Cdm5cdaTSmTg== X-Received: by 2002:a17:906:7143:b0:8af:4969:1bb4 with SMTP id z3-20020a170906714300b008af49691bb4mr9394747ejj.53.1677749639142; Thu, 02 Mar 2023 01:33:59 -0800 (PST) Received: from localhost (p200300e41f1c0800f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1c:800:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id qx11-20020a170906fccb00b008e9c79ff14csm6938730ejb.96.2023.03.02.01.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 01:33:58 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] arm64: tegra: Add Jetson Orin NX support Date: Thu, 2 Mar 2023 10:33:52 +0100 Message-Id: <20230302093353.3873247-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230302093353.3873247-1-thierry.reding@gmail.com> References: <20230302093353.3873247-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-tegra@vger.kernel.org From: Thierry Reding This adds a device tree for the Jetson Orin NX module, which is Jetson AGX Orin's little sibling with 6 or 8 ARM Cortex-A78AE cores, an Ampere GPU (1024 GPU and 32 tensor cores) and a number of accelerators for machine learning, image processing and more. The Jetson Orin NX comes with either 8 or 16 GiB of 128-bit LPDDR5 and supports NVME for mass storage. Signed-off-by: Thierry Reding --- .../boot/dts/nvidia/tegra234-p3767-0000.dtsi | 173 ++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi new file mode 100644 index 000000000000..3f9f7c8534a2 --- /dev/null +++ b/arch/arm64/boot/dts/nvidia/tegra234-p3767-0000.dtsi @@ -0,0 +1,173 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "tegra234.dtsi" + +/ { + model = "NVIDIA Jetson Orin NX"; + compatible = "nvidia,p3767-0000", "nvidia,tegra234"; + + bus@0 { + i2c@3160000 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + + label = "module"; + vcc-supply = <&vdd_1v8_hs>; + address-width = <8>; + pagesize = <8>; + size = <256>; + read-only; + }; + }; + + padctl@3520000 { + vclamp-usb-supply = <&vdd_1v8_ao>; + avdd-usb-supply = <&vdd_3v3_ao>; + }; + + rtc@c2a0000 { + status = "okay"; + }; + + pmc@c360000 { + nvidia,invert-interrupt; + }; + }; + + vdd_5v0_sys: regulator-vdd-5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "VDD_5V0_SYS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + vdd_1v8_hs: regulator-vdd-1v8-hs { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8_HS"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vdd_1v8_ao: regulator-vdd-1v8-ao { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8_AO"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + vin-supply = <&vdd_5v0_sys>; + }; + + vdd_3v3_ao: regulator-vdd-3v3-ao { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_AO"; + regulator-min-microvolt = <33000000>; + regulator-max-microvolt = <33000000>; + regulator-always-on; + vin-supply = <&vdd_5v0_sys>; + }; + + thermal-zones { + cpu-thermal { + polling-delay = <1000>; + polling-delay-passive = <1000>; + status = "okay"; + + trips { + critical { + temperature = <104500>; + hysteresis = <0>; + type = "critical"; + }; + + hot { + temperature = <99000>; + hysteresis = <1000>; + type = "hot"; + }; + + board_trip_passive: passive { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + + board_trip_active2: active-2 { + temperature = <80000>; + hysteresis = <4000>; + type = "active"; + }; + + board_trip_active1: active-1 { + temperature = <65000>; + hysteresis = <4000>; + type = "active"; + }; + + board_trip_active0: active-0 { + temperature = <50000>; + hysteresis = <4000>; + type = "active"; + }; + }; + + cooling-maps { + passive { + cooling-device = <&fan 3 3>; + trip = <&board_trip_passive>; + }; + + active2 { + cooling-device = <&fan 2 3>; + trip = <&board_trip_active2>; + }; + + active1 { + cooling-device = <&fan 1 2>; + trip = <&board_trip_active1>; + }; + + active0 { + cooling-device = <&fan 0 1>; + trip = <&board_trip_active0>; + }; + }; + }; + + gpu-thermal { + status = "okay"; + }; + + cv0-thermal { + status = "okay"; + }; + + cv1-thermal { + status = "okay"; + }; + + cv2-thermal { + status = "okay"; + }; + + soc0-thermal { + status = "okay"; + }; + + soc1-thermal { + status = "okay"; + }; + + soc2-thermal { + status = "okay"; + }; + + tj-thermal { + status = "okay"; + }; + }; +}; From patchwork Thu Mar 2 09:33:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 1750529 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=OXcXHayK; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PS5XG3Twdz1yWy for ; Thu, 2 Mar 2023 20:34:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbjCBJeE (ORCPT ); Thu, 2 Mar 2023 04:34:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjCBJeD (ORCPT ); Thu, 2 Mar 2023 04:34:03 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D2981515D; Thu, 2 Mar 2023 01:34:01 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id u9so15539940edd.2; Thu, 02 Mar 2023 01:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677749640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tJCsizHtlHnY9LbiBRU0WlzpSmORm6XsGwCxOW5BRZw=; b=OXcXHayK6d4huYqsgl6PeFb/cvnhBU3o093PSIDlsregDmHO0hR1BW5aSgHfvslqvk NfAQWi2Zicybw2vixZGZsr9UYv95ZSRnYZj5JO6SED4kUOOEB7uHlKONtr7yKMFPl+zK CwmoLiMLkOoQJxXkFkoZv2AcOvsh8qYTzufEeKT3HsB2CQSDREqTPsLY7yDLtcJElbta WwxZZzr0lQFgOBREtQs59GCnhgoUn+99L4zleRGM47LAJwNEU3LOGwbWyLwfV2kQkNhR sfuYUiCBUHyyKC5A7S2dVm4OXGyM4LivJ4YqhoZX/ezd/UJkc9TYHD2RTyXcqzUqFzhg USlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677749640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tJCsizHtlHnY9LbiBRU0WlzpSmORm6XsGwCxOW5BRZw=; b=ZwWuXloitwbf1wcfBPlC5oN3YWmK9r3lde9Y64x7qLLVaUR3Cy55sP4s5aossiK+lK fcf+e3zQqyUmYsDREs9G2CEn8ulfJwugA/vxMMFnxcUqOzWvuUsWa3Rd3HRB4xGtnxBC /uaCOoGsWasoCnBEIKdGzHkh4LXl/RaeOZLwpO1OnUq9m8UWhAisnLxPfH3in/PO0fTU 3nUr+d6nPsmoPhPYFZrOqTtevFsHeenu0kjHSZoauDOH6IGIZ1G6/kK8YSpYOcCp5TlD 2HxicmYH3ruWhS/dgFEPqk+pehssgPPEmz0mJ+osUBRqjDffMb7Ov6nPq3d4ZZwR63cE n1jQ== X-Gm-Message-State: AO0yUKU7tnfMql/67TG3a5NHEsJonFU8UrGoKmH09uSDTrAl3KSxr4+s usof1/pnaiMS3Txix8hcJ/k= X-Google-Smtp-Source: AK7set+dleus9aeUv6VMpW1IN5rE4yHZpy209e6/WkRRQqgbH+8U498ZjVkou/ArWIOZexcKK1OnDg== X-Received: by 2002:a17:906:4ec9:b0:881:a3ec:2b43 with SMTP id i9-20020a1709064ec900b00881a3ec2b43mr9241918ejv.56.1677749640021; Thu, 02 Mar 2023 01:34:00 -0800 (PST) Received: from localhost (p200300e41f1c0800f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1c:800:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id kf7-20020a17090776c700b008b17ed98d05sm6809156ejc.120.2023.03.02.01.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 01:33:59 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] arm64: tegra: Add support for P3768+P3767 Date: Thu, 2 Mar 2023 10:33:53 +0100 Message-Id: <20230302093353.3873247-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230302093353.3873247-1-thierry.reding@gmail.com> References: <20230302093353.3873247-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-tegra@vger.kernel.org From: Thierry Reding Add support for the combination of the NVIDIA Jetson Orin NX (P3767) module and the P3768 carrier board. Signed-off-by: Thierry Reding --- .../nvidia/tegra234-p3768-0000+p3767-0000.dts | 218 ++++++++++++++++++ .../boot/dts/nvidia/tegra234-p3768-0000.dtsi | 133 +++++++++++ 2 files changed, 351 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts new file mode 100644 index 000000000000..d4d388e53072 --- /dev/null +++ b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts @@ -0,0 +1,218 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; + +#include +#include + +#include "tegra234-p3767-0000.dtsi" +#include "tegra234-p3768-0000.dtsi" + +/ { + compatible = "nvidia,p3768-0000+p3767-0000", "nvidia,p3767-0000", "nvidia,tegra234"; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + fb: framebuffer@0 { + compatible = "framebuffer"; + reg = <0x0 0x0 0x0 0x0>; + iommu-addresses = <&dc0 0x0 0x0 0x0 0x0>; + }; + }; + + aliases { + serial0 = &tcu; + }; + + chosen { + stdout-path = "serial0:115200n8"; + + framebuffer { + compatible = "simple-framebuffer"; + status = "disabled"; + memory-region = <&fb>; + power-domains = <&bpmp TEGRA234_POWER_DOMAIN_DISP>; + clocks = <&bpmp TEGRA234_CLK_HUB>, + <&bpmp TEGRA234_CLK_DISP>, + <&bpmp TEGRA234_CLK_NVDISPLAY_P0>, + <&bpmp TEGRA234_CLK_DPAUX>, + <&bpmp TEGRA234_CLK_DISPPLL>, + <&bpmp TEGRA234_CLK_DISPHUBPLL>, + /* MORE!!! */ + <&bpmp TEGRA234_CLK_NVDISPLAY_P1>, + <&bpmp TEGRA234_CLK_FUSE>, + <&bpmp TEGRA234_CLK_DSIPLL_VCO>, + <&bpmp TEGRA234_CLK_DSIPLL_CLKOUTPN>, + <&bpmp TEGRA234_CLK_DSIPLL_CLKOUTA>, + <&bpmp TEGRA234_CLK_SPPLL0_VCO>, + <&bpmp TEGRA234_CLK_SPPLL0_CLKOUTPN>, + <&bpmp TEGRA234_CLK_SPPLL0_CLKOUTA>, + <&bpmp TEGRA234_CLK_SPPLL0_CLKOUTB>, + <&bpmp TEGRA234_CLK_SPPLL0_DIV10>, + <&bpmp TEGRA234_CLK_SPPLL0_DIV25>, + <&bpmp TEGRA234_CLK_SPPLL0_DIV27PN>, + <&bpmp TEGRA234_CLK_SPPLL1_VCO>, + <&bpmp TEGRA234_CLK_SPPLL1_CLKOUTPN>, + <&bpmp TEGRA234_CLK_SPPLL1_DIV27PN>, + <&bpmp TEGRA234_CLK_VPLL0_REF>, + <&bpmp TEGRA234_CLK_VPLL0>, + <&bpmp TEGRA234_CLK_VPLL1>, + <&bpmp TEGRA234_CLK_NVDISPLAY_P0_REF>, + <&bpmp TEGRA234_CLK_RG0>, + <&bpmp TEGRA234_CLK_RG1>, + <&bpmp TEGRA234_CLK_DSI_LP>, + <&bpmp TEGRA234_CLK_DSI_CORE>, + <&bpmp TEGRA234_CLK_DSI_PIXEL>, + <&bpmp TEGRA234_CLK_PRE_SOR0>, + <&bpmp TEGRA234_CLK_PRE_SOR1>, + <&bpmp TEGRA234_CLK_DP_LINK_REF>, + <&bpmp TEGRA234_CLK_SOR_LINKA_INPUT>, + <&bpmp TEGRA234_CLK_SOR_LINKA_AFIFO>, + <&bpmp TEGRA234_CLK_SOR_LINKA_AFIFO_M>, + <&bpmp TEGRA234_CLK_RG0_M>, + <&bpmp TEGRA234_CLK_RG1_M>, + <&bpmp TEGRA234_CLK_SOR0_M>, + <&bpmp TEGRA234_CLK_SOR1_M>, + <&bpmp TEGRA234_CLK_PLLHUB>, + <&bpmp TEGRA234_CLK_SOR0>, + <&bpmp TEGRA234_CLK_SOR1>, + <&bpmp TEGRA234_CLK_SOR_PAD_INPUT>, + <&bpmp TEGRA234_CLK_PRE_SF0>, + <&bpmp TEGRA234_CLK_SF0>, + <&bpmp TEGRA234_CLK_SF1>, + <&bpmp TEGRA234_CLK_DSI_PAD_INPUT>, + <&bpmp TEGRA234_CLK_PRE_SOR0_REF>, + <&bpmp TEGRA234_CLK_PRE_SOR1_REF>, + <&bpmp TEGRA234_CLK_SOR0_PLL_REF>, + <&bpmp TEGRA234_CLK_SOR1_PLL_REF>, + <&bpmp TEGRA234_CLK_SOR0_REF>, + <&bpmp TEGRA234_CLK_SOR1_REF>, + <&bpmp TEGRA234_CLK_OSC>, + <&bpmp TEGRA234_CLK_DSC>, + <&bpmp TEGRA234_CLK_MAUD>, + <&bpmp TEGRA234_CLK_AZA_2XBIT>, + <&bpmp TEGRA234_CLK_AZA_BIT>, + <&bpmp TEGRA234_CLK_MIPI_CAL>, + <&bpmp TEGRA234_CLK_UART_FST_MIPI_CAL>, + <&bpmp TEGRA234_CLK_SOR0_DIV>; + resets = <&bpmp TEGRA234_RESET_NVDISPLAY>, + <&bpmp TEGRA234_RESET_DPAUX>, + <&bpmp TEGRA234_RESET_DSI_CORE>, + <&bpmp TEGRA234_RESET_MIPI_CAL>; + width = <0>; + height = <0>; + stride = <0>; + format = "x8r8g8b8"; + }; + }; + + bus@0 { + serial@31d0000 { + current-speed = <115200>; + status = "okay"; + }; + + pwm@32a0000 { + assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>; + assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>; + status = "okay"; + }; + + padctl@3520000 { + status = "okay"; + }; + + /* C1 - M.2 Key-E */ + pcie@14100000 { + status = "okay"; + + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + + phys = <&p2u_hsio_3>; + phy-names = "p2u-0"; + }; + + /* C4 - M.2 Key-M */ + pcie@14160000 { + status = "okay"; + + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + + phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>, + <&p2u_hsio_7>; + phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3"; + }; + + /* C8 - Ethernet */ + pcie@140a0000 { + status = "okay"; + + num-lanes = <2>; + + phys = <&p2u_gbe_2>, <&p2u_gbe_3>; + phy-names = "p2u-0", "p2u-1"; + + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + vpcie3v3-supply = <&vdd_3v3_pcie>; + }; + + /* C7 - M.2 Key-M */ + pcie@141e0000 { + status = "okay"; + + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + + phys = <&p2u_gbe_0>, <&p2u_gbe_1>; + phy-names = "p2u-0", "p2u-1"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + key-force-recovery { + label = "Force Recovery"; + gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + }; + + key-power { + label = "Power"; + gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + wakeup-event-action = ; + wakeup-source; + }; + + key-suspend { + label = "Suspend"; + gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + }; + }; + + fan: pwm-fan { + compatible = "pwm-fan"; + pwms = <&pwm3 0 45334>; + cooling-levels = <0 95 178 255>; + #cooling-cells = <2>; + }; + + vdd_3v3_pcie: regulator-vdd-3v3-pcie { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_PCIE"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + serial { + status = "okay"; + }; +}; diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi new file mode 100644 index 000000000000..3ccb17be17fb --- /dev/null +++ b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi @@ -0,0 +1,133 @@ +// SPDX-License-Identifier: GPL-2.0 + +/ { + compatible = "nvidia,p3768-0000"; + + bus@0 { + i2c@3160000 { + status = "okay"; + + eeprom@56 { + compatible = "atmel,24c02"; + reg = <0x56>; + + label = "system"; + vcc-supply = <&vdd_1v8_sys>; + address-width = <8>; + pagesize = <8>; + size = <256>; + read-only; + }; + }; + + padctl@3520000 { + pads { + usb2 { + lanes { + usb2-0 { + nvidia,function = "xusb"; + status = "okay"; + }; + + usb2-1 { + nvidia,function = "xusb"; + status = "okay"; + }; + + usb2-2 { + nvidia,function = "xusb"; + status = "okay"; + }; + }; + }; + + usb3 { + lanes { + usb3-0 { + nvidia,function = "xusb"; + status = "okay"; + }; + + usb3-1 { + nvidia,function = "xusb"; + status = "okay"; + }; + }; + }; + }; + + ports { + /* recovery port */ + usb2-0 { + mode = "otg"; + vbus-supply = <&vdd_5v0_sys>; + status = "okay"; + usb-role-switch; + }; + + /* hub */ + usb2-1 { + mode = "host"; + vbus-supply = <&vdd_1v1_hub>; + status = "okay"; + }; + + /* M.2 Key-E */ + usb2-2 { + mode = "host"; + vbus-supply = <&vdd_5v0_sys>; + status = "okay"; + }; + + /* hub */ + usb3-0 { + nvidia,usb2-companion = <1>; + status = "okay"; + }; + + /* J5 */ + usb3-1 { + nvidia,usb2-companion = <0>; + status = "okay"; + }; + }; + }; + + usb@3550000 { + status = "okay"; + + phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, + <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>; + phy-names = "usb2-0", "usb3-1"; + }; + + usb@3610000 { + status = "okay"; + + phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, + <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>, + <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>, + <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>, + <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>; + phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0", + "usb3-1"; + }; + }; + + vdd_1v8_sys: regulator-vdd-1v8-sys { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8_SYS"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vdd_1v1_hub: regulator-vdd-1v1-hub { + compatible = "regulator-fixed"; + regulator-name = "VDD_AV10_HUB"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + vin-supply = <&vdd_5v0_sys>; + regulator-always-on; + }; +};