ep7211-edb7211.dts 1.9 KB

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