1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Qualcomm APQ8096 based Dragonboard 820C board device tree source
4 *
5 * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
6 */
7
8/dts-v1/;
9
10#include "skeleton64.dtsi"
11
12/ {
13	model = "Qualcomm Technologies, Inc. DB820c";
14	compatible = "arrow,apq8096-db820c", "qcom,apq8096-sbc";
15	#address-cells = <2>;
16	#size-cells = <2>;
17
18	aliases {
19		serial0 = &blsp2_uart2;
20	};
21
22	chosen {
23		stdout-path = "serial0:115200n8";
24	};
25
26	memory {
27		device_type = "memory";
28		reg = <0 0x80000000 0 0xc0000000>;
29	};
30
31	reserved-memory {
32		#address-cells = <2>;
33		#size-cells = <2>;
34		ranges;
35
36		smem_mem: smem_region@86300000 {
37			reg = <0x0 0x86300000 0x0 0x200000>;
38			no-map;
39		};
40	};
41
42	psci {
43		compatible = "arm,psci-1.0";
44		method = "smc";
45	};
46
47	smem {
48		compatible = "qcom,smem";
49		memory-region = <&smem_mem>;
50	};
51
52	soc: soc {
53		#address-cells = <1>;
54		#size-cells = <1>;
55		ranges = <0 0 0 0xffffffff>;
56		compatible = "simple-bus";
57
58		gcc: clock-controller@300000 {
59			compatible = "qcom,gcc-msm8996";
60			#clock-cells = <1>;
61			#reset-cells = <1>;
62			#power-domain-cells = <1>;
63			reg = <0x300000 0x90000>;
64		};
65
66		pinctrl: pinctrl@1010000 {
67			compatible = "qcom,msm8996-pinctrl";
68			reg = <0x1010000 0x400000>;
69
70			blsp8_uart: uart {
71				function = "blsp_uart8";
72				pins = "GPIO_4", "GPIO_5";
73				drive-strength = <8>;
74				bias-disable;
75			};
76		};
77
78		blsp2_uart2: serial@75b0000 {
79			compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
80			reg = <0x75b0000 0x1000>;
81			clock = <&gcc 4>;
82			pinctrl-names = "uart";
83			pinctrl-0 = <&blsp8_uart>;
84		};
85
86		sdhc2: sdhci@74a4900 {
87			compatible = "qcom,sdhci-msm-v4";
88			reg = <0x74a4900 0x314>, <0x74a4000 0x800>;
89			index = <0x0>;
90			bus-width = <4>;
91			clock = <&gcc 0>;
92			clock-frequency = <200000000>;
93		 };
94
95		spmi_bus: spmi@400f000 {
96			compatible = "qcom,spmi-pmic-arb";
97			reg = <0x0400f000 0x1000>,
98			      <0x04400000 0x800000>,
99			      <0x04c00000 0x800000>,
100			      <0x05800000 0x200000>,
101			      <0x0400a000 0x002100>;
102			reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
103			#address-cells = <0x1>;
104			#size-cells = <0x1>;
105
106			pmic0: pm8994@0 {
107				compatible = "qcom,spmi-pmic";
108				reg = <0x0 0x1>;
109				#address-cells = <0x1>;
110				#size-cells = <0x1>;
111
112				pm8994_pon: pm8994_pon@800 {
113					compatible = "qcom,pm8994-pwrkey";
114					reg = <0x800 0x96>;
115					#gpio-cells = <2>;
116					gpio-controller;
117					gpio-bank-name="pm8994_key.";
118				};
119
120				pm8994_gpios: pm8994_gpios@c000 {
121					compatible = "qcom,pm8994-gpio";
122					reg = <0xc000 0x400>;
123					gpio-controller;
124					gpio-count = <24>;
125					#gpio-cells = <2>;
126					gpio-bank-name="pm8994.";
127				};
128			};
129
130			pmic1: pm8994@1 {
131				compatible = "qcom,spmi-pmic";
132				reg = <0x1 0x1>;
133				#address-cells = <0x1>;
134				#size-cells = <0x1>;
135			};
136		};
137	};
138
139};
140
141#include "dragonboard820c-uboot.dtsi"
142