bananapi-m2-k4be.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Local additions shared by both Banana Pi M2 boards (marlena, banana-backup),
  4. * included after the mainline board file by the two board DTS files here.
  5. */
  6. / {
  7. aliases {
  8. /*
  9. * The battery-backed DS1307 must be rtc0: RTC_HCTOSYS and
  10. * RTC_SYSTOHC use rtc0, and so do hwclock and chrony's rtcsync.
  11. * Without the aliases the SoC RTC (needed anyway, it provides the
  12. * 32 kHz clock) may register first.
  13. */
  14. rtc0 = &ds1307;
  15. rtc1 = &rtc;
  16. /*
  17. * Linux numbers MMC hosts in probe order without aliases. The
  18. * environment boots root=/dev/mmcblk0p2, so the SD slot must
  19. * stay mmc0 whatever probes first (mmc1 is the SDIO Wi-Fi).
  20. */
  21. mmc0 = &mmc0;
  22. mmc1 = &mmc1;
  23. };
  24. leds {
  25. /*
  26. * Labels for marlena's U-Boot overlay
  27. * (sun8i-r40-bananapi-m2-ultra-led.dtbo targets &pwr_led and
  28. * &user_led_green), and the same triggers set here, so the
  29. * overlay is no longer needed. The Berry's green LED node is
  30. * "user-led", the Ultra's "user-led-green", see the board files.
  31. */
  32. pwr_led: pwr-led {
  33. linux,default-trigger = "heartbeat";
  34. };
  35. };
  36. };
  37. /*
  38. * CPU core voltage floor. The old 4.18/5.4 kernels had no cpufreq, so the CPU
  39. * ran at U-Boot's 1008 MHz with U-Boot's CONFIG_AXP_DCDC2_VOLT=1100 mV, below
  40. * the vendor's 1160 mV for 1008 MHz; both boards locked up silently under
  41. * sustained multi-core load (2026-11-18/19). The mainline board files include
  42. * sun8i-r40-cpu-opp.dtsi (720-1200 MHz, the vendor's dvfs_table voltages), so
  43. * with cpufreq-dt this floor only matters until cpufreq takes over and lifts
  44. * the 720/912 MHz points slightly (1.00/1.10 -> 1.16 V): a margin, kept on
  45. * purpose. The regulator core raises a voltage below the minimum at boot
  46. * (machine_constraints_voltage, apply_uV).
  47. */
  48. &reg_dcdc2 {
  49. regulator-min-microvolt = <1160000>;
  50. };
  51. /* DS1307 at 0x68 on TWI2 (PB20/PB21, the mainline default pins). */
  52. &i2c2 {
  53. status = "okay";
  54. ds1307: rtc@68 {
  55. compatible = "dallas,ds1307";
  56. reg = <0x68>;
  57. };
  58. };