public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/6] ARM: OMAP2+: dts: cm-t335: add initial support
Date: Wed, 25 Nov 2015 16:44:59 -0600	[thread overview]
Message-ID: <20151125224459.GA12408@rob-hp-laptop> (raw)
In-Reply-To: <1448373733-5839-2-git-send-email-uri.mashiach@compulab.co.il>

On Tue, Nov 24, 2015 at 04:02:08PM +0200, Uri Mashiach wrote:
> From: Ilya Ledvich <ilya@compulab.co.il>
> 
> Add basic support for CompuLab cm-t335 module based on AM335X SoC.
> 
> CM-T335 is a tiny computer-on-module (CoM) / system-on-module (SoM)
> The module is built around the Texas Instruments Sitara AM3352/4
> system-on-chip.
> 
> The CPU is supplemented with up-to 512MB DDR3 and up-to 1GB of on-board
> NAND storage, WiFi connected to SPI, Bluetooth, Analog audio, Gigabit
> Ethernet, CAN bus.
> 
> Current patch adds support:
> UART0 and GPIO LED
> 
> Detailed description can be found at the module site:
> http://www.compulab.co.il/products/computer-on-modules/cm-t335/
> 
> Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
> [uri.mashiach at compulab.co.il: the default RAM amount reduced to
> 128MB to support also the minimal module configuration]
> Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
> ---
> v1 -> v2: integrate AM33XX_IOPAD macro in pinmux definitions

This macro is exactly the kind we should not be doing in DT files which 
are ones that expand to multiple cells. But not really much point in 
doing 1 board differently from the rest, so:

Acked-by: Rob Herring <robh@kernel.org>

Rob

