linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] powerpc/microwatt: Device tree and config updates
@ 2021-08-26 12:26 Joel Stanley
  2021-08-26 12:26 ` [PATCH 1/3] powerpc/microwatt: Add Ethernet to device tree Joel Stanley
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Joel Stanley @ 2021-08-26 12:26 UTC (permalink / raw)
  To: Michael Ellerman, Paul Mackerras, Anton Blanchard, Michael Neuling
  Cc: linuxppc-dev

This enables the liteeth network device for microwatt which will be
merged in v5.15.

It also turns on some options so the microwatt defconfig can be used to
boot a userspace with systemd.

Joel Stanley (3):
  powerpc/microwatt: Add Ethernet to device tree
  powerpc/configs/microwattt: Enable Liteeth
  powerpc/configs/microwatt: Enable options for systemd

 arch/powerpc/boot/dts/microwatt.dts      | 12 ++++++++++++
 arch/powerpc/configs/microwatt_defconfig |  6 +++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

-- 
2.33.0


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

* [PATCH 1/3] powerpc/microwatt: Add Ethernet to device tree
  2021-08-26 12:26 [PATCH 0/3] powerpc/microwatt: Device tree and config updates Joel Stanley
@ 2021-08-26 12:26 ` Joel Stanley
  2021-08-26 12:26 ` [PATCH 2/3] powerpc/configs/microwattt: Enable Liteeth Joel Stanley
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2021-08-26 12:26 UTC (permalink / raw)
  To: Michael Ellerman, Paul Mackerras, Anton Blanchard, Michael Neuling
  Cc: linuxppc-dev

The liteeth network device is used in the Microwatt soc.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 arch/powerpc/boot/dts/microwatt.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/powerpc/boot/dts/microwatt.dts b/arch/powerpc/boot/dts/microwatt.dts
index 974abbdda249..65b270a90f94 100644
--- a/arch/powerpc/boot/dts/microwatt.dts
+++ b/arch/powerpc/boot/dts/microwatt.dts
@@ -127,6 +127,18 @@ UART0: serial@2000 {
 			fifo-size = <16>;
 			interrupts = <0x10 0x1>;
 		};
+
+		ethernet@8020000 {
+			compatible = "litex,liteeth";
+			reg = <0x8021000 0x100
+				0x8020800 0x100
+				0x8030000 0x2000>;
+			reg-names = "mac", "mido", "buffer";
+			litex,rx-slots = <2>;
+			litex,tx-slots = <2>;
+			litex,slot-size = <0x800>;
+			interrupts = <0x11 0x1>;
+		};
 	};
 
 	chosen {
-- 
2.33.0


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

* [PATCH 2/3] powerpc/configs/microwattt: Enable Liteeth
  2021-08-26 12:26 [PATCH 0/3] powerpc/microwatt: Device tree and config updates Joel Stanley
  2021-08-26 12:26 ` [PATCH 1/3] powerpc/microwatt: Add Ethernet to device tree Joel Stanley
