|
| 1 | +#include "keystone-k2g-evm.dts" |
| 2 | + |
| 3 | +/ { |
| 4 | + aliases { |
| 5 | + display0 = &lcd0; |
| 6 | + sound0 = &sound1; |
| 7 | + }; |
| 8 | + |
| 9 | + lcd0: display { |
| 10 | + compatible = "newhaven,nhd-4.3-480272ef-atxl", "panel-dpi"; |
| 11 | + label = "lcd"; |
| 12 | + |
| 13 | + panel-timing { |
| 14 | + clock-frequency = <9000000>; |
| 15 | + hactive = <480>; |
| 16 | + vactive = <272>; |
| 17 | + hfront-porch = <2>; |
| 18 | + hback-porch = <2>; |
| 19 | + hsync-len = <41>; |
| 20 | + vfront-porch = <2>; |
| 21 | + vback-porch = <2>; |
| 22 | + vsync-len = <10>; |
| 23 | + hsync-active = <0>; |
| 24 | + vsync-active = <0>; |
| 25 | + de-active = <1>; |
| 26 | + pixelclk-active = <1>; |
| 27 | + }; |
| 28 | + |
| 29 | + port { |
| 30 | + lcd_in: endpoint { |
| 31 | + remote-endpoint = <&dpi_out>; |
| 32 | + }; |
| 33 | + }; |
| 34 | + }; |
| 35 | + |
| 36 | + sound1: sound@1 { |
| 37 | + compatible = "simple-audio-card"; |
| 38 | + simple-audio-card,name = "K2G-EVM-LCD"; |
| 39 | + simple-audio-card,widgets = |
| 40 | + "Headphone", "Headphone Jack", |
| 41 | + "Line", "Line In"; |
| 42 | + simple-audio-card,routing = |
| 43 | + "Headphone Jack", "HPLOUT", |
| 44 | + "Headphone Jack", "HPROUT", |
| 45 | + "LINE1L", "Line In", |
| 46 | + "LINE1R", "Line In"; |
| 47 | + simple-audio-card,format = "i2s"; |
| 48 | + simple-audio-card,bitclock-master = <&sound1_master>; |
| 49 | + simple-audio-card,frame-master = <&sound1_master>; |
| 50 | + |
| 51 | + sound1_master: simple-audio-card,cpu { |
| 52 | + sound-dai = <&mcasp2>; |
| 53 | + clocks = <&k2g_clks K2G_DEV_MCASP2 K2G_DEV_MCASP_AUX_CLK>; |
| 54 | + system-clock-id = <MCASP_CLK_HCLK_AUXCLK>; |
| 55 | + }; |
| 56 | + |
| 57 | + simple-audio-card,codec { |
| 58 | + sound-dai = <&tlv320aic3106>; |
| 59 | + system-clock-frequency = <12288000>; |
| 60 | + }; |
| 61 | + }; |
| 62 | +}; |
| 63 | + |
| 64 | +&i2c1 { |
| 65 | + edt-ft5306@38 { |
| 66 | + status = "okay"; |
| 67 | + compatible = "edt,edt-ft5306", "edt,edt-ft5x06"; |
| 68 | + reg = <0x38>; |
| 69 | + |
| 70 | + pinctrl-names = "default"; |
| 71 | + pinctrl-0 = <&edt_ft5306_ts_pins>; |
| 72 | + |
| 73 | + interrupt-parent = <&gpio1>; |
| 74 | + interrupts = <42 IRQ_TYPE_EDGE_FALLING>; |
| 75 | + |
| 76 | + touchscreen-size-x = <480>; |
| 77 | + touchscreen-size-y = <272>; |
| 78 | + }; |
| 79 | +}; |
| 80 | + |
| 81 | +&k2g_pinctrl { |
| 82 | + edt_ft5306_ts_pins: edt_ft5306_ts_pins { |
| 83 | + pinctrl-single,pins = < |
| 84 | + K2G_CORE_IOPAD(0x1364) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE3) /* pr1_pru1_gpo16.gpio1_42 */ |
| 85 | + >; |
| 86 | + }; |
| 87 | +}; |
| 88 | + |
| 89 | +&dpi_out { |
| 90 | + remote-endpoint = <&lcd_in>; |
| 91 | +}; |
| 92 | + |
| 93 | +&hdmi { |
| 94 | + status = "disabled"; |
| 95 | +}; |
| 96 | + |
| 97 | +&sii9022 { |
| 98 | + status = "disabled"; |
| 99 | +}; |
| 100 | + |
| 101 | +&sound0 { |
| 102 | + status = "disabled"; |
| 103 | +}; |
0 commit comments