From patchwork Tue Sep 13 16:15:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9329423 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 E2606607FD for ; Tue, 13 Sep 2016 16:16:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D35C829568 for ; Tue, 13 Sep 2016 16:16:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C80C62956B; Tue, 13 Sep 2016 16:16:32 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 36B5A29568 for ; Tue, 13 Sep 2016 16:16:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bjqNl-0007g8-Ow; Tue, 13 Sep 2016 16:16:25 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bjqNf-0007Qd-Bf for linux-amlogic@lists.infradead.org; Tue, 13 Sep 2016 16:16:23 +0000 Received: by mail-wm0-x229.google.com with SMTP id 1so210480749wmz.1 for ; Tue, 13 Sep 2016 09:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XQ2dTo0IH3EKhzVqRLfuTGCYo4NJkQyvY87F8KE1aLk=; b=yBUVlxuC3QZ5N6mCViSL3OE6C7FMqhoSjYZZiP8cmV0/r9PtMO/L6NOap5N4Zkg0Tq K7ryl4nTNMfnz+icuIa5wEWIx8GBCnHtxzCfC/LwC/0jPFAhTTkOxDH4T9y4TmfXd1is 1w/YVBAlS66+Wm7gEoRCsF2kXFanJDmdSVDq4HKyEB37/t4NnDYdssv3fpfVRFG/sl0X 5l8/LpzVK6qa6lWZKY5bEZPPENTLpHfn2sKefKBKh+Ap/8FB/qAayG3TJHVORNRoXRxw RTaIY1pxVH1QCYBVlRV7m6hD33jWgADYDf30PvbW+EdjcQobQG8fctbmdZkzspSy4pRW fkWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XQ2dTo0IH3EKhzVqRLfuTGCYo4NJkQyvY87F8KE1aLk=; b=jM0+FX/blzRl8y9kxtGIZynHARMqUcEZS6ncqSDTZjEBLsP7hcpQFNrajH4klmGPxy h9Iyhbv7uscLCuS3ChIeab4p8EVVCiDf1rqCreBKU5weXG58usXmR/dbpHwjzVw2EcSf dcxL8+8FjrW61/wHCkP1wMBTm55BLLK5kMiFUeO42CEsw3fE56bZylIIiLGkujo4x5Lc J2NZM/O+yoHA9pwaavKSpWYv23j/kBUSJmZLNBX98jwdhIki4JIu7T4GMUj5MiOof8I7 bfvpirljOB7V8wOInTe/pKIHsrN46K18Kxckj5IK0ri5eFMgX2QX9KhckZnN7jffIKJL DZsw== X-Gm-Message-State: AE9vXwPHz/beuO1s2GXPsPdKf3LPOMI6PB4Zw4N/OPcah+WLsrdPhXtGzlNE6z6TP9bwV+KV X-Received: by 10.194.96.136 with SMTP id ds8mr8288504wjb.3.1473783357461; Tue, 13 Sep 2016 09:15:57 -0700 (PDT) Received: from mogwai.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j10sm8247748wjy.13.2016.09.13.09.15.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 09:15:56 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [RFT] ARM64: dts: gxbb: add spifc device Date: Tue, 13 Sep 2016 18:15:45 +0200 Message-Id: <1473783345-8428-1-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473409738-27175-1-git-send-email-jbrunet@baylibre.com> References: <1473409738-27175-1-git-send-email-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160913_091619_702289_F1986920 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the spifc controller on the gxbb p200 and add spi nor device on it. By default, the spi nor shown on the schematics is not present on the actual hardware. Same goes for the resistor 4R3 which needs to be soldered in order to connect the NOR_CS signal to the SPI device. Keep in mind that the spifc lines are shared with the NAND controller. This patch is not intended to be upstreamed and is provided here for testing purpose. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi index 0eaca7277cfd..116cbc91c8e2 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi @@ -77,3 +77,17 @@ pinctrl-0 = <&remote_input_ao_pins>; pinctrl-names = "default"; }; + +&spifc { + status = "okay"; + pinctrl-0 = <&nor_pins>; + pinctrl-names = "default"; + + spi-flash@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + spi-max-frequency = <30000000>; + }; +};