From patchwork Tue Aug 7 21:46:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Sealey X-Patchwork-Id: 1288441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 8B95FDF280 for ; Tue, 7 Aug 2012 21:49:14 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Syrbk-0006hK-4G; Tue, 07 Aug 2012 21:46:32 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Syrbh-0006gt-EI for linux-arm-kernel@lists.infradead.org; Tue, 07 Aug 2012 21:46:30 +0000 Received: by obbta17 with SMTP id ta17so135947obb.36 for ; Tue, 07 Aug 2012 14:46:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=amIWNimWXmCEYckxSiWmlrVDIo3QCc113RpmRFvmRg4=; b=R6d1a8w2dalwj16qCtcSlruxeCwD5i+1nK2vJKeK5nhDDiEpWjwVE/yoEgvgbxJ0kH adVzJlpB2pIcH9E7Ffe4bM7oatcSLwktbg12tOR5KLtZ+oMhaqJe5+X28AxbZB6TQ7aC C4L+y/fR3rx4pDCRPKfZGSP8fldZtWUxaNbBXGxWURIZfQAarVf8/p3OLVaE2fukhrHb BaQcvCvXUuczMBb4BPj/p9j9PWuoqCVQbcGiJCnq5lqNFE5RI+p7og2J+ZHMH8HIKFRm 8WRcQuFsrY9UMLmcsEzy/oXaBksbGwRPOeEDYCEp/NiY+KvcVlhifGwr84Ead/nCliI9 rELA== Received: by 10.60.29.230 with SMTP id n6mr26685033oeh.22.1344375988700; Tue, 07 Aug 2012 14:46:28 -0700 (PDT) Received: from shinji.genesi-usa.com ([199.193.222.22]) by mx.google.com with ESMTPS id ad9sm2815211obc.8.2012.08.07.14.46.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Aug 2012 14:46:27 -0700 (PDT) From: Matt Sealey To: Linux ARM Kernel Mailing List Subject: [PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree Date: Tue, 7 Aug 2012 16:46:18 -0500 Message-Id: <1344375978-29981-1-git-send-email-matt@genesi-usa.com> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQkjQO0RFhyXhlnFM9IDMTfSDublai/A3XMP7CVFbPMShWL02/KiRj+T3OqCDCbUd38BenQP X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Steev Klimaszewski , Shawn Guo , Linux Kernel Mailing List , Matt Sealey X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This device tree only supports the final retail board ("TO3"). It is currently feature equivalent to the MX51 Babbage device tree. The following features have been tested and work as well as can be expected: * Serial port * SD card support * I2C bus * SGTL5000 audio support via the internal speaker * SDMA support (via audio) * SPI bus * NOR flash (at 25MHz bus speed) * MC13892 PMIC Regulator and Realtime clock functions Since the board requires some extra work on the PMIC to power off, the system will instead just halt, however reboot works. Other missing features are due to a lack of drivers or device tree bindings currently. Signed-off-by: Matt Sealey Signed-off-by: Steev Klimaszewski --- arch/arm/boot/dts/imx51-efikamx.dts | 247 +++++++++++++++++++++++++++++++++++ arch/arm/mach-imx/Makefile.boot | 2 +- 2 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/imx51-efikamx.dts diff --git a/arch/arm/boot/dts/imx51-efikamx.dts b/arch/arm/boot/dts/imx51-efikamx.dts new file mode 100644 index 0000000..dd14f77 --- /dev/null +++ b/arch/arm/boot/dts/imx51-efikamx.dts @@ -0,0 +1,247 @@ +/* + * Copyright 2011 Freescale Semiconductor, Inc. + * Copyright 2011 Linaro Ltd. + * Copyright 2012 Genesi USA, Inc. + * + * 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/ "imx51.dtsi" + +/ { + model = "Genesi Efika MX (Smarttop)"; + compatible = "genesi,imx51-efikamx", "fsl,imx51"; + + memory { + reg = <0x90000000 0x20000000>; + }; + + soc { + aips@70000000 { + spba@70000000 { + esdhc@70004000 { + cd-gpios = <&gpio1 0 0>; + wp-gpios = <&gpio1 1 0>; + status = "okay"; + }; + + ssi2: ssi@70014000 { + fsl,mode = "i2s-slave"; + status = "okay"; + }; + + ecspi@70010000 { + fsl,spi-num-chipselects = <2>; + cs-gpios = <&gpio4 24 0>, <&gpio4 25 0>; + status = "okay"; + + pmic: mc13892@0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,mc13892"; + spi-max-frequency = <6000000>; + reg = <0>; + interrupt-parent = <&gpio1>; + interrupts = <6 0x4>; + fsl,mc13xxx-uses-rtc; + + regulators { + sw1_reg: sw1 { + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1375000>; + regulator-boot-on; + regulator-always-on; + }; + + sw2_reg: sw2 { + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1850000>; + regulator-boot-on; + regulator-always-on; + }; + + sw3_reg: sw3 { + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1850000>; + regulator-boot-on; + regulator-always-on; + }; + + sw4_reg: sw4 { + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1850000>; + regulator-boot-on; + regulator-always-on; + }; + + vpll_reg: vpll { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + vdig_reg: vdig { + regulator-min-microvolt = <1650000>; + regulator-max-microvolt = <1650000>; + regulator-boot-on; + }; + + vsd_reg: vsd { + regulator-min-microvolt = <3150000>; + regulator-max-microvolt = <3150000>; + }; + + vusb2_reg: vusb2 { + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <2775000>; + regulator-boot-on; + regulator-always-on; + }; + + vvideo_reg: vvideo { + regulator-min-microvolt = <2775000>; + regulator-max-microvolt = <2775000>; + regulator-boot-on; + }; + + vaudio_reg: vaudio { + regulator-min-microvolt = <2300000>; + regulator-max-microvolt = <3000000>; + }; + + vcam_reg: vcam { + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3000000>; + }; + + vgen1_reg: vgen1 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3150000>; + }; + + vgen2_reg: vgen2 { + regulator-min-microvolt = <3150000>; + regulator-max-microvolt = <3150000>; + regulator-always-on; + }; + + vgen3_reg: vgen3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2900000>; + regulator-always-on; + }; + }; + }; + + flash: sst25vf032b@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "sst,sst25vf032b"; + spi-max-frequency = <25000000>; + reg = <1>; + + partition@0 { + label = "firmware"; + reg = <0x0 0x200000>; + }; + + partition@200000 { + label = "user"; + reg = <0x200000 0x200000>; + }; + }; + }; + }; + + wdog@73f98000 { + status = "okay"; + }; + + iomuxc@73fa8000 { + compatible = "fsl,imx51-iomuxc"; + reg = <0x73fa8000 0x4000>; + }; + + uart1: serial@73fbc000 { + fsl,uart-has-rtscts; + status = "okay"; + }; + + }; + + aips@80000000 { + sdma@83fb0000 { + fsl,sdma-ram-script-name = "imx/sdma/sdma-imx51.bin"; + }; + + i2c@83fc4000 { + status = "okay"; + + codec: sgtl5000@0a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clock-frequency = <12288000>; + VDDA-supply = <&vdig_reg>; + VDDIO-supply = <&vvideo_reg>; + }; + }; + + audmux@83fd0000 { + status = "okay"; + }; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + power { + label = "Power Button"; + gpios = <&gpio2 31 0>; + linux,code = <116>; /* KEY_POWER */ + gpio-key,wakeup; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + red { + label = "red"; + gpios = <&gpio3 13>; + linux,default-trigger = "ide-disk"; + }; + + green { + label = "green"; + gpios = <&gpio3 14>; + linux,default-trigger = "default-on"; + }; + + blue { + label = "blue"; + gpios = <&gpio3 15>; + linux,default-trigger = "mmc0"; + }; + }; + + sound { + compatible = "fsl,imx-audio-sgtl5000"; + model = "efikamx-sgtl5000"; + ssi-controller = <&ssi2>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Ext Spk", "LINE_OUT"; + audio-codec = <&codec>; + mux-int-port = <2>; + mux-ext-port = <3>; + }; +}; diff --git a/arch/arm/mach-imx/Makefile.boot b/arch/arm/mach-imx/Makefile.boot index 05541cf..3ed7c9d 100644 --- a/arch/arm/mach-imx/Makefile.boot +++ b/arch/arm/mach-imx/Makefile.boot @@ -38,7 +38,7 @@ zreladdr-$(CONFIG_SOC_IMX6Q) += 0x10008000 params_phys-$(CONFIG_SOC_IMX6Q) := 0x10000100 initrd_phys-$(CONFIG_SOC_IMX6Q) := 0x10800000 -dtb-$(CONFIG_MACH_IMX51_DT) += imx51-babbage.dtb +dtb-$(CONFIG_MACH_IMX51_DT) += imx51-babbage.dtb imx51-efikamx.dtb dtb-$(CONFIG_MACH_IMX53_DT) += imx53-ard.dtb imx53-evk.dtb \ imx53-qsb.dtb imx53-smd.dtb dtb-$(CONFIG_SOC_IMX6Q) += imx6q-arm2.dtb \