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> |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 12 | |
| 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 Fried | d5ea5bb | 2018-09-21 13:35:45 +0300 | [diff] [blame] | 21 | aliases { |
| 22 | usb0 = "/soc/ehci@78d9000"; |
| 23 | }; |
| 24 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 25 | memory { |
| 26 | device_type = "memory"; |
| 27 | reg = <0 0x80000000 0 0x3da00000>; |
| 28 | }; |
| 29 | |
Rob Clark | a3a1aa2 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 30 | reserved-memory { |
| 31 | #address-cells = <2>; |
| 32 | #size-cells = <2>; |
| 33 | ranges; |
Ramon Fried | cba866f | 2018-07-02 02:57:57 +0300 | [diff] [blame] | 34 | |
| 35 | smem_mem: smem_region@86300000 { |
| 36 | reg = <0x0 0x86300000 0x0 0x100000>; |
| 37 | no-map; |
| 38 | }; |
Rob Clark | a3a1aa2 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 39 | }; |
| 40 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 41 | chosen { |
| 42 | stdout-path = "/soc/serial@78b0000"; |
| 43 | }; |
| 44 | |
Ramon Fried | cba866f | 2018-07-02 02:57:57 +0300 | [diff] [blame] | 45 | smem { |
| 46 | compatible = "qcom,smem"; |
| 47 | memory-region = <&smem_mem>; |
| 48 | qcom,rpm-msg-ram = <&rpm_msg_ram>; |
| 49 | }; |
| 50 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 51 | soc { |
| 52 | #address-cells = <0x1>; |
| 53 | #size-cells = <0x1>; |
| 54 | ranges = <0x0 0x0 0x0 0xffffffff>; |
| 55 | compatible = "simple-bus"; |
| 56 | |
Ramon Fried | cba866f | 2018-07-02 02:57:57 +0300 | [diff] [blame] | 57 | rpm_msg_ram: memory@60000 { |
| 58 | compatible = "qcom,rpm-msg-ram"; |
| 59 | reg = <0x60000 0x8000>; |
| 60 | }; |
| 61 | |
Sumit Garg | b7572e5 | 2022-07-27 13:52:04 +0530 | [diff] [blame] | 62 | soc_gpios: pinctrl@1000000 { |
| 63 | compatible = "qcom,msm8916-pinctrl"; |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 64 | reg = <0x1000000 0x400000>; |
Sumit Garg | b7572e5 | 2022-07-27 13:52:04 +0530 | [diff] [blame] | 65 | gpio-controller; |
| 66 | gpio-count = <122>; |
| 67 | gpio-bank-name="soc"; |
| 68 | #gpio-cells = <2>; |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 69 | |
| 70 | blsp1_uart: uart { |
| 71 | function = "blsp1_uart"; |
| 72 | pins = "GPIO_4", "GPIO_5"; |
Sumit Garg | fd1ad93 | 2023-02-01 19:28:52 +0530 | [diff] [blame] | 73 | drive-strength = <8>; |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 74 | bias-disable; |
| 75 | }; |
| 76 | }; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 77 | 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 Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 87 | clock = <&clkc 4>; |
Ramon Fried | c9dc155 | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 88 | pinctrl-names = "uart"; |
| 89 | pinctrl-0 = <&blsp1_uart>; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 90 | }; |
| 91 | |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 92 | ehci@78d9000 { |
| 93 | compatible = "qcom,ehci-host"; |
| 94 | reg = <0x78d9000 0x400>; |
Ramon Fried | e7e278c | 2018-09-21 13:35:48 +0300 | [diff] [blame] | 95 | 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 Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 102 | }; |
| 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 Gerhold | 25c89f3 | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 121 | cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 122 | }; |
| 123 | |
Jorge Ramirez-Ortiz | 2cd3db9 | 2018-01-10 11:34:35 +0100 | [diff] [blame] | 124 | wcnss { |
| 125 | bt { |
| 126 | compatible="qcom,wcnss-bt"; |
| 127 | }; |
| 128 | |
| 129 | wifi { |
| 130 | compatible="qcom,wcnss-wlan"; |
| 131 | }; |
| 132 | }; |
| 133 | |
Stephan Gerhold | fd331f3 | 2022-07-13 21:17:11 +0200 | [diff] [blame] | 134 | spmi_bus: spmi@200f000 { |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 135 | compatible = "qcom,spmi-pmic-arb"; |
Stephan Gerhold | fd331f3 | 2022-07-13 21:17:11 +0200 | [diff] [blame] | 136 | reg = <0x0200f000 0x001000>, |
| 137 | <0x02400000 0x400000>, |
| 138 | <0x02c00000 0x400000>, |
| 139 | <0x03800000 0x200000>, |
| 140 | <0x0200a000 0x002100>; |
| 141 | reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; |
Mateusz Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 142 | #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 Connolly | 89a90d0 | 2023-12-05 13:46:48 +0000 | [diff] [blame^] | 150 | 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 Kulikowski | ee5e70d | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 167 | }; |
| 168 | |
| 169 | pm8916_gpios: pm8916_gpios@c000 { |
| 170 | compatible = "qcom,pm8916-gpio"; |
| 171 | reg = <0xc000 0x400>; |
| 172 | gpio-controller; |
| 173 | gpio-count = <4>; |
| 174 | #gpio-cells = <2>; |
| 175 | gpio-bank-name="pmic"; |
| 176 | }; |
| 177 | }; |
| 178 | |
| 179 | pmic1: pm8916@1 { |
| 180 | compatible = "qcom,spmi-pmic"; |
| 181 | reg = <0x1 0x1>; |
| 182 | }; |
| 183 | }; |
| 184 | }; |
| 185 | |
| 186 | leds { |
| 187 | compatible = "gpio-leds"; |
| 188 | user1 { |
| 189 | label = "green:user1"; |
| 190 | gpios = <&soc_gpios 21 0>; |
| 191 | }; |
| 192 | |
| 193 | user2 { |
| 194 | label = "green:user2"; |
| 195 | gpios = <&soc_gpios 120 0>; |
| 196 | }; |
| 197 | |
| 198 | user3 { |
| 199 | label = "green:user3"; |
| 200 | gpios = <&pm8916_gpios 0 0>; |
| 201 | }; |
| 202 | |
| 203 | user4 { |
| 204 | label = "green:user4"; |
| 205 | gpios = <&pm8916_gpios 1 0>; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | #include "dragonboard410c-uboot.dtsi" |