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	memory {
22		device_type = "memory";
23		reg = <0 0x80000000 0 0x3da00000>;
24	};
25
26	reserved-memory {
27		#address-cells = <2>;
28		#size-cells = <2>;
29		ranges;
30	};
31
32	chosen {
33		stdout-path = "/soc/serial@78b0000";
34	};
35
36	soc {
37		#address-cells = <0x1>;
38		#size-cells = <0x1>;
39		ranges = <0x0 0x0 0x0 0xffffffff>;
40		compatible = "simple-bus";
41
42		pinctrl: qcom,tlmm@1000000 {
43			compatible = "qcom,tlmm-apq8016";
44			reg = <0x1000000 0x400000>;
45
46			blsp1_uart: uart {
47				function = "blsp1_uart";
48				pins = "GPIO_4", "GPIO_5";
49				drive-strength = <DRIVE_STRENGTH_8MA>;
50				bias-disable;
51			};
52		};
53		clkc: qcom,gcc@1800000 {
54			compatible = "qcom,gcc-apq8016";
55			reg = <0x1800000 0x80000>;
56			#address-cells = <0x1>;
57			#size-cells = <0x0>;
58		};
59
60		serial@78b0000 {
61			compatible = "qcom,msm-uartdm-v1.4";
62			reg = <0x78b0000 0x200>;
63			clock = <&clkc 4>;
64			pinctrl-names = "uart";
65			pinctrl-0 = <&blsp1_uart>;
66		};
67
68		soc_gpios: pinctrl@1000000 {
69			compatible = "qcom,apq8016-pinctrl";
70			reg = <0x1000000 0x300000>;
71			gpio-controller;
72			gpio-count = <122>;
73			gpio-bank-name="soc";
74			#gpio-cells = <1>;
75		};
76
77		ehci@78d9000 {
78			compatible = "qcom,ehci-host";
79			reg = <0x78d9000 0x400>;
80		};
81
82		sdhci@07824000 {
83			compatible = "qcom,sdhci-msm-v4";
84			reg = <0x7824900 0x11c 0x7824000 0x800>;
85			bus-width = <0x8>;
86			index = <0x0>;
87			non-removable;
88			clock = <&clkc 0>;
89			clock-frequency = <100000000>;
90		};
91
92		sdhci@07864000 {
93			compatible = "qcom,sdhci-msm-v4";
94			reg = <0x7864900 0x11c 0x7864000 0x800>;
95			index = <0x1>;
96			bus-width = <0x4>;
97			clock = <&clkc 1>;
98			clock-frequency = <200000000>;
99		};
100
101		wcnss {
102			bt {
103				compatible="qcom,wcnss-bt";
104			};
105
106			wifi {
107				compatible="qcom,wcnss-wlan";
108			};
109		};
110
111		spmi@200f000 {
112			compatible = "qcom,spmi-pmic-arb";
113			reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>;
114			#address-cells = <0x1>;
115			#size-cells = <0x1>;
116			pmic0: pm8916@0 {
117				compatible = "qcom,spmi-pmic";
118				reg = <0x0 0x1>;
119				#address-cells = <0x1>;
120				#size-cells = <0x1>;
121
122				pm8916_pon: pm8916_pon@800 {
123					compatible = "qcom,pm8916-pwrkey";
124					reg = <0x800 0x96>;
125					#gpio-cells = <2>;
126					gpio-controller;
127				};
128
129				pm8916_gpios: pm8916_gpios@c000 {
130					compatible = "qcom,pm8916-gpio";
131					reg = <0xc000 0x400>;
132					gpio-controller;
133					gpio-count = <4>;
134					#gpio-cells = <2>;
135					gpio-bank-name="pmic";
136				};
137			};
138
139			pmic1: pm8916@1 {
140				compatible = "qcom,spmi-pmic";
141				reg = <0x1 0x1>;
142			};
143		};
144	};
145
146	leds {
147		compatible = "gpio-leds";
148		user1 {
149			label = "green:user1";
150			gpios = <&soc_gpios 21 0>;
151		};
152
153		user2 {
154			label = "green:user2";
155			gpios = <&soc_gpios 120 0>;
156		};
157
158		user3 {
159			label = "green:user3";
160			gpios = <&pm8916_gpios 0 0>;
161		};
162
163		user4 {
164			label = "green:user4";
165			gpios = <&pm8916_gpios 1 0>;
166		};
167	};
168};
169
170#include "dragonboard410c-uboot.dtsi"
171