From patchwork Tue Jun 28 21:43:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Pedersen X-Patchwork-Id: 9204047 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3B177608A6 for ; Tue, 28 Jun 2016 21:44:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3040D2861B for ; Tue, 28 Jun 2016 21:44:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21D2128621; Tue, 28 Jun 2016 21:44:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B37582861F for ; Tue, 28 Jun 2016 21:44:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752546AbcF1Voq (ORCPT ); Tue, 28 Jun 2016 17:44:46 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36130 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375AbcF1Vop (ORCPT ); Tue, 28 Jun 2016 17:44:45 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3C34C613DE; Tue, 28 Jun 2016 21:43:18 +0000 (UTC) Received: from twp-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: twp@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 44318612CC; Tue, 28 Jun 2016 21:43:17 +0000 (UTC) From: Thomas Pedersen To: linux-arm-msm@vger.kernel.org Cc: linux@qca.qualcomm.com, Archit Taneja , Thomas Pedersen , Andy Gross , David Brown , Rob Herring , Mark Rutland , Russell King Subject: [RESEND PATCH 5/5] arm: qcom: dts: Enable NAND node on IPQ8064 AP148 platform Date: Tue, 28 Jun 2016 14:43:06 -0700 Message-Id: <1467150186-11427-6-git-send-email-twp@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467150186-11427-1-git-send-email-twp@codeaurora.org> References: <1467150186-11427-1-git-send-email-twp@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Archit Taneja Enable the NAND controller node on the AP148 platform. Provide pinmux information. Signed-off-by: Archit Taneja Signed-off-by: Thomas Pedersen --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts index d501382..0a4b5e3 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts @@ -38,6 +38,28 @@ bias-none; }; }; + nand_pins: nand_pins { + mux { + pins = "gpio34", "gpio35", "gpio36", + "gpio37", "gpio38", "gpio39", + "gpio40", "gpio41", "gpio42", + "gpio43", "gpio44", "gpio45", + "gpio46", "gpio47"; + function = "nand"; + drive-strength = <10>; + bias-disable; + }; + pullups { + pins = "gpio39"; + bias-pull-up; + }; + hold { + pins = "gpio40", "gpio41", "gpio42", + "gpio43", "gpio44", "gpio45", + "gpio46", "gpio47"; + bias-bus-hold; + }; + }; }; gsbi@16300000 { @@ -97,5 +119,25 @@ sata@29000000 { status = "ok"; }; + + nand@1ac00000 { + status = "ok"; + + pinctrl-0 = <&nand_pins>; + pinctrl-names = "default"; + + nandcs@0 { + compatible = "qcom,nandcs"; + reg = <0>; + + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; + }; }; }; + +&adm_dma { + status = "ok"; +};