blob: 085a09268e8a22b8da1a78c5fa5dd50a1cb9ff15 [file] [log] [blame]
Jonas Karlmanf68c63d2023-08-21 22:30:29 +00001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
Jonas Karlman81239e92024-04-22 06:29:02 +00003 * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card, SPI flash and USB OTG enabled
Jonas Karlmanf68c63d2023-08-21 22:30:29 +00004 */
5
6/dts-v1/;
7#include "rk356x.dtsi"
8
9/ {
10 model = "Generic RK3566/RK3568";
11 compatible = "rockchip,rk3568";
12
Jonas Karlman04fb6f02024-01-31 22:07:14 +000013 aliases {
14 mmc0 = &sdhci;
Jonas Karlman4acf6062024-04-22 06:29:00 +000015 mmc1 = &sdmmc0;
Jonas Karlman04fb6f02024-01-31 22:07:14 +000016 };
17
18 chosen {
Jonas Karlmanf68c63d2023-08-21 22:30:29 +000019 stdout-path = "serial2:1500000n8";
20 };
21};
22
23&sdhci {
24 bus-width = <8>;
25 cap-mmc-highspeed;
Jonas Karlman04fb6f02024-01-31 22:07:14 +000026 mmc-hs200-1_8v;
27 no-sd;
28 no-sdio;
Jonas Karlmanf68c63d2023-08-21 22:30:29 +000029 non-removable;
30 pinctrl-names = "default";
Jonas Karlman4acf6062024-04-22 06:29:00 +000031 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
Jonas Karlmanf68c63d2023-08-21 22:30:29 +000032 status = "okay";
33};
34
35&sdmmc0 {
36 bus-width = <4>;
37 cap-sd-highspeed;
38 disable-wp;
Jonas Karlman04fb6f02024-01-31 22:07:14 +000039 no-mmc;
40 no-sdio;
Jonas Karlmanf68c63d2023-08-21 22:30:29 +000041 pinctrl-names = "default";
Jonas Karlman4acf6062024-04-22 06:29:00 +000042 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
Jonas Karlmanf68c63d2023-08-21 22:30:29 +000043 status = "okay";
44};
45
Jonas Karlman3edaf1d2024-04-22 06:29:01 +000046&sfc {
47 #address-cells = <1>;
48 #size-cells = <0>;
49 status = "okay";
50
51 flash@0 {
52 compatible = "jedec,spi-nor";
53 reg = <0>;
54 spi-max-frequency = <24000000>;
55 };
56};
57
Jonas Karlmanf68c63d2023-08-21 22:30:29 +000058&uart2 {
59 status = "okay";
60};
Jonas Karlman81239e92024-04-22 06:29:02 +000061
62&usb_host0_xhci {
63 dr_mode = "peripheral";
64 extcon = <&usb2phy0>;
65 maximum-speed = "high-speed";
66 phys = <&usb2phy0_otg>;
67 phy-names = "usb2-phy";
68 status = "okay";
69};
70
71&usb2phy0 {
72 status = "okay";
73};
74
75&usb2phy0_otg {
76 status = "okay";
77};