sun50i-a64-oceanic-5205-5inmfd.dts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. // Copyright (C) 2019 Oceanic Systems (UK) Ltd.
  3. // Copyright (C) 2019 Amarula Solutions B.V.
  4. // Author: Jagan Teki <[email protected]>
  5. /dts-v1/;
  6. #include "sun50i-a64-sopine.dtsi"
  7. / {
  8. model = "Oceanic 5205 5inMFD";
  9. compatible = "oceanic,5205-5inmfd", "allwinner,sun50i-a64";
  10. aliases {
  11. ethernet0 = &emac;
  12. serial0 = &uart0;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. };
  18. &ehci0 {
  19. status = "okay";
  20. };
  21. &emac {
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&rgmii_pins>;
  24. phy-mode = "rgmii";
  25. phy-handle = <&ext_rgmii_phy>;
  26. phy-supply = <&reg_dc1sw>;
  27. allwinner,tx-delay-ps = <600>;
  28. status = "okay";
  29. };
  30. &i2c0 {
  31. status = "okay";
  32. touchscreen@5d {
  33. compatible = "goodix,gt911";
  34. reg = <0x5d>;
  35. AVDD28-supply = <&reg_ldo_io0>; /* VDD_CTP: GPIO0-LDO */
  36. interrupt-parent = <&pio>;
  37. interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
  38. irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
  39. reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */
  40. touchscreen-inverted-x;
  41. touchscreen-inverted-y;
  42. };
  43. };
  44. &mdio {
  45. ext_rgmii_phy: ethernet-phy@1 {
  46. compatible = "ethernet-phy-ieee802.3-c22";
  47. reg = <1>;
  48. };
  49. };
  50. &ohci0 {
  51. status = "okay";
  52. };
  53. &reg_dc1sw {
  54. regulator-name = "vcc-phy";
  55. };
  56. &reg_ldo_io0 {
  57. regulator-min-microvolt = <2800000>;
  58. regulator-max-microvolt = <2800000>;
  59. regulator-name = "vdd-ctp";
  60. status = "okay";
  61. };
  62. &uart0 {
  63. pinctrl-names = "default";
  64. pinctrl-0 = <&uart0_pb_pins>;
  65. status = "okay";
  66. };
  67. &usb_otg {
  68. dr_mode = "host";
  69. status = "okay";
  70. };
  71. &usbphy {
  72. status = "okay";
  73. };