logicpd-torpedo-baseboard.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. / {
  3. gpio_keys {
  4. compatible = "gpio-keys";
  5. pinctrl-names = "default";
  6. pinctrl-0 = <&gpio_key_pins &gpio_key_pins_wkup>;
  7. sysboot2 {
  8. label = "sysboot2";
  9. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; /* gpio2 */
  10. linux,code = <BTN_0>;
  11. wakeup-source;
  12. };
  13. sysboot5 {
  14. label = "sysboot5";
  15. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; /* gpio7 */
  16. linux,code = <BTN_1>;
  17. wakeup-source;
  18. };
  19. gpio1 {
  20. label = "gpio1";
  21. gpios = <&gpio6 21 GPIO_ACTIVE_LOW>; /* gpio181 */
  22. linux,code = <BTN_2>;
  23. wakeup-source;
  24. };
  25. gpio2 {
  26. label = "gpio2";
  27. gpios = <&gpio6 18 GPIO_ACTIVE_LOW>; /* gpio178 */
  28. linux,code = <BTN_3>;
  29. wakeup-source;
  30. };
  31. };
  32. sound {
  33. compatible = "ti,omap-twl4030";
  34. ti,model = "omap3logic";
  35. ti,mcbsp = <&mcbsp2>;
  36. };
  37. leds {
  38. compatible = "gpio-leds";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&led_pins>;
  41. led1 {
  42. label = "led1";
  43. gpios = <&gpio6 20 GPIO_ACTIVE_HIGH>; /* gpio180 */
  44. linux,default-trigger = "cpu0";
  45. };
  46. led2 {
  47. label = "led2";
  48. gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>; /* gpio179 */
  49. linux,default-trigger = "none";
  50. };
  51. };
  52. pwm10: pwm-10 {
  53. compatible = "ti,omap-dmtimer-pwm";
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&pwm_pins>;
  56. ti,timers = <&timer10>;
  57. #pwm-cells = <3>;
  58. ti,clock-source = <0x01>;
  59. };
  60. };
  61. &vaux1 {
  62. regulator-min-microvolt = <3000000>;
  63. regulator-max-microvolt = <3000000>;
  64. };
  65. &vaux4 {
  66. regulator-min-microvolt = <1800000>;
  67. regulator-max-microvolt = <1800000>;
  68. };
  69. &mcbsp2 {
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&mcbsp2_pins>;
  72. status = "okay";
  73. };
  74. &charger {
  75. ti,bb-uvolt = <3200000>;
  76. ti,bb-uamp = <150>;
  77. };
  78. &gpmc {
  79. ranges = <0 0 0x30000000 0x1000000 /* CS0: 16MB for NAND */
  80. 1 0 0x2c000000 0x1000000 /* CS1: 16MB for LAN9221 */
  81. 6 0 0x28000000 0x1000000>; /* CS6: 16MB for ISP1763 */
  82. ethernet@gpmc {
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&lan9221_pins>;
  85. interrupt-parent = <&gpio5>;
  86. interrupts = <1 IRQ_TYPE_LEVEL_LOW>; /* gpio129 */
  87. reg = <1 0 0xff>;
  88. };
  89. usb@6,0 {
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&isp1763_pins>;
  92. compatible = "nxp,usb-isp1763";
  93. reg = <0x6 0x0 0xff>;
  94. interrupt-parent = <&gpio5>;
  95. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  96. interrupt-names = "host";
  97. bus-width = <16>;
  98. dr_mode = "host";
  99. gpmc,mux-add-data = <0>;
  100. gpmc,device-width = <2>;
  101. gpmc,wait-pin = <0>;
  102. gpmc,burst-length = <4>;
  103. gpmc,cycle2cycle-samecsen;
  104. gpmc,cycle2cycle-diffcsen;
  105. gpmc,cs-on-ns = <0>;
  106. gpmc,cs-rd-off-ns = <45>;
  107. gpmc,cs-wr-off-ns = <45>;
  108. gpmc,adv-on-ns = <0>;
  109. gpmc,adv-rd-off-ns = <0>;
  110. gpmc,adv-wr-off-ns = <0>;
  111. gpmc,oe-on-ns = <0>;
  112. gpmc,oe-off-ns = <45>;
  113. gpmc,we-on-ns = <0>;
  114. gpmc,we-off-ns = <25>;
  115. gpmc,rd-cycle-ns = <60>;
  116. gpmc,wr-cycle-ns = <45>;
  117. gpmc,access-ns = <35>;
  118. gpmc,page-burst-access-ns = <0>;
  119. gpmc,bus-turnaround-ns = <0>;
  120. gpmc,cycle2cycle-delay-ns = <60>;
  121. gpmc,wait-monitoring-ns = <0>;
  122. gpmc,clk-activation-ns = <0>;
  123. gpmc,wr-data-mux-bus-ns = <5>;
  124. gpmc,wr-access-ns = <20>;
  125. };
  126. };
  127. &hdqw1w {
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&hdq_pins>;
  130. };
  131. &vpll2 {
  132. regulator-always-on;
  133. };
  134. &dss {
  135. status = "okay";
  136. vdds_dsi-supply = <&vpll2>;
  137. vdda_video-supply = <&vpll2>;
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&dss_dpi_pins1>;
  140. port {
  141. dpi_out: endpoint {
  142. remote-endpoint = <&lcd_in>;
  143. data-lines = <16>;
  144. };
  145. };
  146. };
  147. / {
  148. aliases {
  149. display0 = &lcd0;
  150. };
  151. lcd0: display {
  152. /* This isn't the exact LCD, but the timings meet spec */
  153. compatible = "newhaven,nhd-4.3-480272ef-atxl";
  154. label = "15";
  155. pinctrl-names = "default";
  156. pinctrl-0 = <&panel_pwr_pins>;
  157. backlight = <&bl>;
  158. enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;
  159. port {
  160. lcd_in: endpoint {
  161. remote-endpoint = <&dpi_out>;
  162. };
  163. };
  164. };
  165. bl: backlight {
  166. compatible = "pwm-backlight";
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&backlight_pins>;
  169. pwms = <&pwm10 0 5000000 0>;
  170. brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
  171. default-brightness-level = <7>;
  172. enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */
  173. };
  174. };
  175. &mmc1 {
  176. interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
  177. pinctrl-names = "default";
  178. pinctrl-0 = <&mmc1_pins &mmc1_cd>;
  179. cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio127 */
  180. vmmc-supply = <&vmmc1>;
  181. bus-width = <4>;
  182. cap-power-off-card;
  183. };
  184. &omap3_pmx_core {
  185. gpio_key_pins: pinmux_gpio_key_pins {
  186. pinctrl-single,pins = <
  187. OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_clk.gpio_178 */
  188. OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLUP | MUX_MODE4) /* mcspi2_cs0.gpio_181 */
  189. >;
  190. };
  191. hdq_pins: hdq_pins {
  192. pinctrl-single,pins = <
  193. OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* hdq_sio */
  194. >;
  195. };
  196. pwm_pins: pinmux_pwm_pins {
  197. pinctrl-single,pins = <
  198. OMAP3_CORE1_IOPAD(0x20B8, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* gpmc_ncs5.gpt_10_pwm_evt */
  199. >;
  200. };
  201. led_pins: pinmux_led_pins {
  202. pinctrl-single,pins = <
  203. OMAP3_CORE1_IOPAD(0x21d8, PIN_OUTPUT | MUX_MODE4) /* gpio_179 */
  204. OMAP3_CORE1_IOPAD(0x21da, PIN_OUTPUT | MUX_MODE4) /* gpio_180 */
  205. >;
  206. };
  207. mmc1_pins: pinmux_mmc1_pins {
  208. pinctrl-single,pins = <
  209. OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  210. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  211. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  212. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  213. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  214. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  215. >;
  216. };
  217. tsc2004_pins: pinmux_tsc2004_pins {
  218. pinctrl-single,pins = <
  219. OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE4) /* mcbsp4_dr.gpio_153 */
  220. >;
  221. };
  222. backlight_pins: pinmux_backlight_pins {
  223. pinctrl-single,pins = <
  224. OMAP3_CORE1_IOPAD(0x2188, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* mcbsp4_dx.gpio_154 */
  225. >;
  226. };
  227. isp_pins: pinmux_isp_pins {
  228. pinctrl-single,pins = <
  229. OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT | MUX_MODE0) /* cam_hs.cam_hs */
  230. OMAP3_CORE1_IOPAD(0x210e, PIN_INPUT | MUX_MODE0) /* cam_vs.cam_vs */
  231. OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE0) /* cam_xclka.cam_xclka */
  232. OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE0) /* cam_pclk.cam_pclk */
  233. OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE0) /* cam_d0.cam_d0 */
  234. OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE0) /* cam_d1.cam_d1 */
  235. OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE0) /* cam_d2.cam_d2 */
  236. OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE0) /* cam_d3.cam_d3 */
  237. OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE0) /* cam_d4.cam_d4 */
  238. OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE0) /* cam_d5.cam_d5 */
  239. OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE0) /* cam_d6.cam_d6 */
  240. OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE0) /* cam_d7.cam_d7 */
  241. >;
  242. };
  243. panel_pwr_pins: pinmux_panel_pwr_pins {
  244. pinctrl-single,pins = <
  245. OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4) /* mcbsp4_fs.gpio_155 */
  246. >;
  247. };
  248. dss_dpi_pins1: pinmux_dss_dpi_pins1 {
  249. pinctrl-single,pins = <
  250. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_pclk.dss_pclk */
  251. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_hsync.dss_hsync */
  252. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_vsync.dss_vsync */
  253. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_acbias.dss_acbias */
  254. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data6.dss_data6 */
  255. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data7.dss_data7 */
  256. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data8.dss_data8 */
  257. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data9.dss_data9 */
  258. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data10.dss_data10 */
  259. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data11.dss_data11 */
  260. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data12.dss_data12 */
  261. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data13.dss_data13 */
  262. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data14.dss_data14 */
  263. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data15.dss_data15 */
  264. OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data16.dss_data16 */
  265. OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0) /* dss_data17.dss_data17 */
  266. OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data18.dss_data0 */
  267. OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data19.dss_data1 */
  268. OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data20.dss_data2 */
  269. OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data21.dss_data3 */
  270. OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data22.dss_data4 */
  271. OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE3) /* dss_data23.dss_data5 */
  272. >;
  273. };
  274. };
  275. &omap3_pmx_wkup {
  276. gpio_key_pins_wkup: pinmux_gpio_key_pins_wkup {
  277. pinctrl-single,pins = <
  278. OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot0.gpio_2 */
  279. OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot5.gpio_7 */
  280. >;
  281. };
  282. lan9221_pins: pinmux_lan9221_pins {
  283. pinctrl-single,pins = <
  284. OMAP3_WKUP_IOPAD(0x2a5a, PIN_INPUT | MUX_MODE4) /* reserved.gpio_129 */
  285. >;
  286. };
  287. mmc1_cd: pinmux_mmc1_cd {
  288. pinctrl-single,pins = <
  289. OMAP3_WKUP_IOPAD(0x2a54, PIN_INPUT_PULLUP | MUX_MODE4) /* reserved.gpio_127 */
  290. >;
  291. };
  292. };
  293. &i2c2 {
  294. mt9p031@48 {
  295. compatible = "aptina,mt9p031";
  296. reg = <0x48>;
  297. clocks = <&isp 0>;
  298. vaa-supply = <&vaux4>;
  299. vdd-supply = <&vaux4>;
  300. vdd_io-supply = <&vaux4>;
  301. port {
  302. mt9p031_out: endpoint {
  303. input-clock-frequency = <24000000>;
  304. pixel-clock-frequency = <72000000>;
  305. remote-endpoint = <&ccdc_ep>;
  306. };
  307. };
  308. };
  309. };
  310. &i2c3 {
  311. touchscreen: tsc2004@48 {
  312. compatible = "ti,tsc2004";
  313. reg = <0x48>;
  314. vio-supply = <&vaux1>;
  315. pinctrl-names = "default";
  316. pinctrl-0 = <&tsc2004_pins>;
  317. interrupts-extended = <&gpio5 25 IRQ_TYPE_EDGE_RISING>; /* gpio 153 */
  318. touchscreen-fuzz-x = <4>;
  319. touchscreen-fuzz-y = <7>;
  320. touchscreen-fuzz-pressure = <2>;
  321. touchscreen-size-x = <4096>;
  322. touchscreen-size-y = <4096>;
  323. touchscreen-max-pressure = <2048>;
  324. ti,x-plate-ohms = <280>;
  325. ti,esd-recovery-timeout-ms = <8000>;
  326. };
  327. };
  328. &mcspi1 {
  329. at25@0 {
  330. compatible = "atmel,at25";
  331. reg = <0>;
  332. spi-max-frequency = <5000000>;
  333. spi-cpha;
  334. spi-cpol;
  335. pagesize = <64>;
  336. size = <32768>;
  337. address-width = <16>;
  338. };
  339. };
  340. &isp {
  341. pinctrl-names = "default";
  342. pinctrl-0 = <&isp_pins>;
  343. ports {
  344. port@0 {
  345. reg = <0>;
  346. ccdc_ep: endpoint {
  347. remote-endpoint = <&mt9p031_out>;
  348. bus-width = <8>;
  349. hsync-active = <1>;
  350. vsync-active = <1>;
  351. pclk-sample = <0>;
  352. };
  353. };
  354. };
  355. };
  356. &uart1 {
  357. interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
  358. };
  359. /* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
  360. &usb_otg_hs {
  361. pinctrl-names = "default";
  362. pinctrl-0 = <&hsusb_otg_pins>;
  363. interface-type = <0>;
  364. usb-phy = <&usb2_phy>;
  365. phys = <&usb2_phy>;
  366. phy-names = "usb2-phy";
  367. mode = <3>;
  368. power = <50>;
  369. };