summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/amlogic/meson-a1-ad402.dts
blob: 4bc30af0584875d8961b3ae8bde280e375e92322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2023 SberDevices
 * Author: Dmitry Rokosov <ddrokosov@sberdevices.ru>
 */

/dts-v1/;

#include "meson-a1.dtsi"

/ {
	compatible = "amlogic,ad402", "amlogic,a1";
	model = "Amlogic Meson A1 AD402 Development Board";

	aliases {
		serial0 = &uart_AO_B;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x0 0x0 0x8000000>;
	};

	reserved-memory {
		/* 3 MiB reserved for Amlogic Trust OS (BL32) */
		secos_reserved: secos@3d00000 {
			reg = <0x0 0x03d00000 0x0 0x300000>;
			no-map;
		};
	};

	firmware {
		optee {
			compatible = "linaro,optee-tz";
			method = "smc";
		};
	};

	battery_4v2: regulator-battery-4v2 {
		compatible = "regulator-fixed";
		regulator-name = "4V2";
		regulator-min-microvolt = <4200000>;
		regulator-max-microvolt = <4200000>;
		regulator-always-on;
	};

	vddq_1v35: regulator-vddq-1v35 {
		compatible = "regulator-fixed";
		regulator-name = "VDDQ_1V35";
		regulator-min-microvolt = <1350000>;
		regulator-max-microvolt = <1350000>;
		vin-supply = <&battery_4v2>;
		regulator-always-on;
	};

	vddao_3v3: regulator-vddao-3v3 {
		compatible = "regulator-fixed";
		regulator-name = "VDDAO_3V3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		vin-supply = <&battery_4v2>;
		regulator-always-on;
	};

	vcc_3v3: regulator-vcc-3v3 {
		compatible = "regulator-fixed";
		regulator-name = "VCC_3V3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		vin-supply = <&vddao_3v3>;
		regulator-always-on;
	};

	vddio_1v8: regulator-vddio-1v8 {
		compatible = "regulator-fixed";
		regulator-name = "VDDIO_1V8";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		vin-supply = <&vddao_3v3>;
		regulator-always-on;
	};
};

/* Bluetooth HCI H4 */
&uart_AO {
	status = "okay";
	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
	pinctrl-names = "default";
};

&uart_AO_B {
	status = "okay";
};

&saradc {
	status = "okay";
	vref-supply = <&vddio_1v8>;
};

&spifc {
	status = "okay";
	pinctrl-0 = <&spifc_pins>;
	pinctrl-names = "default";

	flash@0 {
		compatible = "spi-nand";
		status = "okay";
		reg = <0>;
		spi-max-frequency = <96000000>;
		spi-tx-bus-width = <4>;
		spi-rx-bus-width = <4>;
	};
};

&usb2_phy1 {
	phy-supply = <&vcc_3v3>;
};

&usb {
	status = "okay";
	dr_mode = "peripheral";
};

&sd_emmc {
	status = "okay";

	#address-cells = <1>;
	#size-cells = <0>;

	pinctrl-0 = <&sdio_pins>;
	pinctrl-1 = <&sdio_clk_gate_pins>;
	pinctrl-names = "default", "clk-gate";

	bus-width = <4>;
	cap-sd-highspeed;
	sd-uhs-sdr104;
	max-frequency = <200000000>;
	non-removable;
	disable-wp;

	vmmc-supply = <&vddao_3v3>;
	vqmmc-supply = <&vddio_1v8>;
};