Advertisement
Guest User

Untitled

a guest
Dec 11th, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6.  
  7. #include "am33xx.dtsi"
  8. #include "am335x-bone-common.dtsi"
  9. #include "am335x-boneblack-common.dtsi"
  10.  
  11. / {
  12. compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
  13. };
  14.  
  15. &am33xx_pinmux {
  16. spi1_pins: pinmux_spi1_pins{
  17. pinctrl-single,pins = <
  18. AM33XX_PADCONF( AM335X_PIN_MCASP0_ACLKX, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_31: spi1 clk out
  19. AM33XX_PADCONF( AM335X_PIN_MCASP0_FSX, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_29: spi1 d0 /data in (miso)
  20. AM33XX_PADCONF( AM335X_PIN_MCASP0_AXR0, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_30: spi1 d1 / data out (mosi)
  21. AM33XX_PADCONF( AM335X_PIN_MCASP0_AHCLKR, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_28: spi1 cs 0 out
  22. >;
  23. };
  24. uart1_pins: pinmux_uart1_pins {
  25. pinctrl-single,pins = <
  26. AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
  27. AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
  28. AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
  29. AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
  30. >;
  31. };
  32. i2c1_pins: pinmux_i2c1_pins {
  33. pinctrl-single,pins = <
  34. AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE2) /* p9.18.i2c1_sda */
  35. AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE2) /* P9.17.i2c1_scl */
  36. >;
  37. };
  38. lcd_ctrl_pins: lcd_ctrl_pins {
  39. pinctrl-single,pins = <
  40. AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* P9_15: gpio1_16 reset, OUTPUT_PULLUP | MODE7 */
  41. AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_OUTPUT_PULLUP, MUX_MODE7) /* P9_12: gpio1_28 DC, OUTPUT_PULLUP | MODE7 */
  42. >;
  43. };
  44.  
  45. pwm_bl_pins: pwm_bl_pins {
  46. pinctrl-single,pins = <
  47. AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT_PULLDOWN, MUX_MODE6) /* P9_14: ehrpwm1a, MODE6 */
  48. >;
  49. };
  50. };
  51.  
  52. &mac {
  53. status = "disabled";
  54. };
  55.  
  56. &spi1 {
  57. status="okay";
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&spi1_pins>;
  60. };
  61.  
  62. &spi1 {
  63. lcd@0 {
  64. reg = <0>;
  65. compatible = "fb_ili9341";
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&lcd_ctrl_pins>;
  68. spi-max-frequency = <25000000>;
  69. rotate = <270>;
  70. bgr;
  71. fps = <50>;
  72. buswidth = <8>;
  73. reset-gpios = <&gpio2 16 0>;
  74. dc-gpios = <&gpio2 28 0>;
  75. debug = <3>;
  76. backlight = <&backlight>;
  77. };
  78. };
  79.  
  80. / {
  81. backlight: backlight {
  82. compatible = "pwm-backlight";
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&pwm_bl_pins>;
  85. pwms = <&ehrpwm1 0 500000 0>;
  86. pwm-names = "backlight";
  87. brightness-levels = <0 4 8 16 32 64 128 255>;
  88. default-brightness-level = <7>; /* index to the array above */
  89. power-supply = <&vmmcsd_fixed>;
  90. };
  91. };
  92.  
  93. &epwmss1 {
  94. status = "okay";
  95. };
  96.  
  97. &ehrpwm1 {
  98. status = "okay";
  99. };
  100.  
  101. &uart1 {
  102. status="okay";
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&uart1_pins>;
  105.  
  106. gnss{
  107. compatible = "u-blox,neo-6m";
  108. vcc-supply = <&vmmcsd_fixed>;
  109. current-speed = <9600>;
  110. };
  111. };
  112.  
  113. &i2c1 {
  114. status = "okay";
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&i2c1_pins>;
  117. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement