blob: 6a4e3ccf17b1025b60ff198cd85e8aed77a5112f [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>
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
Ramon Friedd5ea5bb2018-09-21 13:35:45 +030021 aliases {
22 usb0 = "/soc/ehci@78d9000";
23 };
24
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020025 memory {
26 device_type = "memory";
27 reg = <0 0x80000000 0 0x3da00000>;
28 };
29
Rob Clarka3a1aa22018-01-10 11:34:39 +010030 reserved-memory {
31 #address-cells = <2>;
32 #size-cells = <2>;
33 ranges;
Ramon Friedcba866f2018-07-02 02:57:57 +030034
35 smem_mem: smem_region@86300000 {
36 reg = <0x0 0x86300000 0x0 0x100000>;
37 no-map;
38 };
Rob Clarka3a1aa22018-01-10 11:34:39 +010039 };
40
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020041 chosen {
42 stdout-path = "/soc/serial@78b0000";
43 };
44
Ramon Friedcba866f2018-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 Kulikowskiee5e70d2016-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 Friedcba866f2018-07-02 02:57:57 +030057 rpm_msg_ram: memory@60000 {
58 compatible = "qcom,rpm-msg-ram";
59 reg = <0x60000 0x8000>;
60 };
61
Sumit Gargb7572e52022-07-27 13:52:04 +053062 soc_gpios: pinctrl@1000000 {
63 compatible = "qcom,msm8916-pinctrl";
Ramon Friedc9dc1552018-05-16 12:13:41 +030064 reg = <0x1000000 0x400000>;
Sumit Gargb7572e52022-07-27 13:52:04 +053065 gpio-controller;
66 gpio-count = <122>;
67 gpio-bank-name="soc";
68 #gpio-cells = <2>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030069
70 blsp1_uart: uart {
71 function = "blsp1_uart";
72 pins = "GPIO_4", "GPIO_5";
Sumit Gargfd1ad932023-02-01 19:28:52 +053073 drive-strength = <8>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030074 bias-disable;
75 };
76 };
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020077 clkc: qcom,gcc@1800000 {
78 compatible = "qcom,gcc-apq8016";
79 reg = <0x1800000 0x80000>;
80 #address-cells = <0x1>;
81 #size-cells = <0x0>;
82 };
83
84 serial@78b0000 {
85 compatible = "qcom,msm-uartdm-v1.4";
86 reg = <0x78b0000 0x200>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020087 clock = <&clkc 4>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030088 pinctrl-names = "uart";
89 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020090 };
91
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020092 ehci@78d9000 {
93 compatible = "qcom,ehci-host";
94 reg = <0x78d9000 0x400>;
Ramon Friede7e278c2018-09-21 13:35:48 +030095 phys = <&ehci_phy>;
96 };
97
98 ehci_phy: ehci_phy@78d9000 {
99 compatible = "qcom,apq8016-usbphy";
100 reg = <0x78d9000 0x400>;
101 #phy-cells = <0>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200102 };
103
104 sdhci@07824000 {
105 compatible = "qcom,sdhci-msm-v4";
106 reg = <0x7824900 0x11c 0x7824000 0x800>;
107 bus-width = <0x8>;
108 index = <0x0>;
109 non-removable;
110 clock = <&clkc 0>;
111 clock-frequency = <100000000>;
112 };
113
114 sdhci@07864000 {
115 compatible = "qcom,sdhci-msm-v4";
116 reg = <0x7864900 0x11c 0x7864000 0x800>;
117 index = <0x1>;
118 bus-width = <0x4>;
119 clock = <&clkc 1>;
120 clock-frequency = <200000000>;
Stephan Gerhold25c89f32021-06-27 13:06:15 +0200121 cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200122 };
123
Jorge Ramirez-Ortiz2cd3db92018-01-10 11:34:35 +0100124 wcnss {
125 bt {
126 compatible="qcom,wcnss-bt";
127 };
128
129 wifi {
130 compatible="qcom,wcnss-wlan";
131 };
132 };
133
Stephan Gerholdfd331f32022-07-13 21:17:11 +0200134 spmi_bus: spmi@200f000 {
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200135 compatible = "qcom,spmi-pmic-arb";
Stephan Gerholdfd331f32022-07-13 21:17:11 +0200136 reg = <0x0200f000 0x001000>,
137 <0x02400000 0x400000>,
138 <0x02c00000 0x400000>,
139 <0x03800000 0x200000>,
140 <0x0200a000 0x002100>;
141 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200142 #address-cells = <0x1>;
143 #size-cells = <0x1>;
144 pmic0: pm8916@0 {
145 compatible = "qcom,spmi-pmic";
146 reg = <0x0 0x1>;
147 #address-cells = <0x1>;
148 #size-cells = <0x1>;
149
Caleb Connolly89a90d02023-12-05 13:46:48 +0000150 pon@800 {
151 compatible = "qcom,pm8916-pon";
152 reg = <0x800 0x100>;
153 mode-bootloader = <0x2>;
154 mode-recovery = <0x1>;
155
156 pwrkey {
157 compatible = "qcom,pm8941-pwrkey";
158 debounce = <15625>;
159 bias-pull-up;
160 };
161
162 pm8916_resin: resin {
163 compatible = "qcom,pm8941-resin";
164 debounce = <15625>;
165 bias-pull-up;
166 };
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200167 };
168
169 pm8916_gpios: pm8916_gpios@c000 {
170 compatible = "qcom,pm8916-gpio";
171 reg = <0xc000 0x400>;
172 gpio-controller;
Caleb Connollya80d68e2023-12-05 13:46:51 +0000173 gpio-ranges = <&pm8916_gpios 0 0 4>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200174 #gpio-cells = <2>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200175 };
176 };
177
178 pmic1: pm8916@1 {
179 compatible = "qcom,spmi-pmic";
180 reg = <0x1 0x1>;
181 };
182 };
183 };
184
185 leds {
186 compatible = "gpio-leds";
187 user1 {
188 label = "green:user1";
189 gpios = <&soc_gpios 21 0>;
190 };
191
192 user2 {
193 label = "green:user2";
194 gpios = <&soc_gpios 120 0>;
195 };
196
197 user3 {
198 label = "green:user3";
199 gpios = <&pm8916_gpios 0 0>;
200 };
201
202 user4 {
203 label = "green:user4";
204 gpios = <&pm8916_gpios 1 0>;
205 };
206 };
207};
208
209#include "dragonboard410c-uboot.dtsi"