2021-05-04 19:36:31

by Corentin LABBE

[permalink] [raw]
Subject: [PATCH 0/5] ixp4xx: add welltech-epbx100

The welltech epbx100 is a small IP PBX board.
It ship an Intel IXDPG425 Network Gateway Reference (IXP42X 533MHz) SoC.
Original image ran an old 2.4.31 but upgrading to recent kernel was
easy.
It misses a working network interfaces but its current state is
sufficient to work on my interest, its crypto device.

More information on the board could be found on http://kernel.montjoie.ovh/welltech-epbx100.html

Corentin Labbe (5):
ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM
ARM: ixp4xx_defconfig: add MTD_PHYSMAP
dt-bindings: add vendor prefix for welltech
dt-bindings: arm: intel-ixp4xx: add welltech,epbx100
ARM: dts: add intel-ixp42x-welltech-epbx100

.../devicetree/bindings/arm/intel-ixp4xx.yaml | 1 +
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
arch/arm/boot/dts/Makefile | 1 +
.../dts/intel-ixp42x-welltech-epbx100.dts | 76 +++++++++++++++++++
arch/arm/configs/ixp4xx_defconfig | 3 +
5 files changed, 83 insertions(+)
create mode 100644 arch/arm/boot/dts/intel-ixp42x-welltech-epbx100.dts

--
2.26.3


2021-05-04 19:38:35

by Corentin LABBE

[permalink] [raw]
Subject: [PATCH 3/5] dt-bindings: add vendor prefix for welltech

Add vendor prefix for Welltech computer Co Ld.

Signed-off-by: Corentin Labbe <[email protected]>
---
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 71ccbe682e11..f9648b37da12 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1248,6 +1248,8 @@ patternProperties:
description: Western Digital Corp.
"^we,.*":
description: Würth Elektronik GmbH.
+ "^welltech,.*":
+ description: Welltech Computer Co., Limited.
"^wetek,.*":
description: WeTek Electronics, limited.
"^wexler,.*":
--
2.26.3

2021-05-04 19:40:06

by Corentin LABBE

[permalink] [raw]
Subject: [PATCH 5/5] ARM: dts: add intel-ixp42x-welltech-epbx100

This patch adds devicetree for intel-ixp42x-welltech-epbx100.

Signed-off-by: Corentin Labbe <[email protected]>
---
arch/arm/boot/dts/Makefile | 1 +
.../dts/intel-ixp42x-welltech-epbx100.dts | 76 +++++++++++++++++++
2 files changed, 77 insertions(+)
create mode 100644 arch/arm/boot/dts/intel-ixp42x-welltech-epbx100.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 1580313eb372..7d0c94b9108d 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -242,6 +242,7 @@ dtb-$(CONFIG_ARCH_INTEGRATOR) += \
integratorcp.dtb
dtb-$(CONFIG_ARCH_IXP4XX) += \
intel-ixp42x-linksys-nslu2.dtb \
+ intel-ixp42x-welltech-epbx100.dtb \
intel-ixp43x-gateworks-gw2358.dtb
dtb-$(CONFIG_ARCH_KEYSTONE) += \
keystone-k2hk-evm.dtb \
diff --git a/arch/arm/boot/dts/intel-ixp42x-welltech-epbx100.dts b/arch/arm/boot/dts/intel-ixp42x-welltech-epbx100.dts
new file mode 100644
index 000000000000..84158503be2a
--- /dev/null
+++ b/arch/arm/boot/dts/intel-ixp42x-welltech-epbx100.dts
@@ -0,0 +1,76 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2021 Corentin Labbe <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "intel-ixp42x.dtsi"
+
+/ {
+ model = "Welltech EPBX100";
+ compatible = "welltech,epbx100", "intel,ixp42x";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ memory@0 {
+ /* 64 MB SDRAM */
+ device_type = "memory";
+ reg = <0x00000000 0x4000000>;
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,115200n8 root=/dev/ram0 initrd=0x00800000,9M";
+ stdout-path = "uart0:115200n8";
+ };
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ flash@50000000 {
+ compatible = "intel,ixp4xx-flash", "cfi-flash";
+ bank-width = <2>;
+ /*
+ * 16 MB of Flash
+ */
+ reg = <0x50000000 0x1000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "RedBoot";
+ reg = <0x00000000 0x00080000>;
+ read-only;
+ };
+ partition@80000 {
+ label = "zImage";
+ reg = <0x00080000 0x00100000>;
+ read-only;
+ };
+ partition@180000 {
+ label = "ramdisk";
+ reg = <0x00180000 0x00300000>;
+ read-only;
+ };
+ partition@480000 {
+ label = "User";
+ reg = <0x00480000 0x00b60000>;
+ read-only;
+ };
+ partition@fe0000 {
+ label = "FIS directory";
+ reg = <0x00fe0000 0x001f000>;
+ read-only;
+ };
+ partition@fff000 {
+ label = "RedBoot config";
+ reg = <0x00fff000 0x0001000>;
+ read-only;
+ };
+ };
+ };
+};
--
2.26.3

