Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SOPHGO SoCs and Milk-V boards #69594

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Commits on Sep 16, 2024

  1. dts: vendor-prefixes: Add thead

    T-Head is a semiconductor chip business entity of Alibaba Group.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    a8b4aca View commit details
    Browse the repository at this point in the history
  2. dts: vendor-prefixes: Add sophgo

    SOPHGO is a company focus on development of TPU and RISC-V processors.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    9f61345 View commit details
    Browse the repository at this point in the history
  3. dts: vendor-prefixes: Add milkv

    MilkV is a RISC-V MCU company located in Shenzhen, China.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    6c61eca View commit details
    Browse the repository at this point in the history
  4. dts: bindings: Add T-Head C906 CPU

    C906 is a RISC-V CPU designed by T-Head. This commit introduces its DTS
    binding for later use.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    b6f1d1b View commit details
    Browse the repository at this point in the history
  5. dts/soc: sophgo: Add SOPHGO CV1800B

    CV180x is a series of RV64 SoCs developed by SOPHGO (formerly CVITEK),
    based on T-Head C906 CPU.
    
    Co-authored-by: honglin leng <[email protected]>
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz and lenghonglin committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    80176b7 View commit details
    Browse the repository at this point in the history
  6. dts/soc: sophgo: Add SOPHGO SG2000/SG2002

    SG2000, also named "CV1813H". SG2002, also named "CV1812CP". Both of them
    are multi-core SoCs developed by SOPHGO, belonging to the CV181x series.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    b924a73 View commit details
    Browse the repository at this point in the history
  7. drivers: timer: riscv_machine_timer: Add support for T-Head implement…

    …ation
    
    This commit adapts the existing RISC-V Machine Timer driver for the T-Head
    C906 CPU:
    
    * Although it's a RV64I CPU, the MTIMECMP register must be accessed as
      32-bit values.
    * The value of the timer should be read using the `TIME` CSR, instead of
      the standard memory-mapped `MTIME` register.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    eceb7e8 View commit details
    Browse the repository at this point in the history
  8. drivers: pinctrl: Add pinctrl driver for SOPHGO CVI series

    This commit introduces a pin-controller driver for the CVI series SoCs by
    SOPHGO.
    
    Predefined pinmux values are also added. Please refer to the official
    datasheet for the naming conventions of pins and signals.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    
    # Conflicts:
    #	drivers/pinctrl/CMakeLists.txt
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    c816ce2 View commit details
    Browse the repository at this point in the history
  9. drivers: pwm: Add PWM driver for SOPHGO CVI series

    This commit adds PWM driver for CVI series SoCs.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f000005 View commit details
    Browse the repository at this point in the history
  10. drivers: mbox: Add mailbox driver for SOPHGO CVI series

    This implements a mailbox driver for CV18xx, a series of multi-core SoCs by
    SOPHGO.
    
    This driver enables the little core of CV18xx running RTOS to communicate
    with its big core running Linux.
    
    Signed-off-by: honglin leng <[email protected]>
    Signed-off-by: Chen Xingyu <[email protected]>
    lenghonglin authored and xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    528032b View commit details
    Browse the repository at this point in the history
  11. scripts: runners: Add cvi-fiptool

    The SOPHGO CVI series SoCs load the RTOS kernel for the 2nd core from a
    `fip.bin` located in the main storage.
    
    This commit introduced a convenient script for updating the `fip.bin` on
    the external storage mounted to the host, with the newly built
    `zephyr.bin`.
    
    Path to the `fiptool.py` from the official SDK should be provided.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    a37ad9f View commit details
    Browse the repository at this point in the history
  12. boards: milkv: Bring up Milk-V Duo

    Milk-V Duo is a tiny development board shipped with SOPHGO CV1800B.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    5dc5273 View commit details
    Browse the repository at this point in the history
  13. boards: milkv: Bring up Milk-V Duo S

    Duo S is another development board by Milk-V, shipped with SOPHGO SG2000.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    92434b1 View commit details
    Browse the repository at this point in the history
  14. boards: milkv: Bring up Milk-V Duo 256M

    Milk-V Duo 256M is the successor of Milk-V Duo, featuring a SOPHGO SG2002
    SoC.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    825d8a5 View commit details
    Browse the repository at this point in the history
  15. tests: drivers: pwm: Add overlay for Milk-V boards

    This commit adds an overlay to the PWM driver tests for Milk-V boards.
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f0bad4b View commit details
    Browse the repository at this point in the history
  16. MAINTAINERS: Add SOPHGO platform and assign myself as maintainer

    Also added @lenghonglin as collaborator
    
    Signed-off-by: Chen Xingyu <[email protected]>
    xingrz committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    812b097 View commit details
    Browse the repository at this point in the history