1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Qualcomm APQ8016 based Dragonboard 410C board device tree source 4 * 5 * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com> 6 */ 7 8/dts-v1/; 9 10#include "skeleton64.dtsi" 11#include <dt-bindings/pinctrl/pinctrl-snapdragon.h> 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 21 memory { 22 device_type = "memory"; 23 reg = <0 0x80000000 0 0x3da00000>; 24 }; 25 26 reserved-memory { 27 #address-cells = <2>; 28 #size-cells = <2>; 29 ranges; 30 31 smem_mem: smem_region@86300000 { 32 reg = <0x0 0x86300000 0x0 0x100000>; 33 no-map; 34 }; 35 }; 36 37 chosen { 38 stdout-path = "/soc/serial@78b0000"; 39 }; 40 41 smem { 42 compatible = "qcom,smem"; 43 memory-region = <&smem_mem>; 44 qcom,rpm-msg-ram = <&rpm_msg_ram>; 45 }; 46 47 soc { 48 #address-cells = <0x1>; 49 #size-cells = <0x1>; 50 ranges = <0x0 0x0 0x0 0xffffffff>; 51 compatible = "simple-bus"; 52 53 rpm_msg_ram: memory@60000 { 54 compatible = "qcom,rpm-msg-ram"; 55 reg = <0x60000 0x8000>; 56 }; 57 58 pinctrl: qcom,tlmm@1000000 { 59 compatible = "qcom,tlmm-apq8016"; 60 reg = <0x1000000 0x400000>; 61 62 blsp1_uart: uart { 63 function = "blsp1_uart"; 64 pins = "GPIO_4", "GPIO_5"; 65 drive-strength = <DRIVE_STRENGTH_8MA>; 66 bias-disable; 67 }; 68 }; 69 clkc: qcom,gcc@1800000 { 70 compatible = "qcom,gcc-apq8016"; 71 reg = <0x1800000 0x80000>; 72 #address-cells = <0x1>; 73 #size-cells = <0x0>; 74 }; 75 76 serial@78b0000 { 77 compatible = "qcom,msm-uartdm-v1.4"; 78 reg = <0x78b0000 0x200>; 79 clock = <&clkc 4>; 80 pinctrl-names = "uart"; 81 pinctrl-0 = <&blsp1_uart>; 82 }; 83 84 soc_gpios: pinctrl@1000000 { 85 compatible = "qcom,apq8016-pinctrl"; 86 reg = <0x1000000 0x300000>; 87 gpio-controller; 88 gpio-count = <122>; 89 gpio-bank-name="soc"; 90 #gpio-cells = <1>; 91 }; 92 93 ehci@78d9000 { 94 compatible = "qcom,ehci-host"; 95 reg = <0x78d9000 0x400>; 96 }; 97 98 sdhci@07824000 { 99 compatible = "qcom,sdhci-msm-v4"; 100 reg = <0x7824900 0x11c 0x7824000 0x800>; 101 bus-width = <0x8>; 102 index = <0x0>; 103 non-removable; 104 clock = <&clkc 0>; 105 clock-frequency = <100000000>; 106 }; 107 108 sdhci@07864000 { 109 compatible = "qcom,sdhci-msm-v4"; 110 reg = <0x7864900 0x11c 0x7864000 0x800>; 111 index = <0x1>; 112 bus-width = <0x4>; 113 clock = <&clkc 1>; 114 clock-frequency = <200000000>; 115 }; 116 117 wcnss { 118 bt { 119 compatible="qcom,wcnss-bt"; 120 }; 121 122 wifi { 123 compatible="qcom,wcnss-wlan"; 124 }; 125 }; 126 127 spmi@200f000 { 128 compatible = "qcom,spmi-pmic-arb"; 129 reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>; 130 #address-cells = <0x1>; 131 #size-cells = <0x1>; 132 pmic0: pm8916@0 { 133 compatible = "qcom,spmi-pmic"; 134 reg = <0x0 0x1>; 135 #address-cells = <0x1>; 136 #size-cells = <0x1>; 137 138 pm8916_pon: pm8916_pon@800 { 139 compatible = "qcom,pm8916-pwrkey"; 140 reg = <0x800 0x96>; 141 #gpio-cells = <2>; 142 gpio-controller; 143 }; 144 145 pm8916_gpios: pm8916_gpios@c000 { 146 compatible = "qcom,pm8916-gpio"; 147 reg = <0xc000 0x400>; 148 gpio-controller; 149 gpio-count = <4>; 150 #gpio-cells = <2>; 151 gpio-bank-name="pmic"; 152 }; 153 }; 154 155 pmic1: pm8916@1 { 156 compatible = "qcom,spmi-pmic"; 157 reg = <0x1 0x1>; 158 }; 159 }; 160 }; 161 162 leds { 163 compatible = "gpio-leds"; 164 user1 { 165 label = "green:user1"; 166 gpios = <&soc_gpios 21 0>; 167 }; 168 169 user2 { 170 label = "green:user2"; 171 gpios = <&soc_gpios 120 0>; 172 }; 173 174 user3 { 175 label = "green:user3"; 176 gpios = <&pm8916_gpios 0 0>; 177 }; 178 179 user4 { 180 label = "green:user4"; 181 gpios = <&pm8916_gpios 1 0>; 182 }; 183 }; 184}; 185 186#include "dragonboard410c-uboot.dtsi" 187