LKML Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/5] ixp4xx: add welltech-epbx100
@ 2021-05-04 19:34 Corentin Labbe
  2021-05-04 19:34 ` [PATCH 1/5] ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM Corentin Labbe
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Corentin Labbe @ 2021-05-04 19:34 UTC (permalink / raw)
  To: arnd, kaloz, khalasa, linusw, linux, olof, robh+dt, soc
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/5] ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM
  2021-05-04 19:34 [PATCH 0/5] ixp4xx: add welltech-epbx100 Corentin Labbe
@ 2021-05-04 19:34 ` Corentin Labbe
  2021-05-04 19:34 ` [PATCH 2/5] ARM: ixp4xx_defconfig: add MTD_PHYSMAP Corentin Labbe
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Corentin Labbe @ 2021-05-04 19:34 UTC (permalink / raw)
  To: arnd, kaloz, khalasa, linusw, linux, olof, robh+dt, soc
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

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

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 2/5] ARM: ixp4xx_defconfig: add MTD_PHYSMAP
  2021-05-04 19:34 [PATCH 0/5] ixp4xx: add welltech-epbx100 Corentin Labbe
  2021-05-04 19:34 ` [PATCH 1/5] ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM Corentin Labbe
@ 2021-05-04 19:34 ` Corentin Labbe
  2021-05-04 19:34 ` [PATCH 3/5] dt-bindings: add vendor prefix for welltech Corentin Labbe
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Corentin Labbe @ 2021-05-04 19:34 UTC (permalink / raw)
  To: arnd, kaloz, khalasa, linusw, linux, olof, robh+dt, soc
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

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

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 3/5] dt-bindings: add vendor prefix for welltech
  2021-05-04 19:34 [PATCH 0/5] ixp4xx: add welltech-epbx100 Corentin Labbe
  2021-05-04 19:34 ` [PATCH 1/5] ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM Corentin Labbe
  2021-05-04 19:34 ` [PATCH 2/5] ARM: ixp4xx_defconfig: add MTD_PHYSMAP Corentin Labbe
@ 2021-05-04 19:34 ` Corentin Labbe
  2021-05-06 21:06   ` Rob Herring
  2021-05-04 19:34 ` [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100 Corentin Labbe
  2021-05-04 19:34 ` [PATCH 5/5] ARM: dts: add intel-ixp42x-welltech-epbx100 Corentin Labbe
  4 siblings, 1 reply; 8+ messages in thread
From: Corentin Labbe @ 2021-05-04 19:34 UTC (permalink / raw)
  To: arnd, kaloz, khalasa, linusw, linux, olof, robh+dt, soc
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

Add vendor prefix for Welltech computer Co Ld.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100
  2021-05-04 19:34 [PATCH 0/5] ixp4xx: add welltech-epbx100 Corentin Labbe
                   ` (2 preceding siblings ...)
  2021-05-04 19:34 ` [PATCH 3/5] dt-bindings: add vendor prefix for welltech Corentin Labbe
@ 2021-05-04 19:34 ` Corentin Labbe
  2021-05-06 21:06   ` Rob Herring
  2021-05-04 19:34 ` [PATCH 5/5] ARM: dts: add intel-ixp42x-welltech-epbx100 Corentin Labbe
  4 siblings, 1 reply; 8+ messages in thread
From: Corentin Labbe @ 2021-05-04 19:34 UTC (permalink / raw)
  To: arnd, kaloz, khalasa, linusw, linux, olof, robh+dt, soc
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

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

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 5/5] ARM: dts: add intel-ixp42x-welltech-epbx100
  2021-05-04 19:34 [PATCH 0/5] ixp4xx: add welltech-epbx100 Corentin Labbe
                   ` (3 preceding siblings ...)
  2021-05-04 19:34 ` [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100 Corentin Labbe
@ 2021-05-04 19:34 ` Corentin Labbe
  4 siblings, 0 replies; 8+ messages in thread
From: Corentin Labbe @ 2021-05-04 19:34 UTC (permalink / raw)
  To: arnd, kaloz, khalasa, linusw, linux, olof, robh+dt, soc
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

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

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 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 <clabbe@baylibre.com>
+ */
+
+/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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/5] dt-bindings: add vendor prefix for welltech
  2021-05-04 19:34 ` [PATCH 3/5] dt-bindings: add vendor prefix for welltech Corentin Labbe
@ 2021-05-06 21:06   ` Rob Herring
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2021-05-06 21:06 UTC (permalink / raw)
  To: Corentin Labbe
  Cc: linux, khalasa, soc, arnd, robh+dt, kaloz, linux-arm-kernel,
	linusw, olof, devicetree, linux-kernel

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 <clabbe@baylibre.com>
> ---
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100
  2021-05-04 19:34 ` [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100 Corentin Labbe
@ 2021-05-06 21:06   ` Rob Herring
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2021-05-06 21:06 UTC (permalink / raw)
  To: Corentin Labbe
  Cc: linux-arm-kernel, kaloz, robh+dt, arnd, khalasa, linusw, linux,
	olof, soc, devicetree, linux-kernel

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 <clabbe@baylibre.com>
> ---
>  Documentation/devicetree/bindings/arm/intel-ixp4xx.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, back to index

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 19:34 [PATCH 0/5] ixp4xx: add welltech-epbx100 Corentin Labbe
2021-05-04 19:34 ` [PATCH 1/5] ARM: ixp4xx_defconfig: add CONFIG_SERIAL_OF_PLATFORM Corentin Labbe
2021-05-04 19:34 ` [PATCH 2/5] ARM: ixp4xx_defconfig: add MTD_PHYSMAP Corentin Labbe
2021-05-04 19:34 ` [PATCH 3/5] dt-bindings: add vendor prefix for welltech Corentin Labbe
2021-05-06 21:06   ` Rob Herring
2021-05-04 19:34 ` [PATCH 4/5] dt-bindings: arm: intel-ixp4xx: add welltech,epbx100 Corentin Labbe
2021-05-06 21:06   ` Rob Herring
2021-05-04 19:34 ` [PATCH 5/5] ARM: dts: add intel-ixp42x-welltech-epbx100 Corentin Labbe

LKML Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
	git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
	git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
	git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
	git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
	git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
	git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
	git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git
	git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git
	git clone --mirror https://lore.kernel.org/lkml/9 lkml/git/9.git
	git clone --mirror https://lore.kernel.org/lkml/10 lkml/git/10.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \
		linux-kernel@vger.kernel.org
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git