Commit 35bdd839d0f0589157b25d4a610f9b092d5eb208

Authored by Rob Clark
Committed by Tom Rini
1 parent 9337dfb434

db410c: add reserved-memory node to dts

If lk lights up display and populates simple-framebuffer node, it will
also setup a reserved-memory node (needed by simplefb on linux).  But
it isn't clever enough to cope when the reserved-memory node is not
present.

Signed-off-by: Rob Clark <robdclark@gmail.com>

Showing 1 changed file with 6 additions and 1 deletions Inline Diff

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