blob: 59cf45eb175ea7c38c1acbfc9c15dcee88189f87 [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
Sumit Gargb7572e52022-07-27 13:52:04 +053063 soc_gpios: pinctrl@1000000 {
64 compatible = "qcom,msm8916-pinctrl";
Ramon Friedc9dc1552018-05-16 12:13:41 +030065 reg = <0x1000000 0x400000>;
Sumit Gargb7572e52022-07-27 13:52:04 +053066 gpio-controller;
67 gpio-count = <122>;
68 gpio-bank-name="soc";
69 #gpio-cells = <2>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030070
71 blsp1_uart: uart {
72 function = "blsp1_uart";
73 pins = "GPIO_4", "GPIO_5";
74 drive-strength = <DRIVE_STRENGTH_8MA>;
75 bias-disable;
76 };
77 };
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020078 clkc: qcom,gcc@1800000 {
79 compatible = "qcom,gcc-apq8016";
80 reg = <0x1800000 0x80000>;
81 #address-cells = <0x1>;
82 #size-cells = <0x0>;
83 };
84
85 serial@78b0000 {
86 compatible = "qcom,msm-uartdm-v1.4";
87 reg = <0x78b0000 0x200>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020088 clock = <&clkc 4>;
Ramon Friedc9dc1552018-05-16 12:13:41 +030089 pinctrl-names = "uart";
90 pinctrl-0 = <&blsp1_uart>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020091 };
92
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +020093 ehci@78d9000 {
94 compatible = "qcom,ehci-host";
95 reg = <0x78d9000 0x400>;
Ramon Friede7e278c2018-09-21 13:35:48 +030096 phys = <&ehci_phy>;
97 };
98
99 ehci_phy: ehci_phy@78d9000 {
100 compatible = "qcom,apq8016-usbphy";
101 reg = <0x78d9000 0x400>;
102 #phy-cells = <0>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200103 };
104
105 sdhci@07824000 {
106 compatible = "qcom,sdhci-msm-v4";
107 reg = <0x7824900 0x11c 0x7824000 0x800>;
108 bus-width = <0x8>;
109 index = <0x0>;
110 non-removable;
111 clock = <&clkc 0>;
112 clock-frequency = <100000000>;
113 };
114
115 sdhci@07864000 {
116 compatible = "qcom,sdhci-msm-v4";
117 reg = <0x7864900 0x11c 0x7864000 0x800>;
118 index = <0x1>;
119 bus-width = <0x4>;
120 clock = <&clkc 1>;
121 clock-frequency = <200000000>;
Stephan Gerhold25c89f32021-06-27 13:06:15 +0200122 cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>;
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200123 };
124
Jorge Ramirez-Ortiz2cd3db92018-01-10 11:34:35 +0100125 wcnss {
126 bt {
127 compatible="qcom,wcnss-bt";
128 };
129
130 wifi {
131 compatible="qcom,wcnss-wlan";
132 };
133 };
134
Stephan Gerholdfd331f32022-07-13 21:17:11 +0200135 spmi_bus: spmi@200f000 {
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200136 compatible = "qcom,spmi-pmic-arb";
Stephan Gerholdfd331f32022-07-13 21:17:11 +0200137 reg = <0x0200f000 0x001000>,
138 <0x02400000 0x400000>,
139 <0x02c00000 0x400000>,
140 <0x03800000 0x200000>,
141 <0x0200a000 0x002100>;
142 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
Mateusz Kulikowskiee5e70d2016-03-31 23:12:33 +0200143 #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"