Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751514Ab3JWHeK (ORCPT ); Wed, 23 Oct 2013 03:34:10 -0400 Received: from ch1ehsobe004.messaging.microsoft.com ([216.32.181.184]:39682 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820Ab3JWHeH (ORCPT ); Wed, 23 Oct 2013 03:34:07 -0400 X-Forefront-Antispam-Report: CIP:70.37.183.190;KIP:(null);UIP:(null);IPV:NLI;H:mail.freescale.net;RD:none;EFVD:NLI X-SpamScore: -2 X-BigFish: VS-2(zz98dI1432Izz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hz8dhz1de098h17326ah8275bh8275dh1de097h186068hz2dh87h2a8h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1b2fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1fe8h1ff5h209eh1151h1155h) X-FB-DOMAIN-IP-MATCH: fail Date: Wed, 23 Oct 2013 15:33:59 +0800 From: Shawn Guo To: Rostislav Lisovy CC: , , , Sascha Hauer , Subject: Re: [PATCH 4/4] ARM: dts: i.MX53: Devicetree for Voipac Baseboard using x53-dmm-668 module Message-ID: <20131023073357.GJ2839@S2101-09.ap.freescale.net> References: <1382461643-16790-1-git-send-email-lisovy@gmail.com> <1382461643-16790-5-git-send-email-lisovy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1382461643-16790-5-git-send-email-lisovy@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: sigmatel.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4067 Lines: 170 On Tue, Oct 22, 2013 at 07:07:23PM +0200, Rostislav Lisovy wrote: > Supported peripherals: Audio -- headphone output, LEDs, Buttons > (using keyboard controller), SD-card. > > Signed-off-by: Rostislav Lisovy > > create mode 100644 arch/arm/boot/dts/imx53-voipac-bsb.dts Add the dtb target into arch/arm/boot/dts/Makefile. > > diff --git a/arch/arm/boot/dts/imx53-voipac-bsb.dts b/arch/arm/boot/dts/imx53-voipac-bsb.dts > new file mode 100644 > index 0000000..7b48462 > --- /dev/null > +++ b/arch/arm/boot/dts/imx53-voipac-bsb.dts > @@ -0,0 +1,135 @@ > +/* > + * Copyright 2013 Rostislav Lisovy , PiKRON s.r.o. > + * > + * The code contained herein is licensed under the GNU General Public > + * License. You may obtain a copy of the GNU General Public License > + * Version 2 or later at the following locations: > + * > + * http://www.opensource.org/licenses/gpl-license.html > + * http://www.gnu.org/copyleft/gpl.html > + */ > + > +/dts-v1/; > +#include "imx53-voipac-dmm-668.dtsi" > + > +/ { > + sound { > + compatible = "fsl,imx53-voipac-sgtl5000", > + "fsl,imx-audio-sgtl5000"; > + model = "imx53-voipac-sgtl5000"; > + ssi-controller = <&ssi2>; > + audio-codec = <&sgtl5000>; > + audio-routing = > + "Headphone Jack", "HP_OUT"; > + mux-int-port = <2>; > + mux-ext-port = <5>; > + }; > + > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&led_pin_gpio>; > + > + led1 { > + label = "led-red"; > + gpios = <&gpio3 29 0>; > + default-state = "off"; > + }; > + > + led2 { > + label = "led-orange"; > + gpios = <&gpio2 31 0>; > + default-state = "off"; > + }; > + }; > +}; > + > +&iomuxc { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_hog>; > + > + hog { > + pinctrl_hog: hoggrp { > + fsl,pins = < > + /* SD2_CD */ > + MX53_PAD_EIM_D25__GPIO3_25 0x80000000 > + /* SD2_WP */ > + MX53_PAD_EIM_A19__GPIO2_19 0x80000000 > + >; > + }; > + > + led_pin_gpio: led_gpio@0 { Drop the '@0' from node name, since you do not have a 'reg' property for the node at all. > + fsl,pins = < > + MX53_PAD_EIM_D29__GPIO3_29 0x80000000 > + MX53_PAD_EIM_EB3__GPIO2_31 0x80000000 > + >; > + }; > + }; > + > + /* Keyboard controller */ > + kpp { > + pinctrl_kpp_1: kppgrp-1 { > + fsl,pins = < > + MX53_PAD_GPIO_9__KPP_COL_6 0xe8 > + MX53_PAD_GPIO_4__KPP_COL_7 0xe8 > + MX53_PAD_KEY_COL2__KPP_COL_2 0xe8 > + MX53_PAD_KEY_COL3__KPP_COL_3 0xe8 > + MX53_PAD_KEY_COL4__KPP_COL_4 0xe8 > + > + MX53_PAD_GPIO_2__KPP_ROW_6 0xe0 > + MX53_PAD_GPIO_5__KPP_ROW_7 0xe0 > + MX53_PAD_KEY_ROW2__KPP_ROW_2 0xe0 > + MX53_PAD_KEY_ROW3__KPP_ROW_3 0xe0 > + MX53_PAD_KEY_ROW4__KPP_ROW_4 0xe0 > + >; > + }; > + }; > +}; > + > +&i2c3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c3_2>; > + status = "okay"; > + > + sgtl5000: codec@0a { > + compatible = "fsl,sgtl5000"; > + reg = <0x0a>; > + VDDA-supply = <®_3p3v>; > + VDDIO-supply = <®_3p3v>; > + clocks = <&clks 150>; > + }; > +}; > + > +&kpp { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_kpp_1>; > + linux,keymap = < > + 0x0203003b /* KEY_F1 */ > + 0x0603003c /* KEY_F2 */ > + 0x0207003d /* KEY_F3 */ > + 0x0607003e /* KEY_F4 */ > + >; > + keypad,num-rows = <8>; > + keypad,num-columns = <8>; > + status = "okay"; > +}; > + > +&ssi2 { > + fsl,mode = "i2s-slave"; > + status = "okay"; > +}; > + > +&audmux { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_audmux_1>; /* SSI1 */ > + status = "okay"; > +}; > + > +&esdhc2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_esdhc2_1>; > + cd-gpios = <&gpio3 25 0>; > + wp-gpios = <&gpio2 19 0>; > + vmmc-supply = <®_3p3v>; > + status = "okay"; > +}; Sort these nodes, please. Shawn > -- > 1.7.10.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/