1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
6 #include <dt-bindings/display/tda998x.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
10 regulator-min-microvolt = <1800000>;
11 regulator-max-microvolt = <1800000>;
16 vmmc-supply = <&vmmcsd_fixed>;
20 vmmc-supply = <&vmmcsd_fixed>;
21 pinctrl-names = "default";
22 pinctrl-0 = <&emmc_pins>;
29 nxp_hdmi_bonelt_pins: nxp_hdmi_bonelt_pins {
30 pinctrl-single,pins = <
31 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT_PULLDOWN, MUX_MODE3)
32 AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE0)
33 AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE0)
34 AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE0)
35 AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE0)
36 AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE0)
37 AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE0)
38 AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE0)
39 AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PIN_OUTPUT, MUX_MODE0)
40 AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT, MUX_MODE0)
41 AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_OUTPUT, MUX_MODE0)
42 AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_OUTPUT, MUX_MODE0)
43 AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE0)
44 AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_OUTPUT, MUX_MODE0)
45 AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE0)
46 AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PIN_OUTPUT, MUX_MODE0)
47 AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE0)
48 AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
49 AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
50 AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
51 AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
55 nxp_hdmi_bonelt_off_pins: nxp_hdmi_bonelt_off_pins {
56 pinctrl-single,pins = <
57 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT_PULLDOWN, MUX_MODE3)
61 mcasp0_pins: mcasp0_pins {
62 pinctrl-single,pins = <
63 AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKX, PIN_INPUT_PULLUP, MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */
64 AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKR, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mcasp0_ahclkr.mcasp0_axr2*/
65 AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_OUTPUT_PULLUP, MUX_MODE0)
66 AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKX, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
67 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gpmc_a11.GPIO1_27 */
75 /* If you want to get 24 bit RGB and 16 BGR mode instead of
76 * current 16 bit RGB and 24 BGR modes, set the propety
77 * below to "crossed" and uncomment the video-ports -property
80 blue-and-red-wiring = "straight";
84 remote-endpoint = <&hdmi_0>;
90 tda19988: tda19988@70 {
91 compatible = "nxp,tda998x";
93 nxp,calib-gpios = <&gpio1 25 0>;
94 interrupts-extended = <&gpio1 25 IRQ_TYPE_LEVEL_LOW>;
96 pinctrl-names = "default", "off";
97 pinctrl-0 = <&nxp_hdmi_bonelt_pins>;
98 pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>;
100 /* Convert 24bit BGR to RGB, e.g. cross red and blue wiring */
101 /* video-ports = <0x234501>; */
103 #sound-dai-cells = <0>;
104 audio-ports = < TDA998x_I2S 0x03>;
109 remote-endpoint = <&lcdc_0>;
117 system-power-controller;
121 #sound-dai-cells = <0>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&mcasp0_pins>;
125 op-mode = <0>; /* MCASP_IIS_MODE */
127 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
136 device_type = "memory";
137 reg = <0x80000000 0x20000000>; /* 512 MB */
140 clk_mcasp0_fixed: clk_mcasp0_fixed {
142 compatible = "fixed-clock";
143 clock-frequency = <24576000>;
146 clk_mcasp0: clk_mcasp0 {
148 compatible = "gpio-gate-clock";
149 clocks = <&clk_mcasp0_fixed>;
150 enable-gpios = <&gpio1 27 0>; /* BeagleBone Black Clk enable on GPIO1_27 */
154 compatible = "simple-audio-card";
155 simple-audio-card,name = "TI BeagleBone Black";
156 simple-audio-card,format = "i2s";
157 simple-audio-card,bitclock-master = <&dailink0_master>;
158 simple-audio-card,frame-master = <&dailink0_master>;
160 dailink0_master: simple-audio-card,cpu {
161 sound-dai = <&mcasp0>;
162 clocks = <&clk_mcasp0>;
165 simple-audio-card,codec {
166 sound-dai = <&tda19988>;