An error occurred fetching the project authors.
  1. 03 Nov, 2017 1 commit
  2. 13 Feb, 2017 1 commit
  3. 17 Jan, 2017 1 commit
  4. 09 Jan, 2017 1 commit
  5. 17 Nov, 2016 1 commit
  6. 14 Jul, 2016 5 commits
  7. 07 Jul, 2016 1 commit
  8. 04 Jul, 2016 1 commit
  9. 29 Jun, 2016 4 commits
  10. 30 Dec, 2015 1 commit
  11. 18 Nov, 2015 1 commit
  12. 16 Sep, 2015 1 commit
  13. 14 Sep, 2015 4 commits
  14. 28 Jul, 2015 1 commit
  15. 01 May, 2015 1 commit
  16. 24 Feb, 2015 1 commit
  17. 22 Dec, 2014 1 commit
  18. 12 Dec, 2014 1 commit
  19. 07 Dec, 2014 1 commit
  20. 26 Nov, 2014 1 commit
  21. 20 Oct, 2014 1 commit
  22. 17 Jul, 2014 2 commits
    • Naveen Krishna Chatradhi's avatar
      spi: s3c64xx: use the generic SPI "cs-gpios" property · 306972ce
      Naveen Krishna Chatradhi authored
      The s3c64xx SPI driver uses a custom DT binding to specify
      the GPIO used to drive the chip select (CS) line instead of
      using the generic "cs-gpios" property already defined in:
      Documentation/devicetree/bindings/spi/spi-bus.txt.
      
      It's unfortunate that drivers are not using standard bindings
      and creating custom ones instead but in most cases this can't
      be changed without breaking Device Tree backward compatibility.
      
      But in the case of this driver, its DT binding has been broken
      for more than a year. Since after commit (dated June, 21 2013):
      
      3146beec ("spi: s3c64xx: Added provision for dedicated cs pin")
      
      DT backward compatibility was broken and nobody noticed until
      now when the commit was reverted. So it seems to be safe to
      change the binding to use the standard SPI "cs-gpios" property
      instead of using a custom one just for this driver.
      
      This patch also allows boards that don't use a GPIO pin for the
      CS to work with the driver since the SPI core will take care of
      setting spi->cs_gpio to -ENOENT if a board wants to use the built
      in CS instead of a GPIO as explained in the SPI bus DT binding:
      Documentation/devicetree/bindings/spi/spi-bus.txt.
      
      For non-DT platforms, spi->cs_gpio will be set to -ENOENT as well
      unless they specify a GPIO pin in their platform data. So both
      native and GPIO chip select is also supported for legacy boards.
      
      The above use case was what motivated commit 3146beec which broke
      the DT binding backward compatibility in the first place.
      Signed-off-by: default avatarNaveen Krishna Chatradhi <ch.naveen@samsung.com>
      [javier.martinez@collabora.co.uk: split changes and improve commit message]
      Signed-off-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      306972ce
    • Javier Martinez Canillas's avatar
      spi: s3c64xx: Revert "spi: s3c64xx: Added provision for dedicated cs pin" · e2689b94
      Javier Martinez Canillas authored
      This reverts commit 3146beec.
      
      This commit resulted in a DT backward compatibility breakage.
      
      Some devices use the native chip select (CS) instead of a GPIO
      pin to drive the CS line. But the SPI driver made it mandatory
      to specify a GPIO pin in the SPI device node controller-data.
      So, using the built-in CS was not possible with the driver.
      
      Commit 3146beec tried to fix that by adding a "cs-gpio" property
      which could be defined in the SPI device node to make the driver
      request the GPIO from the controller-data node.
      
      Unfortunately that changed the old DT binding semantics since
      now it's mandatory to have the "cs-gpio" property defined in
      the SPI device node in order to use a GPIO pin to drive the CS.
      
      As an example, a SPI device was defined before the commit with:
      
      spi@12d20000 {
          slave-node@0 {
              controller-data {
                   cs-gpio = <&gpb1 2 0>;
              }
         }
      }
      
      and after the commit, the following DTS snippet must be used:
      
      spi@12d20000 {
          cs-gpio;
          slave-node@0 {
              controller-data {
                   cs-gpio = <&gpb1 2 0>;
              }
         }
      }
      
      So, after commit 3146beec the driver does not look for the GPIO
      by default and it only looks for it if the top level "cs-gpio"
      property is defined while the default used to be the opposite.
      To always request the GPIO defined in the controller-data node.
      
      This means that old FDT that of course didn't have this added
      "cs-gpio" DT property in the SPI node broke after this change.
      
      The offending commit can't be reverted cleanly since more than
      a year have passed and other changes were made in the meantime
      but this patch partially reverts the driver to it's original
      state so old FDT can work again.
      
      This patch will break Device Trees that were relying on the new
      behavior of course but the patch should be reverted because:
      
      a) There aren't DTS in mainline that use this new property.
      b) They were relying on a behavior that broke DT compatibility.
      c) The new binding is awkard, needing two properties with the
         same name (cs-gpio) on different nodes is confusing at least.
      d) The new property was not added to the DT binding doc:
         Documentation/devicetree/bindings/spi/spi-samsung.txt
      Signed-off-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      e2689b94
  23. 12 Jul, 2014 1 commit
  24. 07 Jul, 2014 1 commit
  25. 29 Apr, 2014 1 commit
  26. 14 Apr, 2014 1 commit
  27. 25 Feb, 2014 1 commit
  28. 07 Feb, 2014 2 commits