Minor RISC-V fixes and one defconfig update for the v5.2-rc series.
The fixes have no functional impact: - Fix some comment text in the memory management vmalloc_fault path. - Fix some warnings from the DT compiler in our newly-added DT files. - Change the newly-added DT bindings such that SoC IP blocks with external I/O are marked as "disabled" by default, then enable them explicitly in board DT files when the devices are used on the board. This aligns the bindings with existing upstream practice. - Add the MIT license as an option for a minor header file, at the request of one of the U-Boot maintainers. The RISC-V defconfig update builds the SiFive SPI driver and the MMC-SPI driver by default. The intention here is to make v5.2 more usable for testers and users with RISC-V hardware. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElRDoIDdEz9/svf2Kx4+xDQu9KksFAl0WljgACgkQx4+xDQu9 KksbXQ//fohS8vHCMCkqj3rtKM3fuf9DRdZZbZf0WdPL5463JxTTK8JULrrawjL5 j57Ve/EFRQFVSELBtWd0u/4sgAcgGmyJWnfexk3LYISNMZCjBe6Zuz+7Q9Ykbhoa YKpjOreDeO+fbQpGqMHK2suD5WFVXsDfiI3TmHE6xGIm0sWdpANawpz2K4CzBkEO XOaOsmVPT8HfN2f0XodCmzo2VrGNeEutqyxc9+X1Ah0nxBecj56t9TK9wnseTWrE hWjnMw2KMZFTnmtOOQ8kB0EfcRDZ8AvXymAb1BHwuWwmxLFrGELsGKRWzrH+qhyT 4mlexMjdyz69N1uYWieO6FWGMqbIm+ncR7cMwIl2hOErtJiSoUf5cwGhflXMk9ph b/oWmNzLGE/7ib/Uo1tfaBmdEYzlzziEtkB0DDWIf16wqMVK5zyoPknnHC7WPIBa 7WyN+2FKA7b0440Kqfywgq9CMZ3odvhXCLAEmFBdwaa9wyKGsOR6sUZhPXGUSjyL oKe4oszbKmqaUboxTo/YzDYHpD4BPGoBMievY8kCO+TcewN2ARczJngQyc2FLS+B BUMFZmTUr85pt1pcnNqK84D5N6alldLqLbKwczYq3PvtHzIR2kFUfZGMwQ0DlEh2 IOJMDcmHehuCmCAz4jnNykOlJPDIMIYiVLeUtGp+1IwZjcvLfxg= =+HL9 -----END PGP SIGNATURE----- Merge tag 'riscv-for-v5.2/fixes-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux Pull RISC-V fixes from Paul Walmsley: "Minor RISC-V fixes and one defconfig update. The fixes have no functional impact: - Fix some comment text in the memory management vmalloc_fault path. - Fix some warnings from the DT compiler in our newly-added DT files. - Change the newly-added DT bindings such that SoC IP blocks with external I/O are marked as "disabled" by default, then enable them explicitly in board DT files when the devices are used on the board. This aligns the bindings with existing upstream practice. - Add the MIT license as an option for a minor header file, at the request of one of the U-Boot maintainers. The RISC-V defconfig update builds the SiFive SPI driver and the MMC-SPI driver by default. The intention here is to make v5.2 more usable for testers and users with RISC-V hardware" * tag 'riscv-for-v5.2/fixes-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: mm: Fix code comment dt-bindings: clock: sifive: add MIT license as an option for the header file dt-bindings: riscv: resolve 'make dt_binding_check' warnings riscv: dts: Re-organize the DT nodes RISC-V: defconfig: enable MMC & SPI for RISC-V
This commit is contained in:
commit
c57582adfd
|
@ -152,17 +152,19 @@ examples:
|
||||||
- |
|
- |
|
||||||
// Example 2: Spike ISA Simulator with 1 Hart
|
// Example 2: Spike ISA Simulator with 1 Hart
|
||||||
cpus {
|
cpus {
|
||||||
cpu@0 {
|
#address-cells = <1>;
|
||||||
device_type = "cpu";
|
#size-cells = <0>;
|
||||||
reg = <0>;
|
cpu@0 {
|
||||||
compatible = "riscv";
|
device_type = "cpu";
|
||||||
riscv,isa = "rv64imafdc";
|
reg = <0>;
|
||||||
mmu-type = "riscv,sv48";
|
compatible = "riscv";
|
||||||
interrupt-controller {
|
riscv,isa = "rv64imafdc";
|
||||||
#interrupt-cells = <1>;
|
mmu-type = "riscv,sv48";
|
||||||
interrupt-controller;
|
interrupt-controller {
|
||||||
compatible = "riscv,cpu-intc";
|
#interrupt-cells = <1>;
|
||||||
};
|
interrupt-controller;
|
||||||
};
|
compatible = "riscv,cpu-intc";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
...
|
...
|
||||||
|
|
|
@ -163,6 +163,7 @@
|
||||||
interrupt-parent = <&plic0>;
|
interrupt-parent = <&plic0>;
|
||||||
interrupts = <4>;
|
interrupts = <4>;
|
||||||
clocks = <&prci PRCI_CLK_TLCLK>;
|
clocks = <&prci PRCI_CLK_TLCLK>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
uart1: serial@10011000 {
|
uart1: serial@10011000 {
|
||||||
compatible = "sifive,fu540-c000-uart", "sifive,uart0";
|
compatible = "sifive,fu540-c000-uart", "sifive,uart0";
|
||||||
|
@ -170,6 +171,7 @@
|
||||||
interrupt-parent = <&plic0>;
|
interrupt-parent = <&plic0>;
|
||||||
interrupts = <5>;
|
interrupts = <5>;
|
||||||
clocks = <&prci PRCI_CLK_TLCLK>;
|
clocks = <&prci PRCI_CLK_TLCLK>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
i2c0: i2c@10030000 {
|
i2c0: i2c@10030000 {
|
||||||
compatible = "sifive,fu540-c000-i2c", "sifive,i2c0";
|
compatible = "sifive,fu540-c000-i2c", "sifive,i2c0";
|
||||||
|
@ -181,6 +183,7 @@
|
||||||
reg-io-width = <1>;
|
reg-io-width = <1>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
qspi0: spi@10040000 {
|
qspi0: spi@10040000 {
|
||||||
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
|
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
|
||||||
|
@ -191,6 +194,7 @@
|
||||||
clocks = <&prci PRCI_CLK_TLCLK>;
|
clocks = <&prci PRCI_CLK_TLCLK>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
qspi1: spi@10041000 {
|
qspi1: spi@10041000 {
|
||||||
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
|
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
|
||||||
|
@ -201,6 +205,7 @@
|
||||||
clocks = <&prci PRCI_CLK_TLCLK>;
|
clocks = <&prci PRCI_CLK_TLCLK>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
qspi2: spi@10050000 {
|
qspi2: spi@10050000 {
|
||||||
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
|
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
|
||||||
|
@ -210,6 +215,7 @@
|
||||||
clocks = <&prci PRCI_CLK_TLCLK>;
|
clocks = <&prci PRCI_CLK_TLCLK>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
status = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&qspi0 {
|
&qspi0 {
|
||||||
|
status = "okay";
|
||||||
flash@0 {
|
flash@0 {
|
||||||
compatible = "issi,is25wp256", "jedec,spi-nor";
|
compatible = "issi,is25wp256", "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
|
@ -69,6 +69,7 @@ CONFIG_VIRTIO_MMIO=y
|
||||||
CONFIG_CLK_SIFIVE=y
|
CONFIG_CLK_SIFIVE=y
|
||||||
CONFIG_CLK_SIFIVE_FU540_PRCI=y
|
CONFIG_CLK_SIFIVE_FU540_PRCI=y
|
||||||
CONFIG_SIFIVE_PLIC=y
|
CONFIG_SIFIVE_PLIC=y
|
||||||
|
CONFIG_SPI_SIFIVE=y
|
||||||
CONFIG_EXT4_FS=y
|
CONFIG_EXT4_FS=y
|
||||||
CONFIG_EXT4_FS_POSIX_ACL=y
|
CONFIG_EXT4_FS_POSIX_ACL=y
|
||||||
CONFIG_AUTOFS4_FS=y
|
CONFIG_AUTOFS4_FS=y
|
||||||
|
@ -84,4 +85,8 @@ CONFIG_ROOT_NFS=y
|
||||||
CONFIG_CRYPTO_USER_API_HASH=y
|
CONFIG_CRYPTO_USER_API_HASH=y
|
||||||
CONFIG_CRYPTO_DEV_VIRTIO=y
|
CONFIG_CRYPTO_DEV_VIRTIO=y
|
||||||
CONFIG_PRINTK_TIME=y
|
CONFIG_PRINTK_TIME=y
|
||||||
|
CONFIG_SPI=y
|
||||||
|
CONFIG_MMC_SPI=y
|
||||||
|
CONFIG_MMC=y
|
||||||
|
CONFIG_DEVTMPFS_MOUNT=y
|
||||||
# CONFIG_RCU_TRACE is not set
|
# CONFIG_RCU_TRACE is not set
|
||||||
|
|
|
@ -272,9 +272,6 @@ vmalloc_fault:
|
||||||
* entries, but in RISC-V, SFENCE.VMA specifies an
|
* entries, but in RISC-V, SFENCE.VMA specifies an
|
||||||
* ordering constraint, not a cache flush; it is
|
* ordering constraint, not a cache flush; it is
|
||||||
* necessary even after writing invalid entries.
|
* necessary even after writing invalid entries.
|
||||||
* Relying on flush_tlb_fix_spurious_fault would
|
|
||||||
* suffice, but the extra traps reduce
|
|
||||||
* performance. So, eagerly SFENCE.VMA.
|
|
||||||
*/
|
*/
|
||||||
local_flush_tlb_page(addr);
|
local_flush_tlb_page(addr);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0 */
|
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2019 SiFive, Inc.
|
* Copyright (C) 2018-2019 SiFive, Inc.
|
||||||
* Wesley Terpstra
|
* Wesley Terpstra
|
||||||
|
|
Loading…
Reference in New Issue