blob: 740df3a788719ed525c627a0a489c42de7330ed2 [file] [log] [blame]
Caleb Connolly220f9dc2023-10-03 12:43:50 +01001// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023, Linaro Limited
4 * Based on Linux devicetree
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/arm/qcom,ids.h>
10
11#include "sm6115.dtsi"
12
13/ {
14 model = "Qualcomm Technologies, Inc. QRB4210 RB2";
15 compatible = "qcom,qrb4210-rb2", "qcom,qrb4210";
16 qcom,msm-id = <QCOM_ID_QRB4210 0x10000>;
17 qcom,board-id = <QCOM_BOARD_ID(QRD, 5, 1) 0>;
18
19 aliases {
20 serial0 = &uart4;
21 };
22
23 chosen {
24 stdout-path = "serial0:115200n8";
25 };
26
27 clocks {
28 clk40M: can-clk {
29 compatible = "fixed-clock";
30 clock-frequency = <40000000>;
31 #clock-cells = <0>;
32 };
33 };
34
35 smbios {
36 compatible = "u-boot,sysinfo-smbios";
37
38 smbios {
39 system {
40 manufacturer = "Qualcomm Technologies, Inc.";
41 product = "Qualcomm Robotics RB2";
42 };
43
44 baseboard {
45 manufacturer = "Thundercomm";
46 product = "TurboX-C4210-SoM";
47 };
48 };
49 };
50};
51
52&sdhc_1 {
53 /* Remove rpmcc clocks */
54 clocks = <&gcc GCC_SDCC1_AHB_CLK>,
55 <&gcc GCC_SDCC1_APPS_CLK>,
56 <&gcc GCC_SDCC1_ICE_CORE_CLK>;
57 clock-names = "iface", "core", "ice";
58
59 no-sdio;
60 non-removable;
61
62 status = "okay";
63};
64
65&sdhc_2 {
66 /* Remove rpmcc clocks */
67 clocks = <&gcc GCC_SDCC2_AHB_CLK>,
68 <&gcc GCC_SDCC2_APPS_CLK>;
69 clock-names = "iface", "core";
70
71 no-sdio;
72
73 clock-frequency = <200000000>;
74
75 cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>;
76
77 /* SD card support is broken currently */
78 status = "disabled";
79};
80
81&sleep_clk {
82 clock-frequency = <32000>;
83};
84
85&tlmm {
86 gpio-reserved-ranges = <43 2>, <49 1>, <54 1>,
87 <56 3>, <61 2>, <64 1>,
88 <68 1>, <72 8>, <96 1>;
89};
90
91&uart4 {
92 status = "okay";
93};
94
95&usb {
96 status = "okay";
97 qcom,select-utmi-as-pipe-clk;
98};
99
100&usb_dwc3 {
101 dr_mode = "host";
102 maximum-speed = "high-speed";
103
104 /* We don't support superspeed in u-boot so remove the SSPHY */
105 phys = <&usb_hsphy>;
106 phy-names = "usb2-phy";
107};
108
109&usb_hsphy {
110 status = "okay";
111
112 /* Disable ref clk because rpmcc isn't supported */
113 clocks = <&gcc GCC_AHB2PHY_USB_CLK>;
114 clock-names = "cfg_ahb";
115};
116
117&xo_board {
118 clock-frequency = <19200000>;
119};