Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp275852imm; Wed, 29 Aug 2018 21:12:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZEJiMt1jps4WDC99A1weoaxgJa8IZQDBWhAQcmoJDHRRDarRbWQHTJ/9uBvMlkmk9mRYbv X-Received: by 2002:a62:d80a:: with SMTP id e10-v6mr4731828pfg.113.1535602328290; Wed, 29 Aug 2018 21:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535602328; cv=none; d=google.com; s=arc-20160816; b=SRURYya3Bq7/oA5hbUn7CbLQ4VrzhWdmE5bAKvzBDb2jpRVpDca2E/u7MrX+xcHD16 JwHPpCVDF61mlrsdap603xTW43Zji0JYhO6vDhV4+mynePqO6M4wy1eiOx1RGSiSlUDA iyft/nHjWQbh/xGQdPk33+tVgi+r19/qyzj32TTGPKiu2phAFQe4k15AXRHRPHvMUQki a1kMocv5UuoPccWb4qKoPT/YHBWggdVEKyI00BwMAuI3nKQ7uvkVLsbhWwAcfvFtSlF6 R171Zq26qN8/zmlN9PUianHmNdjtILXRhgRCZJpVVHD8sxDvtH/B6AXSUuM7XbVVezzN MrnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gjZuSNkzaNCoj4m2u2+7oCWmZPLeivjTIIt9bKpKork=; b=zWR58HJTB6Efn+Tj4K5Xp7MX+32/rrSYGB3PYRL7llrfDTlfN/+zJkcaefVTv54chU jsnpmKeFGkQMyi3IaEph6mB78U5xFmQTYN9YxdLxMILe42I/YiWY0u6Sp/xALeiVUQRW HfkbtYXB8UXBkSrcyUUmXsxgLI7GHqIcMBnK2ktwYYWETC0qXHlidXzb5GEK/gvSf5W5 AAvAdO+KvVZPqMYSOYJZG7eU/gI5+F57LFXUnpH9fO0KcPkroj88AdTU1O4fLbEPnp/F 5oQUTxm1GaqwgpqtN+Oj09KRm0qcRX+f2+fI+sncDI4jqs1peAg1FkNEsbmK0lLm+beU rjlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x61-v6si5812018plb.216.2018.08.29.21.11.54; Wed, 29 Aug 2018 21:12:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727631AbeH3IKP (ORCPT + 99 others); Thu, 30 Aug 2018 04:10:15 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46301 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727193AbeH3IKO (ORCPT ); Thu, 30 Aug 2018 04:10:14 -0400 Received: by mail-pf1-f194.google.com with SMTP id u24-v6so3255355pfn.13; Wed, 29 Aug 2018 21:10:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gjZuSNkzaNCoj4m2u2+7oCWmZPLeivjTIIt9bKpKork=; b=j3aVX5QsqhjCsvL3y0SWNfsGKyX6X61VDi9MWXynPjcdK8kqPXYT8M9johlEWwD+Tu ofE2Bi8PZwwFJY/yt8TbViLW3aoSpzb2P8kfS9hF9+lnjr73gSfzMYk8z+7D34ee7eFZ wyWGtKSfvfdeKHnRHxn90fdSfkj4Ve0VQHDDLwdb3RpM72BOoyGoydF+1snOlEZAs5KQ SAMWjg8Scg7dTORy8fLCMxKJIzITF7h8FuEnl71bYs78wOgodJtQZVqEcUQ2UqdL4xgo jC2t8/YuwKC/qBWp2WoaWya4dJGHqEBi46fPTIeh4U748lhxS7CNGi1f763l7NTzG0QA +SqA== X-Gm-Message-State: APzg51AkZr1CKciFVgknvJVBOnMStuoBqUZcqJlDiuYBxLXydjBpVqb3 az28ghmVwkdLz2NWouRWnL3sFXDWRvQ7OAve X-Received: by 2002:a63:7107:: with SMTP id m7-v6mr8024875pgc.73.1535602204838; Wed, 29 Aug 2018 21:10:04 -0700 (PDT) Received: from szlin-TW ([122.146.92.136]) by smtp.gmail.com with ESMTPSA id x4-v6sm7415233pfm.119.2018.08.29.21.10.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Aug 2018 21:10:04 -0700 (PDT) Received: from root by szlin-TW with local (Exim 4.91) (envelope-from ) id 1fvEHT-00065i-B0; Thu, 30 Aug 2018 12:10:03 +0800 From: =?UTF-8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?= To: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Mark Rutland , Rob Herring , Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , =?UTF-8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?= , Wes Huang , Fero JD Zhou Subject: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform Date: Thu, 30 Aug 2018 12:09:28 +0800 Message-Id: <20180830040929.23357-3-sz.lin@moxa.com> X-Mailer: git-send-email 2.19.0.rc1 In-Reply-To: <20180830040929.23357-1-sz.lin@moxa.com> References: <20180830040929.23357-1-sz.lin@moxa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (黃淵河) Signed-off-by: Fero JD Zhou (周俊達) Signed-off-by: SZ Lin (林上智) --- .../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 (林上智) + * Wes Huang (黃淵河) + * Fero JD Zhou (周俊達) + */ + +/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"; +}; -- 2.19.0.rc1