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> |
Ramon Fried | 9558dda | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 12 | #include <dt-bindings/pinctrl/pinctrl-snapdragon.h> |
Mateusz Kulikowski | 626f048 | 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 | 6b0861a | 2018-09-21 13:35:45 +0300 | [diff] [blame] | 22 | aliases { |
| 23 | usb0 = "/soc/ehci@78d9000"; |
| 24 | }; |
| 25 | |
Mateusz Kulikowski | 626f048 | 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 | 35bdd83 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 31 | reserved-memory { |
| 32 | #address-cells = <2>; |
| 33 | #size-cells = <2>; |
| 34 | ranges; |
Ramon Fried | 072787d | 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 | 35bdd83 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 40 | }; |
| 41 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 42 | chosen { |
| 43 | stdout-path = "/soc/serial@78b0000"; |
| 44 | }; |
| 45 | |
Ramon Fried | 072787d | 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 | 626f048 | 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 | 072787d | 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 | 9558dda | 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 | 626f048 | 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 | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 84 | clock = <&clkc 4>; |
Ramon Fried | 9558dda | 2018-05-16 12:13:41 +0300 | [diff] [blame] | 85 | pinctrl-names = "uart"; |
| 86 | pinctrl-0 = <&blsp1_uart>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 87 | }; |
| 88 | |
Mateusz Kulikowski | 626f048 | 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 | 698c1df | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 95 | #gpio-cells = <2>; |
Mateusz Kulikowski | 626f048 | 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 | 665e452 | 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 | 626f048 | 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 | 698c1df | 2021-06-27 13:06:15 +0200 | [diff] [blame] | 127 | cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 128 | }; |
| 129 | |
Jorge Ramirez-Ortiz | e2beb87 | 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 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 140 | spmi@200f000 { |
| 141 | compatible = "qcom,spmi-pmic-arb"; |
| 142 | reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>; |
| 143 | #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" |