blob: fa348bc621eadd59d2beb5593054e768106e7d78 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Mateusz Kulikowski626f0482016-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 Kulikowski626f0482016-03-31 23:12:33 +02006 */
7
8/dts-v1/;
9
10#include "skeleton64.dtsi"
Ramon Fried9558dda2018-05-16 12:13:41 +030011#include <dt-bindings/pinctrl/pinctrl-snapdragon.h>
Mateusz Kulikowski626f0482016-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
Ramon Fried6b0861a2018-09-21 13:35:45 +030021 aliases {
22 usb0 = "/soc/ehci@78d9000";
23 };
24
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020025 memory {
26 device_type = "memory";
27 reg = <0 0x80000000 0 0x3da00000>;
28 };
29
Rob Clark35bdd832018-01-10 11:34:39 +010030 reserved-memory {
31 #address-cells = <2>;
32 #size-cells = <2>;
33 ranges;
Ramon Fried072787d2018-07-02 02:57:57 +030034
35 smem_mem: smem_region@86300000 {
36 reg = <0x0 0x86300000 0x0 0x100000>;
37 no-map;
38 };
Rob Clark35bdd832018-01-10 11:34:39 +010039 };
40
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020041 chosen {
42 stdout-path = "/soc/serial@78b0000";
43 };
44
Ramon Fried072787d2018-07-02 02:57:57 +030045 smem {
46 compatible = "qcom,smem";
47 memory-region = <&smem_mem>;
48 qcom,rpm-msg-ram = <&rpm_msg_ram>;
49 };
50
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020051 soc {
52 #address-cells = <0x1>;
53 #size-cells = <0x1>;
54 ranges = <0x0 0x0 0x0 0xffffffff>;
55 compatible = "simple-bus";
56
Ramon Fried072787d2018-07-02 02:57:57 +030057 rpm_msg_ram: memory@60000 {
58 compatible = "qcom,rpm-msg-ram";
59 reg = <0x60000 0x8000>;
60 };
61
Ramon Fried9558dda2018-05-16 12:13:41 +030062 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 };
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020073 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>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020083 clock = <&clkc 4>;
Ramon Fried9558dda2018-05-16 12:13:41 +030084 pinctrl-names = "uart";
85 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020086 };
87
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020088 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>;
Ramon Fried665e4522018-09-21 13:35:48 +0300100 phys = <&ehci_phy>;
101 };
102
103 ehci_phy: ehci_phy@78d9000 {
104 compatible = "qcom,apq8016-usbphy";
105 reg = <0x78d9000 0x400>;
106 #phy-cells = <0>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200107 };
108
109 sdhci@07824000 {
110 compatible = "qcom,sdhci-msm-v4";
111 reg = <0x7824900 0x11c 0x7824000 0x800>;
112 bus-width = <0x8>;
113 index = <0x0>;
114 non-removable;
115 clock = <&clkc 0>;
116 clock-frequency = <100000000>;
117 };
118
119 sdhci@07864000 {
120 compatible = "qcom,sdhci-msm-v4";
121 reg = <0x7864900 0x11c 0x7864000 0x800>;
122 index = <0x1>;
123 bus-width = <0x4>;
124 clock = <&clkc 1>;
125 clock-frequency = <200000000>;
126 };
127
Jorge Ramirez-Ortize2beb872018-01-10 11:34:35 +0100128 wcnss {
129 bt {
130 compatible="qcom,wcnss-bt";
131 };
132
133 wifi {
134 compatible="qcom,wcnss-wlan";
135 };
136 };
137
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200138 spmi@200f000 {
139 compatible = "qcom,spmi-pmic-arb";
140 reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>;
141 #address-cells = <0x1>;
142 #size-cells = <0x1>;
143 pmic0: pm8916@0 {
144 compatible = "qcom,spmi-pmic";
145 reg = <0x0 0x1>;
146 #address-cells = <0x1>;
147 #size-cells = <0x1>;
148
149 pm8916_pon: pm8916_pon@800 {
150 compatible = "qcom,pm8916-pwrkey";
151 reg = <0x800 0x96>;
152 #gpio-cells = <2>;
153 gpio-controller;
154 };
155
156 pm8916_gpios: pm8916_gpios@c000 {
157 compatible = "qcom,pm8916-gpio";
158 reg = <0xc000 0x400>;
159 gpio-controller;
160 gpio-count = <4>;
161 #gpio-cells = <2>;
162 gpio-bank-name="pmic";
163 };
164 };
165
166 pmic1: pm8916@1 {
167 compatible = "qcom,spmi-pmic";
168 reg = <0x1 0x1>;
169 };
170 };
171 };
172
173 leds {
174 compatible = "gpio-leds";
175 user1 {
176 label = "green:user1";
177 gpios = <&soc_gpios 21 0>;
178 };
179
180 user2 {
181 label = "green:user2";
182 gpios = <&soc_gpios 120 0>;
183 };
184
185 user3 {
186 label = "green:user3";
187 gpios = <&pm8916_gpios 0 0>;
188 };
189
190 user4 {
191 label = "green:user4";
192 gpios = <&pm8916_gpios 1 0>;
193 };
194 };
195};
196
197#include "dragonboard410c-uboot.dtsi"