qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20240516163304.25191-6-chalapathi.v@linux.ibm.com>]
  • [parent not found: <20240516163304.25191-4-chalapathi.v@linux.ibm.com>]
  • [parent not found: <20240516163304.25191-5-chalapathi.v@linux.ibm.com>]
  • [parent not found: <20240516163304.25191-3-chalapathi.v@linux.ibm.com>]
  • * [PATCH v3 0/5] hw/ppc: SPI model
    @ 2024-05-15 17:41 Chalapathi V
      2024-05-15 17:41 ` [PATCH v3 2/5] ppc/pnv: Extend " Chalapathi V
      0 siblings, 1 reply; 10+ messages in thread
    From: Chalapathi V @ 2024-05-15 17:41 UTC (permalink / raw)
      To: qemu-devel
      Cc: qemu-ppc, fbarrat, npiggin, clg, calebs, chalapathi.v,
    	chalapathi.v, saif.abrar, dantan, milesg
    
    Hello,
    
    Thank You so much for reviewing patch v2.
    In patch v3, most of Cedric's comments are addressed.
    - PnvSPIBus model is removed and added SSIBus to PnvSpiController.
    - Added trace-events and removed SPI_DEBUG macro.
    - Added Microchip's 25csm04 device on top of m25p80 and create seeprom
      device from a command line.
    - Use qdev_connect_gpio_out_named instead of sysbus_connect_irq to
      connect cs.
    
    The new qom-tree looks like below.
    (qemu) info qom-tree 
    /machine (powernv10-machine)
      /chip[0] (power10_v2.0-pnv-chip)
        /pib_spic[0] (pnv-spi-controller)
          /pnv-spi-bus.0 (SSI)
          /xscom-spi-controller-regs[0] (memory-region)
        /pib_spic[1] (pnv-spi-controller)
          /pnv-spi-bus.1 (SSI)
          /xscom-spi-controller-regs[0] (memory-region)
        /pib_spic[2] (pnv-spi-controller)
          /pnv-spi-bus.2 (SSI)
          /xscom-spi-controller-regs[0] (memory-region)
        /pib_spic[3] (pnv-spi-controller)
          /pnv-spi-bus.3 (SSI)
          /xscom-spi-controller-regs[0] (memory-region)
        /pib_spic[4] (pnv-spi-controller)
          /pnv-spi-bus.4 (SSI)
          /xscom-spi-controller-regs[0] (memory-region)
        /pib_spic[5] (pnv-spi-controller)
          /pnv-spi-bus.5 (SSI)
          /xscom-spi-controller-regs[0] (memory-region)
    
    (qemu) info qom-tree 
    /machine (powernv10-machine)
      /peripheral-anon (container)
        /device[0] (25csm04)
          /WP#[0] (irq)
          /ssi-gpio-cs[0] (irq)
    
    Patches overview in v3.
    PATCH1: Create a SPI controller model and implement configuration unit
            to model SCOM registers. Move header files to include/hw/ssi/
    PATCH2: SPI controller model: implement sequencer FSM and shift engine.
    PATCH3: Add Microchip's SEEPROM 25csm04 model on top of m25p80.
    PATCH4: Connect SPI controllers to p10 chip and connect cs lines.
    PATCH5: Write a qtest pnv-spi-seeprom-test to check the SPI transactions
            between spi controller and seeprom device.
    
    Test covered:
    Ran make check.
    
    Thank You,
    Chalapathi
    
    Chalapathi V (5):
      ppc/pnv: Add SPI controller model
      ppc/pnv: Extend SPI model
      hw/block: Add Microchip's 25CSM04 to m25p80
      hw/ppc: SPI controller wiring to P10 chip
      tests/qtest: Add pnv-spi-seeprom qtest
    
     include/hw/ppc/pnv_chip.h          |    3 +
     include/hw/ppc/pnv_xscom.h         |    3 +
     include/hw/ssi/pnv_spi.h           |   72 ++
     include/hw/ssi/pnv_spi_regs.h      |  114 +++
     hw/block/m25p80.c                  |    3 +
     hw/ppc/pnv.c                       |   21 +-
     hw/ppc/pnv_spi_controller.c        | 1310 ++++++++++++++++++++++++++++
     tests/qtest/pnv-spi-seeprom-test.c |  129 +++
     hw/ppc/Kconfig                     |    2 +
     hw/ppc/meson.build                 |    1 +
     hw/ppc/trace-events                |   21 +
     tests/qtest/meson.build            |    1 +
     12 files changed, 1679 insertions(+), 1 deletion(-)
     create mode 100644 include/hw/ssi/pnv_spi.h
     create mode 100644 include/hw/ssi/pnv_spi_regs.h
     create mode 100644 hw/ppc/pnv_spi_controller.c
     create mode 100644 tests/qtest/pnv-spi-seeprom-test.c
    
    -- 
    2.39.3
    
    
    
    ^ permalink raw reply	[flat|nested] 10+ messages in thread

    end of thread, other threads:[~2024-05-21 14:23 UTC | newest]
    
    Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20240516163304.25191-1-chalapathi.v@linux.ibm.com>
         [not found] ` <20240516163304.25191-2-chalapathi.v@linux.ibm.com>
    2024-05-17 16:27   ` [PATCH v3 1/5] ppc/pnv: Add SPI controller model Miles Glenn
    2024-05-21  6:09     ` Chalapathi V
         [not found] ` <20240516163304.25191-6-chalapathi.v@linux.ibm.com>
    2024-05-17 16:46   ` [PATCH v3 5/5] tests/qtest: Add pnv-spi-seeprom qtest Miles Glenn
         [not found] ` <20240516163304.25191-4-chalapathi.v@linux.ibm.com>
    2024-05-17 17:33   ` [PATCH v3 3/5] hw/block: Add Microchip's 25CSM04 to m25p80 Miles Glenn
         [not found] ` <20240516163304.25191-5-chalapathi.v@linux.ibm.com>
    2024-05-17 19:26   ` [PATCH v3 4/5] hw/ppc: SPI controller wiring to P10 chip Miles Glenn
         [not found] ` <20240516163304.25191-3-chalapathi.v@linux.ibm.com>
    2024-05-17 19:54   ` [PATCH v3 2/5] ppc/pnv: Extend SPI model Miles Glenn
    2024-05-21  6:11     ` Chalapathi V
    2024-05-21  6:18       ` Cédric Le Goater
    2024-05-21 14:21         ` Miles Glenn
    2024-05-15 17:41 [PATCH v3 0/5] hw/ppc: " Chalapathi V
    2024-05-15 17:41 ` [PATCH v3 2/5] ppc/pnv: Extend " Chalapathi V
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).