xref: /linux/arch/arm/boot/dts/nxp/imx/imx53-voipac-bsb.dts (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
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_hogbsb>;
44
45	pinctrl_hogbsb: hogbsbgrp {
46		fsl,pins = <
47			/* SD2_CD */
48			MX53_PAD_EIM_D25__GPIO3_25	0x80000000
49			/* SD2_WP */
50			MX53_PAD_EIM_A19__GPIO2_19 	0x80000000
51		>;
52	};
53
54	led_pin_gpio: ledgpiogrp {
55		fsl,pins = <
56			MX53_PAD_EIM_D29__GPIO3_29	0x80000000
57			MX53_PAD_EIM_EB3__GPIO2_31	0x80000000
58		>;
59	};
60
61	/* Keyboard controller */
62	pinctrl_kpp_1: kpp1grp {
63		fsl,pins = <
64			MX53_PAD_GPIO_9__KPP_COL_6	0xe8
65			MX53_PAD_GPIO_4__KPP_COL_7	0xe8
66			MX53_PAD_KEY_COL2__KPP_COL_2	0xe8
67			MX53_PAD_KEY_COL3__KPP_COL_3	0xe8
68			MX53_PAD_KEY_COL4__KPP_COL_4	0xe8
69			MX53_PAD_GPIO_2__KPP_ROW_6	0xe0
70			MX53_PAD_GPIO_5__KPP_ROW_7	0xe0
71			MX53_PAD_KEY_ROW2__KPP_ROW_2	0xe0
72			MX53_PAD_KEY_ROW3__KPP_ROW_3	0xe0
73			MX53_PAD_KEY_ROW4__KPP_ROW_4	0xe0
74		>;
75	};
76
77	pinctrl_audmux: audmuxgrp {
78		fsl,pins = <
79			MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC	0x80000000
80			MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD	0x80000000
81			MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS	0x80000000
82			MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD	0x80000000
83		>;
84	};
85
86	pinctrl_esdhc2: esdhc2grp {
87		fsl,pins = <
88			MX53_PAD_SD2_CMD__ESDHC2_CMD		0x1d5
89			MX53_PAD_SD2_CLK__ESDHC2_CLK		0x1d5
90			MX53_PAD_SD2_DATA0__ESDHC2_DAT0		0x1d5
91			MX53_PAD_SD2_DATA1__ESDHC2_DAT1		0x1d5
92			MX53_PAD_SD2_DATA2__ESDHC2_DAT2		0x1d5
93			MX53_PAD_SD2_DATA3__ESDHC2_DAT3		0x1d5
94		>;
95	};
96
97	pinctrl_i2c3: i2c3grp {
98		fsl,pins = <
99			MX53_PAD_GPIO_3__I2C3_SCL		0xc0000000
100			MX53_PAD_GPIO_6__I2C3_SDA		0xc0000000
101		>;
102	};
103};
104
105&audmux {
106	pinctrl-names = "default";
107	pinctrl-0 = <&pinctrl_audmux>; /* SSI1 */
108	status = "okay";
109};
110
111&esdhc2 {
112	pinctrl-names = "default";
113	pinctrl-0 = <&pinctrl_esdhc2>;
114	cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
115	wp-gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
116	vmmc-supply = <&reg_3p3v>;
117	status = "okay";
118};
119
120&i2c3 {
121	pinctrl-names = "default";
122	pinctrl-0 = <&pinctrl_i2c3>;
123	status = "okay";
124
125	sgtl5000: codec@a {
126		compatible = "fsl,sgtl5000";
127		reg = <0x0a>;
128		#sound-dai-cells = <0>;
129		VDDA-supply = <&reg_3p3v>;
130		VDDIO-supply = <&reg_3p3v>;
131		clocks = <&clks 150>;
132	};
133};
134
135&kpp {
136	pinctrl-names = "default";
137	pinctrl-0 = <&pinctrl_kpp_1>;
138	linux,keymap = <
139			0x0203003b	/* KEY_F1 */
140			0x0603003c	/* KEY_F2 */
141			0x0207003d	/* KEY_F3 */
142			0x0607003e	/* KEY_F4 */
143			>;
144	keypad,num-rows = <8>;
145	keypad,num-columns = <1>;
146	status = "okay";
147};
148
149&ssi2 {
150	status = "okay";
151};
152