]> www.infradead.org Git - linux.git/commitdiff
arm64: tegra: Combine AGX Orin board files
authorDara Stotland <dstotland@nvidia.com>
Mon, 26 Aug 2024 16:47:20 +0000 (16:47 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 29 Aug 2024 15:40:34 +0000 (17:40 +0200)
The current AGX Orin structure has both a top-level module+board
file as well as a board file. Most of the data in the board-file
is closely related to the module itself. The benefit of this
extra file is outweighed by the additional complexity. Merge
the board file into the module+board file for simplicity.

Signed-off-by: Dara Stotland <dstotland@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi [deleted file]

index 69db584253dae88b5d0d80f6530ad2fc9897e2ad..21feaf4344398ac4e65ff333784533a526e8c293 100644 (file)
@@ -3,9 +3,9 @@
 
 #include <dt-bindings/input/linux-event-codes.h>
 #include <dt-bindings/input/gpio-keys.h>
+#include <dt-bindings/sound/rt5640.h>
 
 #include "tegra234-p3701-0000.dtsi"
-#include "tegra234-p3737-0000.dtsi"
 
 / {
        model = "NVIDIA Jetson AGX Orin Developer Kit";
        };
 
        bus@0 {
+               aconnect@2900000 {
+                       ahub@2900800 {
+                               i2s@2901000 {
+                                       ports {
+                                               port@1 {
+                                                       endpoint {
+                                                               dai-format = "i2s";
+                                                               remote-endpoint = <&rt5640_ep>;
+                                                       };
+                                               };
+                                       };
+                               };
+                       };
+               };
+
                serial@3100000 {
                        compatible = "nvidia,tegra194-hsuart";
                        reset-names = "serial";
                        status = "okay";
                };
 
+               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;
+                       };
+               };
+
                serial@31d0000 {
                        current-speed = <115200>;
                        status = "okay";
                };
 
+               i2c@31e0000 {
+                       status = "okay";
+
+                       audio-codec@1c {
+                               compatible = "realtek,rt5640";
+                               reg = <0x1c>;
+                               interrupt-parent = <&gpio>;
+                               interrupts = <TEGRA234_MAIN_GPIO(AC, 5) GPIO_ACTIVE_HIGH>;
+                               clocks = <&bpmp TEGRA234_CLK_AUD_MCLK>;
+                               clock-names = "mclk";
+                               realtek,dmic1-data-pin = <RT5640_DMIC1_DATA_PIN_NONE>;
+                               realtek,dmic2-data-pin = <RT5640_DMIC2_DATA_PIN_NONE>;
+                               realtek,jack-detect-source = <RT5640_JD_SRC_HDA_HEADER>;
+                               sound-name-prefix = "CVB-RT";
+
+                               port {
+                                       rt5640_ep: endpoint {
+                                               remote-endpoint = <&i2s1_dap>;
+                                               mclk-fs = <256>;
+                                       };
+                               };
+                       };
+               };
+
+               pwm@3280000 {
+                       status = "okay";
+               };
+
                pwm@32a0000 {
                        assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>;
                        assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>;
                        status = "okay";
                };
 
+               pwm@32c0000 {
+                       status = "okay";
+               };
+
+               pwm@32f0000 {
+                       status = "okay";
+               };
+
                hda@3510000 {
                        nvidia,model = "NVIDIA Jetson AGX Orin HDA";
                        status = "okay";
                };
        };
 
-       pwm-fan {
+       fan: pwm-fan {
+               compatible = "pwm-fan";
                cooling-levels = <66 215 255>;
+               pwms = <&pwm3 0 45334>;
+               #cooling-cells = <2>;
        };
 
        serial {
                        };
                };
        };
+
+       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;
+       };
 };
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi
deleted file mode 100644 (file)
index eb79e80..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-
-#include <dt-bindings/sound/rt5640.h>
-
-/ {
-       compatible = "nvidia,p3737-0000";
-
-       bus@0 {
-               aconnect@2900000 {
-                       ahub@2900800 {
-                               i2s@2901000 {
-                                       ports {
-                                               port@1 {
-                                                       endpoint {
-                                                               dai-format = "i2s";
-                                                               remote-endpoint = <&rt5640_ep>;
-                                                       };
-                                               };
-                                       };
-                               };
-                       };
-               };
-
-               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;
-                       };
-               };
-
-               i2c@31e0000 {
-                       status = "okay";
-
-                       audio-codec@1c {
-                               compatible = "realtek,rt5640";
-                               reg = <0x1c>;
-                               interrupt-parent = <&gpio>;
-                               interrupts = <TEGRA234_MAIN_GPIO(AC, 5) GPIO_ACTIVE_HIGH>;
-                               clocks = <&bpmp TEGRA234_CLK_AUD_MCLK>;
-                               clock-names = "mclk";
-                               realtek,dmic1-data-pin = <RT5640_DMIC1_DATA_PIN_NONE>;
-                               realtek,dmic2-data-pin = <RT5640_DMIC2_DATA_PIN_NONE>;
-                               realtek,jack-detect-source = <RT5640_JD_SRC_HDA_HEADER>;
-                               sound-name-prefix = "CVB-RT";
-
-                               port {
-                                       rt5640_ep: endpoint {
-                                               remote-endpoint = <&i2s1_dap>;
-                                               mclk-fs = <256>;
-                                       };
-                               };
-                       };
-               };
-
-               pwm@3280000 {
-                       status = "okay";
-               };
-
-               pwm@32c0000 {
-                       status = "okay";
-               };
-
-               pwm@32f0000 {
-                       status = "okay";
-               };
-       };
-
-       fan: pwm-fan {
-               compatible = "pwm-fan";
-               pwms = <&pwm3 0 45334>;
-               #cooling-cells = <2>;
-       };
-
-       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;
-       };
-};