1. 03 Sep, 2024 1 commit
  2. 02 Sep, 2024 3 commits
  3. 30 Aug, 2024 3 commits
  4. 29 Aug, 2024 7 commits
  5. 28 Aug, 2024 7 commits
  6. 23 Aug, 2024 3 commits
  7. 19 Aug, 2024 5 commits
  8. 14 Aug, 2024 4 commits
  9. 13 Aug, 2024 1 commit
  10. 02 Aug, 2024 2 commits
    • Mark Brown's avatar
      spi: Add dummy definitions for ACPI lookup functions · d196c714
      Mark Brown authored
      Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:
      
      Provide empty versions of acpi_spi_count_resources(),
      acpi_spi_device_alloc() and acpi_spi_find_controller_by_adev()
      if the real functions are not being built.
      
      This commit fixes two problems with the original definitions:
      
      1) There wasn't an empty version of these functions
      2) The #if only depended on CONFIG_ACPI. But the functions are implemented
         in the core spi.c so CONFIG_SPI_MASTER must also be enabled for the real
         functions to exist.
      d196c714
    • Richard Fitzgerald's avatar
      spi: Add empty versions of ACPI functions · 90ec3a8a
      Richard Fitzgerald authored
      Provide empty versions of acpi_spi_count_resources(),
      acpi_spi_device_alloc() and acpi_spi_find_controller_by_adev()
      if the real functions are not being built.
      
      This commit fixes two problems with the original definitions:
      
      1) There wasn't an empty version of these functions
      2) The #if only depended on CONFIG_ACPI. But the functions are implemented
         in the core spi.c so CONFIG_SPI_MASTER must also be enabled for the real
         functions to exist.
      Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.cirrus.com>
      Link: https://patch.msgid.link/20240802152215.20831-2-rf@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      90ec3a8a
  11. 31 Jul, 2024 1 commit
  12. 30 Jul, 2024 1 commit
  13. 29 Jul, 2024 2 commits
    • Mark Brown's avatar
      Marvell HW overlay support for Cadence xSPI · 5cb7651f
      Mark Brown authored
      Merge series from Witold Sadowski <wsadowski@marvell.com>:
      
      This patch series adds support for the second version of the Marvell
      hardware overlay for the Cadence xSPI IP block. The overlay is a hardware
      change made around the original xSPI block. It extends xSPI features with
      clock configuration, interrupt masking, and full-duplex, variable-length SPI
      operations.
      
      These functionalities allow the xSPI block to operate not only with memory
      devices but also with simple SPI devices and TPM devices.
      
      Example ACPI entry:
            Device (SPI0) {
              Name (_HID, "PRP0001")          // ACPI_DT_NAMESPACE_HID
              Name (_UID, 0)
              Name (_DDN, "SPI controller 0")
              Name (_CCA, ONE)
      
              Method (_STA) {Return (0xF)}
      
              Name (_CRS, ResourceTemplate() {
      
                QWordMemory ( ResourceConsumer,// ResourceUsage
                              PosDecode,       // Decode
                              MinFixed,        // MinType
                              MaxFixed,        // MaxType
                              NonCacheable,    // MemType
                              ReadWrite,       // ReadWriteType
                              0,               // AddressGranularity
                              0x804000000000,  // MinAddress
                              0x804000001037,  // MaxAddress
                              0,               // AddressTranslation
                              0x1038)          // AddressLength
      
                QWordMemory ( ResourceConsumer,// ResourceUsage
                              PosDecode,       // Decode
                              MinFixed,        // MinType
                              MaxFixed,        // MaxType
                              NonCacheable,    // MemType
                              ReadWrite,       // ReadWriteType
                              0,               // AddressGranularity
                              0x804010000000,  // MinAddress
                              0x804010000007,  // MaxAddress
                              0,               // AddressTranslation
                              0x8)             // AddressLength
      
                QWordMemory ( ResourceConsumer,// ResourceUsage
                              PosDecode,       // Decode
                              MinFixed,        // MinType
                              MaxFixed,        // MaxType
                              NonCacheable,    // MemType
                              ReadWrite,       // ReadWriteType
                              0,               // AddressGranularity
                              0x804000002000,  // MinAddress
                              0x804000004027,  // MaxAddress
                              0,               // AddressTranslation
                              0x2028)          // AddressLength
      
                QWordMemory ( ResourceConsumer,// ResourceUsage
                  PosDecode,       // Decode
                  MinFixed,        // MinType
                  MaxFixed,        // MaxType
                  NonCacheable,    // MemType
                  ReadWrite,       // ReadWriteType
                  0,               // AddressGranularity
                  0x804000008000,  // MinAddress
                  0x804000008237,  // MaxAddress
                  0,               // AddressTranslation
                  0x238)           // AddressLength
      
                Interrupt(ResourceConsumer, Edge, ActiveHigh, Exclusive) { 0x7A }
              })
      
              Name (_DSD, Package() {
                  ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
                  Package () {
                      Package () { "compatible", "marvell,cn10-xspi-nor"},
                      Package () { "reg", 0x8040},
                  }
              })
            } // SPI0
      5cb7651f
    • Mark Brown's avatar
      Add support for AD4000 series of ADCs · 50ac44c7
      Mark Brown authored
      Merge series from Marcelo Schmitt <marcelo.schmitt@analog.com>:
      
      This patch series extends the SPI bitbang, gpio, and spi-engine controllers to
      support configurable MOSI line idle states.
      It then introduces the ad4000 driver which uses the MOSI idle configuration to
      provide improved support for the AD4000 series of ADCs.
      Documentation is added describing the new extension to the SPI protocol.
      The currently supported wiring modes for AD4000 devices were documented under
      IIO documentation directory.
      
      Change log v6 -> v7:
      [Device tree]
      No changes to device tree from v6 to v7.
      [SPI]
      spi.c: Removed blank line added in code not related to MOSI idle feature.
      spi: bitbang: Rewrapped commit message.
      spi: bitbang: Rebased bitbang patch on top of spi for-next branch.
      [IIO]
      ad4000: Checked gain-milli read from dt and made it match one of supported gains or fail.
      ad4000: Added blank lines to improve code readability.
      ad4000: return 0; when known that no errors occurred.
      
      Link to v6: https://lore.kernel.org/linux-iio/cover.1719686465.git.marcelo.schmitt@analog.com/
      Link to v5: https://lore.kernel.org/linux-iio/cover.1719351923.git.marcelo.schmitt@analog.com/
      Link to v4: https://lore.kernel.org/linux-iio/cover.1718749981.git.marcelo.schmitt@analog.com/
      Link to v3: https://lore.kernel.org/linux-iio/cover.1717539384.git.marcelo.schmitt@analog.com/
      Link to v2: https://lore.kernel.org/linux-iio/cover.1712585500.git.marcelo.schmitt@analog.com/
      Link to v1: https://lore.kernel.org/linux-iio/cover.1711131830.git.marcelo.schmitt@analog.com/
      
      Prerequisite patches to apply this series to IIO testing branch:
      
      c3358a74 "spi: bitbang: Convert unsigned to unsigned int"
      https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?id=c3358a746e078d0f9048732c90fdab4f37c00e0d
      
      f261172d "spi: bitbang: Use typedef for txrx_*() callbacks"
      https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?id=f261172d39f358dcecce13c310690d3937e0cca6
      
      6ecdb0aa "spi: axi-spi-engine: Add SPI_CS_HIGH support"
      https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?h=for-6.11&id=6ecdb0aa4dca62d236a659426e11e6cf302e8f18
      
      Prerequisite patches to apply the series to SPI for-next brach:
      
      ef60f9ca "docs: iio: add documentation for adis16480 driver"
      https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=ef60f9ca26d33d0f8e1a709771c61d3e96f64559
      
      Thanks,
      Marcelo
      
      Marcelo Schmitt (7):
        spi: Enable controllers to extend the SPI protocol with MOSI idle
          configuration
        spi: bitbang: Implement support for MOSI idle state configuration
        spi: spi-gpio: Add support for MOSI idle state configuration
        spi: spi-axi-spi-engine: Add support for MOSI idle configuration
        dt-bindings: iio: adc: Add AD4000
        iio: adc: Add support for AD4000
        Documentation: Add AD4000 documentation
      
       .../bindings/iio/adc/adi,ad4000.yaml          | 197 +++++
       Documentation/iio/ad4000.rst                  | 131 ++++
       Documentation/iio/index.rst                   |   1 +
       Documentation/spi/spi-summary.rst             |  83 ++
       MAINTAINERS                                   |   9 +
       drivers/iio/adc/Kconfig                       |  12 +
       drivers/iio/adc/Makefile                      |   1 +
       drivers/iio/adc/ad4000.c                      | 722 ++++++++++++++++++
       drivers/spi/spi-axi-spi-engine.c              |  15 +-
       drivers/spi/spi-bitbang.c                     |  24 +
       drivers/spi/spi-gpio.c                        |  12 +-
       drivers/spi/spi.c                             |   6 +
       include/linux/spi/spi_bitbang.h               |   1 +
       include/uapi/linux/spi/spi.h                  |   5 +-
       14 files changed, 1213 insertions(+), 6 deletions(-)
       create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad4000.yaml
       create mode 100644 Documentation/iio/ad4000.rst
       create mode 100644 drivers/iio/adc/ad4000.c
      
      base-commit: 986da024b99a72e64f6bdb3f3f0e52af024b1f50
      prerequisite-patch-id: 76a35c35c2af889be2ff20052da02df561b3d71b
      prerequisite-patch-id: ce5abb83d4f04e72c69d0df4ded79077065cd649
      prerequisite-patch-id: b30f54a92e47dbad33ca7450089c7b19610e9cf2
      --
      2.43.0
      50ac44c7