Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Qualcomm APQ8016 based Dragonboard 410C board device tree source |
| 4 | * |
| 5 | * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com> |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "skeleton64.dtsi" |
Stephan Gerhold | 25c89f3 | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 12 | #include <dt-bindings/pinctrl/pinctrl-snapdragon.h> |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 13 | |
| 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 Fried | d5ea5bb | 2018-09-21 13:35:45 +0300 | [diff] [blame] | 22 | aliases { |
| 23 | usb0 = "/soc/ehci@78d9000"; |
| 24 | }; |
| 25 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 26 | memory { |
| 27 | device_type = "memory"; |
| 28 | reg = <0 0x80000000 0 0x3da00000>; |
| 29 | }; |
| 30 | |
Rob Clark | a3a1aa2 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 31 | reserved-memory { |
| 32 | #address-cells = <2>; |
| 33 | #size-cells = <2>; |
| 34 | ranges; |
Ramon Fried | cba866f | 2018-07-02 02:57:57 +0300 | [diff] [blame] | 35 | |
| 36 | smem_mem: smem_region@86300000 { |
| 37 | reg = <0x0 0x86300000 0x0 0x100000>; |
| 38 | no-map; |
| 39 | }; |
Rob Clark | a3a1aa2 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 40 | }; |
| 41 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 42 | chosen { |
| 43 | stdout-path = "/soc/serial@78b0000"; |
| 44 | }; |
| 45 | |
Ramon Fried | cba866f | 2018-07-02 02:57:57 +0300 | [diff] [blame] | 46 | smem { |
| 47 | compatible = "qcom,smem"; |
| 48 | memory-region = <&smem_mem>; |
| 49 | qcom,rpm-msg-ram = <&rpm_msg_ram>; |
| 50 | }; |
| 51 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 52 | soc { |
| 53 | #address-cells = <0x1>; |
| 54 | #size-cells = <0x1>; |
| 55 | ranges = <0x0 0x0 0x0 0xffffffff>; |
| 56 | compatible = "simple-bus"; |
| 57 | |
Ramon Fried | cba866f | 2018-07-02 02:57:57 +0300 | [diff] [blame] | 58 | rpm_msg_ram: memory@60000 { |
| 59 | compatible = "qcom,rpm-msg-ram"; |
| 60 | reg = <0x60000 0x8000>; |
| 61 | }; |
| 62 | |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 63 | 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 Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 74 | 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 Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 84 | clock = <&clkc 4>; |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 85 | pinctrl-names = "uart"; |
| 86 | pinctrl-0 = <&blsp1_uart>; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 87 | }; |
| 88 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 89 | 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 Gerhold | 25c89f3 | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 95 | #gpio-cells = <2>; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 96 | }; |
| 97 | |
| 98 | ehci@78d9000 { |
| 99 | compatible = "qcom,ehci-host"; |
| 100 | reg = <0x78d9000 0x400>; |
Ramon Fried | e7e278c | 2018-09-21 13:35:48 +0300 | [diff] [blame] | 101 | 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 Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 108 | }; |
| 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 Gerhold | 25c89f3 | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 127 | cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 128 | }; |
| 129 | |
Jorge Ramirez-Ortiz | 2cd3db9 | 2018-01-10 11:34:35 +0100 | [diff] [blame] | 130 | wcnss { |
| 131 | bt { |
| 132 | compatible="qcom,wcnss-bt"; |
| 133 | }; |
| 134 | |
| 135 | wifi { |
| 136 | compatible="qcom,wcnss-wlan"; |
| 137 | }; |
| 138 | }; |
| 139 | |
Stephan Gerhold | fd331f3 | 2022-07-13 21:17:11 +0200 | [diff] [blame] | 140 | spmi_bus: spmi@200f000 { |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 141 | compatible = "qcom,spmi-pmic-arb"; |
Stephan Gerhold | fd331f3 | 2022-07-13 21:17:11 +0200 | [diff] [blame] | 142 | reg = <0x0200f000 0x001000>, |
| 143 | <0x02400000 0x400000>, |
| 144 | <0x02c00000 0x400000>, |
| 145 | <0x03800000 0x200000>, |
| 146 | <0x0200a000 0x002100>; |
| 147 | reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 148 | #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" |