rk3399-puma-haikou-u-boot.dtsi 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // SPDX-License-Identifier: GPL-2.0+
  2. #include "rk3399-u-boot.dtsi"
  3. #ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1333
  4. #include "rk3399-sdram-ddr3-1333.dtsi"
  5. #endif
  6. #ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1600
  7. #include "rk3399-sdram-ddr3-1600.dtsi"
  8. #endif
  9. #ifdef CONFIG_TARGET_PUMA_RK3399_RAM_DDR3_1866
  10. #include "rk3399-sdram-ddr3-1866.dtsi"
  11. #endif
  12. / {
  13. config {
  14. u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
  15. u-boot,mmc-env-offset = <0x4000>; /* @ 16KB */
  16. u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
  17. u-boot,boot-led = "module_led";
  18. sysreset-gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
  19. };
  20. chosen {
  21. stdout-path = "serial0:115200n8";
  22. u-boot,spl-boot-order = \
  23. "same-as-spl", &norflash, &sdhci, &sdmmc;
  24. };
  25. aliases {
  26. spi5 = &spi5;
  27. };
  28. /*
  29. * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module
  30. * eMMC and SPI flash powered-down initially (in fact it keeps the
  31. * reset signal asserted). Even though it is an enable signal, we
  32. * model this as a regulator.
  33. */
  34. bios_enable: bios_enable {
  35. compatible = "regulator-fixed";
  36. u-boot,dm-pre-reloc;
  37. regulator-name = "bios_enable";
  38. enable-active-high;
  39. gpio = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>;
  40. regulator-always-on;
  41. regulator-boot-on;
  42. regulator-min-microvolt = <1800000>;
  43. regulator-max-microvolt = <1800000>;
  44. };
  45. vdd_log: vdd-log {
  46. compatible = "pwm-regulator";
  47. pwms = <&pwm2 0 25000 1>;
  48. regulator-name = "vdd_log";
  49. regulator-always-on;
  50. regulator-boot-on;
  51. regulator-min-microvolt = <800000>;
  52. regulator-max-microvolt = <1400000>;
  53. regulator-init-microvolt = <950000>;
  54. vin-supply = <&vcc5v0_sys>;
  55. };
  56. };
  57. &gpio1 {
  58. u-boot,dm-pre-reloc;
  59. };
  60. &gpio3 {
  61. u-boot,dm-pre-reloc;
  62. };
  63. &norflash {
  64. u-boot,dm-pre-reloc;
  65. };