Mateusz Kulikowski | 626f048 | 2016-03-31 23:12:33 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Qualcomm APQ8016 based Dragonboard 410C board device tree source |
| 3 | * |
| 4 | * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | |
| 11 | #include "skeleton64.dtsi" |
| 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 | chosen { |
| 27 | stdout-path = "/soc/serial@78b0000"; |
| 28 | }; |
| 29 | |
| 30 | |
| 31 | soc { |
| 32 | #address-cells = <0x1>; |
| 33 | #size-cells = <0x1>; |
| 34 | ranges = <0x0 0x0 0x0 0xffffffff>; |
| 35 | compatible = "simple-bus"; |
| 36 | |
| 37 | clkc: qcom,gcc@1800000 { |
| 38 | compatible = "qcom,gcc-apq8016"; |
| 39 | reg = <0x1800000 0x80000>; |
| 40 | #address-cells = <0x1>; |
| 41 | #size-cells = <0x0>; |
| 42 | }; |
| 43 | |
| 44 | serial@78b0000 { |
| 45 | compatible = "qcom,msm-uartdm-v1.4"; |
| 46 | reg = <0x78b0000 0x200>; |
| 47 | u-boot,dm-pre-reloc; |
| 48 | clock = <&clkc 4>; |
| 49 | }; |
| 50 | |
| 51 | restart@4ab000 { |
| 52 | compatible = "qcom,pshold"; |
| 53 | reg = <0x4ab000 0x4>; |
| 54 | }; |
| 55 | |
| 56 | soc_gpios: pinctrl@1000000 { |
| 57 | compatible = "qcom,apq8016-pinctrl"; |
| 58 | reg = <0x1000000 0x300000>; |
| 59 | gpio-controller; |
| 60 | gpio-count = <122>; |
| 61 | gpio-bank-name="soc"; |
| 62 | #gpio-cells = <1>; |
| 63 | }; |
| 64 | |
| 65 | ehci@78d9000 { |
| 66 | compatible = "qcom,ehci-host"; |
| 67 | reg = <0x78d9000 0x400>; |
| 68 | }; |
| 69 | |
| 70 | sdhci@07824000 { |
| 71 | compatible = "qcom,sdhci-msm-v4"; |
| 72 | reg = <0x7824900 0x11c 0x7824000 0x800>; |
| 73 | bus-width = <0x8>; |
| 74 | index = <0x0>; |
| 75 | non-removable; |
| 76 | clock = <&clkc 0>; |
| 77 | clock-frequency = <100000000>; |
| 78 | }; |
| 79 | |
| 80 | sdhci@07864000 { |
| 81 | compatible = "qcom,sdhci-msm-v4"; |
| 82 | reg = <0x7864900 0x11c 0x7864000 0x800>; |
| 83 | index = <0x1>; |
| 84 | bus-width = <0x4>; |
| 85 | clock = <&clkc 1>; |
| 86 | clock-frequency = <200000000>; |
| 87 | }; |
| 88 | |
| 89 | spmi@200f000 { |
| 90 | compatible = "qcom,spmi-pmic-arb"; |
| 91 | reg = <0x200f800 0x200 0x2400000 0x400000 0x2c00000 0x400000>; |
| 92 | #address-cells = <0x1>; |
| 93 | #size-cells = <0x1>; |
| 94 | pmic0: pm8916@0 { |
| 95 | compatible = "qcom,spmi-pmic"; |
| 96 | reg = <0x0 0x1>; |
| 97 | #address-cells = <0x1>; |
| 98 | #size-cells = <0x1>; |
| 99 | |
| 100 | pm8916_pon: pm8916_pon@800 { |
| 101 | compatible = "qcom,pm8916-pwrkey"; |
| 102 | reg = <0x800 0x96>; |
| 103 | #gpio-cells = <2>; |
| 104 | gpio-controller; |
| 105 | }; |
| 106 | |
| 107 | pm8916_gpios: pm8916_gpios@c000 { |
| 108 | compatible = "qcom,pm8916-gpio"; |
| 109 | reg = <0xc000 0x400>; |
| 110 | gpio-controller; |
| 111 | gpio-count = <4>; |
| 112 | #gpio-cells = <2>; |
| 113 | gpio-bank-name="pmic"; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | pmic1: pm8916@1 { |
| 118 | compatible = "qcom,spmi-pmic"; |
| 119 | reg = <0x1 0x1>; |
| 120 | }; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | leds { |
| 125 | compatible = "gpio-leds"; |
| 126 | user1 { |
| 127 | label = "green:user1"; |
| 128 | gpios = <&soc_gpios 21 0>; |
| 129 | }; |
| 130 | |
| 131 | user2 { |
| 132 | label = "green:user2"; |
| 133 | gpios = <&soc_gpios 120 0>; |
| 134 | }; |
| 135 | |
| 136 | user3 { |
| 137 | label = "green:user3"; |
| 138 | gpios = <&pm8916_gpios 0 0>; |
| 139 | }; |
| 140 | |
| 141 | user4 { |
| 142 | label = "green:user4"; |
| 143 | gpios = <&pm8916_gpios 1 0>; |
| 144 | }; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | #include "dragonboard410c-uboot.dtsi" |