blob: 453642b257055fba618d7cb0f9baede1abd02350 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Mateusz Kulikowski626f0482016-03-31 23:12:33 +02002/*
3 * Qualcomm APQ8016 based Dragonboard 410C board device tree source
4 *
5 * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mateusz Kulikowski626f0482016-03-31 23:12:33 +02006 */
7
8/dts-v1/;
9
10#include "skeleton64.dtsi"
Stephan Gerhold698c1df2021-06-27 13:06:15 +020011#include <dt-bindings/gpio/gpio.h>
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020012
13/ {
14 model = "Qualcomm Technologies, Inc. Dragonboard 410c";
Caleb Connolly1ccfdb52023-11-14 19:41:44 +000015 compatible = "qcom,apq8016-sbc", "qcom,apq8016";
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020016 qcom,msm-id = <0xce 0x0 0xf8 0x0 0xf9 0x0 0xfa 0x0 0xf7 0x0>;
17 qcom,board-id = <0x10018 0x0>;
18 #address-cells = <0x2>;
19 #size-cells = <0x2>;
20
Ramon Fried6b0861a2018-09-21 13:35:45 +030021 aliases {
22 usb0 = "/soc/ehci@78d9000";
23 };
24
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020025 memory {
26 device_type = "memory";
27 reg = <0 0x80000000 0 0x3da00000>;
28 };
29
Rob Clark35bdd832018-01-10 11:34:39 +010030 reserved-memory {
31 #address-cells = <2>;
32 #size-cells = <2>;
33 ranges;
Ramon Fried072787d2018-07-02 02:57:57 +030034
35 smem_mem: smem_region@86300000 {
36 reg = <0x0 0x86300000 0x0 0x100000>;
37 no-map;
38 };
Rob Clark35bdd832018-01-10 11:34:39 +010039 };
40
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020041 chosen {
42 stdout-path = "/soc/serial@78b0000";
43 };
44
Ramon Fried072787d2018-07-02 02:57:57 +030045 smem {
46 compatible = "qcom,smem";
47 memory-region = <&smem_mem>;
48 qcom,rpm-msg-ram = <&rpm_msg_ram>;
49 };
50
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020051 soc {
52 #address-cells = <0x1>;
53 #size-cells = <0x1>;
54 ranges = <0x0 0x0 0x0 0xffffffff>;
55 compatible = "simple-bus";
56
Ramon Fried072787d2018-07-02 02:57:57 +030057 rpm_msg_ram: memory@60000 {
58 compatible = "qcom,rpm-msg-ram";
59 reg = <0x60000 0x8000>;
60 };
61
Sumit Garg0ddabb62022-07-27 13:52:04 +053062 soc_gpios: pinctrl@1000000 {
63 compatible = "qcom,msm8916-pinctrl";
Ramon Fried9558dda2018-05-16 12:13:41 +030064 reg = <0x1000000 0x400000>;
Sumit Garg0ddabb62022-07-27 13:52:04 +053065 gpio-controller;
66 gpio-count = <122>;
67 gpio-bank-name="soc";
68 #gpio-cells = <2>;
Ramon Fried9558dda2018-05-16 12:13:41 +030069
70 blsp1_uart: uart {
71 function = "blsp1_uart";
72 pins = "GPIO_4", "GPIO_5";
Sumit Garg56443282023-02-01 19:28:52 +053073 drive-strength = <8>;
Ramon Fried9558dda2018-05-16 12:13:41 +030074 bias-disable;
75 };
76 };
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020077 clkc: qcom,gcc@1800000 {
Caleb Connollyf2438312023-11-20 20:29:42 +000078 compatible = "qcom,gcc-msm8916";
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020079 reg = <0x1800000 0x80000>;
80 #address-cells = <0x1>;
81 #size-cells = <0x0>;
Caleb Connolly1ccfdb52023-11-14 19:41:44 +000082 #clock-cells = <0x1>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020083 };
84
85 serial@78b0000 {
86 compatible = "qcom,msm-uartdm-v1.4";
87 reg = <0x78b0000 0x200>;
Caleb Connollyfe9e4962023-11-15 03:34:19 +000088 clocks = <&clkc 4>;
89 clock-names = "core";
Ramon Fried9558dda2018-05-16 12:13:41 +030090 pinctrl-names = "uart";
91 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020092 };
93
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020094 ehci@78d9000 {
Caleb Connolly1ccfdb52023-11-14 19:41:44 +000095 compatible = "qcom,ci-hdrc";
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020096 reg = <0x78d9000 0x400>;
Ramon Fried665e4522018-09-21 13:35:48 +030097 phys = <&ehci_phy>;
Ramon Fried665e4522018-09-21 13:35:48 +030098
Caleb Connolly1ccfdb52023-11-14 19:41:44 +000099 ulpi {
100 usb_hs_phy: phy {
101 compatible = "qcom,usb-hs-phy-msm8916",
102 "qcom,usb-hs-phy";
103 #phy-cells = <0>;
104 clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
105 clock-names = "ref", "sleep";
106 resets = <&gcc GCC_USB2A_PHY_BCR>, <&usb 0>;
107 reset-names = "phy", "por";
108 qcom,init-seq = /bits/ 8 <0x0 0x44>,
109 <0x1 0x6b>,
110 <0x2 0x24>,
111 <0x3 0x13>;
112 };
113 };
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200114 };
115
116 sdhci@07824000 {
117 compatible = "qcom,sdhci-msm-v4";
118 reg = <0x7824900 0x11c 0x7824000 0x800>;
119 bus-width = <0x8>;
120 index = <0x0>;
121 non-removable;
122 clock = <&clkc 0>;
123 clock-frequency = <100000000>;
124 };
125
126 sdhci@07864000 {
127 compatible = "qcom,sdhci-msm-v4";
128 reg = <0x7864900 0x11c 0x7864000 0x800>;
129 index = <0x1>;
130 bus-width = <0x4>;
131 clock = <&clkc 1>;
132 clock-frequency = <200000000>;
Stephan Gerhold698c1df2021-06-27 13:06:15 +0200133 cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200134 };
135
Jorge Ramirez-Ortize2beb872018-01-10 11:34:35 +0100136 wcnss {
137 bt {
138 compatible="qcom,wcnss-bt";
139 };
140
141 wifi {
142 compatible="qcom,wcnss-wlan";
143 };
144 };
145
Stephan Gerholdafc13332022-07-13 21:17:11 +0200146 spmi_bus: spmi@200f000 {
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200147 compatible = "qcom,spmi-pmic-arb";
Stephan Gerholdafc13332022-07-13 21:17:11 +0200148 reg = <0x0200f000 0x001000>,
149 <0x02400000 0x400000>,
150 <0x02c00000 0x400000>,
151 <0x03800000 0x200000>,
152 <0x0200a000 0x002100>;
153 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200154 #address-cells = <0x1>;
155 #size-cells = <0x1>;
156 pmic0: pm8916@0 {
157 compatible = "qcom,spmi-pmic";
158 reg = <0x0 0x1>;
159 #address-cells = <0x1>;
160 #size-cells = <0x1>;
161
Caleb Connolly5df679a2023-11-30 16:13:50 +0000162 pon@800 {
163 compatible = "qcom,pm8916-pon";
164 reg = <0x800 0x100>;
165 mode-bootloader = <0x2>;
166 mode-recovery = <0x1>;
167
168 pwrkey {
169 compatible = "qcom,pm8941-pwrkey";
170 debounce = <15625>;
171 bias-pull-up;
172 };
173
174 pm8916_resin: resin {
175 compatible = "qcom,pm8941-resin";
176 debounce = <15625>;
177 bias-pull-up;
178 };
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200179 };
180
181 pm8916_gpios: pm8916_gpios@c000 {
182 compatible = "qcom,pm8916-gpio";
183 reg = <0xc000 0x400>;
184 gpio-controller;
Caleb Connollybc60b072023-11-30 18:05:58 +0000185 gpio-ranges = <&pm8916_gpios 0 0 4>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200186 #gpio-cells = <2>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200187 };
188 };
189
190 pmic1: pm8916@1 {
191 compatible = "qcom,spmi-pmic";
192 reg = <0x1 0x1>;
193 };
194 };
195 };
196
197 leds {
198 compatible = "gpio-leds";
199 user1 {
200 label = "green:user1";
201 gpios = <&soc_gpios 21 0>;
202 };
203
204 user2 {
205 label = "green:user2";
206 gpios = <&soc_gpios 120 0>;
207 };
208
209 user3 {
210 label = "green:user3";
211 gpios = <&pm8916_gpios 0 0>;
212 };
213
214 user4 {
215 label = "green:user4";
216 gpios = <&pm8916_gpios 1 0>;
217 };
218 };
219};
220
221#include "dragonboard410c-uboot.dtsi"