1270866Simp/* 2270866Simp * Copyright 2013 Rostislav Lisovy <lisovy@gmail.com>, PiKRON s.r.o. 3270866Simp * 4270866Simp * The code contained herein is licensed under the GNU General Public 5270866Simp * License. You may obtain a copy of the GNU General Public License 6270866Simp * Version 2 or later at the following locations: 7270866Simp * 8270866Simp * http://www.opensource.org/licenses/gpl-license.html 9270866Simp * http://www.gnu.org/copyleft/gpl.html 10270866Simp */ 11270866Simp 12270866Simp/dts-v1/; 13270866Simp#include "imx53-voipac-dmm-668.dtsi" 14270866Simp 15270866Simp/ { 16270866Simp sound { 17270866Simp compatible = "fsl,imx53-voipac-sgtl5000", 18270866Simp "fsl,imx-audio-sgtl5000"; 19270866Simp model = "imx53-voipac-sgtl5000"; 20270866Simp ssi-controller = <&ssi2>; 21270866Simp audio-codec = <&sgtl5000>; 22270866Simp audio-routing = 23270866Simp "Headphone Jack", "HP_OUT"; 24270866Simp mux-int-port = <2>; 25270866Simp mux-ext-port = <5>; 26270866Simp }; 27270866Simp 28270866Simp leds { 29270866Simp compatible = "gpio-leds"; 30270866Simp pinctrl-names = "default"; 31270866Simp pinctrl-0 = <&led_pin_gpio>; 32270866Simp 33270866Simp led1 { 34270866Simp label = "led-red"; 35270866Simp gpios = <&gpio3 29 0>; 36270866Simp default-state = "off"; 37270866Simp }; 38270866Simp 39270866Simp led2 { 40270866Simp label = "led-orange"; 41270866Simp gpios = <&gpio2 31 0>; 42270866Simp default-state = "off"; 43270866Simp }; 44270866Simp }; 45270866Simp}; 46270866Simp 47270866Simp&iomuxc { 48270866Simp pinctrl-names = "default"; 49270866Simp pinctrl-0 = <&pinctrl_hog>; 50270866Simp 51270866Simp imx53-voipac { 52270866Simp pinctrl_hog: hoggrp { 53270866Simp fsl,pins = < 54270866Simp /* SD2_CD */ 55270866Simp MX53_PAD_EIM_D25__GPIO3_25 0x80000000 56270866Simp /* SD2_WP */ 57270866Simp MX53_PAD_EIM_A19__GPIO2_19 0x80000000 58270866Simp >; 59270866Simp }; 60270866Simp 61270866Simp led_pin_gpio: led_gpio { 62270866Simp fsl,pins = < 63270866Simp MX53_PAD_EIM_D29__GPIO3_29 0x80000000 64270866Simp MX53_PAD_EIM_EB3__GPIO2_31 0x80000000 65270866Simp >; 66270866Simp }; 67270866Simp 68270866Simp /* Keyboard controller */ 69270866Simp pinctrl_kpp_1: kppgrp-1 { 70270866Simp fsl,pins = < 71270866Simp MX53_PAD_GPIO_9__KPP_COL_6 0xe8 72270866Simp MX53_PAD_GPIO_4__KPP_COL_7 0xe8 73270866Simp MX53_PAD_KEY_COL2__KPP_COL_2 0xe8 74270866Simp MX53_PAD_KEY_COL3__KPP_COL_3 0xe8 75270866Simp MX53_PAD_KEY_COL4__KPP_COL_4 0xe8 76270866Simp MX53_PAD_GPIO_2__KPP_ROW_6 0xe0 77270866Simp MX53_PAD_GPIO_5__KPP_ROW_7 0xe0 78270866Simp MX53_PAD_KEY_ROW2__KPP_ROW_2 0xe0 79270866Simp MX53_PAD_KEY_ROW3__KPP_ROW_3 0xe0 80270866Simp MX53_PAD_KEY_ROW4__KPP_ROW_4 0xe0 81270866Simp >; 82270866Simp }; 83270866Simp 84270866Simp pinctrl_audmux: audmuxgrp { 85270866Simp fsl,pins = < 86270866Simp MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC 0x80000000 87270866Simp MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD 0x80000000 88270866Simp MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS 0x80000000 89270866Simp MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD 0x80000000 90270866Simp >; 91270866Simp }; 92270866Simp 93270866Simp pinctrl_esdhc2: esdhc2grp { 94270866Simp fsl,pins = < 95270866Simp MX53_PAD_SD2_CMD__ESDHC2_CMD 0x1d5 96270866Simp MX53_PAD_SD2_CLK__ESDHC2_CLK 0x1d5 97270866Simp MX53_PAD_SD2_DATA0__ESDHC2_DAT0 0x1d5 98270866Simp MX53_PAD_SD2_DATA1__ESDHC2_DAT1 0x1d5 99270866Simp MX53_PAD_SD2_DATA2__ESDHC2_DAT2 0x1d5 100270866Simp MX53_PAD_SD2_DATA3__ESDHC2_DAT3 0x1d5 101270866Simp >; 102270866Simp }; 103270866Simp 104270866Simp pinctrl_i2c3: i2c3grp { 105270866Simp fsl,pins = < 106270866Simp MX53_PAD_GPIO_3__I2C3_SCL 0xc0000000 107270866Simp MX53_PAD_GPIO_6__I2C3_SDA 0xc0000000 108270866Simp >; 109270866Simp }; 110270866Simp }; 111270866Simp}; 112270866Simp 113270866Simp&audmux { 114270866Simp pinctrl-names = "default"; 115270866Simp pinctrl-0 = <&pinctrl_audmux>; /* SSI1 */ 116270866Simp status = "okay"; 117270866Simp}; 118270866Simp 119270866Simp&esdhc2 { 120270866Simp pinctrl-names = "default"; 121270866Simp pinctrl-0 = <&pinctrl_esdhc2>; 122270866Simp cd-gpios = <&gpio3 25 0>; 123270866Simp wp-gpios = <&gpio2 19 0>; 124270866Simp vmmc-supply = <®_3p3v>; 125270866Simp status = "okay"; 126270866Simp}; 127270866Simp 128270866Simp&i2c3 { 129270866Simp pinctrl-names = "default"; 130270866Simp pinctrl-0 = <&pinctrl_i2c3>; 131270866Simp status = "okay"; 132270866Simp 133270866Simp sgtl5000: codec@0a { 134270866Simp compatible = "fsl,sgtl5000"; 135270866Simp reg = <0x0a>; 136270866Simp VDDA-supply = <®_3p3v>; 137270866Simp VDDIO-supply = <®_3p3v>; 138270866Simp clocks = <&clks 150>; 139270866Simp }; 140270866Simp}; 141270866Simp 142270866Simp&kpp { 143270866Simp pinctrl-names = "default"; 144270866Simp pinctrl-0 = <&pinctrl_kpp_1>; 145270866Simp linux,keymap = < 146270866Simp 0x0203003b /* KEY_F1 */ 147270866Simp 0x0603003c /* KEY_F2 */ 148270866Simp 0x0207003d /* KEY_F3 */ 149270866Simp 0x0607003e /* KEY_F4 */ 150270866Simp >; 151270866Simp keypad,num-rows = <8>; 152270866Simp keypad,num-columns = <1>; 153270866Simp status = "okay"; 154270866Simp}; 155270866Simp 156270866Simp&ssi2 { 157270866Simp status = "okay"; 158270866Simp}; 159