xref: /freebsd-src/sys/contrib/device-tree/src/arm64/mediatek/mt8195-evb.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2d5b0e70fSEmmanuel Vadot/*
3d5b0e70fSEmmanuel Vadot * Copyright (C) 2021 MediaTek Inc.
4d5b0e70fSEmmanuel Vadot * Author: Seiya Wang <seiya.wang@mediatek.com>
5d5b0e70fSEmmanuel Vadot */
6d5b0e70fSEmmanuel Vadot/dts-v1/;
7d5b0e70fSEmmanuel Vadot#include "mt8195.dtsi"
8d5b0e70fSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadot/ {
10d5b0e70fSEmmanuel Vadot	model = "MediaTek MT8195 evaluation board";
11d5b0e70fSEmmanuel Vadot	compatible = "mediatek,mt8195-evb", "mediatek,mt8195";
12d5b0e70fSEmmanuel Vadot
13d5b0e70fSEmmanuel Vadot	aliases {
14d5b0e70fSEmmanuel Vadot		serial0 = &uart0;
15d5b0e70fSEmmanuel Vadot	};
16d5b0e70fSEmmanuel Vadot
17d5b0e70fSEmmanuel Vadot	chosen {
18d5b0e70fSEmmanuel Vadot		stdout-path = "serial0:921600n8";
19d5b0e70fSEmmanuel Vadot	};
20d5b0e70fSEmmanuel Vadot
21d5b0e70fSEmmanuel Vadot	memory@40000000 {
22d5b0e70fSEmmanuel Vadot		device_type = "memory";
23d5b0e70fSEmmanuel Vadot		reg = <0 0x40000000 0 0x80000000>;
24d5b0e70fSEmmanuel Vadot	};
25d5b0e70fSEmmanuel Vadot};
26d5b0e70fSEmmanuel Vadot
27d5b0e70fSEmmanuel Vadot&auxadc {
28d5b0e70fSEmmanuel Vadot	status = "okay";
29d5b0e70fSEmmanuel Vadot};
30d5b0e70fSEmmanuel Vadot
31d5b0e70fSEmmanuel Vadot&i2c0 {
32d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
33d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&i2c0_pin>;
34d5b0e70fSEmmanuel Vadot	clock-frequency = <100000>;
35d5b0e70fSEmmanuel Vadot	status = "okay";
36d5b0e70fSEmmanuel Vadot};
37d5b0e70fSEmmanuel Vadot
38d5b0e70fSEmmanuel Vadot&i2c1 {
39d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
40d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&i2c1_pin>;
41d5b0e70fSEmmanuel Vadot	clock-frequency = <400000>;
42d5b0e70fSEmmanuel Vadot	status = "okay";
43d5b0e70fSEmmanuel Vadot};
44d5b0e70fSEmmanuel Vadot
45d5b0e70fSEmmanuel Vadot&i2c4 {
46d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
47d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&i2c4_pin>;
48d5b0e70fSEmmanuel Vadot	clock-frequency = <400000>;
49d5b0e70fSEmmanuel Vadot	status = "okay";
50d5b0e70fSEmmanuel Vadot};
51d5b0e70fSEmmanuel Vadot
52d5b0e70fSEmmanuel Vadot&i2c6 {
53d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
54d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&i2c6_pin>;
55d5b0e70fSEmmanuel Vadot	clock-frequency = <400000>;
56d5b0e70fSEmmanuel Vadot	status = "okay";
57d5b0e70fSEmmanuel Vadot};
58d5b0e70fSEmmanuel Vadot
59d5b0e70fSEmmanuel Vadot&nor_flash {
60d5b0e70fSEmmanuel Vadot	status = "okay";
61d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
62d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&nor_pins_default>;
63d5b0e70fSEmmanuel Vadot
64d5b0e70fSEmmanuel Vadot	flash@0 {
65d5b0e70fSEmmanuel Vadot		compatible = "jedec,spi-nor";
66d5b0e70fSEmmanuel Vadot		reg = <0>;
67d5b0e70fSEmmanuel Vadot		spi-max-frequency = <50000000>;
68d5b0e70fSEmmanuel Vadot	};
69d5b0e70fSEmmanuel Vadot};
70d5b0e70fSEmmanuel Vadot
71d5b0e70fSEmmanuel Vadot&pio {
72d5b0e70fSEmmanuel Vadot	i2c0_pin: i2c0-pins {
73d5b0e70fSEmmanuel Vadot		pins {
74d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO8__FUNC_SDA0>,
75d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO9__FUNC_SCL0>;
76d5b0e70fSEmmanuel Vadot			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
77d5b0e70fSEmmanuel Vadot			drive-strength = <6>;
78d5b0e70fSEmmanuel Vadot		};
79d5b0e70fSEmmanuel Vadot	};
80d5b0e70fSEmmanuel Vadot
81d5b0e70fSEmmanuel Vadot	i2c1_pin: i2c1-pins {
82d5b0e70fSEmmanuel Vadot		pins {
83d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO10__FUNC_SDA1>,
84d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO11__FUNC_SCL1>;
85d5b0e70fSEmmanuel Vadot			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
86d5b0e70fSEmmanuel Vadot			drive-strength = <6>;
87d5b0e70fSEmmanuel Vadot		};
88d5b0e70fSEmmanuel Vadot	};
89d5b0e70fSEmmanuel Vadot
90d5b0e70fSEmmanuel Vadot	i2c4_pin: i2c4-pins {
91d5b0e70fSEmmanuel Vadot		pins {
92d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO16__FUNC_SDA4>,
93d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO17__FUNC_SCL4>;
94d5b0e70fSEmmanuel Vadot			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
95*0e8011faSEmmanuel Vadot			drive-strength-microamp = <1000>;
96d5b0e70fSEmmanuel Vadot		};
97d5b0e70fSEmmanuel Vadot	};
98d5b0e70fSEmmanuel Vadot
99d5b0e70fSEmmanuel Vadot	i2c6_pin: i2c6-pins {
100d5b0e70fSEmmanuel Vadot		pins {
101d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO25__FUNC_SDA6>,
102d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO26__FUNC_SCL6>;
103d5b0e70fSEmmanuel Vadot			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
104d5b0e70fSEmmanuel Vadot		};
105d5b0e70fSEmmanuel Vadot	};
106d5b0e70fSEmmanuel Vadot
107d5b0e70fSEmmanuel Vadot	i2c7_pin: i2c7-pins {
108d5b0e70fSEmmanuel Vadot		pins {
109d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO27__FUNC_SCL7>,
110d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO28__FUNC_SDA7>;
111d5b0e70fSEmmanuel Vadot			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
112d5b0e70fSEmmanuel Vadot		};
113d5b0e70fSEmmanuel Vadot	};
114d5b0e70fSEmmanuel Vadot
115d5b0e70fSEmmanuel Vadot	nor_pins_default: nor-pins {
116d5b0e70fSEmmanuel Vadot		pins0 {
117d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO142__FUNC_SPINOR_IO0>,
118d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO141__FUNC_SPINOR_CK>,
119d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO143__FUNC_SPINOR_IO1>;
120d5b0e70fSEmmanuel Vadot			bias-pull-down;
121d5b0e70fSEmmanuel Vadot		};
122d5b0e70fSEmmanuel Vadot
123d5b0e70fSEmmanuel Vadot		pins1 {
124d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO140__FUNC_SPINOR_CS>,
125d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO130__FUNC_SPINOR_IO2>,
126d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO131__FUNC_SPINOR_IO3>;
127d5b0e70fSEmmanuel Vadot			bias-pull-up;
128d5b0e70fSEmmanuel Vadot		};
129d5b0e70fSEmmanuel Vadot	};
130d5b0e70fSEmmanuel Vadot
131d5b0e70fSEmmanuel Vadot	uart0_pin: uart0-pins {
132d5b0e70fSEmmanuel Vadot		pins {
133d5b0e70fSEmmanuel Vadot			pinmux = <PINMUX_GPIO98__FUNC_UTXD0>,
134d5b0e70fSEmmanuel Vadot				 <PINMUX_GPIO99__FUNC_URXD0>;
135d5b0e70fSEmmanuel Vadot		};
136d5b0e70fSEmmanuel Vadot	};
137d5b0e70fSEmmanuel Vadot};
138d5b0e70fSEmmanuel Vadot
139d5b0e70fSEmmanuel Vadot&u3phy0 {
140d5b0e70fSEmmanuel Vadot	status = "okay";
141d5b0e70fSEmmanuel Vadot};
142d5b0e70fSEmmanuel Vadot
143d5b0e70fSEmmanuel Vadot&u3phy1 {
144d5b0e70fSEmmanuel Vadot	status = "okay";
145d5b0e70fSEmmanuel Vadot};
146d5b0e70fSEmmanuel Vadot
147d5b0e70fSEmmanuel Vadot&u3phy2 {
148d5b0e70fSEmmanuel Vadot	status = "okay";
149d5b0e70fSEmmanuel Vadot};
150d5b0e70fSEmmanuel Vadot
151d5b0e70fSEmmanuel Vadot&u3phy3 {
152d5b0e70fSEmmanuel Vadot	status = "okay";
153d5b0e70fSEmmanuel Vadot};
154d5b0e70fSEmmanuel Vadot
155d5b0e70fSEmmanuel Vadot&uart0 {
156d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
157d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&uart0_pin>;
158d5b0e70fSEmmanuel Vadot	status = "okay";
159d5b0e70fSEmmanuel Vadot};
160d5b0e70fSEmmanuel Vadot
16101950c46SEmmanuel Vadot&ssusb0 {
16201950c46SEmmanuel Vadot	status = "okay";
16301950c46SEmmanuel Vadot};
16401950c46SEmmanuel Vadot
16501950c46SEmmanuel Vadot&ssusb2 {
16601950c46SEmmanuel Vadot	status = "okay";
16701950c46SEmmanuel Vadot};
16801950c46SEmmanuel Vadot
16901950c46SEmmanuel Vadot&ssusb3 {
17001950c46SEmmanuel Vadot	status = "okay";
17101950c46SEmmanuel Vadot};
17201950c46SEmmanuel Vadot
173d5b0e70fSEmmanuel Vadot&xhci0 {
174d5b0e70fSEmmanuel Vadot	status = "okay";
175d5b0e70fSEmmanuel Vadot};
176d5b0e70fSEmmanuel Vadot
177d5b0e70fSEmmanuel Vadot&xhci1 {
178d5b0e70fSEmmanuel Vadot	status = "okay";
179d5b0e70fSEmmanuel Vadot};
180d5b0e70fSEmmanuel Vadot
181d5b0e70fSEmmanuel Vadot&xhci2 {
182d5b0e70fSEmmanuel Vadot	status = "okay";
183d5b0e70fSEmmanuel Vadot};
184d5b0e70fSEmmanuel Vadot
185d5b0e70fSEmmanuel Vadot&xhci3 {
186d5b0e70fSEmmanuel Vadot	/* This controller is connected with a BT device.
187d5b0e70fSEmmanuel Vadot	 * Disable usb2 lpm to prevent known issues.
188d5b0e70fSEmmanuel Vadot	 */
189d5b0e70fSEmmanuel Vadot	usb2-lpm-disable;
190d5b0e70fSEmmanuel Vadot	status = "okay";
191d5b0e70fSEmmanuel Vadot};
192