blob: 75c5727fe5a0c3f59d29beece66f28b29eeb6e81 [file] [log] [blame]
Sumit Gargd35b2112022-07-12 12:42:08 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Qualcomm Robotics RB3 Development (dragonboard845c) board device
4 * tree source
5 *
6 * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org>
7 */
8
9/dts-v1/;
10
Caleb Connolly7505ce12023-10-03 12:36:22 +010011#include <dt-bindings/arm/qcom,ids.h>
12
Sumit Gargd35b2112022-07-12 12:42:08 +053013#include "sdm845.dtsi"
Caleb Connolly1a7474c2023-08-15 17:36:10 +010014#include "pm8998.dtsi"
Sumit Gargd35b2112022-07-12 12:42:08 +053015
16/ {
17 model = "Thundercomm Dragonboard 845c";
18 compatible = "thundercomm,db845c", "qcom,sdm845";
Caleb Connolly7505ce12023-10-03 12:36:22 +010019 qcom,msm-id = <QCOM_ID_SDA845 0x20001>;
20 qcom,board-id = <QCOM_BOARD_ID(MTP, 0, 0) 0>;
Sumit Gargd35b2112022-07-12 12:42:08 +053021
22 chosen {
23 stdout-path = "serial0:115200n8";
24 };
25
26 aliases {
Vladimir Zapolskiy0e889a72023-04-21 20:50:41 +030027 serial0 = &uart9;
Sumit Gargd35b2112022-07-12 12:42:08 +053028 };
29
Caleb Connolly1a7474c2023-08-15 17:36:10 +010030 memory@80000000 {
Sumit Gargd35b2112022-07-12 12:42:08 +053031 device_type = "memory";
32 reg = <0 0x80000000 0 0xfdfa0000>;
33 };
Caleb Connolly32581492023-09-12 16:14:21 +010034
Caleb Connolly58e32772023-10-03 12:49:15 +010035 smbios {
36 compatible = "u-boot,sysinfo-smbios";
37
38 smbios {
39 system {
40 manufacturer = "Qualcomm Technologies, Inc.";
41 product = "Qualcomm Robotics Dragonboard 845c";
42 };
43
44 baseboard {
45 manufacturer = "Thundercomm";
46 product = "TurboX-845-SoM";
47 };
48 };
49 };
50
Caleb Connolly32581492023-09-12 16:14:21 +010051 pcie_usb_dual_pwr: vldo-3v3-regulator {
52 compatible = "regulator-gpio";
53 regulator-name = "VLDO_3V3";
54
55 regulator-min-microvolt = <3300000>;
56 regulator-max-microvolt = <3300000>;
57
58 enable-gpios = <&tlmm 90 GPIO_ACTIVE_HIGH>;
59 enable-active-high;
60 states = <0 0>, <1800000 1>;
61 };
Caleb Connollyebad4042023-10-17 13:46:15 +010062
63 gpio-keys {
64 compatible = "gpio-keys";
65
66 key-vol-up {
67 label = "Volume Up";
68 linux,code = <KEY_UP>;
69 gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>;
70 };
71 };
Sumit Gargd35b2112022-07-12 12:42:08 +053072};
73
Caleb Connolly5df679a2023-11-30 16:13:50 +000074&pm8998_resin {
75 status = "okay";
76};
77
Caleb Connolly1a7474c2023-08-15 17:36:10 +010078&uart9 {
79 status = "okay";
80};
Caleb Connolly32581492023-09-12 16:14:21 +010081
Caleb Connollyff0a7b42023-10-03 12:48:21 +010082&ufs_mem_hc {
83 status = "okay";
84};
85
86&ufs_mem_phy {
87 status = "okay";
88};
89
Caleb Connolly6d159ed2023-12-04 15:12:07 +000090&usb_1 {
91 status = "okay";
92 qcom,select-utmi-as-pipe-clk;
93};
94
95&usb_1_dwc3 {
96 dr_mode = "peripheral";
97
98 /* We don't support superspeed in u-boot so remove the SSPHY */
99 phys = <&usb_1_hsphy>;
100 phy-names = "usb2-phy";
101
102 /* fastest mode for USB 2 */
103 maximum-speed = "high-speed";
104};
105
106&usb_1_hsphy {
107 /* Remove ref clk because rmphcc isn't available */
108 clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
109 clock-names = "cfg_ahb";
110
111 status = "okay";
112};
113
Caleb Connolly32581492023-09-12 16:14:21 +0100114&usb_2 {
115 status = "okay";
116 qcom,select-utmi-as-pipe-clk;
117};
118
119&usb_2_dwc3 {
120 dr_mode = "host";
121
122 /* We don't support superspeed in u-boot so remove the SSPHY */
123 phys = <&usb_2_hsphy>;
124 phy-names = "usb2-phy";
125
126 /* fastest mode for USB 2 */
127 maximum-speed = "high-speed";
128
129 vbus-supply = <&pcie_usb_dual_pwr>;
130};
131
132&usb_2_hsphy {
133 /* Remove ref clk because rmphcc isn't available */
134 clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
135 clock-names = "cfg_ahb";
136
137 status = "okay";
138};