2021-05-04 20:24:22

by Corentin LABBE

[permalink] [raw]
Subject: [PATCH 1/5] ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM

My ixp42x-welltech-epbx100 does not print anything on console without
CONFIG_SERIAL_OF_PLATFORM.

Signed-off-by: Corentin Labbe <[email protected]>
---
arch/arm/configs/ixp4xx_defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/ixp4xx_defconfig b/arch/arm/configs/ixp4xx_defconfig
index 0d6edeb27659..e3bcf2bed25c 100644
--- a/arch/arm/configs/ixp4xx_defconfig
+++ b/arch/arm/configs/ixp4xx_defconfig
@@ -152,6 +152,7 @@ CONFIG_INPUT_IXP4XX_BEEPER=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=2
+CONFIG_SERIAL_OF_PLATFORM=y
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
CONFIG_SENSORS_W83781D=y
--
2.26.3

2021-05-04 21:53:44

by Corentin LABBE

[permalink] [raw]
Subject: [PATCH 2/5] ARM: ixp4xx_defconfig: add MTD_PHYSMAP

Without MTD_PHYSMAP/MTD_PHYSMAP_OF the flash partitions of my welltech,epbx100
are not detected.

Signed-off-by: Corentin Labbe <[email protected]>
---
arch/arm/configs/ixp4xx_defconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm/configs/ixp4xx_defconfig b/arch/arm/configs/ixp4xx_defconfig
index e3bcf2bed25c..9a7667383df9 100644
--- a/arch/arm/configs/ixp4xx_defconfig
+++ b/arch/arm/configs/ixp4xx_defconfig
@@ -109,6 +109,8 @@ CONFIG_MTD_REDBOOT_PARTS=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_CFI=y
CONFIG_MTD_CFI_INTELEXT=y
+CONFIG_MTD_PHYSMAP=y
+CONFIG_MTD_PHYSMAP_OF=y
CONFIG_MTD_COMPLEX_MAPPINGS=y
CONFIG_MTD_IXP4XX=y
CONFIG_MTD_RAW_NAND=m
--
2.26.3

2021-05-04 21:53:44

by Corentin LABBE

[permalink] [raw]
Subject: [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100

Adds welltech,epbx100 as a valid intel-ixp4xx board.

Signed-off-by: Corentin Labbe <[email protected]>
---
Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml b/Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml
index d72e92bdf7c1..230bffeec0e5 100644
--- a/Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml
+++ b/Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml
@@ -17,6 +17,7 @@ properties:
- items:
- enum:
- linksys,nslu2
+ - welltech,epbx100
- const: intel,ixp42x
- items:
- enum:
--
2.26.3

2021-05-06 21:08:43

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100

On Tue, 04 May 2021 19:34:56 +0000, Corentin Labbe wrote:
> Adds welltech,epbx100 as a valid intel-ixp4xx board.
>
> Signed-off-by: Corentin Labbe <[email protected]>
> ---
> Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml | 1 +
> 1 file changed, 1 insertion(+)
>

Acked-by: Rob Herring <[email protected]>

2021-05-07 00:43:05

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH 3/5] dt-bindings: add vendor prefix for welltech

On Tue, 04 May 2021 19:34:55 +0000, Corentin Labbe wrote:
> Add vendor prefix for Welltech computer Co Ld.
>
> Signed-off-by: Corentin Labbe <[email protected]>
> ---
> Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>

Acked-by: Rob Herring <[email protected]>