Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3027581pxa; Tue, 25 Aug 2020 09:29:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb6wRO1VE+OjygvrQWAVGWDKPC1A+AMi8jz5wNzuRkB/JOfoWQHYLASS9yrBhib9mS977z X-Received: by 2002:a50:ed17:: with SMTP id j23mr6504834eds.158.1598372981080; Tue, 25 Aug 2020 09:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598372981; cv=none; d=google.com; s=arc-20160816; b=emshcmfomNhYBScxu+SeaJq652GfA/Y3aV/zLLvRuXhTVGKviMaqoo2zjmguecYPUu bkhcjhXWrCD6IY5+v43Bba5/wrp4kgK32kaYUVM4JPMwCAqU/k4CKKMuV/sMawToWq7G bTURUtiXTgea0QtGXY5BeNjsL0JT4WOkvhrz9FRCs7G6NaKh65ISQko367qd3GRbGgNI LBtyrNB/TEwv4kJt5AMFSfa1yzBVNzfqF6810XxdBhyT7HlzpGxKW3/FllAyOR6Fy20Z mpFtjocU79AhpX8mgO9ox84vZxBZud8LRY81+IdqpvHcoodP7faao4p8WP6Af8MwInzx MdIQ== 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=6jAcIk8mAU4N4cnz0TOT5LN3cUlxJYMtPGvKMfX2wOI=; b=f5BbFJ3dHqaV07uF07Uvh5pn7IO2LhMmF6/tvEzw8G42Ict5/W5bl9wvwEQmw7hBrz 6JASLZMI+8T6dbATMf7wJZ5MBHfKygWGRIEBrICjqg3Lh3WYk2ZJIFyA4WwOexDSrdZM 1IQi+THE9cilCzO3ZeKVdR10OKtUCs1Jrpsa9fvzTfTDHtOYUiFZ1YU3Zm4HIOqBxA9q AtKsC0dDlH4+bpac3i+g+WEN+gQcLIKHxyTtJ+rI/eb0E2TEt+iVbkMGknCJn5G6N4gb 0ikynOBpGseaMF5hJ8hkPyO6nykY/pYzDXpXBZDzIdbWnHhBho2/oWLf1rU3r3kNVWgl lr7Q== 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 t12si8760683ejj.713.2020.08.25.09.29.16; Tue, 25 Aug 2020 09:29:41 -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 S1727042AbgHYQ2j (ORCPT + 99 others); Tue, 25 Aug 2020 12:28:39 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:40146 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725805AbgHYQ2b (ORCPT ); Tue, 25 Aug 2020 12:28:31 -0400 X-IronPort-AV: E=Sophos;i="5.76,353,1592838000"; d="scan'208";a="55277832" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 26 Aug 2020 01:28:30 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 0D981409E769; Wed, 26 Aug 2020 01:28:28 +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 , Prabhakar Subject: [PATCH 2/4] ARM: dts: r8a7742-iwg21d-q7: Add SPI NOR support Date: Tue, 25 Aug 2020 17:27:16 +0100 Message-Id: <20200825162718.5838-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200825162718.5838-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20200825162718.5838-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 --- 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..e709a132f2f7 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_tx", "msiof0_rx"; + function = "msiof0"; + }; + scifa2_pins: scifa2 { groups = "scifa2_data_c"; function = "scifa2"; -- 2.17.1