Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-j721e-som-p0.dtsi" |
Lokesh Vutla | 430a0b3 | 2019-10-07 19:26:37 +0530 | [diff] [blame] | 9 | #include "k3-j721e-ddr-evm-lp4-3733.dtsi" |
| 10 | #include "k3-j721e-ddr.dtsi" |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | aliases { |
| 14 | remoteproc0 = &sysctrler; |
| 15 | remoteproc1 = &a72_0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial2:115200n8"; |
| 20 | tick-timer = &timer1; |
| 21 | }; |
| 22 | |
| 23 | a72_0: a72@0 { |
| 24 | compatible = "ti,am654-rproc"; |
| 25 | reg = <0x0 0x00a90000 0x0 0x10>; |
| 26 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
| 27 | <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; |
| 28 | resets = <&k3_reset 202 0>; |
| 29 | assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>; |
| 30 | assigned-clock-rates = <2000000000>, <200000000>; |
| 31 | ti,sci = <&dmsc>; |
| 32 | ti,sci-proc-id = <32>; |
| 33 | ti,sci-host-id = <10>; |
| 34 | u-boot,dm-spl; |
| 35 | }; |
| 36 | |
| 37 | clk_200mhz: dummy_clock { |
| 38 | compatible = "fixed-clock"; |
| 39 | #clock-cells = <0>; |
| 40 | clock-frequency = <200000000>; |
| 41 | u-boot,dm-spl; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | &cbass_mcu_wakeup { |
| 46 | mcu_secproxy: secproxy@28380000 { |
| 47 | u-boot,dm-spl; |
| 48 | compatible = "ti,am654-secure-proxy"; |
| 49 | reg = <0x0 0x2a380000 0x0 0x80000>, |
| 50 | <0x0 0x2a400000 0x0 0x80000>, |
| 51 | <0x0 0x2a480000 0x0 0x80000>; |
| 52 | reg-names = "rt", "scfg", "target_data"; |
| 53 | #mbox-cells = <1>; |
| 54 | }; |
| 55 | |
| 56 | sysctrler: sysctrler { |
| 57 | u-boot,dm-spl; |
| 58 | compatible = "ti,am654-system-controller"; |
| 59 | mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>; |
| 60 | mbox-names = "tx", "rx"; |
| 61 | }; |
Keerthy | be86d32 | 2019-10-24 15:00:58 +0530 | [diff] [blame] | 62 | |
| 63 | wkup_vtm0: wkup_vtm@42040000 { |
| 64 | compatible = "ti,am654-vtm", "ti,j721e-avs"; |
| 65 | reg = <0x0 0x42040000 0x0 0x330>; |
| 66 | power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>; |
| 67 | #thermal-sensor-cells = <1>; |
| 68 | }; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 69 | }; |
| 70 | |
| 71 | &dmsc { |
| 72 | mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>; |
| 73 | mbox-names = "tx", "rx", "notify"; |
| 74 | ti,host-id = <4>; |
| 75 | ti,secure-host; |
| 76 | }; |
| 77 | |
| 78 | &wkup_pmx0 { |
| 79 | wkup_uart0_pins_default: wkup_uart0_pins_default { |
| 80 | u-boot,dm-spl; |
| 81 | pinctrl-single,pins = < |
| 82 | J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */ |
| 83 | J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */ |
| 84 | >; |
| 85 | }; |
| 86 | |
| 87 | mcu_uart0_pins_default: mcu_uart0_pins_default { |
| 88 | u-boot,dm-spl; |
| 89 | pinctrl-single,pins = < |
| 90 | J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */ |
| 91 | J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */ |
| 92 | J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */ |
| 93 | J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */ |
| 94 | >; |
| 95 | }; |
Keerthy | c6f8654 | 2019-10-24 15:00:59 +0530 | [diff] [blame] | 96 | |
| 97 | wkup_i2c0_pins_default: wkup-i2c0-pins-default { |
| 98 | pinctrl-single,pins = < |
| 99 | J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */ |
| 100 | J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */ |
| 101 | >; |
| 102 | }; |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 103 | }; |
| 104 | |
| 105 | &main_pmx0 { |
| 106 | main_uart0_pins_default: main_uart0_pins_default { |
| 107 | u-boot,dm-spl; |
| 108 | pinctrl-single,pins = < |
| 109 | J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */ |
| 110 | J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */ |
| 111 | J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */ |
| 112 | J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */ |
| 113 | >; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | &wkup_uart0 { |
| 118 | u-boot,dm-spl; |
| 119 | pinctrl-names = "default"; |
| 120 | pinctrl-0 = <&wkup_uart0_pins_default>; |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
| 124 | &mcu_uart0 { |
| 125 | pinctrl-names = "default"; |
| 126 | pinctrl-0 = <&mcu_uart0_pins_default>; |
| 127 | status = "okay"; |
| 128 | }; |
| 129 | |
| 130 | &main_uart0 { |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&main_uart0_pins_default>; |
| 133 | status = "okay"; |
| 134 | power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; |
| 135 | }; |
| 136 | |
| 137 | &main_sdhci0 { |
| 138 | /delete-property/ power-domains; |
| 139 | /delete-property/ assigned-clocks; |
| 140 | /delete-property/ assigned-clock-parents; |
| 141 | clock-names = "clk_xin"; |
| 142 | clocks = <&clk_200mhz>; |
| 143 | ti,driver-strength-ohm = <50>; |
| 144 | non-removable; |
| 145 | bus-width = <8>; |
| 146 | }; |
| 147 | |
| 148 | &main_sdhci1 { |
| 149 | /delete-property/ power-domains; |
| 150 | /delete-property/ assigned-clocks; |
| 151 | /delete-property/ assigned-clock-parents; |
| 152 | clock-names = "clk_xin"; |
| 153 | clocks = <&clk_200mhz>; |
| 154 | ti,driver-strength-ohm = <50>; |
| 155 | }; |
| 156 | |
Keerthy | c6f8654 | 2019-10-24 15:00:59 +0530 | [diff] [blame] | 157 | &wkup_i2c0 { |
| 158 | u-boot,dm-spl; |
| 159 | tps659413a: tps659413a@48 { |
| 160 | reg = <0x48>; |
| 161 | compatible = "ti,tps659413"; |
| 162 | u-boot,dm-spl; |
| 163 | pinctrl-names = "default"; |
| 164 | pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 165 | clock-frequency = <400000>; |
| 166 | |
| 167 | regulators: regulators { |
| 168 | u-boot,dm-spl; |
| 169 | buck12_reg: buck12 { |
| 170 | /*VDD_MPU*/ |
| 171 | regulator-name = "buck12"; |
| 172 | regulator-min-microvolt = <800000>; |
| 173 | regulator-max-microvolt = <1250000>; |
| 174 | regulator-always-on; |
| 175 | regulator-boot-on; |
| 176 | u-boot,dm-spl; |
| 177 | }; |
| 178 | }; |
| 179 | }; |
| 180 | }; |
| 181 | |
Keerthy | 7c9fa30 | 2019-10-24 15:01:00 +0530 | [diff] [blame] | 182 | &wkup_vtm0 { |
| 183 | vdd-supply-2 = <&buck12_reg>; |
| 184 | u-boot,dm-spl; |
| 185 | }; |
| 186 | |
Lokesh Vutla | ac73680 | 2019-06-13 10:29:55 +0530 | [diff] [blame] | 187 | #include "k3-j721e-common-proc-board-u-boot.dtsi" |