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" |
| 11 | |
| 12 | / { |
| 13 | model = "Qualcomm Technologies, Inc. Dragonboard 410c"; |
| 14 | compatible = "qcom,dragonboard", "qcom,apq8016-sbc"; |
| 15 | qcom,msm-id = <0xce 0x0 0xf8 0x0 0xf9 0x0 0xfa 0x0 0xf7 0x0>; |
| 16 | qcom,board-id = <0x10018 0x0>; |
| 17 | #address-cells = <0x2>; |
| 18 | #size-cells = <0x2>; |
| 19 | |
| 20 | memory { |
| 21 | device_type = "memory"; |
| 22 | reg = <0 0x80000000 0 0x3da00000>; |
| 23 | }; |
| 24 | |
Rob Clark | 35bdd83 | 2018-01-10 11:34:39 +0100 | [diff] [blame] | 25 | reserved-memory { |
| 26 | #address-cells = <2>; |
| 27 | #size-cells = <2>; |
| 28 | ranges; |
| 29 | }; |
| 30 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 31 | chosen { |
| 32 | stdout-path = "/soc/serial@78b0000"; |
| 33 | }; |
| 34 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 35 | soc { |
| 36 | #address-cells = <0x1>; |
| 37 | #size-cells = <0x1>; |
| 38 | ranges = <0x0 0x0 0x0 0xffffffff>; |
| 39 | compatible = "simple-bus"; |
| 40 | |
| 41 | clkc: qcom,gcc@1800000 { |
| 42 | compatible = "qcom,gcc-apq8016"; |
| 43 | reg = <0x1800000 0x80000>; |
| 44 | #address-cells = <0x1>; |
| 45 | #size-cells = <0x0>; |
| 46 | }; |
| 47 | |
| 48 | serial@78b0000 { |
| 49 | compatible = "qcom,msm-uartdm-v1.4"; |
| 50 | reg = <0x78b0000 0x200>; |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 51 | clock = <&clkc 4>; |
| 52 | }; |
| 53 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 54 | soc_gpios: pinctrl@1000000 { |
| 55 | compatible = "qcom,apq8016-pinctrl"; |
| 56 | reg = <0x1000000 0x300000>; |
| 57 | gpio-controller; |
| 58 | gpio-count = <122>; |
| 59 | gpio-bank-name="soc"; |
| 60 | #gpio-cells = <1>; |
| 61 | }; |
| 62 | |
| 63 | ehci@78d9000 { |
| 64 | compatible = "qcom,ehci-host"; |
| 65 | reg = <0x78d9000 0x400>; |
| 66 | }; |
| 67 | |
| 68 | sdhci@07824000 { |
| 69 | compatible = "qcom,sdhci-msm-v4"; |
| 70 | reg = <0x7824900 0x11c 0x7824000 0x800>; |
| 71 | bus-width = <0x8>; |
| 72 | index = <0x0>; |
| 73 | non-removable; |
| 74 | clock = <&clkc 0>; |
| 75 | clock-frequency = <100000000>; |
| 76 | }; |
| 77 | |
| 78 | sdhci@07864000 { |
| 79 | compatible = "qcom,sdhci-msm-v4"; |
| 80 | reg = <0x7864900 0x11c 0x7864000 0x800>; |
| 81 | index = <0x1>; |
| 82 | bus-width = <0x4>; |
| 83 | clock = <&clkc 1>; |
| 84 | clock-frequency = <200000000>; |
| 85 | }; |
| 86 | |
Jorge Ramirez-Ortiz | e2beb87 | 2018-01-10 11:34:35 +0100 | [diff] [blame] | 87 | wcnss { |
| 88 | bt { |
| 89 | compatible="qcom,wcnss-bt"; |
| 90 | }; |
| 91 | |
| 92 | wifi { |
| 93 | compatible="qcom,wcnss-wlan"; |
| 94 | }; |
| 95 | }; |
| 96 | |
Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 97 | spmi@200f000 { |
| 98 | compatible = "qcom,spmi-pmic-arb"; |
| 99 | reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>; |
| 100 | #address-cells = <0x1>; |
| 101 | #size-cells = <0x1>; |
| 102 | pmic0: pm8916@0 { |
| 103 | compatible = "qcom,spmi-pmic"; |
| 104 | reg = <0x0 0x1>; |
| 105 | #address-cells = <0x1>; |
| 106 | #size-cells = <0x1>; |
| 107 | |
| 108 | pm8916_pon: pm8916_pon@800 { |
| 109 | compatible = "qcom,pm8916-pwrkey"; |
| 110 | reg = <0x800 0x96>; |
| 111 | #gpio-cells = <2>; |
| 112 | gpio-controller; |
| 113 | }; |
| 114 | |
| 115 | pm8916_gpios: pm8916_gpios@c000 { |
| 116 | compatible = "qcom,pm8916-gpio"; |
| 117 | reg = <0xc000 0x400>; |
| 118 | gpio-controller; |
| 119 | gpio-count = <4>; |
| 120 | #gpio-cells = <2>; |
| 121 | gpio-bank-name="pmic"; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | pmic1: pm8916@1 { |
| 126 | compatible = "qcom,spmi-pmic"; |
| 127 | reg = <0x1 0x1>; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
| 131 | |
| 132 | leds { |
| 133 | compatible = "gpio-leds"; |
| 134 | user1 { |
| 135 | label = "green:user1"; |
| 136 | gpios = <&soc_gpios 21 0>; |
| 137 | }; |
| 138 | |
| 139 | user2 { |
| 140 | label = "green:user2"; |
| 141 | gpios = <&soc_gpios 120 0>; |
| 142 | }; |
| 143 | |
| 144 | user3 { |
| 145 | label = "green:user3"; |
| 146 | gpios = <&pm8916_gpios 0 0>; |
| 147 | }; |
| 148 | |
| 149 | user4 { |
| 150 | label = "green:user4"; |
| 151 | gpios = <&pm8916_gpios 1 0>; |
| 152 | }; |
| 153 | }; |
| 154 | }; |
| 155 | |
| 156 | #include "dragonboard410c-uboot.dtsi" |