rockchip,rk3399-dmc.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Rockchip Dynamic Memory Controller Driver
  2. Required properties:
  3. - compatible: "rockchip,rk3399-dmc", "syscon"
  4. - rockchip,cru: this driver should access cru regs, so need get cru here
  5. - rockchip,pmucru: this driver should access pmucru regs, so need get pmucru here
  6. - rockchip,pmugrf: this driver should access pmugrf regs, so need get pmugrf here
  7. - rockchip,pmusgrf: this driver should access pmusgrf regs, so need get pmusgrf here
  8. - rockchip,cic: this driver should access cic regs, so need get cic here
  9. - reg: dynamic ram protocol controller(PCTL) address, PHY Independent(PI) address, phy controller(PHYCTL) address and memory schedule(MSCH) address
  10. - clock: must include clock specifiers corresponding to entries in the clock-names property.
  11. Must contain
  12. dmc_clk: for ddr working frequency
  13. - rockchip,sdram-params: SDRAM parameters, including all the information by ddr driver:
  14. Must contain
  15. Genarate by vendor tool and adjust for U-Boot dtsi.
  16. Example:
  17. dmc: dmc {
  18. u-boot,dm-pre-reloc;
  19. compatible = "rockchip,rk3399-dmc";
  20. devfreq-events = <&dfi>;
  21. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH 0>;
  22. clocks = <&cru SCLK_DDRCLK>;
  23. clock-names = "dmc_clk";
  24. reg = <0x0 0xffa80000 0x0 0x0800
  25. 0x0 0xffa80800 0x0 0x1800
  26. 0x0 0xffa82000 0x0 0x2000
  27. 0x0 0xffa84000 0x0 0x1000
  28. 0x0 0xffa88000 0x0 0x0800
  29. 0x0 0xffa88800 0x0 0x1800
  30. 0x0 0xffa8a000 0x0 0x2000
  31. 0x0 0xffa8c000 0x0 0x1000>;
  32. };
  33. &dmc {
  34. rockchip,sdram-params = <
  35. 0x2
  36. 0xa
  37. 0x3
  38. ...
  39. >;
  40. };