xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx53-voipac-bsb.dts (revision 397e83df75e0fcd0d3fcb95ae4d794cb7600fc89)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2013 Rostislav Lisovy <lisovy@gmail.com>, PiKRON s.r.o.
4 */
5
6/dts-v1/;
7#include "imx53-voipac-dmm-668.dtsi"
8
9/ {
10	sound {
11		compatible = "fsl,imx53-voipac-sgtl5000",
12			     "fsl,imx-audio-sgtl5000";
13		model = "imx53-voipac-sgtl5000";
14		ssi-controller = <&ssi2>;
15		audio-codec = <&sgtl5000>;
16		audio-routing =
17			"Headphone Jack", "HP_OUT";
18		mux-int-port = <2>;
19		mux-ext-port = <5>;
20	};
21
22	leds {
23		compatible = "gpio-leds";
24		pinctrl-names = "default";
25		pinctrl-0 = <&led_pin_gpio>;
26
27		led1 {
28			label = "led-red";
29			gpios = <&gpio3 29 0>;
30			default-state = "off";
31		};
32
33		led2 {
34			label = "led-orange";
35			gpios = <&gpio2 31 0>;
36			default-state = "off";
37		};
38	};
39};
40
41&iomuxc {
42	pinctrl-names = "default";
43	pinctrl-0 = <&pinctrl_hog>;
44
45	imx53-voipac {
46		pinctrl_hog: hoggrp {
47			fsl,pins = <
48				/* SD2_CD */
49				MX53_PAD_EIM_D25__GPIO3_25	0x80000000
50				/* SD2_WP */
51				MX53_PAD_EIM_A19__GPIO2_19 	0x80000000
52			>;
53		};
54
55		led_pin_gpio: led_gpio {
56			fsl,pins = <
57				MX53_PAD_EIM_D29__GPIO3_29	0x80000000
58				MX53_PAD_EIM_EB3__GPIO2_31	0x80000000
59			>;
60		};
61
62		/* Keyboard controller */
63		pinctrl_kpp_1: kppgrp-1 {
64			fsl,pins = <
65				MX53_PAD_GPIO_9__KPP_COL_6	0xe8
66				MX53_PAD_GPIO_4__KPP_COL_7	0xe8
67				MX53_PAD_KEY_COL2__KPP_COL_2	0xe8
68				MX53_PAD_KEY_COL3__KPP_COL_3	0xe8
69				MX53_PAD_KEY_COL4__KPP_COL_4	0xe8
70				MX53_PAD_GPIO_2__KPP_ROW_6	0xe0
71				MX53_PAD_GPIO_5__KPP_ROW_7	0xe0
72				MX53_PAD_KEY_ROW2__KPP_ROW_2	0xe0
73				MX53_PAD_KEY_ROW3__KPP_ROW_3	0xe0
74				MX53_PAD_KEY_ROW4__KPP_ROW_4	0xe0
75			>;
76		};
77
78		pinctrl_audmux: audmuxgrp {
79			fsl,pins = <
80				MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC	0x80000000
81				MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD	0x80000000
82				MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS	0x80000000
83				MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD	0x80000000
84			>;
85		};
86
87		pinctrl_esdhc2: esdhc2grp {
88			fsl,pins = <
89				MX53_PAD_SD2_CMD__ESDHC2_CMD		0x1d5
90				MX53_PAD_SD2_CLK__ESDHC2_CLK		0x1d5
91				MX53_PAD_SD2_DATA0__ESDHC2_DAT0		0x1d5
92				MX53_PAD_SD2_DATA1__ESDHC2_DAT1		0x1d5
93				MX53_PAD_SD2_DATA2__ESDHC2_DAT2		0x1d5
94				MX53_PAD_SD2_DATA3__ESDHC2_DAT3		0x1d5
95			>;
96		};
97
98		pinctrl_i2c3: i2c3grp {
99			fsl,pins = <
100				MX53_PAD_GPIO_3__I2C3_SCL		0xc0000000
101				MX53_PAD_GPIO_6__I2C3_SDA		0xc0000000
102			>;
103		};
104	};
105};
106
107&audmux {
108	pinctrl-names = "default";
109	pinctrl-0 = <&pinctrl_audmux>; /* SSI1 */
110	status = "okay";
111};
112
113&esdhc2 {
114	pinctrl-names = "default";
115	pinctrl-0 = <&pinctrl_esdhc2>;
116	cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
117	wp-gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
118	vmmc-supply = <&reg_3p3v>;
119	status = "okay";
120};
121
122&i2c3 {
123	pinctrl-names = "default";
124	pinctrl-0 = <&pinctrl_i2c3>;
125	status = "okay";
126
127	sgtl5000: codec@a {
128		compatible = "fsl,sgtl5000";
129		reg = <0x0a>;
130		#sound-dai-cells = <0>;
131		VDDA-supply = <&reg_3p3v>;
132		VDDIO-supply = <&reg_3p3v>;
133		clocks = <&clks 150>;
134	};
135};
136
137&kpp {
138	pinctrl-names = "default";
139	pinctrl-0 = <&pinctrl_kpp_1>;
140	linux,keymap = <
141			0x0203003b	/* KEY_F1 */
142			0x0603003c	/* KEY_F2 */
143			0x0207003d	/* KEY_F3 */
144			0x0607003e	/* KEY_F4 */
145			>;
146	keypad,num-rows = <8>;
147	keypad,num-columns = <1>;
148	status = "okay";
149};
150
151&ssi2 {
152	status = "okay";
153};
154