1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Qualcomm APQ8016 based Dragonboard 410C board device tree source
4 *
5 * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
6 */
7
8/dts-v1/;
9
10#include "skeleton64.dtsi"
11#include <dt-bindings/pinctrl/pinctrl-snapdragon.h>
12
13/ {
14	model = "Qualcomm Technologies, Inc. Dragonboard 410c";
15	compatible = "qcom,dragonboard", "qcom,apq8016-sbc";
16	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
21	aliases {
22		usb0 = "/soc/ehci@78d9000";
23	};
24
25	memory {
26		device_type = "memory";
27		reg = <0 0x80000000 0 0x3da00000>;
28	};
29
30	reserved-memory {
31		#address-cells = <2>;
32		#size-cells = <2>;
33		ranges;
34
35		smem_mem: smem_region@86300000 {
36			reg = <0x0 0x86300000 0x0 0x100000>;
37			no-map;
38		};
39	};
40
41	chosen {
42		stdout-path = "/soc/serial@78b0000";
43	};
44
45	smem {
46		compatible = "qcom,smem";
47		memory-region = <&smem_mem>;
48		qcom,rpm-msg-ram = <&rpm_msg_ram>;
49	};
50
51	soc {
52		#address-cells = <0x1>;
53		#size-cells = <0x1>;
54		ranges = <0x0 0x0 0x0 0xffffffff>;
55		compatible = "simple-bus";
56
57		rpm_msg_ram: memory@60000 {
58			compatible = "qcom,rpm-msg-ram";
59			reg = <0x60000 0x8000>;
60		};
61
62		pinctrl: qcom,tlmm@1000000 {
63			compatible = "qcom,tlmm-apq8016";
64			reg = <0x1000000 0x400000>;
65
66			blsp1_uart: uart {
67				function = "blsp1_uart";
68				pins = "GPIO_4", "GPIO_5";
69				drive-strength = <DRIVE_STRENGTH_8MA>;
70				bias-disable;
71			};
72		};
73		clkc: qcom,gcc@1800000 {
74			compatible = "qcom,gcc-apq8016";
75			reg = <0x1800000 0x80000>;
76			#address-cells = <0x1>;
77			#size-cells = <0x0>;
78		};
79
80		serial@78b0000 {
81			compatible = "qcom,msm-uartdm-v1.4";
82			reg = <0x78b0000 0x200>;
83			clock = <&clkc 4>;
84			pinctrl-names = "uart";
85			pinctrl-0 = <&blsp1_uart>;
86		};
87
88		soc_gpios: pinctrl@1000000 {
89			compatible = "qcom,apq8016-pinctrl";
90			reg = <0x1000000 0x300000>;
91			gpio-controller;
92			gpio-count = <122>;
93			gpio-bank-name="soc";
94			#gpio-cells = <1>;
95		};
96
97		ehci@78d9000 {
98			compatible = "qcom,ehci-host";
99			reg = <0x78d9000 0x400>;
100		};
101
102		sdhci@07824000 {
103			compatible = "qcom,sdhci-msm-v4";
104			reg = <0x7824900 0x11c 0x7824000 0x800>;
105			bus-width = <0x8>;
106			index = <0x0>;
107			non-removable;
108			clock = <&clkc 0>;
109			clock-frequency = <100000000>;
110		};
111
112		sdhci@07864000 {
113			compatible = "qcom,sdhci-msm-v4";
114			reg = <0x7864900 0x11c 0x7864000 0x800>;
115			index = <0x1>;
116			bus-width = <0x4>;
117			clock = <&clkc 1>;
118			clock-frequency = <200000000>;
119		};
120
121		wcnss {
122			bt {
123				compatible="qcom,wcnss-bt";
124			};
125
126			wifi {
127				compatible="qcom,wcnss-wlan";
128			};
129		};
130
131		spmi@200f000 {
132			compatible = "qcom,spmi-pmic-arb";
133			reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>;
134			#address-cells = <0x1>;
135			#size-cells = <0x1>;
136			pmic0: pm8916@0 {
137				compatible = "qcom,spmi-pmic";
138				reg = <0x0 0x1>;
139				#address-cells = <0x1>;
140				#size-cells = <0x1>;
141
142				pm8916_pon: pm8916_pon@800 {
143					compatible = "qcom,pm8916-pwrkey";
144					reg = <0x800 0x96>;
145					#gpio-cells = <2>;
146					gpio-controller;
147				};
148
149				pm8916_gpios: pm8916_gpios@c000 {
150					compatible = "qcom,pm8916-gpio";
151					reg = <0xc000 0x400>;
152					gpio-controller;
153					gpio-count = <4>;
154					#gpio-cells = <2>;
155					gpio-bank-name="pmic";
156				};
157			};
158
159			pmic1: pm8916@1 {
160				compatible = "qcom,spmi-pmic";
161				reg = <0x1 0x1>;
162			};
163		};
164	};
165
166	leds {
167		compatible = "gpio-leds";
168		user1 {
169			label = "green:user1";
170			gpios = <&soc_gpios 21 0>;
171		};
172
173		user2 {
174			label = "green:user2";
175			gpios = <&soc_gpios 120 0>;
176		};
177
178		user3 {
179			label = "green:user3";
180			gpios = <&pm8916_gpios 0 0>;
181		};
182
183		user4 {
184			label = "green:user4";
185			gpios = <&pm8916_gpios 1 0>;
186		};
187	};
188};
189
190#include "dragonboard410c-uboot.dtsi"
191