From patchwork Wed Oct 16 14:58:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 857 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1EC313F039 for ; Wed, 16 Oct 2019 16:58:33 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id f10sf14334686plr.7 for ; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571237911; cv=pass; d=google.com; s=arc-20160816; b=wArOstYvm4d13jWqxJ4SxeVrmQ731hlsTLov7y5k/G2uADeU4xl2rR8mUlgLMCKX1e q9BHzZk/RZoUprKIPCL5bfqJx0l6vk8rViAMNqODwstMewCf6D35IeI26h9bWAi+dOVs ideZvMv03suy/kvyTJ70rtQWNsGXPDtfWEnP5R7kgTUcg5+y3M262QknaTDg/Aj/De/+ H+b99OLK8Ebz6qY40fbtKoN8d2k/tqd+NmkipgVEHhwpNoHFoI7dEx8OoD4T6r0AaI0w oPamLOVLIxFYtXPj33K9a+fdZD/RROBwgct6KRMiOqSolYc+H0GRsKEy9wdS9reUmUWU /63g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7oiFmIGnjSFfyftsakD2a0tbpzStnniHUnB6zYgEQKk=; b=YwLI47Q+yKldTMFghGUPfI+9f3o7dKxMJCfZ5es+NexOzGZz2ti6RgcQfe1POkX//g +sTn4HJ4F6OXrE1yGnsBZ65ohB9IP5HscJu25wy4ORvDGvxWgp1FS53ROCm9OZTBCZNL mt0CCgCn144ZmFIBCrDrUV+VDFU8MY0jJoScEgoo/mRcoii6LiVAWpTj5/cR+Ry0zHpB oQoYj4ZrXvSTB0fBVwWmFen1x6gLEGxrP7Zf7xblnJiRJNmen7qn+ce3VTtcobyWwYfY GHfixqShvqFXDZZ3W5EyfDrNOgBn5rrXplKaYRTutmkv9J+oPx+qRaDCaSoIxN/w2r5S 9Eng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=psOOW2oH; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=7oiFmIGnjSFfyftsakD2a0tbpzStnniHUnB6zYgEQKk=; b=Hd6D5lNgMRS/aSo26o97Vg/q+C4qsKCr8JV+p2R6wKEXLaxJ0s6Z53jm/MDFzKu+pT K1LYjyrNEFoAy2nqmtKpaqb3F7OM19Segz+nu4bxRbp5/0GE0wlfmEh8+PYir9IgQMpu jdPPIlzwkAFC6JKHnVNPrfv+tKi+AoADrZbpI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=7oiFmIGnjSFfyftsakD2a0tbpzStnniHUnB6zYgEQKk=; b=FNgv3B8MortJksqauWsBoDZoUG1RZb3IGB0lWnENYeTbZ8G1dAab+avuhtn0n5ZF6/ Zhq5VXrS5qMAp9IfIcVzSh5dA+R2G0tALYctVr0KYc93XOwzUykF/n0EUCBZAUqeRBmA M0aajLJXcZSlhxzHIq0T1EruRljQpaCD3uOrdwzXF67R1X85ZdCUC3lWz4ko10oOXpWY 9t27c2ijLR8BCCQVFrSW8blMYrB58QG2QpBDeWZleKtqswsrkjPTJ1ZQRc8INEl+yLiq 9QQcuMUIdHalIYnQHDFYgQD75VbIhdxsQBJK8S3z8MvFPfaMFzek0O063Y0nbTnFLeNM E76w== X-Gm-Message-State: APjAAAUazzBDEk+nn/ZpkQl8tBvNJq4qikoTIfgmvHJqkOrkgZU/LXIC E1lOmugn2T/jLAAMMRjh0bEu62VF X-Google-Smtp-Source: APXvYqzGdt0rTU/Z8Zt06G3mBUV3y55gJZKwU/+uwFjLE4dndjs3CmB8eqP++XaoB34cm7o4dmXFng== X-Received: by 2002:a63:f810:: with SMTP id n16mr44780008pgh.176.1571237910759; Wed, 16 Oct 2019 07:58:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:80d1:: with SMTP id a17ls5791679pfn.7.gmail; Wed, 16 Oct 2019 07:58:30 -0700 (PDT) X-Received: by 2002:a62:e90d:: with SMTP id j13mr13907147pfh.153.1571237910309; Wed, 16 Oct 2019 07:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571237910; cv=none; d=google.com; s=arc-20160816; b=d088xxjaG5VCc5bWARiroq3fjuX7OKJ9YHkZlPNNOYmfVRbXx5Do66gcWF4IHCnyA0 jjJCeKi7Cg+Blpmg9sBMznhakEMxJkG5EWvBe4iE6ywLzS01gsixXh6K1bVz24+IJxs7 cXJxBeCZuvavaZXNZz+LmeFEr5hjpQrw26pjNyVEinWB6XUDxXFhWeYBLThquLV1IT+H K+KfqArXrP3PGLNp8uKjp68A/GP+56I249bEwBEDEydav2hClR+5+HFHVRMa1G2EZve3 B2Ny2CxzU68TU8PRzQkvk/CnmfPfgfXe62pJe2jP2eNaRQ7Bq5qHZ6uOQzNq+dqRdgO4 dDcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=v1+PrDVA5aM4W4ZnvQQhmQ8krJlVxvNiADXWnLTzIbM=; b=wyoBzW8rte3BIku/sAWr3cOcH5jJTrFu0PpDWzQRk6U6v60Oj6mNVl2Eu2z9RlfZrP sMcsfpwtZBcvX5eEVuFS5pu9FJQLFih1Mo7gBbcZCBUu91rvEMf6uwKp7S1CvLM+GlIw uetsNrERBOm3DmV1vYRlfd0DKOZ4u6vSWz9n7lRqxRczvj2+tFUgCKKGC/ocZ6Jp+cPu M5gOMEMl8yE+mZ/aDiYSW3FYNBoKr7oU1cD8fJOASDjqkEZuHvWAbz1Gro/bMLs9S+p5 kb7oGnoOooVab83d7uxD+dz7OLkyKEiTxj91hWHtbiQI9nBZfw6pDcLZZCZQp9Za7XDR slTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=psOOW2oH; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c22sor31857120plz.59.2019.10.16.07.58.30 for (Google Transport Security); Wed, 16 Oct 2019 07:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:9104:: with SMTP id k4mr5527025pjo.39.1571237909687; Wed, 16 Oct 2019 07:58:29 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id q29sm5534110pgc.36.2019.10.16.07.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:58:29 -0700 (PDT) From: Jagan Teki To: Rick Chen , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Bin Meng Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux Date: Wed, 16 Oct 2019 20:28:10 +0530 Message-Id: <20191016145814.19036-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016145814.19036-1-jagan@amarulasolutions.com> References: <20191016145814.19036-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=psOOW2oH; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Sync the hifive-unleashed-a00 dts from Linux with below commit details: commit <2993c9b04e616df0848b655d7202a707a70fc876> ("riscv: dts: HiFive Unleashed: add default chosen/stdout-path") Idea is to periodically sync the dts from Linux instead of tweaking internal changes one after another, so better not add any intermediate changes in between. This would help to maintain the dts files easy and meaningful since we are reusing device tree files from Linux. Signed-off-by: Jagan Teki --- arch/riscv/dts/Makefile | 1 + arch/riscv/dts/fu540-c000.dtsi | 251 ++++++++++++++++++++++++ arch/riscv/dts/hifive-unleashed-a00.dts | 96 +++++++++ 3 files changed, 348 insertions(+) create mode 100644 arch/riscv/dts/fu540-c000.dtsi create mode 100644 arch/riscv/dts/hifive-unleashed-a00.dts diff --git a/arch/riscv/dts/Makefile b/arch/riscv/dts/Makefile index f9cd606a9a..4f30e6936f 100644 --- a/arch/riscv/dts/Makefile +++ b/arch/riscv/dts/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0+ dtb-$(CONFIG_TARGET_AX25_AE350) += ae350_32.dtb ae350_64.dtb +dtb-$(CONFIG_TARGET_SIFIVE_FU540) += hifive-unleashed-a00.dtb targets += $(dtb-y) diff --git a/arch/riscv/dts/fu540-c000.dtsi b/arch/riscv/dts/fu540-c000.dtsi new file mode 100644 index 0000000000..afa43c7ea3 --- /dev/null +++ b/arch/riscv/dts/fu540-c000.dtsi @@ -0,0 +1,251 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2018-2019 SiFive, Inc */ + +/dts-v1/; + +#include + +/ { + #address-cells = <2>; + #size-cells = <2>; + compatible = "sifive,fu540-c000", "sifive,fu540"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + ethernet0 = ð0; + }; + + chosen { + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu0: cpu@0 { + compatible = "sifive,e51", "sifive,rocket0", "riscv"; + device_type = "cpu"; + i-cache-block-size = <64>; + i-cache-sets = <128>; + i-cache-size = <16384>; + reg = <0>; + riscv,isa = "rv64imac"; + status = "disabled"; + cpu0_intc: interrupt-controller { + #interrupt-cells = <1>; + compatible = "riscv,cpu-intc"; + interrupt-controller; + }; + }; + cpu1: cpu@1 { + compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; + d-cache-block-size = <64>; + d-cache-sets = <64>; + d-cache-size = <32768>; + d-tlb-sets = <1>; + d-tlb-size = <32>; + device_type = "cpu"; + i-cache-block-size = <64>; + i-cache-sets = <64>; + i-cache-size = <32768>; + i-tlb-sets = <1>; + i-tlb-size = <32>; + mmu-type = "riscv,sv39"; + reg = <1>; + riscv,isa = "rv64imafdc"; + tlb-split; + cpu1_intc: interrupt-controller { + #interrupt-cells = <1>; + compatible = "riscv,cpu-intc"; + interrupt-controller; + }; + }; + cpu2: cpu@2 { + compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; + d-cache-block-size = <64>; + d-cache-sets = <64>; + d-cache-size = <32768>; + d-tlb-sets = <1>; + d-tlb-size = <32>; + device_type = "cpu"; + i-cache-block-size = <64>; + i-cache-sets = <64>; + i-cache-size = <32768>; + i-tlb-sets = <1>; + i-tlb-size = <32>; + mmu-type = "riscv,sv39"; + reg = <2>; + riscv,isa = "rv64imafdc"; + tlb-split; + cpu2_intc: interrupt-controller { + #interrupt-cells = <1>; + compatible = "riscv,cpu-intc"; + interrupt-controller; + }; + }; + cpu3: cpu@3 { + compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; + d-cache-block-size = <64>; + d-cache-sets = <64>; + d-cache-size = <32768>; + d-tlb-sets = <1>; + d-tlb-size = <32>; + device_type = "cpu"; + i-cache-block-size = <64>; + i-cache-sets = <64>; + i-cache-size = <32768>; + i-tlb-sets = <1>; + i-tlb-size = <32>; + mmu-type = "riscv,sv39"; + reg = <3>; + riscv,isa = "rv64imafdc"; + tlb-split; + cpu3_intc: interrupt-controller { + #interrupt-cells = <1>; + compatible = "riscv,cpu-intc"; + interrupt-controller; + }; + }; + cpu4: cpu@4 { + compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; + d-cache-block-size = <64>; + d-cache-sets = <64>; + d-cache-size = <32768>; + d-tlb-sets = <1>; + d-tlb-size = <32>; + device_type = "cpu"; + i-cache-block-size = <64>; + i-cache-sets = <64>; + i-cache-size = <32768>; + i-tlb-sets = <1>; + i-tlb-size = <32>; + mmu-type = "riscv,sv39"; + reg = <4>; + riscv,isa = "rv64imafdc"; + tlb-split; + cpu4_intc: interrupt-controller { + #interrupt-cells = <1>; + compatible = "riscv,cpu-intc"; + interrupt-controller; + }; + }; + }; + soc { + #address-cells = <2>; + #size-cells = <2>; + compatible = "sifive,fu540-c000", "sifive,fu540", "simple-bus"; + ranges; + plic0: interrupt-controller@c000000 { + #interrupt-cells = <1>; + compatible = "sifive,plic-1.0.0"; + reg = <0x0 0xc000000 0x0 0x4000000>; + riscv,ndev = <53>; + interrupt-controller; + interrupts-extended = < + &cpu0_intc 0xffffffff + &cpu1_intc 0xffffffff &cpu1_intc 9 + &cpu2_intc 0xffffffff &cpu2_intc 9 + &cpu3_intc 0xffffffff &cpu3_intc 9 + &cpu4_intc 0xffffffff &cpu4_intc 9>; + }; + prci: clock-controller@10000000 { + compatible = "sifive,fu540-c000-prci"; + reg = <0x0 0x10000000 0x0 0x1000>; + clocks = <&hfclk>, <&rtcclk>; + #clock-cells = <1>; + }; + uart0: serial@10010000 { + compatible = "sifive,fu540-c000-uart", "sifive,uart0"; + reg = <0x0 0x10010000 0x0 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <4>; + clocks = <&prci PRCI_CLK_TLCLK>; + status = "disabled"; + }; + uart1: serial@10011000 { + compatible = "sifive,fu540-c000-uart", "sifive,uart0"; + reg = <0x0 0x10011000 0x0 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <5>; + clocks = <&prci PRCI_CLK_TLCLK>; + status = "disabled"; + }; + i2c0: i2c@10030000 { + compatible = "sifive,fu540-c000-i2c", "sifive,i2c0"; + reg = <0x0 0x10030000 0x0 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <50>; + clocks = <&prci PRCI_CLK_TLCLK>; + reg-shift = <2>; + reg-io-width = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + qspi0: spi@10040000 { + compatible = "sifive,fu540-c000-spi", "sifive,spi0"; + reg = <0x0 0x10040000 0x0 0x1000 + 0x0 0x20000000 0x0 0x10000000>; + interrupt-parent = <&plic0>; + interrupts = <51>; + clocks = <&prci PRCI_CLK_TLCLK>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + qspi1: spi@10041000 { + compatible = "sifive,fu540-c000-spi", "sifive,spi0"; + reg = <0x0 0x10041000 0x0 0x1000 + 0x0 0x30000000 0x0 0x10000000>; + interrupt-parent = <&plic0>; + interrupts = <52>; + clocks = <&prci PRCI_CLK_TLCLK>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + qspi2: spi@10050000 { + compatible = "sifive,fu540-c000-spi", "sifive,spi0"; + reg = <0x0 0x10050000 0x0 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <6>; + clocks = <&prci PRCI_CLK_TLCLK>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + eth0: ethernet@10090000 { + compatible = "sifive,fu540-c000-gem"; + interrupt-parent = <&plic0>; + interrupts = <53>; + reg = <0x0 0x10090000 0x0 0x2000 + 0x0 0x100a0000 0x0 0x1000>; + local-mac-address = [00 00 00 00 00 00]; + clock-names = "pclk", "hclk"; + clocks = <&prci PRCI_CLK_GEMGXLPLL>, + <&prci PRCI_CLK_GEMGXLPLL>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pwm0: pwm@10020000 { + compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; + reg = <0x0 0x10020000 0x0 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <42 43 44 45>; + clocks = <&prci PRCI_CLK_TLCLK>; + #pwm-cells = <3>; + status = "disabled"; + }; + pwm1: pwm@10021000 { + compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; + reg = <0x0 0x10021000 0x0 0x1000>; + interrupt-parent = <&plic0>; + interrupts = <46 47 48 49>; + clocks = <&prci PRCI_CLK_TLCLK>; + #pwm-cells = <3>; + status = "disabled"; + }; + + }; +}; diff --git a/arch/riscv/dts/hifive-unleashed-a00.dts b/arch/riscv/dts/hifive-unleashed-a00.dts new file mode 100644 index 0000000000..88cfcb96bf --- /dev/null +++ b/arch/riscv/dts/hifive-unleashed-a00.dts @@ -0,0 +1,96 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2018-2019 SiFive, Inc */ + +#include "fu540-c000.dtsi" + +/* Clock frequency (in Hz) of the PCB crystal for rtcclk */ +#define RTCCLK_FREQ 1000000 + +/ { + #address-cells = <2>; + #size-cells = <2>; + model = "SiFive HiFive Unleashed A00"; + compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000"; + + chosen { + stdout-path = "serial0"; + }; + + cpus { + timebase-frequency = ; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x2 0x00000000>; + }; + + soc { + }; + + hfclk: hfclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <33333333>; + clock-output-names = "hfclk"; + }; + + rtcclk: rtcclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = ; + clock-output-names = "rtcclk"; + }; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +}; + +&qspi0 { + status = "okay"; + flash@0 { + compatible = "issi,is25wp256", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + m25p,fast-read; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; +}; + +&qspi2 { + status = "okay"; + mmc@0 { + compatible = "mmc-spi-slot"; + reg = <0>; + spi-max-frequency = <20000000>; + voltage-ranges = <3300 3300>; + disable-wp; + }; +}; + +ð0 { + status = "okay"; + phy-mode = "gmii"; + phy-handle = <&phy0>; + phy0: ethernet-phy@0 { + reg = <0>; + }; +}; + +&pwm0 { + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; From patchwork Wed Oct 16 14:58:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 858 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3CD283F039 for ; Wed, 16 Oct 2019 16:58:35 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id p15sf14339041plq.4 for ; Wed, 16 Oct 2019 07:58:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571237914; cv=pass; d=google.com; s=arc-20160816; b=cmghAkuJSdh/FOWWRUIuxnpQEJ6fzFZrqKhY0hyLP7YIu6I2lUKwq0AiXVm9zy/maq yn+UuAONimweb1GcsTv6t/D/kUEpoMklNrYzAWhugDHF+o/fMz6gkqG6O6Zffl6zDTUp dcoZ25zVakYA8aOYIJpc1//jLa6sLFxEWpfZuq5mt3eXPJ1418DP7QupMZ6jxM7WhzQM kNX9rEtJ+eT9ccw3bn0xEgueHlkmRWZPhfi9I4vijc0moNG/qa5DD9nrdmj/0z0/2kiI MvU0yCDgQLdCq6KgcTlYen2qj8+eHxHrfPj9YXu/k0CzqyZM+MFUas7PJZsDNOpgLqRL VUXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gvNEwr0gfLkG0NsoD0ts49SPl57V3R9yiEH5SijKt9w=; b=BUkBz+Rx+n/80tHvofoqk42AimdSc4nVHIxN+juRbeskp7EVPdNGQqXfZOlwHwTs+Z zv9bJe252df/FeLhV5Rnkhdd2rDLrgXzT/woRqkkuav9FLbJk36JMkcInzISLqaSmPq2 vesqSk7pkOFPL818lopXdBNZTB9L9fS1NHfI2JM3Uvy6bxXM8EVDVa/Np+el9KjQIffO ThCJAeeufYYAfFBNaFOess7KnmtTQoSgEsbIlJcI5f1CADObNMhDIcgGSZfP4R6KXzi/ seiUxGygZJ3s9TMy8b7C6EFsyO8FWtUyvg/AkxxoLUAd3LETAVqzbBCJpoI6jiGzfchh VtKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p65rCzAv; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=gvNEwr0gfLkG0NsoD0ts49SPl57V3R9yiEH5SijKt9w=; b=HWRxE93iQFOCwIdQrFQdIVZ8jRfGjudmG0zUL+evc+1xJFdowg/b9ZRRWG4o7EZy0x zJhc4jVk75tg009hHBsbF8wedtHm+R3sswCv8ttY2KFQ8AGc2AFZgJ37HrMufeP6WhDi Wts2sf68OMekMz4lQJBReQBhmyQx4KOlXC3d4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=gvNEwr0gfLkG0NsoD0ts49SPl57V3R9yiEH5SijKt9w=; b=ZDyZlylLje6H0psjmRxGrrfiSh0eASizhfOFKbT5+xTZExxS1qdJs49G/6hGE28iKs TTkf4bgwIWt2Co/ApD5i23o/qCz9/5tD+7hTjFWjIoNCBfCNRUmsfEal7KzYEYHtp0Sa juoW9aoN8SgJfs3f8ZOwHwE8baRAxr8KQXPy9wRS0uLpMZ654kM8VyeNGKWyvuhdPped tk8oDw913iMuaxstHqt/zM64FvZj0OBuOsKyv2+100QsbgxY6zVtJFGeFKsEShNwuxZa GbofxYQLg2U53tKv4Kxry7IHHzlE0V7ejmegL7PDWKFyA+92/403XZFUChfKOvfQezSz veKg== X-Gm-Message-State: APjAAAVI7PYqiS2KwhqnnqFckdN9Nra4z3JEpIe3xBGYxilk3CM8NZi6 yE7IH/bSI2dA8WgAMrLCEhOzSmHu X-Google-Smtp-Source: APXvYqwDAeo2kdqsXrBEpfPJybQokTgOLBesZTWN7lhhNZMoNJlnRJRQwMWnH5/4tZ5c9m9o22qRuA== X-Received: by 2002:a63:d151:: with SMTP id c17mr33792667pgj.423.1571237913955; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:8a8c:: with SMTP id x12ls880303pjn.5.gmail; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) X-Received: by 2002:a17:90a:de14:: with SMTP id m20mr5608582pjv.10.1571237913546; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571237913; cv=none; d=google.com; s=arc-20160816; b=07CBuguRqPf+GDzsEiqJi1UInIa0/F5C58Asa3gLebgrwxuerhf88U6OhFldSy4vDN s6t2fTvQZ4X7JdMnFqtRqSwV82KHaoFeqjFMeAsvaWhIgoKTltJ/GyCagBRdWUXM3T2o m7X05r4bg9399mi4RBWmL2XOtQkI4wWw3bgdgQCl53gaqpXobQN/BL88KJ1EzMq2XrYw 4HvBhoQxkqknKE5DCuc7K7TPW/zbsXPKcfgki48XuBWKZNkm9/t4JaN4rb16PBFBE+Yo f9qf0x+ZCHQ0S0O8xRCXUpaP4Nh2VfKMRWG7p66i26ioItnN4oA7k1pVJUCENrFmdvS8 ITWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3BqjJp+ulFFSn+3SG+CtJU6b463eKl02kIBKbwp/zvY=; b=yKeqk6h8adjRKmXEVsooQVQTmOT7rqxJNgJAGBT7aBbxm7mOXfghD9ECqMoHwjRwX/ 7mnFnp7S/Lvj1xrXqXZ6JWsa2dDZNlSapv4c9upkGfK9Hm1rZvKCcoya612OOT/hQ233 6telwUXuZNM+t52JXS2l0YUsqe2daWEyzAimjE2pt+P7TK2eq+yo9ongVSgOPhmQmXGc S6ZKiYRsTMJcgocaP3HcnWwHpS0DaW3MjZyxCZegfg3BtcoVYPl/Ebz0Et19mI5TCP9Q 38Lxujrx/MggsJAqI7hUVH0rB6TI2i+Wj+Im0E6y7dsAwiE7admge6BWDUy4Lxb8myO3 xdlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p65rCzAv; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p7sor3516052pjf.20.2019.10.16.07.58.33 for (Google Transport Security); Wed, 16 Oct 2019 07:58:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:5d0f:: with SMTP id s15mr5558310pji.126.1571237913175; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id q29sm5534110pgc.36.2019.10.16.07.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:58:32 -0700 (PDT) From: Jagan Teki To: Rick Chen , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Bin Meng Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 2/5] sifive: fu540: Enable OF_SEPARATE Date: Wed, 16 Oct 2019 20:28:11 +0530 Message-Id: <20191016145814.19036-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016145814.19036-1-jagan@amarulasolutions.com> References: <20191016145814.19036-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p65rCzAv; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use dts support from U-Boot via OF_SEPARATE instead of depending from opensbi. This would help to make the necessary changes in drivers and devicetrees in uboot tree itself. this feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki --- configs/sifive_fu540_defconfig | 3 ++- doc/board/sifive/fu540.rst | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/sifive_fu540_defconfig b/configs/sifive_fu540_defconfig index 48865e5f11..979d0a0418 100644 --- a/configs/sifive_fu540_defconfig +++ b/configs/sifive_fu540_defconfig @@ -6,6 +6,7 @@ CONFIG_RISCV_SMODE=y CONFIG_DISTRO_DEFAULTS=y CONFIG_FIT=y CONFIG_MISC_INIT_R=y +CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00" CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y -CONFIG_OF_PRIOR_STAGE=y +CONFIG_OF_SEPARATE=y diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst index 7807f5b2c1..91b94ee06f 100644 --- a/doc/board/sifive/fu540.rst +++ b/doc/board/sifive/fu540.rst @@ -58,7 +58,7 @@ firmware. We need to compile OpenSBI with below command: .. code-block:: none - make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH= FW_PAYLOAD_FDT_PATH= + make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH= (Note: Prefer hifive-unleashed-a00.dtb from Linux-5.3 or higher) (Note: Linux-5.2 is also fine but it does not have ethernet DT node) From patchwork Wed Oct 16 14:58:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 859 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 570453F039 for ; Wed, 16 Oct 2019 16:58:38 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id x10sf18831542pfr.20 for ; Wed, 16 Oct 2019 07:58:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571237917; cv=pass; d=google.com; s=arc-20160816; b=hFo9PRSSQqNesNB9jZ5SU6GJISjV1dtv81oyTVaLEAAmrK8FV48JTJA54BIHbYXkKB BNqiED7akJL3ywXgbE8Zv+MB78FH+xd1Wq9Fkml3vHRokQF1g8Dh4XfZHTHhJBHyrJiN 2pfm1uB9U/2HyCztOSmAL1GVfN1sJtmvtOfme48bT9eQo5hbYXsAEZ6KWFLEih/vGpNG IIUPa6PbDA6KkYHR5HqH+/zrBgOFNVYvupllZAxQYISYgn1l83j5g/n2oV7ugv0VKEt7 0XzTtchwPNw1b8+CAhv1i3fACBoZNDuePOgHG1OdZCk58pDKmpb3v1KS5bAdlUqhqyGC Louw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=s0/7BBFRPgFdAXjWb9DGAre+ncwYAQ8PEfD41SEdIbo=; b=VxXX+rwXj/6KHR/Jj9MeVpK65XflHjLg/9hMsbdzoispvpvvQFpeP4Jj4Mr4c7sCRV Yhovylv9GlhZ6i37P3owhYwpc0pjr/QgEl5mq7dBpBU2UnsHCy9YMQEyCnGm+n1vuv/9 97YkIoL+KdpAr8UG/9/LSJ2qH8U+j7wVPNgscstltI/87+H91EpRjAeCWVMynCZvykGb ShZgkvwUAldbTP/vy7lU4x+7uyl1Bwxp7l/AfUvkR0z9kgAlSKvrzJRNs9u20v0W0rEy H3WsTvLowSG5oss5lWQa7lXVRPXFj2w9ZzZWkUEdusoFpUKhUkgb9jMLEwVTH+0UQjqq fLQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZKjr7dlb; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=s0/7BBFRPgFdAXjWb9DGAre+ncwYAQ8PEfD41SEdIbo=; b=YDKz1OAbsDIRqwl51UHpVvG6R5RMQsdQst8w+M0JGuBjimMljuT4tGmsTxl7+jLzJ7 QqYJDWBKOZJGvwx4nFKJ/kLJTPEtPqEfJidu/RSmXDBwYCchZnIXl0astXbCKdwZnrUW 1IgbyW35yslPvdrzX6NC4ggQGBLVOf11Eizf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=s0/7BBFRPgFdAXjWb9DGAre+ncwYAQ8PEfD41SEdIbo=; b=dmf29z1PLxhvUVHgH1+DX1nUkhgoTZW0Rb9Qt1fB5yVKUt2GPKH+35Can3Uj40Nm25 FAnLadR5EdJobP68vPoaks+2TV3moKQt+10iJgx1cQg3LsgS2uO7UEt9FD+yPyfKRaiz WpBvzD+4l2CmdLo7YFXkrtTCoMJMbqFjUmIMzmwjiQsMbpMkdxI/VmMjytluN+bYhuub ND5MqKY8zzmQLQkP07PY4j8rS/R2JD0oefTpwb1rIRMK2RyXMgvxp0NYEbIiavbQAT9Z jxtYL+wtQ6GpMONMUhqIr22NjxKqj1APS2DXyy0FCH5CmZjJsOsbr5OBkqa/QilzUt+g Pqgw== X-Gm-Message-State: APjAAAWIxZf7RwpMsf9On/M3DiHrEkxl8hiHluFtR1mwfOvid9RuQ1AP mk6Ueq5PDTCDCiRbQrc5T1SkDSRM X-Google-Smtp-Source: APXvYqy/21A0xn91HCXYD57q6oC3H/UQYDdhE0ylRGQQIP5+/5/Dt4lBs3XzEUYP2TWry4xXB8O81A== X-Received: by 2002:aa7:9289:: with SMTP id j9mr45186131pfa.70.1571237917167; Wed, 16 Oct 2019 07:58:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4458:: with SMTP id t24ls5836007pgk.4.gmail; Wed, 16 Oct 2019 07:58:36 -0700 (PDT) X-Received: by 2002:aa7:956a:: with SMTP id x10mr45397294pfq.114.1571237916669; Wed, 16 Oct 2019 07:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571237916; cv=none; d=google.com; s=arc-20160816; b=Fts4GyjvDlZV8Pb2x0hv4jD03TwFU1kypiFfXE9jCJ97QCaUnFfdusAMDEG/o6ZZdz C4yCs4FndyQMl9mkEmtOmH7yan75W6Gp3xzzL06bn2SAqnKv9+5FYn9y8Rzlc+FOsF5h u3mGyHPpsr7C72ZN4KGTE5F7dddEkuemTxIIJspT92GyzaR2J+SHxV6WGClfyqjIVACG 39AG3eXeKh2RY/z1Kxg4NLItGJ+zF3PmScUTmlOc095fAKLt/vq9lm1Y+YXzv56vypoR 16U6va3PQeI/vcQCQg4KgTq+zZdWYXTXSkE20A4h++R7Z1XD/IWe7JnamEAR0OhsZyoA ChPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=20VlbFnkHE/Hf/2m8B1RQ50+Fs0CsojlBBg26jtu/4o=; b=lEImKNvS2OkSu0OHUZ4k61RHWA9Q+i1PsgvILlauiONrclWBmylXaq1N/rBesTaAe7 6NYPn19FaR7RXYHljToYv8PlNaBvl6RK4ZnNykXvqc4axU1D6rbCFkPUVyqV0QElmhYC oHTZggqfrdUFGhtjqCYgU3QwTGurCxWVNVjcKLm9qzjPwLuFcrQ8+hlEItHahjoiwjNt TdfafcepFVFEp/KkQCTtM/DXQ2LWdIe8dL8UPoMkcx5vIRG5Vn4LmxN0uUgxMz0ZXFnq /o6rDt1oilmSMmbU41QnbZuZsZ49a319gl//eBCU8b78pQvhZ2bUhSgq3d/Ec+Ujm+F1 2gNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZKjr7dlb; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id k20sor32115576pll.2.2019.10.16.07.58.36 for (Google Transport Security); Wed, 16 Oct 2019 07:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:a514:: with SMTP id s20mr40953302plq.157.1571237916308; Wed, 16 Oct 2019 07:58:36 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id q29sm5534110pgc.36.2019.10.16.07.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:58:35 -0700 (PDT) From: Jagan Teki To: Rick Chen , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Bin Meng Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 3/5] mtd: spi-nor: ids: Add is25wp256 chip Date: Wed, 16 Oct 2019 20:28:12 +0530 Message-Id: <20191016145814.19036-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016145814.19036-1-jagan@amarulasolutions.com> References: <20191016145814.19036-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZKjr7dlb; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add is25wp256, chip to spi-nor id table. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 6996c0a286..04db986561 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -128,6 +128,8 @@ const struct flash_info spi_nor_ids[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { INFO("is25wp128", 0x9d7018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, + { INFO("is25wp256", 0x9d7019, 0, 64 * 1024, 512, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, #endif #ifdef CONFIG_SPI_FLASH_MACRONIX /* MACRONIX */ /* Macronix */ From patchwork Wed Oct 16 14:58:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 860 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CA5063F039 for ; Wed, 16 Oct 2019 16:58:41 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id w11sf14340651ply.6 for ; Wed, 16 Oct 2019 07:58:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571237920; cv=pass; d=google.com; s=arc-20160816; b=ewgcfT/BElspQV+3jgxRTcz0s5GaEUdp4Wej5XvboEiJUZWQoRNM+QAX9m+NJObRv/ E0VQ7GBsdzTOao35XelBp9EF15mwJZvXlhwzoyFjDuYCKBXrfKmPPvuCO+8/Pb3WeweI to8RNMxGY3tnXGzUKpQFJbTGO/PhMrhzWCAFs2HVkZvhmVxOhOQpL1UL7ptuIllqS7Za dz+1NgwkGrHo76vmvtczrvMemhbBZxR6UjGzvXG3/Atu6Wppecw1ZUJMYQ2uDLtC2llI prafnLXrJ/UyhvuNXbl25QqXcfiYulGg5wfmeBA88T6VWzpnZUDmh0YY+T2rxHP0XlLt ovgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=G7sbcSxLF+3XkUxgAbdXlrYRoUGIuAfYozLpSZnSVAg=; b=P6hDgh7tkEP7YCTvDKOvG75wqy8H59uI7fBObxZ94vVjxW5/TOYiaoHln9m7q17IIp n0+bgLMfQq7tGqHBnPjl/VfwR8TadWJfVr+BT6tMzzcZsywe6YEuH47kNZVcJ2nEvz2K 5EnzRu+vF0gOfN55qAigJbztIjRAAs6Dc6hqR0WGJdEpotifBnygyW13FrzG1BFjs5oE lR4btIUZ+JhiyFXEu4IbstIU8pzKpIJ0EfTJqTR5LD8rTyyBZt3mG66l3nDNPYrlILgU HriogAjhhBCRZoskJy/++OItL+UHJx/3YQb8n9t2/OnC9QuLjJXbf+nB6ycAlm5tzLaf j/lw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PvSNDpQ9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=G7sbcSxLF+3XkUxgAbdXlrYRoUGIuAfYozLpSZnSVAg=; b=GvasaEm+sl7WLZTzvECiRvylxNjECPYAZGQgRnceLalPyKrjyOAyJU4v1yxD79IeCW ZprxKCKZVO1MoZcd4y6x+Iz1pu2SpVjFhcVByrw+FlKNen4Y92u2eK2DisCSEaDNgRXK QRy1AbOTX80dh4x1ddcHacmRxNXD1oFZoezRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=G7sbcSxLF+3XkUxgAbdXlrYRoUGIuAfYozLpSZnSVAg=; b=t6mIlNsWd5iB7Ss96vWcNv1qFG4Adf6BV8GeyUvdeDHGKRsrZkt4Ro1oJl8ylm7KrZ yvhq58oUYZ7FkiP9AjfjtsmE8UGD9UmVEd0Mw5TXajbQKjKqSd/5ZWIKiXemUrPDd35g EFvEdf/N/c1402REuu9dOXALA5e/7Sn5u9yDRquahYRxq3o2rLjlewc6T9/OFxBTitod 9a5+r7bZtrzzkZ5FgTiM9Zu2lAHbVcWSEPTaVQ8vfEsMtNhwzrif6QMv9gu9XHacclH4 NY2NBfEqeU5l+aan+6DXBs6l6IGMlZR0tYLb0z467XI46h6e9VbDc57tXvHeQvwGOZet Ty9A== X-Gm-Message-State: APjAAAXxw2ag4IG6KKUCA8zGdGCHt3sb1gef98ZQ+vtsdngyqbXxlbzb vhMkn5VpXt3i1LRdSbpZEFPdu14U X-Google-Smtp-Source: APXvYqwICt4J9NKoVV53WQYrBsaVfgooS/rD9kV5DPHLXO25dZUTMdCDCsOAd25b4FCZM7v2AZwXVw== X-Received: by 2002:a63:710:: with SMTP id 16mr18999797pgh.329.1571237920454; Wed, 16 Oct 2019 07:58:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4d1:: with SMTP id 200ls5822026pge.16.gmail; Wed, 16 Oct 2019 07:58:40 -0700 (PDT) X-Received: by 2002:a63:6f0c:: with SMTP id k12mr43215362pgc.97.1571237919849; Wed, 16 Oct 2019 07:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571237919; cv=none; d=google.com; s=arc-20160816; b=d2r+8QGIl4Wh+i4EX027SMvDo8CuNz4rhrOHwAOPeP2TPKb2pTm1Dl22dcCmtB4jey CFech6dpfLS1XurXHNprqRr/y8oQ+K96cCoyZV8umSUZcb9s9L2a3WcE3CWDYJfJnJ6c Xj46bU2IvNhmHGxWWeIXRF3dAM11zw2+a/og9Z3iKe6gx4s4wHUncNSiQOwpQQ+BcdhB 3IffCWTVDo4aByfMCPUBgKEIbYrhZR9mZL1aevqt5GUrEfS+T5o1J4Tg6A+7rjRBy8PB fogMfewTYHQIvOWQNvZfOH8tLRfdRl+l7sBBj34r8EePIqdjH3WqVLphcM/QITmThPt4 liEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=WCrSXHULd2WrBjIQ3nvzpUExJcEaw9mMZr11Mt1cgm0=; b=qvhIf7TL4AVkkKeUl/vM7fMv2THpfIgPOWZdB5H5MNXiSnLvhQKCjUKwiJjmRwMS+W AUEo88P9eZXpkl2kH59WQN01+CiUL3sDX3Rj9LlDR9vohir1QH+bXzV3siU5ynFrO1Y1 ZhfGw2cUjL3RPOc+MJ6OC0N6nnev5W2PXq50sDNGmmKGuD7UFUy4gtKt8ZIytn5Uny3s TQ5Y3ZQ1iIsgyQwSRx7mO4dL9fLKdkStGwQcB+48VmKYGU3/s5Cm1PVXCXDqgbExLQNt q6siEuo5EBH8djzl0AUBFizjq4L75DAI2FnGkGkmtOKOnoj5k9s9obNaRR07vdhda/ST m1vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PvSNDpQ9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g2sor32072205plj.52.2019.10.16.07.58.39 for (Google Transport Security); Wed, 16 Oct 2019 07:58:39 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:a581:: with SMTP id az1mr40718752plb.311.1571237919464; Wed, 16 Oct 2019 07:58:39 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id q29sm5534110pgc.36.2019.10.16.07.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:58:39 -0700 (PDT) From: Jagan Teki To: Rick Chen , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Bin Meng Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi Date: Wed, 16 Oct 2019 20:28:13 +0530 Message-Id: <20191016145814.19036-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016145814.19036-1-jagan@amarulasolutions.com> References: <20191016145814.19036-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PvSNDpQ9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add u-boot specific dts file for hifive-unleashed-a00, this would help to add u-boot specific properties and other node changes without touching the base dts(i) files which are easy to sync from Linux. Added spi2 alias for qspi2 as an initial u-boot specific property change. spi probing in current dm model is very much rely on aliases numbering. even though the qspi2 can't comes under any associated spi nor flash it would require to specify the same to make proper binding happen for other spi slaves. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng --- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi new file mode 100644 index 0000000000..25ec8265a5 --- /dev/null +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +/ { + aliases { + spi2 = &qspi2; + }; +}; From patchwork Wed Oct 16 14:58:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 861 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DAF313F039 for ; Wed, 16 Oct 2019 16:58:44 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id 194sf18867770pfu.3 for ; Wed, 16 Oct 2019 07:58:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571237923; cv=pass; d=google.com; s=arc-20160816; b=NWe1Mxt+CLp8E5CbQe8XbDVaJ+oOxXi0bsomxI0d1Sdnj6BiQqfnYds1YtQQ9Ov0H1 S3SNYW1+lbpErpytcDbPChVHT7iq34080c1XrAKp0wiFdJco5EK7F2xfUA0hk3AAFK1B wUBfaHZhbw6AFN1QrFExnBcnfX0wwMuMTQKwRXfFqP+FQs7SxYBOph8yNyegkqdh8uEu bgFxYlrpfNVtODCd8HXetByCPQ3tF7eE6A6l4/9Vypkqzfl/N6gFBhX3OLZYygQ1DiLW DO9/qCzZ6r3R6+8Jf+KB5ifeXJb+0651Q6sUOjC+CaxyIw6wR/c8kzbTlk27UEMVp0o7 1y4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0or0KJMOgzDNfkhnupQFMwOctH362uVwYDp+Rps5t4A=; b=Rjd3oP6fw99DOL5PWfG6urF+T/bwDU/oAUDnO6AKPNnbrr4znvmwrtn6XQQayZeoiT nAjfN6YTHBYpWBcKoYpUlLkXqv7e7LXMRyhdnGexQu9ot4uVk6JUf8zA0ou7eYJEKWGI BYSnB8MYKpkjGJqzQZD7YS/Agx+62x5epJHHO3s5+M1hDh/CKdim+Yvw5zALyjXz9pVV EypXH9+3Y33UIek7R7NseL90DdkN7m0+aK9FPcg/BmKwaVnfxOTXM1GoLvq59fQhl2Ae EeWXXvLMO01Y9iqTMZS8YlGRVA512CpG9kG0E5Cg8JjkVuNg4vTzX6rB8KHw0lnUWeuz rlSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EHDGwzfT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=0or0KJMOgzDNfkhnupQFMwOctH362uVwYDp+Rps5t4A=; b=EkAAkxqiV2uQN4KzuV3Yt2ej8DkiaapuprLuwCI0MA/2B1XVq7/tYBIOVaR7Q8xRIu 3dBuXNcb0+llwaIpuR3bsUPNGY6BR6Yak4ONSvjDJE0nlQVj0EGGhwSv4Js6S4zcT6Az uDDKV87hnkqjP6RCOI1E1wT177aa8704ULkvk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=0or0KJMOgzDNfkhnupQFMwOctH362uVwYDp+Rps5t4A=; b=V4t/nNHUXeDR/nlwUJJLS2NQtwrowHCEbZP8dYvvlKp4/OWgZqiFKog1hWYRAlP8FU DiYQqxqd3A89liWRaCTebt4vNVHaLByyJcCfj/2sKrYebsOmts684iF2MUN9qEqLt9w1 EeviODkDW5xAi1UKvCpjZPnn6nZi8cr84txKWmkte9x0wSTF7rQupMXWs54PaoaQd8O3 1I5J/1CpO3X9MTNIb01JGBvpSfNEGUdQVhmGAbvx9AaIA2nwbdWwQ0DzWjpf975skD4W B9vMF2C/smx71OccVuQdAuxbJxMf51guGwCdDvyLQignfNsZvgTpaf3ktEmEeJTNO7h/ m/Dw== X-Gm-Message-State: APjAAAVbTHQD2+tQ34BIqJ8Ctg6FX8bq1URDZPueviITqDq286XxY0/H c70nnxxRdE9MGwIX3RUkMmEL+Xg1 X-Google-Smtp-Source: APXvYqzfLkKi7NPksLWlqX0nR2xFHIV6+MV5AtfCrDZxtHuGJ6i2Sb0d80Ce4CXvJiynxnJedyHdDQ== X-Received: by 2002:a63:3c19:: with SMTP id j25mr1518493pga.12.1571237923572; Wed, 16 Oct 2019 07:58:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:2766:: with SMTP id o93ls881351pje.4.gmail; Wed, 16 Oct 2019 07:58:43 -0700 (PDT) X-Received: by 2002:a17:902:b097:: with SMTP id p23mr41804845plr.122.1571237923028; Wed, 16 Oct 2019 07:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571237923; cv=none; d=google.com; s=arc-20160816; b=VhPn+l2iDzRZbwlxJkO2QdF4fwYi6Lf8n4mjAII9j82SkCBng2M8UADTnfMXvjwo8H 1x1ti57zuCiJWzHFRJq6wZ3vn50t1SFWhmL1NZvN4TovShhKH1s7LozzsK9pgrM0Eko5 8IkPow04/YAHGhJEo9j5WrOQ/XKdw/X4S/aIBPZmGEK0Un8UB8rxo/xMl5q3zym2IyEL UminnHifbpjp0tFKVZucgcYboJPbWpTyj3xJqNXatoZojYiyZp/X5nv45zoIvm7Q32dw jQNPP2wdSWUXcYFBToN3ODjvCyaIhGUQQr/1VkaItykqsINIZ5NA3zOKmV/xjOjNLlsZ dx+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SOCVAvPsRYDpSRDxPEOCO6YNiPCeKidJufsPcI7teE8=; b=Al4GDSYUW87imnUCseT5Q4vMV5ZNQ2o26qBxoABHwXqULlAfqlXoBHPhdkoR34IcnI X9jF0JLBmrIBlQySTGgChJijd5PLwKgmew5c8uyZyT0wdfWCC6vLWDkD0ITraST4b+8M CZnvKMO4qaKQeuZUC7D5TbvXKbQW1i+3OF1nEm+csls3VZkmNGbQe2ShgVrbDbCGkVkF y0NK3AAk4o5zaWZcNYqsWCsceTrA352e4X4+ch0GbP7xP0NYpcRlEh4e+uU0mrLK2vGK a8Ia5XoxfPxedOoBkC14PtisCfYOvSiqtMWhq3LgmD0ZIuGTTvPGaRu1bbL09PJLA5Hv TUNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EHDGwzfT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h6sor3604411pjb.11.2019.10.16.07.58.43 for (Google Transport Security); Wed, 16 Oct 2019 07:58:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:e98d:: with SMTP id v13mr5579095pjy.64.1571237922600; Wed, 16 Oct 2019 07:58:42 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id q29sm5534110pgc.36.2019.10.16.07.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:58:42 -0700 (PDT) From: Jagan Teki To: Rick Chen , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Bin Meng Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support Date: Wed, 16 Oct 2019 20:28:14 +0530 Message-Id: <20191016145814.19036-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016145814.19036-1-jagan@amarulasolutions.com> References: <20191016145814.19036-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EHDGwzfT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , HiFive Unleashed A00 support is25wp256 spi-nor flash, So enable the same and add test result log for future reference. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- .../dts/hifive-unleashed-a00-u-boot.dtsi | 1 + board/sifive/fu540/Kconfig | 3 +++ doc/board/sifive/fu540.rst | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi index 25ec8265a5..d7a64134db 100644 --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi @@ -5,6 +5,7 @@ / { aliases { + spi0 = &qspi0; spi2 = &qspi2; }; }; diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig index 5d65080429..c5a1bca03c 100644 --- a/board/sifive/fu540/Kconfig +++ b/board/sifive/fu540/Kconfig @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply CMD_FS_GENERIC imply CMD_NET imply CMD_PING + imply CMD_SF imply CLK_SIFIVE imply CLK_SIFIVE_FU540_PRCI imply DOS_PARTITION @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply SIFIVE_SERIAL imply SPI imply SPI_SIFIVE + imply SPI_FLASH + imply SPI_FLASH_ISSI imply MMC imply MMC_SPI imply MMC_BROKEN_CD diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst index 91b94ee06f..2e70cad02e 100644 --- a/doc/board/sifive/fu540.rst +++ b/doc/board/sifive/fu540.rst @@ -366,3 +366,22 @@ load uImage. Please press Enter to activate this console. / # + +Sample spi nor flash test +------------------------- + +.. code-block:: none + + => sf probe 0:2 + SF: Detected is25wp256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB + => sf erase 0x1000000 0x100000 + SF: 1048576 bytes @ 0x1000000 Erased: OK + => mw.b 0xc0000000 0xaa 0x100000 + => sf write 0xc0000000 0x1000000 0x100000 + device 0 offset 0x1000000, size 0x100000 + SF: 1048576 bytes @ 0x1000000 Written: OK + => sf read 0xf0000000 0x1000000 0x100000 + device 0 offset 0x1000000, size 0x100000 + SF: 1048576 bytes @ 0x1000000 Read: OK + => cmp.b 0xf0000000 0xc0000000 0x100000 + Total of 1048576 byte(s) were the same