Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
Jonas Karlman | 81239e9 | 2024-04-22 06:29:02 +0000 | [diff] [blame] | 3 | * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card, SPI flash and USB OTG enabled |
Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "rk356x.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "Generic RK3566/RK3568"; |
| 11 | compatible = "rockchip,rk3568"; |
| 12 | |
Jonas Karlman | 04fb6f0 | 2024-01-31 22:07:14 +0000 | [diff] [blame] | 13 | aliases { |
| 14 | mmc0 = &sdhci; |
Jonas Karlman | 4acf606 | 2024-04-22 06:29:00 +0000 | [diff] [blame] | 15 | mmc1 = &sdmmc0; |
Jonas Karlman | 04fb6f0 | 2024-01-31 22:07:14 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | chosen { |
Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 19 | stdout-path = "serial2:1500000n8"; |
| 20 | }; |
| 21 | }; |
| 22 | |
| 23 | &sdhci { |
| 24 | bus-width = <8>; |
| 25 | cap-mmc-highspeed; |
Jonas Karlman | 04fb6f0 | 2024-01-31 22:07:14 +0000 | [diff] [blame] | 26 | mmc-hs200-1_8v; |
| 27 | no-sd; |
| 28 | no-sdio; |
Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 29 | non-removable; |
| 30 | pinctrl-names = "default"; |
Jonas Karlman | 4acf606 | 2024-04-22 06:29:00 +0000 | [diff] [blame] | 31 | pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; |
Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 32 | status = "okay"; |
| 33 | }; |
| 34 | |
| 35 | &sdmmc0 { |
| 36 | bus-width = <4>; |
| 37 | cap-sd-highspeed; |
| 38 | disable-wp; |
Jonas Karlman | 04fb6f0 | 2024-01-31 22:07:14 +0000 | [diff] [blame] | 39 | no-mmc; |
| 40 | no-sdio; |
Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 41 | pinctrl-names = "default"; |
Jonas Karlman | 4acf606 | 2024-04-22 06:29:00 +0000 | [diff] [blame] | 42 | pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; |
Jonas Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 43 | status = "okay"; |
| 44 | }; |
| 45 | |
Jonas Karlman | 3edaf1d | 2024-04-22 06:29:01 +0000 | [diff] [blame] | 46 | &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 Karlman | f68c63d | 2023-08-21 22:30:29 +0000 | [diff] [blame] | 58 | &uart2 { |
| 59 | status = "okay"; |
| 60 | }; |
Jonas Karlman | 81239e9 | 2024-04-22 06:29:02 +0000 | [diff] [blame] | 61 | |
| 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 | }; |