Received: by 10.223.164.202 with SMTP id h10csp2215409wrb; Thu, 16 Nov 2017 11:13:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMblXXLqPtavbGCiPjI2c6NH2ixjLlV7mVw/cLUtPkCHJi3VcnI55aBhbP3BzBUv/nLN6whd X-Received: by 10.101.91.193 with SMTP id o1mr2570101pgr.75.1510859633208; Thu, 16 Nov 2017 11:13:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510859633; cv=none; d=google.com; s=arc-20160816; b=oYp48/qXqSffGAl2ew9NArrZ+JNic5UeBXVmfo8FC2d8/Y4IruI694moJWY/NTVQrO rhUGU6Jpy6BA+bHGeUPzl4zx7NW2TN5884dBDmGdhIqdn+J7qRUcYTJh5/9jP7FiwbiE /yLfMXNwMb3EUu7QAZbnUCG6tq31SVgraZwUHUgwaruYLX5JJo4WgVaao6pYRbnGQLtE /jnfUJhKGtW+VWLNr6H7UDZRK4h56hvddysiabD/pb5Dv8XIrV905cp7X/X5OVWkeey9 wn6ixT0/uXN9pIlCKS0TMVI18KsWMqV7kWVqx2gv3Ut5DYw/X/zZ/PcSvNrO2dWw/Kfa meMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:arc-authentication-results; bh=FPZGGszUDMeYnyd1x2r5clpMxVuVUTOkNsWbCju3aew=; b=UZQSY9a+r0quCnSwiac3fhof1eVPQVqgTFdU7V9jeYh+woU8N3OffzmqcECAmLvK3B q3zjcfgyJm1RsCpErHghR279ecbTLFX3DVci9LGL/gd/QKb/HWe3/KSE3jX2kfjcjGWf 9KTvr6gurU6QHzjn2On6iXlB/gjl1Wq0nk8Sm+rhgk6BApqGmQD2/lNVaIT35mcbUOO0 RzT095a77L71ct5mC+sPusNZ/wES5qKbuH4x7Y5pN4/cGqJOwUjmx2Iuz8zODsIsV/z7 VWoZtDFTjO0Wcs1Q0edP9m+sWrEcRporRwduX9UZWLbMOVDyGCwwtGB9F5IV1uFnHOBB yWKQ== 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 v2si1333172plg.615.2017.11.16.11.13.38; Thu, 16 Nov 2017 11:13:53 -0800 (PST) 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 S934673AbdKPPAk (ORCPT + 91 others); Thu, 16 Nov 2017 10:00:40 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:50031 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934397AbdKPPA2 (ORCPT ); Thu, 16 Nov 2017 10:00:28 -0500 Received: by mail-pg0-f67.google.com with SMTP id 70so8263722pgf.6; Thu, 16 Nov 2017 07:00:28 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=FPZGGszUDMeYnyd1x2r5clpMxVuVUTOkNsWbCju3aew=; b=A/OH/EsKpNXqsKc1+XntRH+fmsDyPws2T4MrE1x2BS59C/7qBzkeMjJReG6VIUCt1u JyxQv136n0W7Au7eYb+utcL0bnTNlbzEPub8epfm+bwwIXfEXWKuaDuEaOczN/EKb5h+ qHu3BLsevJ9CLBLfPUUKOLP6uhcclDJn4dvK29B+BD3VuE7MC8vRPnA9diIJ4cU4mVc9 6fM0lUVdq2+FThZWEIXHiKc5A+h7fJ4XTRZtdQOQfhQhxaYka9J+QbRYB0NHc5nAcAaP ZOnh6epA53GR66VfnFPCOMHtQcdz6qjhsz9y2vnxsCPamV/U83xafOYQVRcNw8zjk7Rv yWog== X-Gm-Message-State: AJaThX6gmJPDGwy5PbViVuIiRZx9HwfDRYDeuSqznIW0kXKapsxi52h2 8UaNrJmjzylNfcWztCN82OnhQ3UYvoY= X-Received: by 10.98.192.202 with SMTP id g71mr2136962pfk.33.1510844428009; Thu, 16 Nov 2017 07:00:28 -0800 (PST) Received: from szlin-TW ([122.146.92.136]) by smtp.gmail.com with ESMTPSA id d8sm3931391pfh.178.2017.11.16.07.00.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Nov 2017 07:00:26 -0800 (PST) Received: from root by szlin-TW with local (Exim 4.89) (envelope-from ) id 1eFLeT-0006n1-FT; Thu, 16 Nov 2017 23:00:25 +0800 From: SZ Lin Cc: shawnguo@kernel.org, SZ Lin , Jimmy Chen , Harry YJ Jhou , Rob Herring , Mark Rutland , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm, ls1021a: add support for Moxa UC-8410A open platform Date: Thu, 16 Nov 2017 22:58:57 +0800 Message-Id: <20171116145858.25966-1-sz.lin@moxa.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for Moxa UC-8410A open platform The UC-8410A computing platform is designed for embedded communication-centric industrial applications The features of UC-8410A are: * QSPI flash * SD slot * 3x LAN * 8x RS-232/422/485 ports, software-selectable * Mini PCIe form factor with PCIe/USB signal * 2x USB host * TPM * Watchdog * RTC * User LEDs * Beeper Signed-off-by: Jimmy Chen Signed-off-by: Harry YJ Jhou Signed-off-by: SZ Lin --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 230 ++++++++++++++++++++++++++++ 2 files changed, 231 insertions(+) create mode 100644 arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index eff87a344566..0165fbcb1d10 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -495,6 +495,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7s-colibri-eval-v3.dtb \ imx7s-warp.dtb dtb-$(CONFIG_SOC_LS1021A) += \ + ls1021a-moxa-uc-8410a.dtb \ ls1021a-qds.dtb \ ls1021a-twr.dtb dtb-$(CONFIG_SOC_VF610) += \ diff --git a/arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts b/arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts new file mode 100644 index 000000000000..4896b551505b --- /dev/null +++ b/arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts @@ -0,0 +1,230 @@ +/* + * Copyright (C) 2017 Moxa Inc. - https://www.moxa.com/ + * + * Author: Harry YJ Jhou (周亞諄) + * Jimmy Chen (陳永達) + * SZ Lin (林上智) + * + * 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 "ls1021a.dtsi" + +/ { + model = "Moxa UC-8410A"; + + aliases { + enet0_rgmii_phy = &rgmii_phy0; + enet1_rgmii_phy = &rgmii_phy1; + enet2_rgmii_phy = &rgmii_phy2; + }; + + sys_mclk: clock-mclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24576000>; + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_3p3v: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + + leds { + compatible = "gpio-leds"; + cel_pwr { + label = "UC8410A:CEL_PWR"; + gpios = <&gpio3 23 1>; + default-state = "off"; + }; + + cel_reset { + label = "UC8410A:CEL_RESET"; + gpios = <&gpio3 24 1>; + default-state = "off"; + }; + + str_led { + label = "UC8410A:RED:PROG"; + gpios = <&gpio0 16 0>; + linux,default-trigger = "mmc0"; + }; + + sw_ready { + label = "UC8410A:GREEN:SWRDY"; + gpios = <&gpio0 18 0>; + default-state = "on"; + }; + + beeper { + label = "UC8410A:BEEP"; + gpios = <&gpio0 20 0>; + default-state = "off"; + }; + + prog_led0 { + label = "UC8410A:GREEN:PROG2"; + gpios = <&gpio3 14 0>; + default-state = "off"; + }; + + prog_led1 { + label = "UC8410A:GREEN:PROG1"; + gpios = <&gpio3 15 0>; + default-state = "off"; + }; + + prog_led2 { + label = "UC8410A:GREEN:PROG0"; + gpios = <&gpio3 16 0>; + default-state = "off"; + }; + + wifi_signal0 { + label = "UC8410A:GREEN:CEL2"; + gpios = <&gpio3 17 0>; + default-state = "off"; + }; + + wifi_signal1 { + label = "UC8410A:GREEN:CEL1"; + gpios = <&gpio3 18 0>; + default-state = "off"; + }; + + wifi_signal2 { + label = "UC8410A:GREEN:CEL0"; + gpios = <&gpio3 19 0>; + default-state = "off"; + }; + + cpu_diag_red { + label = "UC8410A:RED:DIA"; + gpios = <&gpio3 20 0>; + default-state = "off"; + }; + + cpu_diag_green { + label = "UC8410A:GREEN:DIA"; + gpios = <&gpio3 21 0>; + default-state = "off"; + }; + + cpu_diag_yellow { + label = "UC8410A:YELLOW:DIA"; + gpios = <&gpio3 22 0>; + default-state = "off"; + }; + }; +}; + +&enet0 { + phy-handle = <&rgmii_phy0>; + phy-connection-type = "rgmii-id"; + status = "okay"; +}; + +&enet1 { + phy-handle = <&rgmii_phy1>; + phy-connection-type = "rgmii-id"; + status = "okay"; +}; + +&enet2 { + phy-handle = <&rgmii_phy2>; + phy-connection-type = "rgmii-id"; + status = "okay"; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <100000>; + + rtc: rtc@68 { + compatible = "dallas,ds1374"; + reg = <0x68>; + }; + + tpm: tpm@20 { + compatible = "infineon,slb9635tt"; + reg = <0x20>; + }; +}; + +&lpuart0 { + status = "okay"; +}; + +&mdio0 { + rgmii_phy0: ethernet-phy@0 { + compatible = "marvell,88e1118"; + reg = <0x0>; + marvell,reg-init = + <3 0x11 0 0x4415>, /* Reg 3,17 */ + <3 0x10 0 0x77>; /* Reg 3,16 */ + }; + rgmii_phy1: ethernet-phy@1 { + compatible = "marvell,88e1118"; + reg = <0x1>; + marvell,reg-init = + <3 0x11 0 0x4415>, /* Reg 3,17 */ + <3 0x10 0 0x77>; /* Reg 3,16 */ + }; + rgmii_phy2: ethernet-phy@2 { + compatible = "marvell,88e1118"; + reg = <0x2>; + marvell,reg-init = + <3 0x11 0 0x4415>, /* Reg 3,17 */ + <3 0x10 0 0x77>; /* Reg 3,16 */ + }; +}; + +&qspi { + status = "okay"; + bus-num = <0>; + fsl,spi-num-chipselects = <2>; + fsl,spi-flash-chipselects = <0>; + fsl,qspi-has-second-chip; + flash: flash@0 { + compatible = "spansion,s25fl064l", "spansion,s25fl164k"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <20000000>; + reg = <0>; + + partitions@0 { + label = "U-Boot"; + reg = <0x0 0x180000>; + }; + partitions@1 { + label = "U-Boot Env"; + reg = <0x180000 0x680000>; + }; + }; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&sata { + status = "okay"; +}; -- 2.15.0 From 1585611987184073261@xxx Fri Dec 01 19:43:47 +0000 2017 X-GM-THRID: 1585611987184073261 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread