devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: "SZ Lin (林上智)" <sz.lin@moxa.com>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-omap@vger.kernel.org, "Mark Rutland" <mark.rutland@arm.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Benoît Cousson" <bcousson@baylibre.com>,
	"Wes Huang" <wes.huang@moxa.com>,
	"Fero JD Zhou" <FeroJD.Zhou@moxa.com>
Subject: Re: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform
Date: Mon, 3 Sep 2018 20:03:00 -0500	[thread overview]
Message-ID: <20180904010258.GA2461@bogus> (raw)
In-Reply-To: <20180830040929.23357-3-sz.lin@moxa.com>

On Thu, Aug 30, 2018 at 12:09:28PM +0800, SZ Lin (林上智) wrote:
> Add support for Moxa UC-2101 open platform
> 
> The UC-2101 computing platform is designed for industrial embedded
> data acquisition and processing applications.
> 
> The features of UC-2101 are:
> * eMMC
> * SPI flash
> * 1x LAN
> * 1x RS-232/422/485 ports, software-selectable
> * EEPROM
> * TPM 2.0
> * Watchdog
> * RTC
> * User gpio-keys
> * User LEDs
> * User button
> 
> Signed-off-by: Wes Huang (黃淵河) <wes.huang@moxa.com>
> Signed-off-by: Fero JD Zhou (周俊達) <FeroJD.Zhou@moxa.com>
> Signed-off-by: SZ Lin (林上智) <sz.lin@moxa.com>
> ---
>  .../devicetree/bindings/arm/omap/omap.txt     |  3 +
>  arch/arm/boot/dts/Makefile                    |  1 +
>  arch/arm/boot/dts/am335x-moxa-uc-2101.dts     | 63 +++++++++++++++++++
>  3 files changed, 67 insertions(+)
>  create mode 100644 arch/arm/boot/dts/am335x-moxa-uc-2101.dts
> 
> diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
> index 2ecc712bf707..c5ca3d6a8099 100644
> --- a/Documentation/devicetree/bindings/arm/omap/omap.txt
> +++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
> @@ -157,6 +157,9 @@ Boards:
>  - AM335X phyCORE-AM335x: Development kit
>    compatible = "phytec,am335x-pcm-953", "phytec,am335x-phycore-som", "ti,am33xx"
>  
> +- AM335X UC-2100: Wireless-enabled palm-sized industrial computing platform
> +  compatible = "moxa,uc-2101", "ti,am33xx"
> +
>  - AM335X UC-8100-ME-T: Communication-centric industrial computing platform
>    compatible = "moxa,uc-8100-me-t", "ti,am33xx";
>  
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index b5bd3de87c33..6167c068601c 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -706,6 +706,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \
>  	am335x-evmsk.dtb \
>  	am335x-icev2.dtb \
>  	am335x-lxm.dtb \
> +	am335x-moxa-uc-2101.dtb \
>  	am335x-moxa-uc-8100-me-t.dtb \
>  	am335x-nano.dtb \
>  	am335x-pdu001.dtb \
> diff --git a/arch/arm/boot/dts/am335x-moxa-uc-2101.dts b/arch/arm/boot/dts/am335x-moxa-uc-2101.dts
> new file mode 100644
> index 000000000000..d0c1eea4a6c9
> --- /dev/null
> +++ b/arch/arm/boot/dts/am335x-moxa-uc-2101.dts
> @@ -0,0 +1,63 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright (C) 2018 MOXA Inc. - https://www.moxa.com/
> + *
> + * Authors: SZ Lin (林上智) <sz.lin@moxa.com>
> + *          Wes Huang (黃淵河) <wes.huang@moxa.com>
> + *          Fero JD Zhou (周俊達) <FeroJD.Zhou@moxa.com>
> + */
> +
> +/dts-v1/;
> +
> +#include "am335x-moxa-uc-2100-common.dtsi"
> +
> +/ {
> +	model = "Moxa UC-2101";
> +	compatible = "moxa,uc-2101", "ti,am33xx";
> +
> +	leds {
> +		compatible = "gpio-leds";
> +		led1 {
> +			label = "UC2100:GREEN:USER";
> +			gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +	};
> +};
> +
> +&am33xx_pinmux {
> +	pinctrl-names = "default";
> +
> +	cpsw_default: cpsw_default {
> +		pinctrl-single,pins = <
> +			/* Slave 1 */
> +			AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE1)	/* mii1_crs.rmii1_crs_dv */
> +			AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE1)	/* mii1_rxerr.rmii1_rxerr */
> +			AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE1)	/* mii1_txen.rmii1_txen */
> +			AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE1)	/* mii1_txd1.rmii1_txd1 */
> +			AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE1)	/* mii1_txd0.rmii1_txd0 */
> +			AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE1)	/* mii1_rxd1.rmii1_rxd1 */
> +			AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE1)	/* mii1_rxd0.rmii1_rxd0 */
> +			AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mii1_refclk.rmii1_refclk */
> +		>;
> +	};
> +
> +	spi1_pins: pinmux_spi1 {
> +		pinctrl-single,pins = <
> +			AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE4)	 /* ecap0_in_pwm0_out.spi1_sclk */
> +			AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE4)	 /* uart1_ctsn.spi1_cs0 */
> +			AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE4)	 /* uart0_ctsn.spi1_d0 */
> +			AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE4)	 /* uart0_rtsn.spi1_d1 */
> +		>;
> +	};
> +};
> +
> +&cpsw_emac0 {
> +	status = "okay";
> +	phy_id = <&davinci_mdio>, <0x4>;
> +	phy-mode = "rmii";
> +};
> +
> +&cpsw_emac1 {
> +	status = "disable";

"disabled" is the correct value.

> +};
> -- 
> 2.19.0.rc1
> 

  parent reply	other threads:[~2018-09-04  1:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-30  4:09 [PATCH 0/3] ARM: dts: am335x: add support for Moxa UC-2100 series SZ Lin (林上智)
2018-08-30  4:09 ` [PATCH 1/3] ARM: dts: am335x: add common file for " SZ Lin (林上智)
2018-08-30  4:09 ` [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform SZ Lin (林上智)
2018-08-30 23:46   ` Grygorii Strashko
2018-09-17  6:53     ` SZ Lin (林上智)
2018-09-18 12:50       ` Grygorii Strashko
2018-09-04  1:03   ` Rob Herring [this message]
2018-08-30  4:09 ` [PATCH 3/3] ARM: dts: am335x: add support for Moxa UC-2102 " SZ Lin (林上智)
2018-09-04  1:06   ` Rob Herring
2018-09-17  7:38     ` SZ Lin (林上智)

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=20180904010258.GA2461@bogus \
    --to=robh@kernel.org \
    --cc=FeroJD.Zhou@moxa.com \
    --cc=bcousson@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=sz.lin@moxa.com \
    --cc=tony@atomide.com \
    --cc=wes.huang@moxa.com \
    /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;
as well as URLs for NNTP newsgroup(s).