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" 10 11/ { 12 compatible = "amlogic,ad402", "amlogic,a1"; 13 model = "Amlogic Meson A1 AD402 Development Board"; 14 15 aliases { 16 serial0 = &uart_AO_B; 17 }; 18 19 chosen { 20 stdout-path = "serial0:115200n8"; 21 }; 22 23 memory@0 { 24 device_type = "memory"; 25 reg = <0x0 0x0 0x0 0x8000000>; 26 }; 27 28 reserved-memory { 29 /* 3 MiB reserved for Amlogic Trust OS (BL32) */ 30 secos_reserved: secos@3d00000 { 31 reg = <0x0 0x03d00000 0x0 0x300000>; 32 no-map; 33 }; 34 }; 35 36 firmware { 37 optee { 38 compatible = "linaro,optee-tz"; 39 method = "smc"; 40 }; 41 }; 42 43 battery_4v2: regulator-battery-4v2 { 44 compatible = "regulator-fixed"; 45 regulator-name = "4V2"; 46 regulator-min-microvolt = <4200000>; 47 regulator-max-microvolt = <4200000>; 48 regulator-always-on; 49 }; 50 51 vddq_1v35: regulator-vddq-1v35 { 52 compatible = "regulator-fixed"; 53 regulator-name = "VDDQ_1V35"; 54 regulator-min-microvolt = <1350000>; 55 regulator-max-microvolt = <1350000>; 56 vin-supply = <&battery_4v2>; 57 regulator-always-on; 58 }; 59 60 vddao_3v3: regulator-vddao-3v3 { 61 compatible = "regulator-fixed"; 62 regulator-name = "VDDAO_3V3"; 63 regulator-min-microvolt = <3300000>; 64 regulator-max-microvolt = <3300000>; 65 vin-supply = <&battery_4v2>; 66 regulator-always-on; 67 }; 68 69 vcc_3v3: regulator-vcc-3v3 { 70 compatible = "regulator-fixed"; 71 regulator-name = "VCC_3V3"; 72 regulator-min-microvolt = <3300000>; 73 regulator-max-microvolt = <3300000>; 74 vin-supply = <&vddao_3v3>; 75 regulator-always-on; 76 }; 77 78 vddio_1v8: regulator-vddio-1v8 { 79 compatible = "regulator-fixed"; 80 regulator-name = "VDDIO_1V8"; 81 regulator-min-microvolt = <1800000>; 82 regulator-max-microvolt = <1800000>; 83 vin-supply = <&vddao_3v3>; 84 regulator-always-on; 85 }; 86}; 87 88/* Bluetooth HCI H4 */ 89&uart_AO { 90 status = "okay"; 91 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 92 pinctrl-names = "default"; 93}; 94 95&uart_AO_B { 96 status = "okay"; 97}; 98 99&saradc { 100 status = "okay"; 101 vref-supply = <&vddio_1v8>; 102}; 103 104&spifc { 105 status = "okay"; 106 pinctrl-0 = <&spifc_pins>; 107 pinctrl-names = "default"; 108 109 flash@0 { 110 compatible = "spi-nand"; 111 status = "okay"; 112 reg = <0>; 113 spi-max-frequency = <96000000>; 114 spi-tx-bus-width = <4>; 115 spi-rx-bus-width = <4>; 116 }; 117}; 118 119&usb2_phy1 { 120 phy-supply = <&vcc_3v3>; 121}; 122 123&usb { 124 status = "okay"; 125 dr_mode = "peripheral"; 126}; 127 128&sd_emmc { 129 status = "okay"; 130 131 #address-cells = <1>; 132 #size-cells = <0>; 133 134 pinctrl-0 = <&sdio_pins>; 135 pinctrl-1 = <&sdio_clk_gate_pins>; 136 pinctrl-names = "default", "clk-gate"; 137 138 bus-width = <4>; 139 cap-sd-highspeed; 140 sd-uhs-sdr104; 141 max-frequency = <200000000>; 142 non-removable; 143 disable-wp; 144 145 vmmc-supply = <&vddao_3v3>; 146 vqmmc-supply = <&vddio_1v8>; 147}; 148