rk3566-anbernic-rg353p.dts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/linux-event-codes.h>
  5. #include <dt-bindings/pinctrl/rockchip.h>
  6. #include "rk3566-anbernic-rgxx3.dtsi"
  7. / {
  8. model = "RG353P";
  9. compatible = "anbernic,rg353p", "rockchip,rk3566";
  10. aliases {
  11. mmc0 = &sdhci;
  12. mmc1 = &sdmmc0;
  13. mmc2 = &sdmmc1;
  14. mmc3 = &sdmmc2;
  15. };
  16. backlight: backlight {
  17. compatible = "pwm-backlight";
  18. power-supply = <&vcc_sys>;
  19. pwms = <&pwm4 0 25000 0>;
  20. };
  21. };
  22. &gpio_keys_control {
  23. button-a {
  24. gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
  25. label = "EAST";
  26. linux,code = <BTN_EAST>;
  27. };
  28. button-left {
  29. gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;
  30. label = "DPAD-LEFT";
  31. linux,code = <BTN_DPAD_LEFT>;
  32. };
  33. button-r1 {
  34. gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>;
  35. label = "TR";
  36. linux,code = <BTN_TR>;
  37. };
  38. button-r2 {
  39. gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
  40. label = "TR2";
  41. linux,code = <BTN_TR2>;
  42. };
  43. button-right {
  44. gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
  45. label = "DPAD-RIGHT";
  46. linux,code = <BTN_DPAD_RIGHT>;
  47. };
  48. button-y {
  49. gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
  50. label = "WEST";
  51. linux,code = <BTN_WEST>;
  52. };
  53. };
  54. &i2c0 {
  55. /* This hardware is physically present but unused. */
  56. power-monitor@62 {
  57. compatible = "cellwise,cw2015";
  58. reg = <0x62>;
  59. status = "disabled";
  60. };
  61. };
  62. &i2c2 {
  63. pintctrl-names = "default";
  64. pinctrl-0 = <&i2c2m1_xfer>;
  65. status = "okay";
  66. };
  67. &pwm4 {
  68. status = "okay";
  69. };
  70. &sdhci {
  71. pinctrl-0 = <&emmc_bus8>, <&emmc_clk>, <&emmc_cmd>, <&emmc_datastrobe>, <&emmc_rstnout>;
  72. pinctrl-names = "default";
  73. bus-width = <8>;
  74. mmc-hs200-1_8v;
  75. non-removable;
  76. vmmc-supply = <&vcc_3v3>;
  77. vqmmc-supply = <&vcc_1v8>;
  78. status = "okay";
  79. };