Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Mateusz Kulikowski | 626f048 | 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 | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "skeleton64.dtsi" |
Stephan Gerhold | 698c1df | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "Qualcomm Technologies, Inc. Dragonboard 410c"; |
Caleb Connolly | 1ccfdb5 | 2023-11-14 19:41:44 +0000 | [diff] [blame^] | 15 | compatible = "qcom,apq8016-sbc", "qcom,apq8016"; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 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 | 6b0861a | 2018-09-21 13:35:45 +0300 | [diff] [blame] | 21 | aliases { |
| 22 | usb0 = "/soc/ehci@78d9000"; |
| 23 | }; |
| 24 | |
Mateusz Kulikowski | 626f048 | 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 | 35bdd83 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 30 | reserved-memory { |
| 31 | #address-cells = <2>; |
| 32 | #size-cells = <2>; |
| 33 | ranges; |
Ramon Fried | 072787d | 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 | 35bdd83 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 39 | }; |
| 40 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 41 | chosen { |
| 42 | stdout-path = "/soc/serial@78b0000"; |
| 43 | }; |
| 44 | |
Ramon Fried | 072787d | 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 | 626f048 | 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 | 072787d | 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 | 0ddabb6 | 2022-07-27 13:52:04 +0530 | [diff] [blame] | 62 | soc_gpios: pinctrl@1000000 { |
| 63 | compatible = "qcom,msm8916-pinctrl"; |
Ramon Fried | 9558dda | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 64 | reg = <0x1000000 0x400000>; |
Sumit Garg | 0ddabb6 | 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 | 9558dda | 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 | 5644328 | 2023-02-01 19:28:52 +0530 | [diff] [blame] | 73 | drive-strength = <8>; |
Ramon Fried | 9558dda | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 74 | bias-disable; |
| 75 | }; |
| 76 | }; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 77 | clkc: qcom,gcc@1800000 { |
Caleb Connolly | f243831 | 2023-11-20 20:29:42 +0000 | [diff] [blame] | 78 | compatible = "qcom,gcc-msm8916"; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 79 | reg = <0x1800000 0x80000>; |
| 80 | #address-cells = <0x1>; |
| 81 | #size-cells = <0x0>; |
Caleb Connolly | 1ccfdb5 | 2023-11-14 19:41:44 +0000 | [diff] [blame^] | 82 | #clock-cells = <0x1>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 83 | }; |
| 84 | |
| 85 | serial@78b0000 { |
| 86 | compatible = "qcom,msm-uartdm-v1.4"; |
| 87 | reg = <0x78b0000 0x200>; |
Caleb Connolly | fe9e496 | 2023-11-15 03:34:19 +0000 | [diff] [blame] | 88 | clocks = <&clkc 4>; |
| 89 | clock-names = "core"; |
Ramon Fried | 9558dda | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 90 | pinctrl-names = "uart"; |
| 91 | pinctrl-0 = <&blsp1_uart>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 92 | }; |
| 93 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 94 | ehci@78d9000 { |
Caleb Connolly | 1ccfdb5 | 2023-11-14 19:41:44 +0000 | [diff] [blame^] | 95 | compatible = "qcom,ci-hdrc"; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 96 | reg = <0x78d9000 0x400>; |
Ramon Fried | 665e452 | 2018-09-21 13:35:48 +0300 | [diff] [blame] | 97 | phys = <&ehci_phy>; |
Ramon Fried | 665e452 | 2018-09-21 13:35:48 +0300 | [diff] [blame] | 98 | |
Caleb Connolly | 1ccfdb5 | 2023-11-14 19:41:44 +0000 | [diff] [blame^] | 99 | ulpi { |
| 100 | usb_hs_phy: phy { |
| 101 | compatible = "qcom,usb-hs-phy-msm8916", |
| 102 | "qcom,usb-hs-phy"; |
| 103 | #phy-cells = <0>; |
| 104 | clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>; |
| 105 | clock-names = "ref", "sleep"; |
| 106 | resets = <&gcc GCC_USB2A_PHY_BCR>, <&usb 0>; |
| 107 | reset-names = "phy", "por"; |
| 108 | qcom,init-seq = /bits/ 8 <0x0 0x44>, |
| 109 | <0x1 0x6b>, |
| 110 | <0x2 0x24>, |
| 111 | <0x3 0x13>; |
| 112 | }; |
| 113 | }; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | sdhci@07824000 { |
| 117 | compatible = "qcom,sdhci-msm-v4"; |
| 118 | reg = <0x7824900 0x11c 0x7824000 0x800>; |
| 119 | bus-width = <0x8>; |
| 120 | index = <0x0>; |
| 121 | non-removable; |
| 122 | clock = <&clkc 0>; |
| 123 | clock-frequency = <100000000>; |
| 124 | }; |
| 125 | |
| 126 | sdhci@07864000 { |
| 127 | compatible = "qcom,sdhci-msm-v4"; |
| 128 | reg = <0x7864900 0x11c 0x7864000 0x800>; |
| 129 | index = <0x1>; |
| 130 | bus-width = <0x4>; |
| 131 | clock = <&clkc 1>; |
| 132 | clock-frequency = <200000000>; |
Stephan Gerhold | 698c1df | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 133 | cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 134 | }; |
| 135 | |
Jorge Ramirez-Ortiz | e2beb87 | 2018-01-10 11:34:35 +0100 | [diff] [blame] | 136 | wcnss { |
| 137 | bt { |
| 138 | compatible="qcom,wcnss-bt"; |
| 139 | }; |
| 140 | |
| 141 | wifi { |
| 142 | compatible="qcom,wcnss-wlan"; |
| 143 | }; |
| 144 | }; |
| 145 | |
Stephan Gerhold | afc1333 | 2022-07-13 21:17:11 +0200 | [diff] [blame] | 146 | spmi_bus: spmi@200f000 { |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 147 | compatible = "qcom,spmi-pmic-arb"; |
Stephan Gerhold | afc1333 | 2022-07-13 21:17:11 +0200 | [diff] [blame] | 148 | reg = <0x0200f000 0x001000>, |
| 149 | <0x02400000 0x400000>, |
| 150 | <0x02c00000 0x400000>, |
| 151 | <0x03800000 0x200000>, |
| 152 | <0x0200a000 0x002100>; |
| 153 | reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 154 | #address-cells = <0x1>; |
| 155 | #size-cells = <0x1>; |
| 156 | pmic0: pm8916@0 { |
| 157 | compatible = "qcom,spmi-pmic"; |
| 158 | reg = <0x0 0x1>; |
| 159 | #address-cells = <0x1>; |
| 160 | #size-cells = <0x1>; |
| 161 | |
Caleb Connolly | 5df679a | 2023-11-30 16:13:50 +0000 | [diff] [blame] | 162 | pon@800 { |
| 163 | compatible = "qcom,pm8916-pon"; |
| 164 | reg = <0x800 0x100>; |
| 165 | mode-bootloader = <0x2>; |
| 166 | mode-recovery = <0x1>; |
| 167 | |
| 168 | pwrkey { |
| 169 | compatible = "qcom,pm8941-pwrkey"; |
| 170 | debounce = <15625>; |
| 171 | bias-pull-up; |
| 172 | }; |
| 173 | |
| 174 | pm8916_resin: resin { |
| 175 | compatible = "qcom,pm8941-resin"; |
| 176 | debounce = <15625>; |
| 177 | bias-pull-up; |
| 178 | }; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | pm8916_gpios: pm8916_gpios@c000 { |
| 182 | compatible = "qcom,pm8916-gpio"; |
| 183 | reg = <0xc000 0x400>; |
| 184 | gpio-controller; |
Caleb Connolly | bc60b07 | 2023-11-30 18:05:58 +0000 | [diff] [blame] | 185 | gpio-ranges = <&pm8916_gpios 0 0 4>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 186 | #gpio-cells = <2>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 187 | }; |
| 188 | }; |
| 189 | |
| 190 | pmic1: pm8916@1 { |
| 191 | compatible = "qcom,spmi-pmic"; |
| 192 | reg = <0x1 0x1>; |
| 193 | }; |
| 194 | }; |
| 195 | }; |
| 196 | |
| 197 | leds { |
| 198 | compatible = "gpio-leds"; |
| 199 | user1 { |
| 200 | label = "green:user1"; |
| 201 | gpios = <&soc_gpios 21 0>; |
| 202 | }; |
| 203 | |
| 204 | user2 { |
| 205 | label = "green:user2"; |
| 206 | gpios = <&soc_gpios 120 0>; |
| 207 | }; |
| 208 | |
| 209 | user3 { |
| 210 | label = "green:user3"; |
| 211 | gpios = <&pm8916_gpios 0 0>; |
| 212 | }; |
| 213 | |
| 214 | user4 { |
| 215 | label = "green:user4"; |
| 216 | gpios = <&pm8916_gpios 1 0>; |
| 217 | }; |
| 218 | }; |
| 219 | }; |
| 220 | |
| 221 | #include "dragonboard410c-uboot.dtsi" |