Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp553215ybk; Wed, 13 May 2020 07:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3sl9QWBbn0Qbcutr/HGuHEy/TTRKKk2JzRjyAEeg81+vC9zw3EVXN3lZ/ZiuaGRpALUty X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr12343857ejb.204.1589378728414; Wed, 13 May 2020 07:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589378728; cv=none; d=google.com; s=arc-20160816; b=1Lik66f8Mt9H5sVeYdhNGybwsfe+7yZCRHn7XgxCc8ZgX6q61qI24MKMxyOfCHxcSq ZlO8sVbFEC3iQZKNR8WA8mwyUQ432c+a0Yq/F0fcba8caqVK1SoPPLZ517hh4qiA5pW1 o7OcCRfbEZHseyPIcc6U/85FBJTwSsn71FWSvak7S8x6ZJumB6bLGRvodCZcD1jJSjqD LkXn4gacHtxlWU12Mny8TPU/5TfEr4lYudpsoeHELg0QZ/FjsfpdPe5vkjYiQMMB9Go5 jVH5XkdbwmyrLSiBDwqVd8vQJcxaB8WD/RnG6Vio5Gd7cZ2ywE02h3MXiSX8xIeovaCz MaYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature; bh=V6Hhkk1Cza2Z4SfFd1VS6L+v2rc6ilDk37TS/2Spp7U=; b=qCoq2G5oYLzo5mHCxRe4NHkiWb1BjY/eZAqMll5dlxntENHpfxlJr7uiEmIW0Lxm49 qGXlHg5mQPTgOSRORaN5yUmO57iq5TZYlYjuZ4u9ZfoTg+4mXtQEWdQiBBsmdT8tyDRf jKh8Cr5KQMnN7/ztVmMBdwn/Iwdo693ZqONPIHjKJqc6hbGai0opegjnac6e6doDTM+W 2/cYJbxaqpk5NlV6VMtAMjUAzeCVZljFrR1x73IlZYOAOXVFLEZZaTv8ubs6f2E8ikh2 1YBiVANb70SwYLJKJNFfrmzJ/DdkGVQ2XQkYdKn6kRruTb+VNLhjMKCwBtne133Yr4UI fh2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=b5pLGcc1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si9932312edt.420.2020.05.13.07.05.03; Wed, 13 May 2020 07:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=b5pLGcc1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388849AbgEMOBJ (ORCPT + 99 others); Wed, 13 May 2020 10:01:09 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:15563 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388833AbgEMOBG (ORCPT ); Wed, 13 May 2020 10:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1589378465; x=1620914465; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qbdBED/Z1XBg7VaaZopGpjjuifZRtcbEWF/Y+VJziDk=; b=b5pLGcc1qujrwxlC55PvCaWRuL5zswhhiBAf+L+dHdxqIhZKuepIQQon ghd7B6UTHM3zBCqLt69uaWcWg1/2R+A4dFeaJdzjP5YlEb7o4DM/DRRjE IxTQIAqf2evYaTDvD5CP0AEktWWKtTMTLhYoroXlGOry8mUEUx2BdICpG 6/hnm/JUWM4sx8iDVpl+nTKV8/kMNue1nUYlJZ4epDbdnJfVDVoF9l48n 21bt1j08xhQG5Hw1ORmsIFWe3/PP1GqY70PiDH+kDbX4hrqSX/Fx9njyT Ju+Jm5WpkVJF0BBVEYQlAG70bjcPLjUnlm/bXk6cI6/FLE9T+FOfaPYk7 g==; IronPort-SDR: rBaFInmH5yPjnLhHZPsGcVpQf3K3KQUwci3AexoHvTqPZS4NkY7U3sK6ytEIGM7w75OuAT4Eqy ZSK1oGXC27mpC5lAw4/hIHehQtrDENUuytYqxhmjhWcX1vRlwnXc1K3YuylCJrBEa6YkV8ifF3 1mEm1G3X3EDAbC+Xn3Tk3u0smVYs2gxFQ2TwPpDwUjgzNgOP6b929wHjQC46PQ92BHNMBTJl+B AFoxVP/K+qGNjfQXqM+ukVULGETaj9Kc55CGQ9+ZkFNEk9bt6ggf9BXZQHrX2kZwNom+nLE31k dog= X-IronPort-AV: E=Sophos;i="5.73,388,1583218800"; d="scan'208";a="73314086" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 May 2020 07:01:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 13 May 2020 07:01:04 -0700 Received: from soft-dev15.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Wed, 13 May 2020 07:01:02 -0700 From: Lars Povlsen To: Mark Brown , SoC Team CC: Lars Povlsen , Microchip Linux Driver Support , , , , , Alexandre Belloni Subject: [PATCH 10/10] arm64: dts: sparx5: Add spi-nand devices Date: Wed, 13 May 2020 16:00:31 +0200 Message-ID: <20200513140031.25633-11-lars.povlsen@microchip.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200513140031.25633-1-lars.povlsen@microchip.com> References: <20200513140031.25633-1-lars.povlsen@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add spi-nand DT nodes to the applicable Sparx5 boards. Reviewed-by: Alexandre Belloni Signed-off-by: Lars Povlsen --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 20 ++++++++++++++++ .../boot/dts/microchip/sparx5_pcb125.dts | 7 ++++++ .../boot/dts/microchip/sparx5_pcb134.dts | 22 ++++++++++++++++++ .../boot/dts/microchip/sparx5_pcb135.dts | 23 +++++++++++++++++++ 4 files changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/microchip/sparx5.dtsi b/arch/arm64/boot/dts/microchip/sparx5.dtsi index 330fd8b096d4c..60629861a5157 100644 --- a/arch/arm64/boot/dts/microchip/sparx5.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5.dtsi @@ -193,6 +193,26 @@ gpio: pinctrl@6110101e0 { interrupts = ; #interrupt-cells = <2>; + cs1_pins: cs1-pins { + pins = "GPIO_16"; + function = "si"; + }; + + cs2_pins: cs2-pins { + pins = "GPIO_17"; + function = "si"; + }; + + cs3_pins: cs3-pins { + pins = "GPIO_18"; + function = "si"; + }; + + si2_pins: si2-pins { + pins = "GPIO_39", "GPIO_40", "GPIO_41"; + function = "si2"; + }; + uart_pins: uart-pins { pins = "GPIO_10", "GPIO_11"; function = "uart"; diff --git a/arch/arm64/boot/dts/microchip/sparx5_pcb125.dts b/arch/arm64/boot/dts/microchip/sparx5_pcb125.dts index d8b5d23abfab0..94c4c3fd5a786 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb125.dts +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb125.dts @@ -46,6 +46,13 @@ spi-flash@0 { spi-max-frequency = <8000000>; /* input clock */ reg = <0>; /* CS0 */ }; + spi-flash@1 { + compatible = "spi-nand"; + pinctrl-0 = <&cs1_pins>; + pinctrl-names = "default"; + spi-max-frequency = <8000000>; + reg = <1>; /* CS1 */ + }; }; &i2c1 { diff --git a/arch/arm64/boot/dts/microchip/sparx5_pcb134.dts b/arch/arm64/boot/dts/microchip/sparx5_pcb134.dts index feee4e99ff57c..9e8dc725a954a 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb134.dts +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb134.dts @@ -15,3 +15,25 @@ memory@0 { reg = <0x00000000 0x00000000 0x10000000>; }; }; + +&gpio { + cs14_pins: cs14-pins { + pins = "GPIO_44"; + function = "si"; + }; +}; + +&spi0 { + pinctrl-0 = <&si2_pins>; + pinctrl-names = "default"; + interface-mapping-mask = <0x4000>; /* NAND CS14 = SPI2 */ + spi-rx-delay-us = <500>; /* Tune for speed */ + /* Dedicated SPI2 interface */ + spi-flash@e { + compatible = "spi-nand"; + pinctrl-0 = <&cs14_pins>; + pinctrl-names = "default"; + spi-max-frequency = <42000000>; + reg = <14>; + }; +}; diff --git a/arch/arm64/boot/dts/microchip/sparx5_pcb135.dts b/arch/arm64/boot/dts/microchip/sparx5_pcb135.dts index 20e409a9be196..a31e10911dbaf 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb135.dts +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb135.dts @@ -15,3 +15,26 @@ memory@0 { reg = <0x00000000 0x00000000 0x10000000>; }; }; + +&gpio { + cs14_pins: cs14-pins { + pins = "GPIO_44"; + function = "si"; + }; +}; + +&spi0 { + status = "okay"; + pinctrl-0 = <&si2_pins>; + pinctrl-names = "default"; + interface-mapping-mask = <0x4000>; /* NAND CS14 = SPI2 */ + spi-rx-delay-us = <500>; /* Tune for speed */ + /* Dedicated SPI2 interface */ + spi-flash@e { + compatible = "spi-nand"; + pinctrl-0 = <&cs14_pins>; + pinctrl-names = "default"; + spi-max-frequency = <42000000>; + reg = <14>; + }; +}; -- 2.26.2