Re: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-09-18 Thread Grygorii Strashko




On 09/17/2018 01:53 AM, SZ Lin (林上智) wrote:

Hi,


-Original Message-
From: Grygorii Strashko [mailto:grygorii.stras...@ti.com]






Pls, use phy-handle instead of phy_id here and in the next patch.


Thanks for the reminder, I will use phy-handle in next version.

Furthermore, the property of "phy-handle" doesn't work properly in 4.4.y-stable 
kernel.
I've fixed it and sent the backport patches to 4.4.y-stable [1][2][3][4].

[1] https://www.spinics.net/lists/stable/msg256121.html
[2] https://www.spinics.net/lists/stable/msg256124.html
[3] https://www.spinics.net/lists/stable/msg256131.html
[4] https://www.spinics.net/lists/stable/msg256749.html



Thank you.

--
regards,
-grygorii


Re: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-09-18 Thread Grygorii Strashko




On 09/17/2018 01:53 AM, SZ Lin (林上智) wrote:

Hi,


-Original Message-
From: Grygorii Strashko [mailto:grygorii.stras...@ti.com]






Pls, use phy-handle instead of phy_id here and in the next patch.


Thanks for the reminder, I will use phy-handle in next version.

Furthermore, the property of "phy-handle" doesn't work properly in 4.4.y-stable 
kernel.
I've fixed it and sent the backport patches to 4.4.y-stable [1][2][3][4].

[1] https://www.spinics.net/lists/stable/msg256121.html
[2] https://www.spinics.net/lists/stable/msg256124.html
[3] https://www.spinics.net/lists/stable/msg256131.html
[4] https://www.spinics.net/lists/stable/msg256749.html



Thank you.

--
regards,
-grygorii


RE: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-09-17 Thread 林上智
Hi,

> -Original Message-
> From: Grygorii Strashko [mailto:grygorii.stras...@ti.com]



> 
> Pls, use phy-handle instead of phy_id here and in the next patch.

Thanks for the reminder, I will use phy-handle in next version. 

Furthermore, the property of "phy-handle" doesn't work properly in 4.4.y-stable 
kernel.
I've fixed it and sent the backport patches to 4.4.y-stable [1][2][3][4].

[1] https://www.spinics.net/lists/stable/msg256121.html
[2] https://www.spinics.net/lists/stable/msg256124.html
[3] https://www.spinics.net/lists/stable/msg256131.html
[4] https://www.spinics.net/lists/stable/msg256749.html

> 
> > +   phy-mode = "rmii";
> > +};
> > +
> > +_emac1 {
> > +   status = "disable";
> > +};
> >
> 
> --
> regards,
> -grygorii


RE: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-09-17 Thread 林上智
Hi,

> -Original Message-
> From: Grygorii Strashko [mailto:grygorii.stras...@ti.com]



> 
> Pls, use phy-handle instead of phy_id here and in the next patch.

Thanks for the reminder, I will use phy-handle in next version. 

Furthermore, the property of "phy-handle" doesn't work properly in 4.4.y-stable 
kernel.
I've fixed it and sent the backport patches to 4.4.y-stable [1][2][3][4].

[1] https://www.spinics.net/lists/stable/msg256121.html
[2] https://www.spinics.net/lists/stable/msg256124.html
[3] https://www.spinics.net/lists/stable/msg256131.html
[4] https://www.spinics.net/lists/stable/msg256749.html

> 
> > +   phy-mode = "rmii";
> > +};
> > +
> > +_emac1 {
> > +   status = "disable";
> > +};
> >
> 
> --
> regards,
> -grygorii


Re: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-08-30 Thread Grygorii Strashko




On 08/29/2018 11:09 PM, 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 (黃淵河) 
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 ..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"
+



+
+_emac0 {
+   status = "okay";
+   phy_id = <_mdio>, <0x4>;


Pls, use phy-handle instead of phy_id here and in the next patch.


+   phy-mode = "rmii";
+};
+
+_emac1 {
+   status = "disable";
+};



--
regards,
-grygorii


Re: [PATCH 2/3] ARM: dts: am335x: add support for Moxa UC-2101 open platform

2018-08-30 Thread Grygorii Strashko




On 08/29/2018 11:09 PM, 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 (黃淵河) 
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 ..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"
+



+
+_emac0 {
+   status = "okay";
+   phy_id = <_mdio>, <0x4>;


Pls, use phy-handle instead of phy_id here and in the next patch.


+   phy-mode = "rmii";
+};
+
+_emac1 {
+   status = "disable";
+};



--
regards,
-grygorii