jh7100-beaglev-starlight.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // SPDX-License-Identifier: GPL-2.0 OR MIT
  2. /*
  3. * Copyright (C) 2021 StarFive Technology Co., Ltd.
  4. * Copyright (C) 2021 Emil Renner Berthing <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "jh7100.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include <dt-bindings/leds/common.h>
  10. #include <dt-bindings/pinctrl/pinctrl-starfive-jh7100.h>
  11. / {
  12. model = "BeagleV Starlight Beta";
  13. compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100";
  14. aliases {
  15. serial0 = &uart3;
  16. };
  17. chosen {
  18. stdout-path = "serial0:115200n8";
  19. };
  20. cpus {
  21. timebase-frequency = <6250000>;
  22. };
  23. memory@80000000 {
  24. device_type = "memory";
  25. reg = <0x0 0x80000000 0x2 0x0>;
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. led-ack {
  30. gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
  31. color = <LED_COLOR_ID_GREEN>;
  32. function = LED_FUNCTION_HEARTBEAT;
  33. linux,default-trigger = "heartbeat";
  34. label = "ack";
  35. };
  36. };
  37. };
  38. &gpio {
  39. i2c0_pins: i2c0-0 {
  40. i2c-pins {
  41. pinmux = <GPIOMUX(62, GPO_LOW,
  42. GPO_I2C0_PAD_SCK_OEN,
  43. GPI_I2C0_PAD_SCK_IN)>,
  44. <GPIOMUX(61, GPO_LOW,
  45. GPO_I2C0_PAD_SDA_OEN,
  46. GPI_I2C0_PAD_SDA_IN)>;
  47. bias-disable; /* external pull-up */
  48. input-enable;
  49. input-schmitt-enable;
  50. };
  51. };
  52. i2c1_pins: i2c1-0 {
  53. i2c-pins {
  54. pinmux = <GPIOMUX(47, GPO_LOW,
  55. GPO_I2C1_PAD_SCK_OEN,
  56. GPI_I2C1_PAD_SCK_IN)>,
  57. <GPIOMUX(48, GPO_LOW,
  58. GPO_I2C1_PAD_SDA_OEN,
  59. GPI_I2C1_PAD_SDA_IN)>;
  60. bias-pull-up;
  61. input-enable;
  62. input-schmitt-enable;
  63. };
  64. };
  65. i2c2_pins: i2c2-0 {
  66. i2c-pins {
  67. pinmux = <GPIOMUX(60, GPO_LOW,
  68. GPO_I2C2_PAD_SCK_OEN,
  69. GPI_I2C2_PAD_SCK_IN)>,
  70. <GPIOMUX(59, GPO_LOW,
  71. GPO_I2C2_PAD_SDA_OEN,
  72. GPI_I2C2_PAD_SDA_IN)>;
  73. bias-disable; /* external pull-up */
  74. input-enable;
  75. input-schmitt-enable;
  76. };
  77. };
  78. uart3_pins: uart3-0 {
  79. rx-pins {
  80. pinmux = <GPIOMUX(13, GPO_LOW, GPO_DISABLE,
  81. GPI_UART3_PAD_SIN)>;
  82. bias-pull-up;
  83. drive-strength = <14>;
  84. input-enable;
  85. input-schmitt-enable;
  86. slew-rate = <0>;
  87. };
  88. tx-pins {
  89. pinmux = <GPIOMUX(14, GPO_UART3_PAD_SOUT,
  90. GPO_ENABLE, GPI_NONE)>;
  91. bias-disable;
  92. drive-strength = <35>;
  93. input-disable;
  94. input-schmitt-disable;
  95. slew-rate = <0>;
  96. };
  97. };
  98. };
  99. &i2c0 {
  100. clock-frequency = <100000>;
  101. i2c-sda-hold-time-ns = <300>;
  102. i2c-sda-falling-time-ns = <500>;
  103. i2c-scl-falling-time-ns = <500>;
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&i2c0_pins>;
  106. status = "okay";
  107. pmic@5e {
  108. compatible = "ti,tps65086";
  109. reg = <0x5e>;
  110. gpio-controller;
  111. #gpio-cells = <2>;
  112. regulators {
  113. };
  114. };
  115. };
  116. &i2c1 {
  117. clock-frequency = <400000>;
  118. i2c-sda-hold-time-ns = <300>;
  119. i2c-sda-falling-time-ns = <100>;
  120. i2c-scl-falling-time-ns = <100>;
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&i2c1_pins>;
  123. status = "okay";
  124. };
  125. &i2c2 {
  126. clock-frequency = <100000>;
  127. i2c-sda-hold-time-ns = <300>;
  128. i2c-sda-falling-time-ns = <500>;
  129. i2c-scl-falling-time-ns = <500>;
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&i2c2_pins>;
  132. status = "okay";
  133. };
  134. &osc_sys {
  135. clock-frequency = <25000000>;
  136. };
  137. &osc_aud {
  138. clock-frequency = <27000000>;
  139. };
  140. &uart3 {
  141. pinctrl-names = "default";
  142. pinctrl-0 = <&uart3_pins>;
  143. status = "okay";
  144. };