15e4bbe52SVedant Deshpande// SPDX-License-Identifier: GPL-2.0 25e4bbe52SVedant Deshpande 35e4bbe52SVedant Deshpande#include <dt-bindings/input/linux-event-codes.h> 45e4bbe52SVedant Deshpande#include <dt-bindings/input/gpio-keys.h> 55e4bbe52SVedant Deshpande 65e4bbe52SVedant Deshpande#include "tegra234-p3767.dtsi" 75e4bbe52SVedant Deshpande 85e4bbe52SVedant Deshpande/ { 95e4bbe52SVedant Deshpande 105e4bbe52SVedant Deshpande aliases { 115e4bbe52SVedant Deshpande serial0 = &tcu; 1292331cc6SVedant Deshpande serial1 = &uarta; 1392331cc6SVedant Deshpande serial2 = &uarte; 145e4bbe52SVedant Deshpande }; 155e4bbe52SVedant Deshpande 165e4bbe52SVedant Deshpande chosen { 175e4bbe52SVedant Deshpande stdout-path = "serial0:115200n8"; 185e4bbe52SVedant Deshpande }; 195e4bbe52SVedant Deshpande 205e4bbe52SVedant Deshpande bus@0 { 2192331cc6SVedant Deshpande serial@3100000 { 2292331cc6SVedant Deshpande compatible = "nvidia,tegra194-hsuart"; 2392331cc6SVedant Deshpande reset-names = "serial"; 2492331cc6SVedant Deshpande status = "okay"; 2592331cc6SVedant Deshpande }; 2692331cc6SVedant Deshpande 2792331cc6SVedant Deshpande serial@3140000 { 2892331cc6SVedant Deshpande compatible = "nvidia,tegra194-hsuart"; 2992331cc6SVedant Deshpande reset-names = "serial"; 3092331cc6SVedant Deshpande status = "okay"; 3192331cc6SVedant Deshpande }; 3292331cc6SVedant Deshpande 335e4bbe52SVedant Deshpande i2c@3160000 { 345e4bbe52SVedant Deshpande status = "okay"; 355e4bbe52SVedant Deshpande 365e4bbe52SVedant Deshpande eeprom@57 { 375e4bbe52SVedant Deshpande compatible = "atmel,24c02"; 385e4bbe52SVedant Deshpande reg = <0x57>; 395e4bbe52SVedant Deshpande 405e4bbe52SVedant Deshpande label = "system"; 415e4bbe52SVedant Deshpande vcc-supply = <&vdd_1v8_sys>; 425e4bbe52SVedant Deshpande address-width = <8>; 435e4bbe52SVedant Deshpande pagesize = <8>; 445e4bbe52SVedant Deshpande size = <256>; 455e4bbe52SVedant Deshpande read-only; 465e4bbe52SVedant Deshpande }; 475e4bbe52SVedant Deshpande }; 485e4bbe52SVedant Deshpande 495e4bbe52SVedant Deshpande serial@31d0000 { 505e4bbe52SVedant Deshpande current-speed = <115200>; 515e4bbe52SVedant Deshpande status = "okay"; 525e4bbe52SVedant Deshpande }; 535e4bbe52SVedant Deshpande 545e4bbe52SVedant Deshpande pwm@32a0000 { 555e4bbe52SVedant Deshpande assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>; 565e4bbe52SVedant Deshpande assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>; 575e4bbe52SVedant Deshpande status = "okay"; 585e4bbe52SVedant Deshpande }; 595e4bbe52SVedant Deshpande 605e4bbe52SVedant Deshpande padctl@3520000 { 615e4bbe52SVedant Deshpande status = "okay"; 625e4bbe52SVedant Deshpande 635e4bbe52SVedant Deshpande pads { 645e4bbe52SVedant Deshpande usb2 { 655e4bbe52SVedant Deshpande lanes { 665e4bbe52SVedant Deshpande usb2-0 { 675e4bbe52SVedant Deshpande nvidia,function = "xusb"; 685e4bbe52SVedant Deshpande status = "okay"; 695e4bbe52SVedant Deshpande }; 705e4bbe52SVedant Deshpande 715e4bbe52SVedant Deshpande usb2-1 { 725e4bbe52SVedant Deshpande nvidia,function = "xusb"; 735e4bbe52SVedant Deshpande status = "okay"; 745e4bbe52SVedant Deshpande }; 755e4bbe52SVedant Deshpande 765e4bbe52SVedant Deshpande usb2-2 { 775e4bbe52SVedant Deshpande nvidia,function = "xusb"; 785e4bbe52SVedant Deshpande status = "okay"; 795e4bbe52SVedant Deshpande }; 805e4bbe52SVedant Deshpande }; 815e4bbe52SVedant Deshpande }; 825e4bbe52SVedant Deshpande 835e4bbe52SVedant Deshpande usb3 { 845e4bbe52SVedant Deshpande lanes { 855e4bbe52SVedant Deshpande usb3-0 { 865e4bbe52SVedant Deshpande nvidia,function = "xusb"; 875e4bbe52SVedant Deshpande status = "okay"; 885e4bbe52SVedant Deshpande }; 895e4bbe52SVedant Deshpande 905e4bbe52SVedant Deshpande usb3-1 { 915e4bbe52SVedant Deshpande nvidia,function = "xusb"; 925e4bbe52SVedant Deshpande status = "okay"; 935e4bbe52SVedant Deshpande }; 945e4bbe52SVedant Deshpande }; 955e4bbe52SVedant Deshpande }; 965e4bbe52SVedant Deshpande }; 975e4bbe52SVedant Deshpande 985e4bbe52SVedant Deshpande ports { 995e4bbe52SVedant Deshpande /* recovery port */ 1005e4bbe52SVedant Deshpande usb2-0 { 1015e4bbe52SVedant Deshpande mode = "otg"; 1025e4bbe52SVedant Deshpande vbus-supply = <&vdd_5v0_sys>; 1035e4bbe52SVedant Deshpande status = "okay"; 1045e4bbe52SVedant Deshpande usb-role-switch; 1055e4bbe52SVedant Deshpande }; 1065e4bbe52SVedant Deshpande 1075e4bbe52SVedant Deshpande /* hub */ 1085e4bbe52SVedant Deshpande usb2-1 { 1095e4bbe52SVedant Deshpande mode = "host"; 1105e4bbe52SVedant Deshpande vbus-supply = <&vdd_1v1_hub>; 1115e4bbe52SVedant Deshpande status = "okay"; 1125e4bbe52SVedant Deshpande }; 1135e4bbe52SVedant Deshpande 1145e4bbe52SVedant Deshpande /* M.2 Key-E */ 1155e4bbe52SVedant Deshpande usb2-2 { 1165e4bbe52SVedant Deshpande mode = "host"; 1175e4bbe52SVedant Deshpande vbus-supply = <&vdd_5v0_sys>; 1185e4bbe52SVedant Deshpande status = "okay"; 1195e4bbe52SVedant Deshpande }; 1205e4bbe52SVedant Deshpande 1215e4bbe52SVedant Deshpande /* hub */ 1225e4bbe52SVedant Deshpande usb3-0 { 1235e4bbe52SVedant Deshpande nvidia,usb2-companion = <1>; 1245e4bbe52SVedant Deshpande status = "okay"; 1255e4bbe52SVedant Deshpande }; 1265e4bbe52SVedant Deshpande 1275e4bbe52SVedant Deshpande /* J5 */ 1285e4bbe52SVedant Deshpande usb3-1 { 1295e4bbe52SVedant Deshpande nvidia,usb2-companion = <0>; 1305e4bbe52SVedant Deshpande status = "okay"; 1315e4bbe52SVedant Deshpande }; 1325e4bbe52SVedant Deshpande }; 1335e4bbe52SVedant Deshpande }; 1345e4bbe52SVedant Deshpande 1355e4bbe52SVedant Deshpande usb@3550000 { 1365e4bbe52SVedant Deshpande status = "okay"; 1375e4bbe52SVedant Deshpande 1385e4bbe52SVedant Deshpande phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, 1395e4bbe52SVedant Deshpande <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>; 1405e4bbe52SVedant Deshpande phy-names = "usb2-0", "usb3-0"; 1415e4bbe52SVedant Deshpande }; 1425e4bbe52SVedant Deshpande 1435e4bbe52SVedant Deshpande usb@3610000 { 1445e4bbe52SVedant Deshpande status = "okay"; 1455e4bbe52SVedant Deshpande 1465e4bbe52SVedant Deshpande phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>, 1475e4bbe52SVedant Deshpande <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>, 1485e4bbe52SVedant Deshpande <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>, 1495e4bbe52SVedant Deshpande <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>, 1505e4bbe52SVedant Deshpande <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>; 1515e4bbe52SVedant Deshpande phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0", 1525e4bbe52SVedant Deshpande "usb3-1"; 1535e4bbe52SVedant Deshpande }; 1545e4bbe52SVedant Deshpande 1555e4bbe52SVedant Deshpande /* C8 - Ethernet */ 1565e4bbe52SVedant Deshpande pcie@140a0000 { 1575e4bbe52SVedant Deshpande status = "okay"; 1585e4bbe52SVedant Deshpande 1595e4bbe52SVedant Deshpande num-lanes = <2>; 1605e4bbe52SVedant Deshpande 1615e4bbe52SVedant Deshpande phys = <&p2u_gbe_2>, <&p2u_gbe_3>; 1625e4bbe52SVedant Deshpande phy-names = "p2u-0", "p2u-1"; 1635e4bbe52SVedant Deshpande 1645e4bbe52SVedant Deshpande vddio-pex-ctl-supply = <&vdd_1v8_ao>; 1655e4bbe52SVedant Deshpande vpcie3v3-supply = <&vdd_3v3_pcie>; 1665e4bbe52SVedant Deshpande }; 1675e4bbe52SVedant Deshpande 1685e4bbe52SVedant Deshpande /* C1 - M.2 Key-E */ 1695e4bbe52SVedant Deshpande pcie@14100000 { 1705e4bbe52SVedant Deshpande status = "okay"; 1715e4bbe52SVedant Deshpande 1725e4bbe52SVedant Deshpande vddio-pex-ctl-supply = <&vdd_1v8_ao>; 1735e4bbe52SVedant Deshpande 1745e4bbe52SVedant Deshpande phys = <&p2u_hsio_3>; 1755e4bbe52SVedant Deshpande phy-names = "p2u-0"; 1765e4bbe52SVedant Deshpande }; 1775e4bbe52SVedant Deshpande 1785e4bbe52SVedant Deshpande /* C4 - M.2 Key-M */ 1795e4bbe52SVedant Deshpande pcie@14160000 { 1805e4bbe52SVedant Deshpande status = "okay"; 1815e4bbe52SVedant Deshpande 1825e4bbe52SVedant Deshpande vddio-pex-ctl-supply = <&vdd_1v8_ao>; 1835e4bbe52SVedant Deshpande 1845e4bbe52SVedant Deshpande phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>, 1855e4bbe52SVedant Deshpande <&p2u_hsio_7>; 1865e4bbe52SVedant Deshpande phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3"; 1875e4bbe52SVedant Deshpande }; 1885e4bbe52SVedant Deshpande 189*6e1a1964SVedant Deshpande pcie-ep@14160000 {/* C4 - End Point */ 190*6e1a1964SVedant Deshpande phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>, 191*6e1a1964SVedant Deshpande <&p2u_hsio_7>; 192*6e1a1964SVedant Deshpande phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3"; 193*6e1a1964SVedant Deshpande reset-gpios = <&gpio 194*6e1a1964SVedant Deshpande TEGRA234_MAIN_GPIO(L, 1) 195*6e1a1964SVedant Deshpande GPIO_ACTIVE_LOW>; 196*6e1a1964SVedant Deshpande nvidia,refclk-select-gpios = <&gpio_aon 197*6e1a1964SVedant Deshpande TEGRA234_AON_GPIO(AA, 4) 198*6e1a1964SVedant Deshpande GPIO_ACTIVE_HIGH>; 199*6e1a1964SVedant Deshpande }; 200*6e1a1964SVedant Deshpande 2015e4bbe52SVedant Deshpande /* C7 - M.2 Key-M */ 2025e4bbe52SVedant Deshpande pcie@141e0000 { 2035e4bbe52SVedant Deshpande status = "okay"; 2045e4bbe52SVedant Deshpande 2055e4bbe52SVedant Deshpande vddio-pex-ctl-supply = <&vdd_1v8_ao>; 2065e4bbe52SVedant Deshpande 2075e4bbe52SVedant Deshpande phys = <&p2u_gbe_0>, <&p2u_gbe_1>; 2085e4bbe52SVedant Deshpande phy-names = "p2u-0", "p2u-1"; 2095e4bbe52SVedant Deshpande }; 2105e4bbe52SVedant Deshpande }; 2115e4bbe52SVedant Deshpande 2125e4bbe52SVedant Deshpande gpio-keys { 2135e4bbe52SVedant Deshpande compatible = "gpio-keys"; 2145e4bbe52SVedant Deshpande 2155e4bbe52SVedant Deshpande key-force-recovery { 2165e4bbe52SVedant Deshpande label = "Force Recovery"; 2175e4bbe52SVedant Deshpande gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>; 2185e4bbe52SVedant Deshpande linux,input-type = <EV_KEY>; 2195e4bbe52SVedant Deshpande linux,code = <BTN_1>; 2205e4bbe52SVedant Deshpande }; 2215e4bbe52SVedant Deshpande 2225e4bbe52SVedant Deshpande key-power { 2235e4bbe52SVedant Deshpande label = "Power"; 2245e4bbe52SVedant Deshpande gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>; 2255e4bbe52SVedant Deshpande linux,input-type = <EV_KEY>; 2265e4bbe52SVedant Deshpande linux,code = <KEY_POWER>; 2275e4bbe52SVedant Deshpande wakeup-event-action = <EV_ACT_ASSERTED>; 2285e4bbe52SVedant Deshpande wakeup-source; 2295e4bbe52SVedant Deshpande }; 2305e4bbe52SVedant Deshpande 2315e4bbe52SVedant Deshpande key-suspend { 2325e4bbe52SVedant Deshpande label = "Suspend"; 2335e4bbe52SVedant Deshpande gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>; 2345e4bbe52SVedant Deshpande linux,input-type = <EV_KEY>; 2355e4bbe52SVedant Deshpande linux,code = <KEY_SLEEP>; 2365e4bbe52SVedant Deshpande }; 2375e4bbe52SVedant Deshpande }; 2385e4bbe52SVedant Deshpande 2395e4bbe52SVedant Deshpande fan: pwm-fan { 2405e4bbe52SVedant Deshpande compatible = "pwm-fan"; 2415e4bbe52SVedant Deshpande pwms = <&pwm3 0 45334>; 2425e4bbe52SVedant Deshpande #cooling-cells = <2>; 2435e4bbe52SVedant Deshpande cooling-levels = <0 88 187 255>; 2445e4bbe52SVedant Deshpande }; 2455e4bbe52SVedant Deshpande 2465e4bbe52SVedant Deshpande vdd_1v8_sys: regulator-vdd-1v8-sys { 2475e4bbe52SVedant Deshpande compatible = "regulator-fixed"; 2485e4bbe52SVedant Deshpande regulator-name = "VDD_1V8_SYS"; 2495e4bbe52SVedant Deshpande regulator-min-microvolt = <1800000>; 2505e4bbe52SVedant Deshpande regulator-max-microvolt = <1800000>; 2515e4bbe52SVedant Deshpande regulator-always-on; 2525e4bbe52SVedant Deshpande }; 2535e4bbe52SVedant Deshpande 2545e4bbe52SVedant Deshpande vdd_1v1_hub: regulator-vdd-1v1-hub { 2555e4bbe52SVedant Deshpande compatible = "regulator-fixed"; 2565e4bbe52SVedant Deshpande regulator-name = "VDD_AV10_HUB"; 2575e4bbe52SVedant Deshpande regulator-min-microvolt = <1100000>; 2585e4bbe52SVedant Deshpande regulator-max-microvolt = <1100000>; 2595e4bbe52SVedant Deshpande vin-supply = <&vdd_5v0_sys>; 2605e4bbe52SVedant Deshpande regulator-always-on; 2615e4bbe52SVedant Deshpande }; 2625e4bbe52SVedant Deshpande 2635e4bbe52SVedant Deshpande vdd_3v3_pcie: regulator-vdd-3v3-pcie { 2645e4bbe52SVedant Deshpande compatible = "regulator-fixed"; 2655e4bbe52SVedant Deshpande regulator-name = "VDD_3V3_PCIE"; 2665e4bbe52SVedant Deshpande regulator-min-microvolt = <3300000>; 2675e4bbe52SVedant Deshpande regulator-max-microvolt = <3300000>; 2685e4bbe52SVedant Deshpande gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>; 2695e4bbe52SVedant Deshpande enable-active-high; 2705e4bbe52SVedant Deshpande }; 2715e4bbe52SVedant Deshpande 2725e4bbe52SVedant Deshpande serial { 2735e4bbe52SVedant Deshpande status = "okay"; 2745e4bbe52SVedant Deshpande }; 2755e4bbe52SVedant Deshpande 2765e4bbe52SVedant Deshpande thermal-zones { 2775e4bbe52SVedant Deshpande tj-thermal { 2785e4bbe52SVedant Deshpande cooling-maps { 2795e4bbe52SVedant Deshpande map-active-0 { 2805e4bbe52SVedant Deshpande cooling-device = <&fan 0 1>; 2815e4bbe52SVedant Deshpande trip = <&tj_trip_active0>; 2825e4bbe52SVedant Deshpande }; 2835e4bbe52SVedant Deshpande 2845e4bbe52SVedant Deshpande map-active-1 { 2855e4bbe52SVedant Deshpande cooling-device = <&fan 1 2>; 2865e4bbe52SVedant Deshpande trip = <&tj_trip_active1>; 2875e4bbe52SVedant Deshpande }; 2885e4bbe52SVedant Deshpande 2895e4bbe52SVedant Deshpande map-active-2 { 2905e4bbe52SVedant Deshpande cooling-device = <&fan 2 3>; 2915e4bbe52SVedant Deshpande trip = <&tj_trip_active2>; 2925e4bbe52SVedant Deshpande }; 2935e4bbe52SVedant Deshpande }; 2945e4bbe52SVedant Deshpande }; 2955e4bbe52SVedant Deshpande }; 2965e4bbe52SVedant Deshpande}; 297