blob: 182a865b0ab50e4fc888b61609082f55dc77764a [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
21 memory {
22 device_type = "memory";
23 reg = <0 0x80000000 0 0x3da00000>;
24 };
25
Rob Clark35bdd832018-01-10 11:34:39 +010026 reserved-memory {
27 #address-cells = <2>;
28 #size-cells = <2>;
29 ranges;
30 };
31
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020032 chosen {
33 stdout-path = "/soc/serial@78b0000";
34 };
35
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020036 soc {
37 #address-cells = <0x1>;
38 #size-cells = <0x1>;
39 ranges = <0x0 0x0 0x0 0xffffffff>;
40 compatible = "simple-bus";
41
Ramon Fried9558dda2018-05-16 12:13:41 +030042 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 };
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020053 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>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020063 clock = <&clkc 4>;
Ramon Fried9558dda2018-05-16 12:13:41 +030064 pinctrl-names = "uart";
65 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020066 };
67
Mateusz Kulikowski626f0482016-03-31 23:12:33 +020068 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
Jorge Ramirez-Ortize2beb872018-01-10 11:34:35 +0100101 wcnss {
102 bt {
103 compatible="qcom,wcnss-bt";
104 };
105
106 wifi {
107 compatible="qcom,wcnss-wlan";
108 };
109 };
110
Mateusz Kulikowski626f0482016-03-31 23:12:33 +0200111 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"