[PATCH v2 0/8] canaan k210 SoC fixes

Niklas Cassel Niklas.Cassel at wdc.com
Tue Mar 1 11:35:38 CET 2022


From: Niklas Cassel <niklas.cassel at wdc.com>

Hello there,

This series improves the support for the canaan k210 SoC.

Patch 1 renames a few compatible strings so that the k210 compatible
strings are identical to the ones used in Linux.

Patch 2 add missing power bus clocks, which is needed if supplying
the u-boot device tree to Linux.

Patch 3 changes two device tree properties into one, in order to
be identical to the property used in Linux.

Patch 4 changes the PLIC device tree node so that we actually configure
the PLIC the way that we think we do, when booting Linux with the u-boot
device tree. (The ordering matters.)

Patch 5 is a workaround for a k210 specific HW bug in the DW SPI.

Patch 6 is a generic bug fix for the DW SPI driver which avoids an IRQ
storm which otherwise causes the k210 to hang when booting Linux.

Patch 7-8 are bug fixes for the pinctrl driver used on k210.


Changes since v1:
-Incorporated Sean's review comments from V1.
-Picked up Sean's Reviewed-by tags.
-Added a new patch, patch 4.


Kind regards,
Niklas


Damien Le Moal (4):
  k210: use the board vendor name rather than the marketing name
  k210: dts: add missing power bus clocks
  k210: dts: align fpioa node with Linux
  spi: dw: Force set K210 fifo length to 31

Niklas Cassel (3):
  k210: dts: align plic node with Linux
  pinctrl: k210: Fix loop in k210_pc_get_drive()
  pinctrl: k210: Fix bias-pull-up

Sean Anderson (1):
  spi: dw: Actually mask interrupts

 MAINTAINERS                                   |  12 +-
 arch/riscv/dts/k210-maix-bit.dts              |   3 +-
 arch/riscv/dts/k210.dtsi                      | 177 ++++++++++--------
 board/sipeed/maix/maix.c                      |   2 +-
 doc/board/sipeed/maix.rst                     |  20 +-
 ...k210-sysctl.txt => canaan,k210-sysctl.txt} |   8 +-
 ...e,k210-fpioa.txt => canaan,k210-fpioa.txt} |  12 +-
 .../spi/snps,dw-apb-ssi.txt                   |   4 +-
 drivers/clk/Makefile                          |   2 +-
 drivers/clk/{clk_kendryte.c => clk_k210.c}    |   4 +-
 drivers/pinctrl/Makefile                      |   2 +-
 .../{pinctrl-kendryte.c => pinctrl-k210.c}    |  25 ++-
 drivers/spi/designware_spi.c                  |  20 +-
 include/configs/sipeed-maix.h                 |   2 +-
 include/{kendryte => k210}/pll.h              |   0
 test/dm/k210_pll.c                            |   2 +-
 16 files changed, 174 insertions(+), 121 deletions(-)
 rename doc/device-tree-bindings/mfd/{kendryte,k210-sysctl.txt => canaan,k210-sysctl.txt} (78%)
 rename doc/device-tree-bindings/pinctrl/{kendryte,k210-fpioa.txt => canaan,k210-fpioa.txt} (91%)
 rename drivers/clk/{clk_kendryte.c => clk_k210.c} (99%)
 rename drivers/pinctrl/{pinctrl-kendryte.c => pinctrl-k210.c} (97%)
 rename include/{kendryte => k210}/pll.h (100%)

-- 
2.35.1


More information about the U-Boot mailing list