ep7211-edb7211.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * The code contained herein is licensed under the GNU General Public
  3. * License. You may obtain a copy of the GNU General Public License
  4. * Version 2 or later at the following locations:
  5. */
  6. #include "ep7211.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. / {
  9. model = "Cirrus Logic EP7211 Development Board";
  10. compatible = "cirrus,edb7211", "cirrus,ep7211", "cirrus,ep7209";
  11. memory {
  12. reg = <0xc0000000 0x02000000>;
  13. };
  14. backlight: backlight {
  15. compatible = "pwm-backlight";
  16. pwms = <&pwm 0>;
  17. brightness-levels = <
  18. 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7
  19. 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf
  20. >;
  21. default-brightness-level = <0x0>;
  22. power-supply = <&blen>;
  23. };
  24. display: display {
  25. model = "320x240x4";
  26. native-mode = <&timing0>;
  27. bits-per-pixel = <4>;
  28. ac-prescale = <17>;
  29. display-timings {
  30. timing0: 320x240 {
  31. hactive = <320>;
  32. hback-porch = <0>;
  33. hfront-porch = <0>;
  34. hsync-len = <0>;
  35. vactive = <240>;
  36. vback-porch = <0>;
  37. vfront-porch = <0>;
  38. vsync-len = <0>;
  39. clock-frequency = <6500000>;
  40. };
  41. };
  42. };
  43. i2c: i2c {
  44. compatible = "i2c-gpio";
  45. gpios = <&portd 4 GPIO_ACTIVE_HIGH>,
  46. <&portd 5 GPIO_ACTIVE_HIGH>;
  47. i2c-gpio,delay-us = <2>;
  48. i2c-gpio,scl-output-only;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. };
  52. lcddc: lcddc {
  53. compatible = "regulator-fixed";
  54. regulator-name = "BACKLIGHT ENABLE";
  55. regulator-min-microvolt = <3300000>;
  56. regulator-max-microvolt = <3300000>;
  57. gpio = <&portd 1 GPIO_ACTIVE_HIGH>;
  58. };
  59. blen: blen {
  60. compatible = "regulator-fixed";
  61. regulator-name = "BACKLIGHT ENABLE";
  62. regulator-min-microvolt = <3300000>;
  63. regulator-max-microvolt = <3300000>;
  64. gpio = <&portd 3 GPIO_ACTIVE_HIGH>;
  65. };
  66. };
  67. &bus {
  68. flash: nor@00000000 {
  69. compatible = "cfi-flash";
  70. reg = <0 0x00000000 0x02000000>;
  71. bank-width = <2>;
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. };
  75. };
  76. &fb {
  77. display = <&display>;
  78. lcd-supply = <&lcddc>;
  79. status = "okay";
  80. };
  81. &portd {
  82. lcden {
  83. gpio-hog;
  84. gpios = <2 GPIO_ACTIVE_HIGH>;
  85. output-high;
  86. line-name = "LCD ENABLE";
  87. };
  88. };