1/*
2 * Qualcomm APQ8016 based Dragonboard 410C board device tree source
3 *
4 * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
5 *
6 * SPDX-License-Identifier:	GPL-2.0+
7 */
8
9/dts-v1/;
10
11#include "skeleton64.dtsi"
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		clkc: qcom,gcc@1800000 {
43			compatible = "qcom,gcc-apq8016";
44			reg = <0x1800000 0x80000>;
45			#address-cells = <0x1>;
46			#size-cells = <0x0>;
47		};
48
49		serial@78b0000 {
50			compatible = "qcom,msm-uartdm-v1.4";
51			reg = <0x78b0000 0x200>;
52			u-boot,dm-pre-reloc;
53			clock = <&clkc 4>;
54		};
55
56		soc_gpios: pinctrl@1000000 {
57			compatible = "qcom,apq8016-pinctrl";
58			reg = <0x1000000 0x300000>;
59			gpio-controller;
60			gpio-count = <122>;
61			gpio-bank-name="soc";
62			#gpio-cells = <1>;
63		};
64
65		ehci@78d9000 {
66			compatible = "qcom,ehci-host";
67			reg = <0x78d9000 0x400>;
68		};
69
70		sdhci@07824000 {
71			compatible = "qcom,sdhci-msm-v4";
72			reg = <0x7824900 0x11c 0x7824000 0x800>;
73			bus-width = <0x8>;
74			index = <0x0>;
75			non-removable;
76			clock = <&clkc 0>;
77			clock-frequency = <100000000>;
78		};
79
80		sdhci@07864000 {
81			compatible = "qcom,sdhci-msm-v4";
82			reg = <0x7864900 0x11c 0x7864000 0x800>;
83			index = <0x1>;
84			bus-width = <0x4>;
85			clock = <&clkc 1>;
86			clock-frequency = <200000000>;
87		};
88
89		wcnss {
90			bt {
91				compatible="qcom,wcnss-bt";
92			};
93
94			wifi {
95				compatible="qcom,wcnss-wlan";
96			};
97		};
98
99		spmi@200f000 {
100			compatible = "qcom,spmi-pmic-arb";
101			reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>;
102			#address-cells = <0x1>;
103			#size-cells = <0x1>;
104			pmic0: pm8916@0 {
105				compatible = "qcom,spmi-pmic";
106				reg = <0x0 0x1>;
107				#address-cells = <0x1>;
108				#size-cells = <0x1>;
109
110				pm8916_pon: pm8916_pon@800 {
111					compatible = "qcom,pm8916-pwrkey";
112					reg = <0x800 0x96>;
113					#gpio-cells = <2>;
114					gpio-controller;
115				};
116
117				pm8916_gpios: pm8916_gpios@c000 {
118					compatible = "qcom,pm8916-gpio";
119					reg = <0xc000 0x400>;
120					gpio-controller;
121					gpio-count = <4>;
122					#gpio-cells = <2>;
123					gpio-bank-name="pmic";
124				};
125			};
126
127			pmic1: pm8916@1 {
128				compatible = "qcom,spmi-pmic";
129				reg = <0x1 0x1>;
130			};
131		};
132	};
133
134	leds {
135		compatible = "gpio-leds";
136		user1 {
137			label = "green:user1";
138			gpios = <&soc_gpios 21 0>;
139		};
140
141		user2 {
142			label = "green:user2";
143			gpios = <&soc_gpios 120 0>;
144		};
145
146		user3 {
147			label = "green:user3";
148			gpios = <&pm8916_gpios 0 0>;
149		};
150
151		user4 {
152			label = "green:user4";
153			gpios = <&pm8916_gpios 1 0>;
154		};
155	};
156};
157
158#include "dragonboard410c-uboot.dtsi"
159