Changeset 42375


Ignore:
Timestamp:
2014-09-01T15:21:48+02:00 (3 years ago)
Author:
blogic
Message:

ramips: second spi device on rt5350

This is based on Jon Smirl's patch with the following changes:

  • Set CS polarity as low by default.
  • Add support for changing CS polarity.
  • Add support for changing LSB/MSB.
  • Add support for changing SPI mode.
  • Fix indentations.

I tested it on a VoCore. Works fine connected to a second flash, but fails to detect MMC/SD cards due to SPI clock speed.

Signed-off-by: Jon Smirl <jonsmirl@…>
Signed-off-by: Álvaro Fernández Rojas <noltari@…>

Backport of r42276

Location:
branches/barrier_breaker/target/linux/ramips
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/barrier_breaker/target/linux/ramips/dts/rt5350.dtsi

    r41859 r42375  
    152152 
    153153                spi@b00 { 
    154                         compatible = "ralink,rt5350-spi", "ralink,rt2880-spi"; 
     154                        compatible = "ralink,rt5350-spi"; 
    155155                        reg = <0xb00 0x100>; 
    156156 
     
    162162 
    163163                        pinctrl-names = "default"; 
    164                         pinctrl-0 = <&spi_pins>; 
     164                        pinctrl-0 = <&spi_pins &spi_cs1>; 
    165165 
    166166                        status = "disabled"; 
Note: See TracChangeset for help on using the changeset viewer.