From patchwork Wed Jan 20 12:35:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Lothar_Wa=C3=9Fmann?= X-Patchwork-Id: 8071691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D2E609F1CC for ; Wed, 20 Jan 2016 12:38:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE89A203E5 for ; Wed, 20 Jan 2016 12:38:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9288720456 for ; Wed, 20 Jan 2016 12:38:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLs0P-0006na-Fj; Wed, 20 Jan 2016 12:36:57 +0000 Received: from mail.karo-electronics.de ([81.173.242.67]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLrzx-0006Y2-In for linux-arm-kernel@lists.infradead.org; Wed, 20 Jan 2016 12:36:32 +0000 From: =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= To: Alexandre Belloni , Ian Campbell , Jean-Christophe Plagniol-Villard , Kumar Gala , Mark Rutland , Nicolas Ferre , Pawel Moll , Rob Herring , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: sama5d4: add support for Ka-Ro electronics TXA5 modules Date: Wed, 20 Jan 2016 13:35:37 +0100 Message-Id: <1453293337-16078-4-git-send-email-LW@KARO-electronics.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1453293337-16078-1-git-send-email-LW@KARO-electronics.de> References: <1453293337-16078-1-git-send-email-LW@KARO-electronics.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160120_043630_234982_32CE8655 X-CRM114-Status: GOOD ( 18.22 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Lothar=20Wa=C3=9Fmann?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The TXA5-5010/-5011 are Computers On Module manufactured by Ka-Ro electronics GmbH with the following characteristics: Processor Atmel SAMA5D42, 528 MHz RAM 256MB 32-bit DDR2 SDRAM ROM 128MB NAND Flash (TXA5-5010) / 4GB eMMC (TXA5-5011) Power supply Single 3.1V to 5.5V Size 26mm SO-DIMM Temp. Range -40°C/-25°C to 85°C Signed-off-by: Lothar Waßmann Acked-by: Nicolas Ferre --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-sama5d4-txa5-5010.dts | 217 +++++++++++++++++++++++++++ 2 files changed, 218 insertions(+) create mode 100644 arch/arm/boot/dts/at91-sama5d4-txa5-5010.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a4a6d70..8fbc0cb 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -49,6 +49,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ sama5d35ek.dtb \ sama5d36ek.dtb \ at91-sama5d4_ma5d4evk.dtb \ + at91-sama5d4-txa5-5010.dtb \ at91-sama5d4_xplained.dtb \ at91-sama5d4ek.dtb \ at91-vinco.dtb diff --git a/arch/arm/boot/dts/at91-sama5d4-txa5-5010.dts b/arch/arm/boot/dts/at91-sama5d4-txa5-5010.dts new file mode 100644 index 0000000..fb4a253 --- /dev/null +++ b/arch/arm/boot/dts/at91-sama5d4-txa5-5010.dts @@ -0,0 +1,217 @@ +/* + * at91-sama5d4-txa5.dts - Device Tree file for Ka-Ro electronics TXA5 module + * + * Copyright (C) 2015 Lothar Waßmann + * based on: at91-sama5d4_xplained.dts + * Copyright (C) 2015 Atmel, + * 2015 Josh Wu + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ +/dts-v1/; +#include "sama5d4.dtsi" +#include +#include + +/ { + model = "Ka-Ro SAMA5D4 TXA5"; + compatible = "atmel,sama5d4-txa5", "atmel,sama5d4", "atmel,sama5"; + + aliases { + display = &display; + ethernet0 = &macb0; + serial0 = &usart0; + serial1 = &usart1; + serial2 = &usart3; + spi0 = &spi0; + }; + + clocks { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + main_clock: clock@0 { + compatible = "atmel,osc", "fixed-clock"; + clock-frequency = <12000000>; + }; + }; + + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&hlcdc_pwm 0 500000 PWM_POLARITY_INVERTED>; + }; + + display: display { + display-timings { + }; + }; + + leds { + compatible = "gpio-leds"; + status = "okay"; + + heartbeat { + label = "heartbeat"; + gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; +}; + +&adc0 { + atmel,adc-vref = <3300>; + status = "okay"; +}; + +&hlcdc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_rgb888>; + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&macb0 { + phy-mode = "rmii"; + status = "okay"; + + phy0: ethernet-phy@1 { + interrupt-parent = <&pioE>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + reg = <1>; + }; +}; + +&main_xtal { + clock-frequency = <12000000>; +}; + +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>; + status = "okay"; + slot@0 { + reg = <0>; + bus-width = <4>; + cd-gpios = <&pioE 3 0>; + }; +}; + +&nand0 { + nand-bus-width = <8>; + nand-ecc-mode = "hw"; + nand-on-flash-bbt; + atmel,has-pmecc; + status = "okay"; +}; + +&pinctrl { + sama5d4-txa5 { + pinctrl_mmc1_cd: mmc1-cd { + atmel,pins = ; + }; + + pinctrl_spi0_cs: spi0 { + atmel,pins = < + AT91_PIOB 21 AT91_PERIPH_GPIO 0 /* CSPI_SS0 */ + AT91_PIOB 22 AT91_PERIPH_GPIO 0 /* CSPI_SS1 */ + AT91_PIOB 23 AT91_PERIPH_GPIO 0 /* CSPI_RDY */ + >; + }; + + pinctrl_usba_vbus: usba-vbus { + atmel,pins = < + AT91_PIOE 10 AT91_PERIPH_GPIO 0 /* USBOTG_VBUSEN */ + AT91_PIOD 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* USBOTG_OC */ + >; + }; + + pinctrl_usbb_vbus: usbb-vbus { + atmel,pins = < + AT91_PIOE 11 AT91_PERIPH_GPIO 0 /* USBH_VBUSEN */ + AT91_PIOD 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* USBH_OC */ + >; + }; + }; +}; + +&slow_xtal { + clock-frequency = <32768>; +}; + +&spi0 { + cs-gpios = <&pioB 21 0>, <&pioB 22 0>, <0>, <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi0 &pinctrl_spi0_cs>; + status = "okay"; +}; + +&usart0 { + status = "okay"; +}; + +&usart1 { + status = "okay"; +}; + +&usart3 { + status = "okay"; +}; + +&usb0 { + atmel,vbus-gpio = <&pioE 10 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usba_vbus>; + status = "okay"; +}; + +&usb1 { + num-ports = <1>; + atmel,vbus-gpio = <&pioE 11 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbb_vbus>; + status = "okay"; +}; + +&watchdog { + status = "okay"; +};