Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1853050pxa; Sun, 16 Aug 2020 13:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUUPBOnYhrZaSOsLwY3dCnBYr1ggqWjlRzKaJZx7qOY4EvGIiR8vGUrQDOZ0IYyKQ+T+Bn X-Received: by 2002:a17:906:7856:: with SMTP id p22mr11760831ejm.262.1597609980339; Sun, 16 Aug 2020 13:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597609980; cv=none; d=google.com; s=arc-20160816; b=ucGA0XeuXRJmhiyRQpI0NUiC8XcVSGa4A5+EvXbQn7oJ+cA9QemxIJYUpPC6ATfcrd DC7LQhboprrh1SPBxoNa58MD7ax+q0pw7k/mHJxlWXiToG6JChn418SbOGl2yLmpvy0L Wssg6bwvNiUhjJo4u2ZD8ajAZrOKzYh5vIN0aZCz9LBRah6jM78eoJePWItkryI5oMB4 h0mGGfOXJZ1IbyyDeHc2EsjqhUfCrq789z9wppQsxiR7wl9A+nLpd1xnorC7IN5JY0X4 sAgvRz0Cn47UG3iXWmQxD1i58uhj+jst0cjZsAtKZuOVmcwFRtbBFhNRXgkSodcyU2cH SmJw== 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=h5hvCBLUVNkqJNH2jAIcdMjx9EwXcK75mYCnKnTfecQ=; b=pyxpcinHnjEjKsW3BeiXME8OlTXFUKVVeT0ybC5lJwqPkVl+e2W53O30inrEi1muDk e/qTvPD2FKwq1mHc56O3VPavL7qGXQOYyb44+N7AZRHl2jHBD6EMZtfyLFeb31A6DDLY Rpq1KXkdVYXJiebOOUpz20dAy+YaHeacEEatxzaCImFMMsB/ozIbljsg86i9bk4CDIg+ gxGxBACeWvclOQjH6z42JmhvCkf9soSTdJQs/SaxqgaZcC98B1/jzzyDLZDgBeUz/uGx YQVVYUlMwpKv398HCWs63Ju5sAa6HN4OA92CfesiPRQNPQxuYCgIG/o5NtsPtR8YJs2z o7Mw== 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 t24si9241617edy.465.2020.08.16.13.32.36; Sun, 16 Aug 2020 13:33:00 -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 S1729840AbgHPTdo (ORCPT + 99 others); Sun, 16 Aug 2020 15:33:44 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:7266 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729688AbgHPTdl (ORCPT ); Sun, 16 Aug 2020 15:33:41 -0400 X-IronPort-AV: E=Sophos;i="5.76,321,1592838000"; d="scan'208";a="54692827" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 17 Aug 2020 04:33:40 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 4FFB740D5466; Mon, 17 Aug 2020 04:33:39 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lad Prabhakar , Prabhakar Subject: [PATCH 3/3] ARM: dts: r8a7742-iwg21m: Add SPI NOR support Date: Sun, 16 Aug 2020 20:33:16 +0100 Message-Id: <20200816193316.7641-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200816193316.7641-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20200816193316.7641-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 used to boot up the system to the System on Module DT. Signed-off-by: Lad Prabhakar Reviewed-by: Chris Paterson --- arch/arm/boot/dts/r8a7742-iwg21m.dtsi | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742-iwg21m.dtsi b/arch/arm/boot/dts/r8a7742-iwg21m.dtsi index 0f26807f92b8..db8301331d31 100644 --- a/arch/arm/boot/dts/r8a7742-iwg21m.dtsi +++ b/arch/arm/boot/dts/r8a7742-iwg21m.dtsi @@ -35,6 +35,16 @@ clock-frequency = <20000000>; }; +&gpio0 { + /* GP0_18 set low to select QSPI. Doing so will disable VIN2 */ + qspi_en { + gpio-hog; + gpios = <18 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "QSPI_EN"; + }; +}; + &i2c0 { pinctrl-0 = <&i2c0_pins>; pinctrl-names = "default"; @@ -70,4 +80,28 @@ groups = "mmc1_data4", "mmc1_ctrl"; function = "mmc1"; }; + + qspi_pins: qspi { + groups = "qspi_ctrl", "qspi_data2"; + function = "qspi"; + }; +}; + +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + + status = "okay"; + + /* WARNING - This device contains the bootloader. Handle with care. */ + flash: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "sst,sst25vf016b", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + m25p,fast-read; + spi-cpol; + spi-cpha; + }; }; -- 2.17.1