1/*
2 * Copyright (c) 2020, Bernhard Kraemer
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "teensy40.dts"
8
9/ {
10	model = "PJRC TEENSY 4.1 board";
11
12	chosen {
13		zephyr,flash-controller = &w25q64jvxgim;
14		zephyr,flash = &w25q64jvxgim;
15	};
16};
17
18/delete-node/ &w25q16jvuxim;
19&flexspi {
20	status = "okay";
21
22	reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
23	/* WINBOND flash memory*/
24	w25q64jvxgim: w25q64jvxgim@0 {
25		compatible = "nxp,imx-flexspi-nor";
26		size = <DT_SIZE_M(8 * 8)>;
27		reg = <0>;
28		spi-max-frequency = <DT_FREQ_M(133)>;
29		status = "okay";
30		jedec-id = [ef 70 17];
31
32		erase-block-size = <4096>;
33		write-block-size = <1>;
34	};
35};
36
37&enet_mac {
38	status = "okay";
39	pinctrl-0 = <&pinmux_enet>;
40	pinctrl-names = "default";
41	nxp,unique-mac;
42	phy-connection-type = "rmii";
43	phy-handle = <&phy>;
44};
45
46&enet_mdio {
47	status = "okay";
48	pinctrl-0 = <&pinmux_enet_mdio>;
49	pinctrl-names = "default";
50	phy: phy@0 {
51		status = "okay";
52		compatible = "ti,dp83825";
53		reg = <0>;
54		reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
55		int-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
56		ti,interface-type = "rmii";
57	};
58};
59
60&lpspi3 {
61	status = "okay";
62};
63
64&usdhc1 {
65	status = "okay";
66	no-1-8-v;
67	pinctrl-0 = <&pinmux_usdhc1>;
68	pinctrl-1 = <&pinmux_usdhc1_slow>;
69	pinctrl-2 = <&pinmux_usdhc1_med>;
70	pinctrl-3 = <&pinmux_usdhc1_fast>;
71	pinctrl-names = "default", "slow", "med", "fast";
72	mmc {
73		compatible = "zephyr,sdmmc-disk";
74		disk-name = "SD";
75		status = "okay";
76	};
77};
78