blob: 7e56140df26c461f722a1b7b214c604d763616b3 [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
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200140 spmi@200f000 {
141 compatible = "qcom,spmi-pmic-arb";
142 reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>;
143 #address-cells = <0x1>;
144 #size-cells = <0x1>;
145 pmic0: pm8916@0 {
146 compatible = "qcom,spmi-pmic";
147 reg = <0x0 0x1>;
148 #address-cells = <0x1>;
149 #size-cells = <0x1>;
150
151 pm8916_pon: pm8916_pon@800 {
152 compatible = "qcom,pm8916-pwrkey";
153 reg = <0x800 0x96>;
154 #gpio-cells = <2>;
155 gpio-controller;
156 };
157
158 pm8916_gpios: pm8916_gpios@c000 {
159 compatible = "qcom,pm8916-gpio";
160 reg = <0xc000 0x400>;
161 gpio-controller;
162 gpio-count = <4>;
163 #gpio-cells = <2>;
164 gpio-bank-name="pmic";
165 };
166 };
167
168 pmic1: pm8916@1 {
169 compatible = "qcom,spmi-pmic";
170 reg = <0x1 0x1>;
171 };
172 };
173 };
174
175 leds {
176 compatible = "gpio-leds";
177 user1 {
178 label = "green:user1";
179 gpios = <&soc_gpios 21 0>;
180 };
181
182 user2 {
183 label = "green:user2";
184 gpios = <&soc_gpios 120 0>;
185 };
186
187 user3 {
188 label = "green:user3";
189 gpios = <&pm8916_gpios 0 0>;
190 };
191
192 user4 {
193 label = "green:user4";
194 gpios = <&pm8916_gpios 1 0>;
195 };
196 };
197};
198
199#include "dragonboard410c-uboot.dtsi"