diff options
author | SZ Lin (林上智) <sz.lin@moxa.com> | 2018-09-28 06:47:52 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-09-28 16:36:48 -0400 |
commit | 7f4ddf50c92b6a1d8f25a2a610c3a75785f77a1e (patch) | |
tree | 783adfe9370ca58711e28281aefba5f8b330a3bc | |
parent | 30fd611af55c476b1a1c96ce87cde25206146ba4 (diff) |
ARM: dts: am335x: add support for Moxa UC-2101 open platform
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/am335x-moxa-uc-2101.dts | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 8cb78264adee..927fd0ed514e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -707,6 +707,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \ | |||
707 | am335x-evmsk.dtb \ | 707 | am335x-evmsk.dtb \ |
708 | am335x-icev2.dtb \ | 708 | am335x-icev2.dtb \ |
709 | am335x-lxm.dtb \ | 709 | am335x-lxm.dtb \ |
710 | am335x-moxa-uc-2101.dtb \ | ||
710 | am335x-moxa-uc-8100-me-t.dtb \ | 711 | am335x-moxa-uc-8100-me-t.dtb \ |
711 | am335x-nano.dtb \ | 712 | am335x-nano.dtb \ |
712 | am335x-pdu001.dtb \ | 713 | 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..48aee6de4cdb --- /dev/null +++ b/arch/arm/boot/dts/am335x-moxa-uc-2101.dts | |||
@@ -0,0 +1,69 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | /* | ||
3 | * Copyright (C) 2018 MOXA Inc. - https://www.moxa.com/ | ||
4 | * | ||
5 | * Authors: SZ Lin (林上智) <sz.lin@moxa.com> | ||
6 | * Wes Huang (黃淵河) <wes.huang@moxa.com> | ||
7 | * Fero JD Zhou (周俊達) <FeroJD.Zhou@moxa.com> | ||
8 | */ | ||
9 | |||
10 | /dts-v1/; | ||
11 | |||
12 | #include "am335x-moxa-uc-2100-common.dtsi" | ||
13 | |||
14 | / { | ||
15 | model = "Moxa UC-2101"; | ||
16 | compatible = "moxa,uc-2101", "ti,am33xx"; | ||
17 | |||
18 | leds { | ||
19 | compatible = "gpio-leds"; | ||
20 | led1 { | ||
21 | label = "UC2100:GREEN:USER"; | ||
22 | gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; | ||
23 | default-state = "off"; | ||
24 | }; | ||
25 | }; | ||
26 | }; | ||
27 | |||
28 | &am33xx_pinmux { | ||
29 | pinctrl-names = "default"; | ||
30 | |||
31 | cpsw_default: cpsw_default { | ||
32 | pinctrl-single,pins = < | ||
33 | /* Slave 1 */ | ||
34 | AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs_dv */ | ||
35 | AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */ | ||
36 | AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rmii1_txen */ | ||
37 | AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */ | ||
38 | AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */ | ||
39 | AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_rxd1.rmii1_rxd1 */ | ||
40 | AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE1) /* mii1_rxd0.rmii1_rxd0 */ | ||
41 | AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mii1_refclk.rmii1_refclk */ | ||
42 | >; | ||
43 | }; | ||
44 | |||
45 | spi1_pins: pinmux_spi1 { | ||
46 | pinctrl-single,pins = < | ||
47 | AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE4) /* ecap0_in_pwm0_out.spi1_sclk */ | ||
48 | AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE4) /* uart1_ctsn.spi1_cs0 */ | ||
49 | AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE4) /* uart0_ctsn.spi1_d0 */ | ||
50 | AM33XX_IOPAD(0x96c, PIN_INPUT_PULLUP | MUX_MODE4) /* uart0_rtsn.spi1_d1 */ | ||
51 | >; | ||
52 | }; | ||
53 | }; | ||
54 | |||
55 | &davinci_mdio { | ||
56 | phy0: ethernet-phy@4 { | ||
57 | reg = <4>; | ||
58 | }; | ||
59 | }; | ||
60 | |||
61 | &cpsw_emac0 { | ||
62 | status = "okay"; | ||
63 | phy-handle = <&phy0>; | ||
64 | phy-mode = "rmii"; | ||
65 | }; | ||
66 | |||
67 | &cpsw_emac1 { | ||
68 | status = "disabled"; | ||
69 | }; | ||