exynos-srom.txt 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. SAMSUNG Exynos SoCs SROM Controller driver.
  2. Required properties:
  3. - compatible : Should contain "samsung,exynos4210-srom".
  4. - reg: offset and length of the register set
  5. Optional properties:
  6. The SROM controller can be used to attach external peripherals. In this case
  7. extra properties, describing the bus behind it, should be specified as below:
  8. - #address-cells: Must be set to 2 to allow device address translation.
  9. Address is specified as (bank#, offset).
  10. - #size-cells: Must be set to 1 to allow device size passing
  11. - ranges: Must be set up to reflect the memory layout with four integer values
  12. per bank:
  13. <bank-number> 0 <parent address of bank> <size>
  14. Sub-nodes:
  15. The actual device nodes should be added as subnodes to the SROMc node. These
  16. subnodes, in addition to regular device specification, should contain the following
  17. properties, describing configuration of the relevant SROM bank:
  18. Required properties:
  19. - reg: bank number, base address (relative to start of the bank) and size of
  20. the memory mapped for the device. Note that base address will be
  21. typically 0 as this is the start of the bank.
  22. - samsung,srom-timing : array of 6 integers, specifying bank timings in the
  23. following order: Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs.
  24. Each value is specified in cycles and has the following
  25. meaning and valid range:
  26. Tacp : Page mode access cycle at Page mode (0 - 15)
  27. Tcah : Address holding time after CSn (0 - 15)
  28. Tcoh : Chip selection hold on OEn (0 - 15)
  29. Tacc : Access cycle (0 - 31, the actual time is N + 1)
  30. Tcos : Chip selection set-up before OEn (0 - 15)
  31. Tacs : Address set-up before CSn (0 - 15)
  32. Optional properties:
  33. - reg-io-width : data width in bytes (1 or 2). If omitted, default of 1 is used.
  34. - samsung,srom-page-mode : if page mode is set, 4 data page mode will be configured,
  35. else normal (1 data) page mode will be set.
  36. Example: basic definition, no banks are configured
  37. memory-controller@12570000 {
  38. compatible = "samsung,exynos4210-srom";
  39. reg = <0x12570000 0x14>;
  40. };
  41. Example: SROMc with SMSC911x ethernet chip on bank 3
  42. memory-controller@12570000 {
  43. #address-cells = <2>;
  44. #size-cells = <1>;
  45. ranges = <0 0 0x04000000 0x20000 // Bank0
  46. 1 0 0x05000000 0x20000 // Bank1
  47. 2 0 0x06000000 0x20000 // Bank2
  48. 3 0 0x07000000 0x20000>; // Bank3
  49. compatible = "samsung,exynos4210-srom";
  50. reg = <0x12570000 0x14>;
  51. ethernet@3,0 {
  52. compatible = "smsc,lan9115";
  53. reg = <3 0 0x10000>; // Bank 3, offset = 0
  54. phy-mode = "mii";
  55. interrupt-parent = <&gpx0>;
  56. interrupts = <5 8>;
  57. reg-io-width = <2>;
  58. smsc,irq-push-pull;
  59. smsc,force-internal-phy;
  60. samsung,srom-page-mode;
  61. samsung,srom-timing = <9 12 1 9 1 1>;
  62. };
  63. };