From patchwork Mon Jul 14 20:20:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 4549381 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7DF289F2F4 for ; Mon, 14 Jul 2014 20:21:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B43702013D for ; Mon, 14 Jul 2014 20:21:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C71B22012F for ; Mon, 14 Jul 2014 20:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757224AbaGNUVc (ORCPT ); Mon, 14 Jul 2014 16:21:32 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:34912 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757307AbaGNUVA (ORCPT ); Mon, 14 Jul 2014 16:21:00 -0400 Received: by mail-wg0-f47.google.com with SMTP id b13so2559711wgh.30 for ; Mon, 14 Jul 2014 13:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=XAcG+NKCn4LJY9dIFRFNhpFnE96vJd9pjx50+0H9L+g=; b=oyU9ZmOaDdcSgqR05WpnDbzMnKx4R6U6wIlUIPv3Ru4esfT8jpF/iisIzJEOUOF5VG ZB+nbiYe3iypHS7sns3Coej6sqdyr0K7U1tSuCUHvI2gA0YgIQ+FZNZWLIoP6oMWjYzw Nj9MM0taRH0ng9IubBJZFAhwYD92+fp+NHiVLKGPFxJay/oxLeSQbYX1p64hps4s02rf Bh9LhmvN9LcCXqYwNxxjj0xddnTyJ6WB+knZ9qRPtNG8TxcNJU43GHVtizA6xLGjW8GO Jh42ocx0OXbcnpO8gtFVpk8aqnsQ83Dp1D0KTVRG1ysr2l8Op5wbt7Zos2Ys68nChGgU ZdEA== X-Received: by 10.194.78.68 with SMTP id z4mr5563530wjw.126.1405369258566; Mon, 14 Jul 2014 13:20:58 -0700 (PDT) Received: from nb.lan (ip-85.163.184.225.o2inet.sk. [85.163.184.225]) by mx.google.com with ESMTPSA id w9sm34937674wif.12.2014.07.14.13.20.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jul 2014 13:20:57 -0700 (PDT) From: Marek Belisko To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, bcousson@baylibre.com, tony@atomide.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, hns@goldelico.com, Marek Belisko Subject: [PATCH 5/5] arm: dts: Add gta04+b3 model bindings Date: Mon, 14 Jul 2014 22:20:28 +0200 Message-Id: <1405369228-27197-6-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405369228-27197-1-git-send-email-marek@goldelico.com> References: <1405369228-27197-1-git-send-email-marek@goldelico.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Signed-off-by: Marek Belisko --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap3-gta04+b3.dts | 118 +++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-gta04+b3.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b04a57e..e869f18 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -282,6 +282,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += am3517-craneboard.dtb \ omap3-gta04a3.dtb \ omap3-gta04a4.dtb \ omap3-gta04+b2.dtb \ + omap3-gta04+b3.dtb \ omap3-igep0020.dtb \ omap3-igep0030.dtb \ omap3-ldp.dtb \ diff --git a/arch/arm/boot/dts/omap3-gta04+b3.dts b/arch/arm/boot/dts/omap3-gta04+b3.dts new file mode 100644 index 0000000..83446b3 --- /dev/null +++ b/arch/arm/boot/dts/omap3-gta04+b3.dts @@ -0,0 +1,118 @@ +/* + * Copyright (C) 2014 H. Nikolaus Schaller + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include "omap3-gta04.dtsi" + +/ { + model = "Goldelico GTA04b3/Letux 7004"; + + aliases { + display0 = &lcd_b3; + }; + + lcd_b3: lcd { + compatible = "sharp,lq070y3dg3b", + "panel-dpi"; + label = "lcd"; + enable-gpios = <&gpio1 12 0>; + + panel-timing { + clock-frequency = <33260000>; + + hback-porch = <64>; + hactive = <800>; + hfront-porch = <64>; + hsync-len = <128>; + + vback-porch = <35>; + vactive = <480>; + vfront-porch = <8>; + vsync-len = <2>; + + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + + }; + + port { + lcd_b3_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + }; +}; + +&dss { + pinctrl-names = "default"; + pinctrl-0 = < &dss_dpi_pins >; + + status = "okay"; + + port { + dpi_out: endpoint { + remote-endpoint = <&lcd_b3_in>; + data-lines = <24>; + }; + }; +}; + +&spi_lcd { + compatible = "none"; +}; + +&madc_battery { + capacity = <3900000>; +}; + +&i2c2 { + /* we have a different set of LEDs */ + tca_gpios: tca6507@45 { + compatible = "ti,tca6507"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x45>; + + gta04_led0: red_aux@0 { + label = "gta04:red:aux"; + reg = <0x0>; + }; + + gta04_led1: green_aux@1 { + label = "gta04:green:aux"; + reg = <0x1>; + }; + + gta04_led2: green_aux@2 { + label = "gta04:blue:aux"; + reg = <0x2>; + }; + + gta04_led3: red_power@3 { + label = "gta04:red:power"; + reg = <0x3>; + linux,default-trigger = "default-on"; + }; + + gta04_led4: green_power@4 { + label = "gta04:green:power"; + reg = <0x4>; + }; + + gta04_led5: green_power@5 { + label = "gta04:blue:aux"; + reg = <0x5>; + }; + + wifi_reset: wifi_reset@6 { + reg = <0x6>; + compatible = "gpio"; + }; + }; +};