sun8i-v3-sl631.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // SPDX-License-Identifier: (GPL-2.0+ OR X11)
  2. /*
  3. * Copyright 2020 Paul Kocialkowski <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "sun8i-v3.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "SL631 Action Camera";
  11. compatible = "allwinner,sl631", "allwinner,sun8i-v3";
  12. aliases {
  13. serial0 = &uart1;
  14. };
  15. chosen {
  16. stdout-path = "serial0:115200n8";
  17. };
  18. };
  19. &i2c0 {
  20. status = "okay";
  21. axp209: pmic@34 {
  22. reg = <0x34>;
  23. interrupt-parent = <&nmi_intc>;
  24. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  25. };
  26. };
  27. &i2c1 {
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&i2c1_pb_pins>;
  30. status = "okay";
  31. };
  32. &lradc {
  33. vref-supply = <&reg_ldo2>;
  34. status = "okay";
  35. button-174 {
  36. label = "Down";
  37. linux,code = <KEY_DOWN>;
  38. channel = <0>;
  39. voltage = <174603>;
  40. };
  41. button-384 {
  42. label = "Up";
  43. linux,code = <KEY_UP>;
  44. channel = <0>;
  45. voltage = <384126>;
  46. };
  47. button-593 {
  48. label = "OK";
  49. linux,code = <KEY_OK>;
  50. channel = <0>;
  51. voltage = <593650>;
  52. };
  53. };
  54. &mmc0 {
  55. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  56. bus-width = <4>;
  57. vmmc-supply = <&reg_dcdc3>;
  58. status = "okay";
  59. };
  60. &pio {
  61. vcc-pd-supply = <&reg_dcdc3>;
  62. vcc-pe-supply = <&reg_dcdc3>;
  63. };
  64. #include "axp209.dtsi"
  65. &ac_power_supply {
  66. status = "okay";
  67. };
  68. &battery_power_supply {
  69. status = "okay";
  70. };
  71. &reg_dcdc2 {
  72. regulator-always-on;
  73. regulator-min-microvolt = <1250000>;
  74. regulator-max-microvolt = <1250000>;
  75. regulator-name = "vdd-sys-cpu";
  76. };
  77. &reg_dcdc3 {
  78. regulator-always-on;
  79. regulator-min-microvolt = <3300000>;
  80. regulator-max-microvolt = <3300000>;
  81. regulator-name = "vdd-3v3";
  82. };
  83. &reg_ldo1 {
  84. regulator-name = "vdd-rtc";
  85. };
  86. &reg_ldo2 {
  87. regulator-always-on;
  88. regulator-min-microvolt = <3000000>;
  89. regulator-max-microvolt = <3000000>;
  90. regulator-name = "avcc";
  91. };
  92. &spi0 {
  93. status = "okay";
  94. flash@0 {
  95. reg = <0>;
  96. compatible = "jedec,spi-nor";
  97. spi-max-frequency = <50000000>;
  98. };
  99. };
  100. &uart1 {
  101. pinctrl-0 = <&uart1_pg_pins>;
  102. pinctrl-names = "default";
  103. status = "okay";
  104. };
  105. &usb_otg {
  106. dr_mode = "peripheral";
  107. status = "okay";
  108. };
  109. &usbphy {
  110. status = "okay";
  111. };