2231d2d37e1bbaeead7761c34755a1a55fd293c5
[openwrt.git] / target / linux / ipq806x / patches-4.1 / 165-arm-qcom-dts-Enable-NAND-node-on-IPQ8064-AP148-platform.patch
1 Content-Type: text/plain; charset="utf-8"
2 MIME-Version: 1.0
3 Content-Transfer-Encoding: 7bit
4 Subject: [v3,5/5] arm: qcom: dts: Enable NAND node on IPQ8064 AP148 platform
5 From: Archit Taneja <architt@codeaurora.org>
6 X-Patchwork-Id: 6927091
7 Message-Id: <1438578498-32254-6-git-send-email-architt@codeaurora.org>
8 To: linux-mtd@lists.infradead.org, dehrenberg@google.com,
9         cernekee@gmail.com, computersforpeace@gmail.com
10 Cc: linux-arm-msm@vger.kernel.org, agross@codeaurora.org,
11         sboyd@codeaurora.org, linux-kernel@vger.kernel.org,
12         Archit Taneja <architt@codeaurora.org>, devicetree@vger.kernel.org
13 Date: Mon,  3 Aug 2015 10:38:18 +0530
14
15 Enable the NAND controller node on the AP148 platform. Provide pinmux
16 information.
17
18 Cc: devicetree@vger.kernel.org
19
20 Signed-off-by: Archit Taneja <architt@codeaurora.org>
21
22 ---
23 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 36 ++++++++++++++++++++++++++++++++
24  1 file changed, 36 insertions(+)
25
26 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
27 +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
28 @@ -61,6 +61,28 @@
29                                         bias-none;
30                                 };
31                         };
32 +                       nand_pins: nand_pins {
33 +                               mux {
34 +                                       pins = "gpio34", "gpio35", "gpio36",
35 +                                              "gpio37", "gpio38", "gpio39",
36 +                                              "gpio40", "gpio41", "gpio42",
37 +                                              "gpio43", "gpio44", "gpio45",
38 +                                              "gpio46", "gpio47";
39 +                                       function = "nand";
40 +                                       drive-strength = <10>;
41 +                                       bias-disable;
42 +                               };
43 +                               pullups {
44 +                                       pins = "gpio39";
45 +                                       bias-pull-up;
46 +                               };
47 +                               hold {
48 +                                       pins = "gpio40", "gpio41", "gpio42",
49 +                                              "gpio43", "gpio44", "gpio45",
50 +                                              "gpio46", "gpio47";
51 +                                       bias-bus-hold;
52 +                               };
53 +                       };
54                 };
55  
56                 gsbi@16300000 {
57 @@ -150,5 +172,19 @@
58                         pinctrl-0 = <&pcie1_pins>;
59                         pinctrl-names = "default";
60                 };
61 +
62 +               nand@1ac00000 {
63 +                       status = "ok";
64 +
65 +                       pinctrl-0 = <&nand_pins>;
66 +                       pinctrl-names = "default";
67 +
68 +                       nand-ecc-strength = <4>;
69 +                       nand-bus-width = <8>;
70 +               };
71         };
72  };
73 +
74 +&adm_dma {
75 +       status = "ok";
76 +};