blob: 50523712cb31e21329f438f739428fdd46010d98 [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"
Stephan Gerhold25c89f32021-06-27 13:06:15 +020011#include <dt-bindings/gpio/gpio.h>
Ramon Friedc9dc1552018-05-16 12:13:41 +030012#include <dt-bindings/pinctrl/pinctrl-snapdragon.h>
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020013
14/ {
15 model = "Qualcomm Technologies, Inc. Dragonboard 410c";
16 compatible = "qcom,dragonboard", "qcom,apq8016-sbc";
17 qcom,msm-id = <0xce 0x0 0xf8 0x0 0xf9 0x0 0xfa 0x0 0xf7 0x0>;
18 qcom,board-id = <0x10018 0x0>;
19 #address-cells = <0x2>;
20 #size-cells = <0x2>;
21
Ramon Friedd5ea5bb2018-09-21 13:35:45 +030022 aliases {
23 usb0 = "/soc/ehci@78d9000";
24 };
25
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020026 memory {
27 device_type = "memory";
28 reg = <0 0x80000000 0 0x3da00000>;
29 };
30
Rob Clarka3a1aa22018-01-10 11:34:39 +010031 reserved-memory {
32 #address-cells = <2>;
33 #size-cells = <2>;
34 ranges;
Ramon Friedcba866f2018-07-02 02:57:57 +030035
36 smem_mem: smem_region@86300000 {
37 reg = <0x0 0x86300000 0x0 0x100000>;
38 no-map;
39 };
Rob Clarka3a1aa22018-01-10 11:34:39 +010040 };
41
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020042 chosen {
43 stdout-path = "/soc/serial@78b0000";
44 };
45
Ramon Friedcba866f2018-07-02 02:57:57 +030046 smem {
47 compatible = "qcom,smem";
48 memory-region = <&smem_mem>;
49 qcom,rpm-msg-ram = <&rpm_msg_ram>;
50 };
51
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020052 soc {
53 #address-cells = <0x1>;
54 #size-cells = <0x1>;
55 ranges = <0x0 0x0 0x0 0xffffffff>;
56 compatible = "simple-bus";
57
Ramon Friedcba866f2018-07-02 02:57:57 +030058 rpm_msg_ram: memory@60000 {
59 compatible = "qcom,rpm-msg-ram";
60 reg = <0x60000 0x8000>;
61 };
62
Ramon Friedc9dc1552018-05-16 12:13:41 +030063 pinctrl: qcom,tlmm@1000000 {
64 compatible = "qcom,tlmm-apq8016";
65 reg = <0x1000000 0x400000>;
66
67 blsp1_uart: uart {
68 function = "blsp1_uart";
69 pins = "GPIO_4", "GPIO_5";
70 drive-strength = <DRIVE_STRENGTH_8MA>;
71 bias-disable;
72 };
73 };
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020074 clkc: qcom,gcc@1800000 {
75 compatible = "qcom,gcc-apq8016";
76 reg = <0x1800000 0x80000>;
77 #address-cells = <0x1>;
78 #size-cells = <0x0>;
79 };
80
81 serial@78b0000 {
82 compatible = "qcom,msm-uartdm-v1.4";
83 reg = <0x78b0000 0x200>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020084 clock = <&clkc 4>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030085 pinctrl-names = "uart";
86 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020087 };
88
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020089 soc_gpios: pinctrl@1000000 {
90 compatible = "qcom,apq8016-pinctrl";
91 reg = <0x1000000 0x300000>;
92 gpio-controller;
93 gpio-count = <122>;
94 gpio-bank-name="soc";
Stephan Gerhold25c89f32021-06-27 13:06:15 +020095 #gpio-cells = <2>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020096 };
97
98 ehci@78d9000 {
99 compatible = "qcom,ehci-host";
100 reg = <0x78d9000 0x400>;
Ramon Friede7e278c2018-09-21 13:35:48 +0300101 phys = <&ehci_phy>;
102 };
103
104 ehci_phy: ehci_phy@78d9000 {
105 compatible = "qcom,apq8016-usbphy";
106 reg = <0x78d9000 0x400>;
107 #phy-cells = <0>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200108 };
109
110 sdhci@07824000 {
111 compatible = "qcom,sdhci-msm-v4";
112 reg = <0x7824900 0x11c 0x7824000 0x800>;
113 bus-width = <0x8>;
114 index = <0x0>;
115 non-removable;
116 clock = <&clkc 0>;
117 clock-frequency = <100000000>;
118 };
119
120 sdhci@07864000 {
121 compatible = "qcom,sdhci-msm-v4";
122 reg = <0x7864900 0x11c 0x7864000 0x800>;
123 index = <0x1>;
124 bus-width = <0x4>;
125 clock = <&clkc 1>;
126 clock-frequency = <200000000>;
Stephan Gerhold25c89f32021-06-27 13:06:15 +0200127 cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200128 };
129
Jorge Ramirez-Ortiz2cd3db92018-01-10 11:34:35 +0100130 wcnss {
131 bt {
132 compatible="qcom,wcnss-bt";
133 };
134
135 wifi {
136 compatible="qcom,wcnss-wlan";
137 };
138 };
139
Stephan Gerholdfd331f32022-07-13 21:17:11 +0200140 spmi_bus: spmi@200f000 {
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200141 compatible = "qcom,spmi-pmic-arb";
Stephan Gerholdfd331f32022-07-13 21:17:11 +0200142 reg = <0x0200f000 0x001000>,
143 <0x02400000 0x400000>,
144 <0x02c00000 0x400000>,
145 <0x03800000 0x200000>,
146 <0x0200a000 0x002100>;
147 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200148 #address-cells = <0x1>;
149 #size-cells = <0x1>;
150 pmic0: pm8916@0 {
151 compatible = "qcom,spmi-pmic";
152 reg = <0x0 0x1>;
153 #address-cells = <0x1>;
154 #size-cells = <0x1>;
155
156 pm8916_pon: pm8916_pon@800 {
157 compatible = "qcom,pm8916-pwrkey";
158 reg = <0x800 0x96>;
159 #gpio-cells = <2>;
160 gpio-controller;
161 };
162
163 pm8916_gpios: pm8916_gpios@c000 {
164 compatible = "qcom,pm8916-gpio";
165 reg = <0xc000 0x400>;
166 gpio-controller;
167 gpio-count = <4>;
168 #gpio-cells = <2>;
169 gpio-bank-name="pmic";
170 };
171 };
172
173 pmic1: pm8916@1 {
174 compatible = "qcom,spmi-pmic";
175 reg = <0x1 0x1>;
176 };
177 };
178 };
179
180 leds {
181 compatible = "gpio-leds";
182 user1 {
183 label = "green:user1";
184 gpios = <&soc_gpios 21 0>;
185 };
186
187 user2 {
188 label = "green:user2";
189 gpios = <&soc_gpios 120 0>;
190 };
191
192 user3 {
193 label = "green:user3";
194 gpios = <&pm8916_gpios 0 0>;
195 };
196
197 user4 {
198 label = "green:user4";
199 gpios = <&pm8916_gpios 1 0>;
200 };
201 };
202};
203
204#include "dragonboard410c-uboot.dtsi"