r8a774c0-ek874-idk-2121wr.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the Silicon Linux RZ/G2E evaluation kit (EK874),
  4. * connected to an Advantech IDK-2121WR 21.5" LVDS panel
  5. *
  6. * Copyright (C) 2019 Renesas Electronics Corp.
  7. */
  8. #include "r8a774c0-ek874.dts"
  9. / {
  10. backlight: backlight {
  11. compatible = "pwm-backlight";
  12. pwms = <&pwm5 0 50000>;
  13. brightness-levels = <0 4 8 16 32 64 128 255>;
  14. default-brightness-level = <6>;
  15. power-supply = <&reg_12p0v>;
  16. enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
  17. };
  18. panel-lvds {
  19. compatible = "advantech,idk-2121wr", "panel-lvds";
  20. width-mm = <476>;
  21. height-mm = <268>;
  22. data-mapping = "vesa-24";
  23. panel-timing {
  24. clock-frequency = <148500000>;
  25. hactive = <1920>;
  26. vactive = <1080>;
  27. hsync-len = <44>;
  28. hfront-porch = <88>;
  29. hback-porch = <148>;
  30. vfront-porch = <4>;
  31. vback-porch = <36>;
  32. vsync-len = <5>;
  33. };
  34. ports {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. port@0 {
  38. reg = <0>;
  39. dual-lvds-odd-pixels;
  40. panel_in0: endpoint {
  41. remote-endpoint = <&lvds0_out>;
  42. };
  43. };
  44. port@1 {
  45. reg = <1>;
  46. dual-lvds-even-pixels;
  47. panel_in1: endpoint {
  48. remote-endpoint = <&lvds1_out>;
  49. };
  50. };
  51. };
  52. };
  53. };
  54. &gpio0 {
  55. /*
  56. * When GP0_17 is low LVDS[01] are connected to the LVDS connector
  57. * When GP0_17 is high LVDS[01] are connected to the LT8918L
  58. */
  59. lvds-connector-en-hog {
  60. gpio-hog;
  61. gpios = <17 GPIO_ACTIVE_HIGH>;
  62. output-low;
  63. line-name = "lvds-connector-en-gpio";
  64. };
  65. };
  66. &lvds0 {
  67. ports {
  68. port@1 {
  69. lvds0_out: endpoint {
  70. remote-endpoint = <&panel_in0>;
  71. };
  72. };
  73. };
  74. };
  75. &lvds1 {
  76. status = "okay";
  77. clocks = <&cpg CPG_MOD 727>, <&x13_clk>, <&extal_clk>;
  78. clock-names = "fck", "dclkin.0", "extal";
  79. ports {
  80. port@1 {
  81. lvds1_out: endpoint {
  82. remote-endpoint = <&panel_in1>;
  83. };
  84. };
  85. };
  86. };
  87. &pfc {
  88. pwm5_pins: pwm5 {
  89. groups = "pwm5_a";
  90. function = "pwm5";
  91. };
  92. };
  93. &pwm5 {
  94. pinctrl-0 = <&pwm5_pins>;
  95. pinctrl-names = "default";
  96. status = "okay";
  97. };