summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/ti/k3-am642-tqma64xxl.dtsi
blob: ff3b2e0b8dd45bf775d31bba2c6942275fcac81f (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
 * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
 * Copyright (c) 2022-2024 TQ-Systems GmbH <linux@ew.tq-group.com>, D-82229 Seefeld, Germany.
 */

#include "k3-am642.dtsi"

/ {
	aliases {
		i2c0 = &main_i2c0;
		mmc0 = &sdhci0;
		spi0 = &ospi0;
	};

	memory@80000000 {
		device_type = "memory";
		/* 1G RAM - default variant */
		reg = <0x00000000 0x80000000 0x00000000 0x40000000>;

	};

	reserved_memory: reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		secure_ddr: optee@9e800000 {
			reg = <0x00 0x9e800000 0x00 0x01800000>;
			alignment = <0x1000>;
			no-map;
		};

		main_r5fss0_core0_dma_memory_region: memory@a0000000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0xa0000000 0x00 0x100000>;
			no-map;
		};

		main_r5fss0_core0_memory_region: memory@a0100000 {
			compatible = "shared-dma-pool";
			reg = <0x00 0xa0100000 0x00 0xf00000>;
			no-map;
		};
	};

	reg_1v8: regulator-1v8 {
		compatible = "regulator-fixed";
		regulator-name = "V_1V8";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-always-on;
		regulator-boot-on;
	};
};

&main_i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&main_i2c0_pins>;
	clock-frequency = <400000>;
	status = "okay";

	tmp1075: temperature-sensor@4a {
		compatible = "ti,tmp1075";
		reg = <0x4a>;
		vs-supply = <&reg_1v8>;
	};

	eeprom0: eeprom@50 {
		compatible = "st,24c02", "atmel,24c02";
		reg = <0x50>;
		vcc-supply = <&reg_1v8>;
		pagesize = <16>;
		read-only;
	};

	pcf85063: rtc@51 {
		compatible = "nxp,pcf85063a";
		reg = <0x51>;
		quartz-load-femtofarads = <12500>;
	};

	eeprom1: eeprom@54 {
		compatible = "st,24c64", "atmel,24c64";
		reg = <0x54>;
		vcc-supply = <&reg_1v8>;
		pagesize = <32>;
	};
};

&ospi0 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&ospi0_pins>;

	flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-tx-bus-width = <8>;
		spi-rx-bus-width = <8>;
		spi-max-frequency = <84000000>;
		cdns,tshsl-ns = <60>;
		cdns,tsd2d-ns = <60>;
		cdns,tchsh-ns = <60>;
		cdns,tslch-ns = <60>;
		cdns,read-delay = <2>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			/* Filled by bootloader */
		};
	};
};

&sdhci0 {
	status = "okay";
	non-removable;
	disable-wp;
	no-sdio;
	no-sd;
	ti,driver-strength-ohm = <50>;
};

&main_pmx0 {
	main_i2c0_pins: main-i2c0-pins {
		pinctrl-single,pins = <
			/* (A18) I2C0_SCL */
			AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0)
			/* (B18) I2C0_SDA */
			AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0)
		>;
	};

	ospi0_pins: ospi0-pins {
		pinctrl-single,pins = <
			/* (N20) OSPI0_CLK */
			AM64X_IOPAD(0x0000, PIN_OUTPUT, 0)
			/* (L19) OSPI0_CSn0 */
			AM64X_IOPAD(0x002c, PIN_OUTPUT, 0)
			/* (M19) OSPI0_D0 */
			AM64X_IOPAD(0x000c, PIN_INPUT, 0)
			/* (M18) OSPI0_D1 */
			AM64X_IOPAD(0x0010, PIN_INPUT, 0)
			/* (M20) OSPI0_D2 */
			AM64X_IOPAD(0x0014, PIN_INPUT, 0)
			/* (M21) OSPI0_D3 */
			AM64X_IOPAD(0x0018, PIN_INPUT, 0)
			/* (P21) OSPI0_D4 */
			AM64X_IOPAD(0x001c, PIN_INPUT, 0)
			/* (P20) OSPI0_D5 */
			AM64X_IOPAD(0x0020, PIN_INPUT, 0)
			/* (N18) OSPI0_D6 */
			AM64X_IOPAD(0x0024, PIN_INPUT, 0)
			/* (M17) OSPI0_D7 */
			AM64X_IOPAD(0x0028, PIN_INPUT, 0)
			/* (N19) OSPI0_DQS */
			AM64X_IOPAD(0x0008, PIN_INPUT, 0)
		>;
	};
};

#include "k3-am64-ti-ipc-firmware.dtsi"