blob: 9230dd3fd96c821e8c5db7d2581827082e9b9fac [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
150 pm8916_pon: pm8916_pon@800 {
151 compatible = "qcom,pm8916-pwrkey";
152 reg = <0x800 0x96>;
153 #gpio-cells = <2>;
154 gpio-controller;
155 };
156
157 pm8916_gpios: pm8916_gpios@c000 {
158 compatible = "qcom,pm8916-gpio";
159 reg = <0xc000 0x400>;
160 gpio-controller;
161 gpio-count = <4>;
162 #gpio-cells = <2>;
163 gpio-bank-name="pmic";
164 };
165 };
166
167 pmic1: pm8916@1 {
168 compatible = "qcom,spmi-pmic";
169 reg = <0x1 0x1>;
170 };
171 };
172 };
173
174 leds {
175 compatible = "gpio-leds";
176 user1 {
177 label = "green:user1";
178 gpios = <&soc_gpios 21 0>;
179 };
180
181 user2 {
182 label = "green:user2";
183 gpios = <&soc_gpios 120 0>;
184 };
185
186 user3 {
187 label = "green:user3";
188 gpios = <&pm8916_gpios 0 0>;
189 };
190
191 user4 {
192 label = "green:user4";
193 gpios = <&pm8916_gpios 1 0>;
194 };
195 };
196};
197
198#include "dragonboard410c-uboot.dtsi"