> 
>  .../devicetree/bindings/arm/omap/omap.txt          |  3 ++
>  arch/arm/boot/dts/Makefile                         |  7 +--
>  arch/arm/boot/dts/am335x-cm-t335.dts               | 63 ++++++++++++++++++++++
>  3 files changed, 70 insertions(+), 3 deletions(-)
>  create mode 100644 arch/arm/boot/dts/am335x-cm-t335.dts
> 
> diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
> index 9f4e513..2154f97 100644
> --- a/Documentation/devicetree/bindings/arm/omap/omap.txt
> +++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
> @@ -138,6 +138,9 @@ Boards:
>  - AM335X phyBOARD-WEGA: Single Board Computer dev kit
>    compatible = "phytec,am335x-wega", "phytec,am335x-phycore-som", "ti,am33xx"
>  
> +- AM335X CM-T335 : System On Module, built around the Sitara AM3352/4
> +  compatible = "compulab,cm-t335", "ti,am33xx"
> +
>  - OMAP5 EVM : Evaluation Module
>    compatible = "ti,omap5-evm", "ti,omap5"
>  
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index bb8fa02..0e011dc 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -446,13 +446,14 @@ dtb-$(CONFIG_SOC_AM33XX) += \
>  	am335x-base0033.dtb \
>  	am335x-bone.dtb \
>  	am335x-boneblack.dtb \
> -	am335x-sl50.dtb \
> +	am335x-chiliboard.dtb \
> +	am335x-cm-t335.dtb \
>  	am335x-evm.dtb \
>  	am335x-evmsk.dtb \
> +	am335x-lxm.dtb \
>  	am335x-nano.dtb \
>  	am335x-pepper.dtb \
> -	am335x-lxm.dtb \
> -	am335x-chiliboard.dtb \
> +	am335x-sl50.dtb \
>  	am335x-wega-rdk.dtb
>  dtb-$(CONFIG_ARCH_OMAP4) += \
>  	omap4-duovero-parlor.dtb \
> diff --git a/arch/arm/boot/dts/am335x-cm-t335.dts b/arch/arm/boot/dts/am335x-cm-t335.dts
> new file mode 100644
> index 0000000..719658e
> --- /dev/null
> +++ b/arch/arm/boot/dts/am335x-cm-t335.dts
> @@ -0,0 +1,63 @@
> +/*
> + * am335x-cm-t335.dts - Device Tree file for Compulab CM-T335
> + *
> + * Copyright (C) 2014 - 2015 CompuLab Ltd. - http://www.compulab.co.il/
> + *
> + * 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.
> + */
> +
> +/dts-v1/;
> +
> +#include "am33xx.dtsi"
> +
> +/ {
> +	model = "CompuLab CM-T335";
> +	compatible = "compulab,cm-t335", "ti,am33xx";
> +
> +	memory {
> +		device_type = "memory";
> +		reg = <0x80000000 0x8000000>;	/* 128 MB */
> +	};
> +
> +	leds {
> +		compatible = "gpio-leds";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&gpio_led_pins>;
> +		led at 0 {
> +			label = "cm_t335:green";
> +			gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;	/* gpio2_0 */
> +			linux,default-trigger = "heartbeat";
> +		};
> +	};
> +};
> +
> +&am33xx_pinmux {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <>;
> +
> +	gpio_led_pins: pinmux_gpio_led_pins {
> +		pinctrl-single,pins = <
> +			/* gpmc_csn3.gpio2_0 */
> +			AM33XX_IOPAD(0x888, PIN_OUTPUT | MUX_MODE7)
> +		>;
> +	};
> +
> +	uart0_pins: pinmux_uart0_pins {
> +		pinctrl-single,pins = <
> +			/* uart0_rxd.uart0_rxd */
> +			AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* uart0_txd.uart0_txd */
> +			AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
> +		>;
> +	};
> +};
> +
> +&uart0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&uart0_pins>;
> +
> +	status = "okay";
> +};
> +
> -- 
> 2.5.0
> 

  reply	other threads:[~2015-11-25 22:44 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 12:14 [PATCH 0/6] ARM: OMAP2+: dts: cm-t335: initial support Uri Mashiach
2015-10-27 12:14 ` [PATCH 1/6] ARM: OMAP2+: dts: cm-t335: add " Uri Mashiach
2015-11-11 17:32   ` Uri Mashiach
2015-11-13 10:19   ` Igor Grinberg
2015-10-27 12:14 ` [PATCH 2/6] ARM: OMAP2+: dts: cm-t335: add basic support for I2C Uri Mashiach
2015-11-11 17:32   ` Uri Mashiach
2015-10-27 12:14 ` [PATCH 3/6] ARM: OMAP2+: dts: cm-t335: add support for NAND flash Uri Mashiach
2015-11-11 17:32   ` Uri Mashiach
2015-10-27 12:14 ` [PATCH 4/6] ARM: OMAP2+: dts: cm-t335: add support for MMC Uri Mashiach
2015-11-11 17:33   ` Uri Mashiach
2015-10-27 12:14 ` [PATCH 5/6] ARM: OMAP2+: dts: cm-t335: add support for network device Uri Mashiach
2015-10-27 13:14   ` Mugunthan V N
2015-11-11 17:33   ` Uri Mashiach
2015-10-27 12:15 ` [PATCH 6/6] ARM: OMAP2+: dts: cm-t335: add support for PWM backlight Uri Mashiach
2015-11-11 17:33   ` Uri Mashiach
2015-11-11 17:32 ` [PATCH 0/6] ARM: OMAP2+: dts: cm-t335: initial support Uri Mashiach
2015-11-11 17:50   ` Tony Lindgren
2015-11-24 14:02 ` [PATCH v2 " Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 1/6] ARM: OMAP2+: dts: cm-t335: add " Uri Mashiach
2015-11-25 22:44     ` Rob Herring [this message]
2015-11-30 19:51     ` Tony Lindgren
2015-12-02 10:44       ` Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 2/6] ARM: OMAP2+: dts: cm-t335: add basic support for I2C Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 3/6] ARM: OMAP2+: dts: cm-t335: add support for NAND flash Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 4/6] ARM: OMAP2+: dts: cm-t335: add support for MMC Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 5/6] ARM: OMAP2+: dts: cm-t335: add support for network device Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 6/6] ARM: OMAP2+: dts: cm-t335: add support for PWM backlight Uri Mashiach
2015-12-13  8:55 ` [PATCH 0/5] ARM: dts: cm-t335: add peripheral support Uri Mashiach
2015-12-13  8:55   ` [PATCH 1/5] ARM: dts: cm-t335: add support for USB0 Uri Mashiach
2015-12-13  8:55   ` [PATCH 2/5] ARM: dts: cm-t335: add support for SBC-T335 Uri Mashiach
2015-12-14  1:25     ` Rob Herring
2015-12-17 18:05       ` Tony Lindgren
2015-12-13  8:55   ` [PATCH 3/5] ARM: dts: cm-t335: add support for I2C GPIO expander Uri Mashiach
2015-12-13  8:55   ` [PATCH 4/5] ARM: dts: cm-t335: add support for DVI/LCD Uri Mashiach
2015-12-13  8:55   ` [PATCH 5/5] ARM: dts: cm-t335: add support for bluetooth Uri Mashiach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151125224459.GA12408@rob-hp-laptop \
    --to=robh@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox