Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3300676pxk; Mon, 7 Sep 2020 08:57:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaE2S5KecoQyJDcaGLzZ0uA1lyBLP/ioufcba0l6gQwXYm3SqQq3nwl01iQxGBN+cRbcYL X-Received: by 2002:a17:906:868c:: with SMTP id g12mr20470915ejx.230.1599494264315; Mon, 07 Sep 2020 08:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599494264; cv=none; d=google.com; s=arc-20160816; b=nEG2ZhWs+T43pZHX+RPztuUibThjQTQvd5prtrRsfAYycPKQhpfNEBKWfS2QYi31XT jjH95qUmVlYyR1VQNmyPwqUMytoFU9g4RH3sHBFArFsmX0myAlGsYjLP0M76cF0/pex1 q2ya3k/ABejNCfypHpR54n8BH4JzEYp2IMrnlSaR6KR3WgkRkqyuy5eg2pVilz+MU/Tc VpeZSYokCubd6MLmCQAi9VwMjI7hT35pGRkgXW7xmp23NPWtvI+3gWrn98YqMF22wHSA 9M/spkTD+/zOwtN2qQaShV/nH0XDyAYEB0COaponSDr1hnwrIBLdHJmNDqblUMeB+M72 36kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=XQrnqm7cVSLJQunvLjalTJhsPPRyYkxOzXry9bmAQA8=; b=GAMy5FNo7EgXXdS8xZW3eJmOKp9mhT3cSp2zjfZRJBGlpGRtd/iJU5K+/3QLwFMJOR +tsyAMLt+gy+YRICUsoGjYz/gPudAPqyO6V3FWwve6xdMrCV1qH8lnDFvk2EJsb0rKZI UZKjGlQMj2StIo+We5HaOTxslBUF4L6I3WjNmmuCJNOkUD2Ij74cMlg3H6cHkRutceId Zx5PE89B0dO+pvB0Oexmcd42ZVk/KqSdqgTNxqTs9k1quyqD57qBuEvpx3hR0VVRaEta K/BYZVDsN7rG9YZkzFpuRCjFJjzzrqLVgjqCOu2BJoGbfVDL7l/bAwDMTO2wv64Xs52A B/NQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si9474154edx.293.2020.09.07.08.57.21; Mon, 07 Sep 2020 08:57:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730226AbgIGP4n (ORCPT + 99 others); Mon, 7 Sep 2020 11:56:43 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:34986 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730202AbgIGP4d (ORCPT ); Mon, 7 Sep 2020 11:56:33 -0400 X-IronPort-AV: E=Sophos;i="5.76,402,1592838000"; d="scan'208";a="56587376" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 08 Sep 2020 00:56:32 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 77269400E4EF; Tue, 8 Sep 2020 00:56:30 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lad Prabhakar , Biju Das , Prabhakar Subject: [PATCH v2 1/3] ARM: dts: r8a7742-iwg21d-q7: Add SPI NOR support Date: Mon, 7 Sep 2020 16:55:39 +0100 Message-Id: <20200907155541.2011-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907155541.2011-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20200907155541.2011-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the SPI NOR device which is connected to MSIOF0 interface on the iWave RainboW-G21d-q7 board. Signed-off-by: Lad Prabhakar Reviewed-by: Chris Paterson Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7742-iwg21d-q7.dts | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts index 73300ab46ea6..818f1a850c62 100644 --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts @@ -220,6 +220,32 @@ status = "okay"; }; +&msiof0 { + pinctrl-0 = <&msiof0_pins>; + pinctrl-names = "default"; + cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; + + status = "okay"; + + flash1: flash@0 { + compatible = "sst,sst25vf016b", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "user"; + reg = <0x00000000 0x00200000>; + }; + }; + }; +}; + &pci0 { pinctrl-0 = <&usb0_pins>; pinctrl-names = "default"; @@ -266,6 +292,11 @@ function = "i2c2"; }; + msiof0_pins: msiof0 { + groups = "msiof0_clk", "msiof0_sync", "msiof0_tx", "msiof0_rx"; + function = "msiof0"; + }; + scifa2_pins: scifa2 { groups = "scifa2_data_c"; function = "scifa2"; -- 2.17.1