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

(kernel-rolling) spi: qspi: Add Phytium spi/qspi controller support #210

Commits on May 29, 2024

  1. dt-bindings: spi: phyhtium: add bindings for Phytium SPI

    Add binding documentation for Phytium SPI controller.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Chen Baozi <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    bffa506 View commit details
    Browse the repository at this point in the history
  2. arm64: spi: add Phytium SPI controller support

    Add support for the Phytium SPI controller driver.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Zhang Yiqun <[email protected]>
    Signed-off-by: Peng Min <[email protected]>
    Signed-off-by: Chen Baozi <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    681bc33 View commit details
    Browse the repository at this point in the history
  3. dt-bindings: spi: phytium-qspi: Document device tree binding

    Add the device tree binding documentation for Phytium QuadSPI controller.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Chen Baozi <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    010ba20 View commit details
    Browse the repository at this point in the history
  4. arm64: spi: Phytium-qspi: Add support for Phytium QSPI controller

    This patch adds a new driver for Phytium QuadSPI (QSPI) controller,
    which is used to access NOR Flash memory slaves. The driver implements
    spi-mem framework and does not support generic SPI operations.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Zhou Yulin <[email protected]>
    Signed-off-by: Chen Baozi <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    609e0ae View commit details
    Browse the repository at this point in the history
  5. arm64: spi: Phytium: Fix controller unregister order

    The driver used devm_spi_register_controller() on bind. Therefore,
    __device_release_driver() first invokes phytium_spi_remove_host()
    before unregistering the SPI controller via devres_release_all() when
    unbinding.
    
    Since phytium_spi_remove_host() shuts down the chip, rendering the SPI
    bus inaccessible even through the SPI controller is still registered.
    When the SPI controller is subsequently unregistered, it unbinds all
    its slave devices. Because their drivers cannot access the SPI bus,
    the slave devices may be left in an improper state.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Chen Baozi <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    966f078 View commit details
    Browse the repository at this point in the history
  6. arm64: spi: phytium: Extract right pointer from driver_data in PM ops

    Since the platform driver wraps the core phytium_spi into
    phytium_spi_clk struct to include a platform clock, the pointer
    extract from driver_data should also be 'struct phytium_spi_clk *'.
    
    Signed-off-by: yuanxia <[email protected]>
    Reported-by: Zhou Yulin <[email protected]>
    Signed-off-by: Chen Baozi <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    71b5750 View commit details
    Browse the repository at this point in the history
  7. arm64: spi: Phytium: Fix r/w sck_sel_mask 3 to 7 in SPI/QSPI driver

    The mask of sck_sel should be 0x7 instead of 0x3, otherwise the split
    is set differently than expected.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Liu Tianyu <[email protected]>
    Signed-off-by: Li Mingzhe <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    e6b10fe View commit details
    Browse the repository at this point in the history
  8. arm64: spi: Phytium: Adapt SPI driver to use DDMA interface

    Code has been modified and added in the SPI driver section
    to adapt to the DDMA controller.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Liu Tianyu <[email protected]>
    Signed-off-by: Wang Hanmo <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    e0203eb View commit details
    Browse the repository at this point in the history
  9. arm64: phytium: UEFI mode acpi table support for qspi/spi driver

    Add acpi table support for qspi/spi driver, supporting
    parsing of ACPI tables.
    
    Signed-off-by: yuanxia <[email protected]>
    Signed-off-by: Wang Hanmo <[email protected]>
    Signed-off-by: Wang Yinfeng <[email protected]>
    yuanxia0927 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    ec76e30 View commit details
    Browse the repository at this point in the history
  10. mtd: Remove an unused-variable adev

    There was an unused-variable 'adev' brings a warning.
    
    Resolve following error when '-Werror' was enabled:
    
    drivers/mtd/mtdpart.c: In function ‘mtd_part_acpi_parse’:
    drivers/mtd/mtdpart.c:584:29: error: unused variable ‘adev’ [-Werror=unused-variable]
      584 |         struct acpi_device *adev;
          |                             ^~~~
    cc1: all warnings being treated as errors
    
    Reported-by: Mingcong Bai <[email protected]>
    Signed-off-by: WangYuli <[email protected]>
    Avenger-285714 authored and MingcongBai committed May 29, 2024
    Configuration menu
    Copy the full SHA
    3c6b717 View commit details
    Browse the repository at this point in the history