@ 2021-08-26 12:26 ` Joel Stanley
  2021-08-26 12:26 ` [PATCH 3/3] powerpc/configs/microwatt: Enable options for systemd Joel Stanley
  2021-08-31 13:57 ` [PATCH 0/3] powerpc/microwatt: Device tree and config updates Michael Ellerman
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2021-08-26 12:26 UTC (permalink / raw)
  To: Michael Ellerman, Paul Mackerras, Anton Blanchard, Michael Neuling
  Cc: linuxppc-dev

Liteeth is the network device used by Microwatt.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 arch/powerpc/configs/microwatt_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig
index a08b739123da..2f8b1fec9a16 100644
--- a/arch/powerpc/configs/microwatt_defconfig
+++ b/arch/powerpc/configs/microwatt_defconfig
@@ -53,6 +53,7 @@ CONFIG_MTD_SPI_NOR=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_RAM=y
 CONFIG_NETDEVICES=y
+CONFIG_LITEX_LITEETH=y
 # CONFIG_WLAN is not set
 # CONFIG_INPUT is not set
 # CONFIG_SERIO is not set
-- 
2.33.0


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

* [PATCH 3/3] powerpc/configs/microwatt: Enable options for systemd
  2021-08-26 12:26 [PATCH 0/3] powerpc/microwatt: Device tree and config updates Joel Stanley
  2021-08-26 12:26 ` [PATCH 1/3] powerpc/microwatt: Add Ethernet to device tree Joel Stanley
  2021-08-26 12:26 ` [PATCH 2/3] powerpc/configs/microwattt: Enable Liteeth Joel Stanley
@ 2021-08-26 12:26 ` Joel Stanley
  2021-08-31 13:57 ` [PATCH 0/3] powerpc/microwatt: Device tree and config updates Michael Ellerman
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2021-08-26 12:26 UTC (permalink / raw)
  To: Michael Ellerman, Paul Mackerras, Anton Blanchard, Michael Neuling
  Cc: linuxppc-dev

When booting with systemd these options are required.

This increases the image by about 50KB, or 2%.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 arch/powerpc/configs/microwatt_defconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig
index 2f8b1fec9a16..4a4924cd056e 100644
--- a/arch/powerpc/configs/microwatt_defconfig
+++ b/arch/powerpc/configs/microwatt_defconfig
@@ -5,6 +5,7 @@ CONFIG_PREEMPT_VOLUNTARY=y
 CONFIG_TICK_CPU_ACCOUNTING=y
 CONFIG_LOG_BUF_SHIFT=16
 CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12
+CONFIG_CGROUPS=y
 CONFIG_BLK_DEV_INITRD=y
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_KALLSYMS_ALL=y
@@ -77,8 +78,10 @@ CONFIG_SPI_SPIDEV=y
 CONFIG_EXT4_FS=y
 # CONFIG_FILE_LOCKING is not set
 # CONFIG_DNOTIFY is not set
-# CONFIG_INOTIFY_USER is not set
+CONFIG_AUTOFS_FS=y
+CONFIG_TMPFS=y
 # CONFIG_MISC_FILESYSTEMS is not set
+CONFIG_CRYPTO_SHA256=y
 # CONFIG_CRYPTO_HW is not set
 # CONFIG_XZ_DEC_X86 is not set
 # CONFIG_XZ_DEC_IA64 is not set
-- 
2.33.0


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

* Re: [PATCH 0/3] powerpc/microwatt: Device tree and config updates
  2021-08-26 12:26 [PATCH 0/3] powerpc/microwatt: Device tree and config updates Joel Stanley
                   ` (2 preceding siblings ...)
  2021-08-26 12:26 ` [PATCH 3/3] powerpc/configs/microwatt: Enable options for systemd Joel Stanley
@ 2021-08-31 13:57 ` Michael Ellerman
  3 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2021-08-31 13:57 UTC (permalink / raw)
  To: Michael Neuling, Anton Blanchard, Joel Stanley, Paul Mackerras,
	Michael Ellerman
  Cc: linuxppc-dev

On Thu, 26 Aug 2021 21:56:50 +0930, Joel Stanley wrote:
> This enables the liteeth network device for microwatt which will be
> merged in v5.15.
> 
> It also turns on some options so the microwatt defconfig can be used to
> boot a userspace with systemd.
> 
> Joel Stanley (3):
>   powerpc/microwatt: Add Ethernet to device tree
>   powerpc/configs/microwattt: Enable Liteeth
>   powerpc/configs/microwatt: Enable options for systemd
> 
> [...]

Applied to powerpc/next.

[1/3] powerpc/microwatt: Add Ethernet to device tree
      https://git.kernel.org/powerpc/c/602d0f96563c2e0b8e1ddb22ac46bf7f58480d64
[2/3] powerpc/configs/microwattt: Enable Liteeth
      https://git.kernel.org/powerpc/c/ef4fcaf99cd27eb48790f2adc4eff456dbe1dec4
[3/3] powerpc/configs/microwatt: Enable options for systemd
      https://git.kernel.org/powerpc/c/3e18e271182206c996a3a7efbbe70c66307ef137

cheers

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

end of thread, other threads:[~2021-08-31 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 12:26 [PATCH 0/3] powerpc/microwatt: Device tree and config updates Joel Stanley
2021-08-26 12:26 ` [PATCH 1/3] powerpc/microwatt: Add Ethernet to device tree Joel Stanley
2021-08-26 12:26 ` [PATCH 2/3] powerpc/configs/microwattt: Enable Liteeth Joel Stanley
2021-08-26 12:26 ` [PATCH 3/3] powerpc/configs/microwatt: Enable options for systemd Joel Stanley
2021-08-31 13:57 ` [PATCH 0/3] powerpc/microwatt: Device tree and config updates Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).