Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2023 SberDevices |
| 4 | * Author: Dmitry Rokosov <ddrokosov@sberdevices.ru> |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "meson-a1.dtsi" |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 10 | #include <dt-bindings/thermal/thermal.h> |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | compatible = "amlogic,ad402", "amlogic,a1"; |
| 14 | model = "Amlogic Meson A1 AD402 Development Board"; |
| 15 | |
| 16 | aliases { |
| 17 | serial0 = &uart_AO_B; |
| 18 | }; |
| 19 | |
| 20 | chosen { |
| 21 | stdout-path = "serial0:115200n8"; |
| 22 | }; |
| 23 | |
| 24 | memory@0 { |
| 25 | device_type = "memory"; |
| 26 | reg = <0x0 0x0 0x0 0x8000000>; |
| 27 | }; |
| 28 | |
| 29 | reserved-memory { |
| 30 | /* 3 MiB reserved for Amlogic Trust OS (BL32) */ |
| 31 | secos_reserved: secos@3d00000 { |
| 32 | reg = <0x0 0x03d00000 0x0 0x300000>; |
| 33 | no-map; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | firmware { |
| 38 | optee { |
| 39 | compatible = "linaro,optee-tz"; |
| 40 | method = "smc"; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | battery_4v2: regulator-battery-4v2 { |
| 45 | compatible = "regulator-fixed"; |
| 46 | regulator-name = "4V2"; |
| 47 | regulator-min-microvolt = <4200000>; |
| 48 | regulator-max-microvolt = <4200000>; |
| 49 | regulator-always-on; |
| 50 | }; |
| 51 | |
| 52 | vddq_1v35: regulator-vddq-1v35 { |
| 53 | compatible = "regulator-fixed"; |
| 54 | regulator-name = "VDDQ_1V35"; |
| 55 | regulator-min-microvolt = <1350000>; |
| 56 | regulator-max-microvolt = <1350000>; |
| 57 | vin-supply = <&battery_4v2>; |
| 58 | regulator-always-on; |
| 59 | }; |
| 60 | |
| 61 | vddao_3v3: regulator-vddao-3v3 { |
| 62 | compatible = "regulator-fixed"; |
| 63 | regulator-name = "VDDAO_3V3"; |
| 64 | regulator-min-microvolt = <3300000>; |
| 65 | regulator-max-microvolt = <3300000>; |
| 66 | vin-supply = <&battery_4v2>; |
| 67 | regulator-always-on; |
| 68 | }; |
| 69 | |
| 70 | vcc_3v3: regulator-vcc-3v3 { |
| 71 | compatible = "regulator-fixed"; |
| 72 | regulator-name = "VCC_3V3"; |
| 73 | regulator-min-microvolt = <3300000>; |
| 74 | regulator-max-microvolt = <3300000>; |
| 75 | vin-supply = <&vddao_3v3>; |
| 76 | regulator-always-on; |
| 77 | }; |
| 78 | |
| 79 | vddio_1v8: regulator-vddio-1v8 { |
| 80 | compatible = "regulator-fixed"; |
| 81 | regulator-name = "VDDIO_1V8"; |
| 82 | regulator-min-microvolt = <1800000>; |
| 83 | regulator-max-microvolt = <1800000>; |
| 84 | vin-supply = <&vddao_3v3>; |
| 85 | regulator-always-on; |
| 86 | }; |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 87 | |
| 88 | thermal-zones { |
| 89 | soc_thermal: soc-thermal { |
| 90 | polling-delay = <1000>; |
| 91 | polling-delay-passive = <100>; |
| 92 | sustainable-power = <130>; |
| 93 | |
| 94 | thermal-sensors = <&cpu_temp>; |
| 95 | |
| 96 | trips { |
| 97 | soc_passive: soc-passive { |
| 98 | temperature = <70000>; |
| 99 | hysteresis = <2000>; |
| 100 | type = "passive"; |
| 101 | }; |
| 102 | |
| 103 | soc_hot: soc-hot { |
| 104 | temperature = <85000>; |
| 105 | hysteresis = <5000>; |
| 106 | type = "hot"; |
| 107 | }; |
| 108 | |
| 109 | soc_critical: soc-critical { |
| 110 | temperature = <110000>; |
| 111 | hysteresis = <1000>; |
| 112 | type = "critical"; |
| 113 | }; |
| 114 | }; |
| 115 | |
| 116 | soc_cooling_maps: cooling-maps { |
| 117 | map0 { |
| 118 | trip = <&soc_passive>; |
| 119 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 120 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 121 | }; |
| 122 | |
| 123 | map1 { |
| 124 | trip = <&soc_hot>; |
| 125 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 126 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 127 | }; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 131 | }; |
| 132 | |
| 133 | /* Bluetooth HCI H4 */ |
| 134 | &uart_AO { |
| 135 | status = "okay"; |
| 136 | pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; |
| 137 | pinctrl-names = "default"; |
| 138 | }; |
| 139 | |
| 140 | &uart_AO_B { |
| 141 | status = "okay"; |
| 142 | }; |
| 143 | |
| 144 | &saradc { |
| 145 | status = "okay"; |
| 146 | vref-supply = <&vddio_1v8>; |
| 147 | }; |
| 148 | |
| 149 | &spifc { |
| 150 | status = "okay"; |
| 151 | pinctrl-0 = <&spifc_pins>; |
| 152 | pinctrl-names = "default"; |
| 153 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 154 | flash@0 { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 155 | compatible = "spi-nand"; |
| 156 | status = "okay"; |
| 157 | reg = <0>; |
| 158 | spi-max-frequency = <96000000>; |
| 159 | spi-tx-bus-width = <4>; |
| 160 | spi-rx-bus-width = <4>; |
| 161 | }; |
| 162 | }; |
| 163 | |
| 164 | &usb2_phy1 { |
| 165 | phy-supply = <&vcc_3v3>; |
| 166 | }; |
| 167 | |
| 168 | &usb { |
| 169 | status = "okay"; |
| 170 | dr_mode = "peripheral"; |
| 171 | }; |
| 172 | |
| 173 | &sd_emmc { |
| 174 | status = "okay"; |
| 175 | |
| 176 | #address-cells = <1>; |
| 177 | #size-cells = <0>; |
| 178 | |
| 179 | pinctrl-0 = <&sdio_pins>; |
| 180 | pinctrl-1 = <&sdio_clk_gate_pins>; |
| 181 | pinctrl-names = "default", "clk-gate"; |
| 182 | |
| 183 | bus-width = <4>; |
| 184 | cap-sd-highspeed; |
| 185 | sd-uhs-sdr104; |
| 186 | max-frequency = <200000000>; |
| 187 | non-removable; |
| 188 | disable-wp; |
| 189 | |
| 190 | vmmc-supply = <&vddao_3v3>; |
| 191 | vqmmc-supply = <&vddio_1v8>; |
| 192 | }; |