xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/am335x-base0033.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * am335x-base0033.dts - Device Tree file for IGEP AQUILA EXPANSION
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2013 ISEE 2007 SL - http://www.isee.biz
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include "am335x-igep0033.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "IGEP COM AM335x on AQUILA Expansion";
12*f126890aSEmmanuel Vadot	compatible = "isee,am335x-base0033", "isee,am335x-igep0033", "ti,am33xx";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	hdmi {
15*f126890aSEmmanuel Vadot		compatible = "ti,tilcdc,slave";
16*f126890aSEmmanuel Vadot		i2c = <&i2c0>;
17*f126890aSEmmanuel Vadot		pinctrl-names = "default", "off";
18*f126890aSEmmanuel Vadot		pinctrl-0 = <&nxp_hdmi_pins>;
19*f126890aSEmmanuel Vadot		pinctrl-1 = <&nxp_hdmi_off_pins>;
20*f126890aSEmmanuel Vadot		status = "okay";
21*f126890aSEmmanuel Vadot	};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	leds_base {
24*f126890aSEmmanuel Vadot		pinctrl-names = "default";
25*f126890aSEmmanuel Vadot		pinctrl-0 = <&leds_base_pins>;
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot		led0 {
30*f126890aSEmmanuel Vadot			label = "base:red:user";
31*f126890aSEmmanuel Vadot			gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;	/* gpio1_21 */
32*f126890aSEmmanuel Vadot			default-state = "off";
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot		led1 {
36*f126890aSEmmanuel Vadot			label = "base:green:user";
37*f126890aSEmmanuel Vadot			gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;	/* gpio2_0 */
38*f126890aSEmmanuel Vadot			default-state = "off";
39*f126890aSEmmanuel Vadot		};
40*f126890aSEmmanuel Vadot	};
41*f126890aSEmmanuel Vadot};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot&am33xx_pinmux {
44*f126890aSEmmanuel Vadot	nxp_hdmi_pins: nxp-hdmi-pins {
45*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
46*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT, MUX_MODE3)	/* xdma_event_intr0.clkout1 */
47*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE0)
48*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE0)
49*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE0)
50*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE0)
51*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE0)
52*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE0)
53*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE0)
54*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PIN_OUTPUT, MUX_MODE0)
55*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT, MUX_MODE0)
56*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_OUTPUT, MUX_MODE0)
57*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_OUTPUT, MUX_MODE0)
58*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE0)
59*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_OUTPUT, MUX_MODE0)
60*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE0)
61*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PIN_OUTPUT, MUX_MODE0)
62*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE0)
63*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT, MUX_MODE0)
64*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_OUTPUT, MUX_MODE0)
65*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT, MUX_MODE0)
66*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT, MUX_MODE0)
67*f126890aSEmmanuel Vadot		>;
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot	nxp_hdmi_off_pins: nxp-hdmi-off-pins {
70*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
71*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT, MUX_MODE3)	/* xdma_event_intr0.clkout1 */
72*f126890aSEmmanuel Vadot		>;
73*f126890aSEmmanuel Vadot	};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot	leds_base_pins: leds-base-pins {
76*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
77*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* gpmc_a5.gpio1_21 */
78*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* gpmc_csn3.gpio2_0 */
79*f126890aSEmmanuel Vadot		>;
80*f126890aSEmmanuel Vadot	};
81*f126890aSEmmanuel Vadot};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot&lcdc {
84*f126890aSEmmanuel Vadot	status = "okay";
85*f126890aSEmmanuel Vadot};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot&i2c0 {
88*f126890aSEmmanuel Vadot	eeprom: eeprom@50 {
89*f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
90*f126890aSEmmanuel Vadot		reg = <0x50>;
91*f126890aSEmmanuel Vadot	};
92*f126890aSEmmanuel Vadot};
93