blob: f4f7c350ec906ec5c62fb03fc690175b63fef620 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Mateusz Kulikowskiee5e70d2016-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 Kulikowskiee5e70d2016-03-31 23:12:33 +02006 */
7
8/dts-v1/;
9
10#include "skeleton64.dtsi"
Ramon Friedc9dc1552018-05-16 12:13:41 +030011#include <dt-bindings/pinctrl/pinctrl-snapdragon.h>
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020012
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
Rob Clarka3a1aa22018-01-10 11:34:39 +010026 reserved-memory {
27 #address-cells = <2>;
28 #size-cells = <2>;
29 ranges;
Ramon Friedcba866f2018-07-02 02:57:57 +030030
31 smem_mem: smem_region@86300000 {
32 reg = <0x0 0x86300000 0x0 0x100000>;
33 no-map;
34 };
Rob Clarka3a1aa22018-01-10 11:34:39 +010035 };
36
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020037 chosen {
38 stdout-path = "/soc/serial@78b0000";
39 };
40
Ramon Friedcba866f2018-07-02 02:57:57 +030041 smem {
42 compatible = "qcom,smem";
43 memory-region = <&smem_mem>;
44 qcom,rpm-msg-ram = <&rpm_msg_ram>;
45 };
46
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020047 soc {
48 #address-cells = <0x1>;
49 #size-cells = <0x1>;
50 ranges = <0x0 0x0 0x0 0xffffffff>;
51 compatible = "simple-bus";
52
Ramon Friedcba866f2018-07-02 02:57:57 +030053 rpm_msg_ram: memory@60000 {
54 compatible = "qcom,rpm-msg-ram";
55 reg = <0x60000 0x8000>;
56 };
57
Ramon Friedc9dc1552018-05-16 12:13:41 +030058 pinctrl: qcom,tlmm@1000000 {
59 compatible = "qcom,tlmm-apq8016";
60 reg = <0x1000000 0x400000>;
61
62 blsp1_uart: uart {
63 function = "blsp1_uart";
64 pins = "GPIO_4", "GPIO_5";
65 drive-strength = <DRIVE_STRENGTH_8MA>;
66 bias-disable;
67 };
68 };
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020069 clkc: qcom,gcc@1800000 {
70 compatible = "qcom,gcc-apq8016";
71 reg = <0x1800000 0x80000>;
72 #address-cells = <0x1>;
73 #size-cells = <0x0>;
74 };
75
76 serial@78b0000 {
77 compatible = "qcom,msm-uartdm-v1.4";
78 reg = <0x78b0000 0x200>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020079 clock = <&clkc 4>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030080 pinctrl-names = "uart";
81 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020082 };
83
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020084 soc_gpios: pinctrl@1000000 {
85 compatible = "qcom,apq8016-pinctrl";
86 reg = <0x1000000 0x300000>;
87 gpio-controller;
88 gpio-count = <122>;
89 gpio-bank-name="soc";
90 #gpio-cells = <1>;
91 };
92
93 ehci@78d9000 {
94 compatible = "qcom,ehci-host";
95 reg = <0x78d9000 0x400>;
96 };
97
98 sdhci@07824000 {
99 compatible = "qcom,sdhci-msm-v4";
100 reg = <0x7824900 0x11c 0x7824000 0x800>;
101 bus-width = <0x8>;
102 index = <0x0>;
103 non-removable;
104 clock = <&clkc 0>;
105 clock-frequency = <100000000>;
106 };
107
108 sdhci@07864000 {
109 compatible = "qcom,sdhci-msm-v4";
110 reg = <0x7864900 0x11c 0x7864000 0x800>;
111 index = <0x1>;
112 bus-width = <0x4>;
113 clock = <&clkc 1>;
114 clock-frequency = <200000000>;
115 };
116
Jorge Ramirez-Ortiz2cd3db92018-01-10 11:34:35 +0100117 wcnss {
118 bt {
119 compatible="qcom,wcnss-bt";
120 };
121
122 wifi {
123 compatible="qcom,wcnss-wlan";
124 };
125 };
126
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200127 spmi@200f000 {
128 compatible = "qcom,spmi-pmic-arb";
129 reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>;
130 #address-cells = <0x1>;
131 #size-cells = <0x1>;
132 pmic0: pm8916@0 {
133 compatible = "qcom,spmi-pmic";
134 reg = <0x0 0x1>;
135 #address-cells = <0x1>;
136 #size-cells = <0x1>;
137
138 pm8916_pon: pm8916_pon@800 {
139 compatible = "qcom,pm8916-pwrkey";
140 reg = <0x800 0x96>;
141 #gpio-cells = <2>;
142 gpio-controller;
143 };
144
145 pm8916_gpios: pm8916_gpios@c000 {
146 compatible = "qcom,pm8916-gpio";
147 reg = <0xc000 0x400>;
148 gpio-controller;
149 gpio-count = <4>;
150 #gpio-cells = <2>;
151 gpio-bank-name="pmic";
152 };
153 };
154
155 pmic1: pm8916@1 {
156 compatible = "qcom,spmi-pmic";
157 reg = <0x1 0x1>;
158 };
159 };
160 };
161
162 leds {
163 compatible = "gpio-leds";
164 user1 {
165 label = "green:user1";
166 gpios = <&soc_gpios 21 0>;
167 };
168
169 user2 {
170 label = "green:user2";
171 gpios = <&soc_gpios 120 0>;
172 };
173
174 user3 {
175 label = "green:user3";
176 gpios = <&pm8916_gpios 0 0>;
177 };
178
179 user4 {
180 label = "green:user4";
181 gpios = <&pm8916_gpios 1 0>;
182 };
183 };
184};
185
186#include "dragonboard410c-uboot.dtsi"