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