* [PATCH 0/1] openrisc: LiteX+mor1kx platform
@ 2019-10-23 9:54 ` Mateusz Holenko
0 siblings, 0 replies; 6+ messages in thread
From: Mateusz Holenko @ 2019-10-23 9:54 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Jonas Bonn, Stefan Kristiansson,
Stafford Horne, openrisc
Cc: Karol Gugala, Mateusz Holenko, Mauro Carvalho Chehab,
David S. Miller, Greg Kroah-Hartman, Paul E. McKenney,
Filip Kokosinski, linux-kernel, devicetree, Joel Stanley
This patchset adds a new LiteX SoC-based platform
configured for mor1kx (OpenRISC) CPU coupled with
LiteUART serial device.
Details about LiteX can be found at
https://github.com/enjoy-digital/litex.
This platform is intended for further extension
once drivers for other LiteX devices are merged
to the kernel.
NOTE:
This requires another patchset to be merged first:
https://lore.kernel.org/patchwork/cover/1143352/
Filip Kokosinski (1):
openrisc: add support for LiteX
MAINTAINERS | 1 +
arch/openrisc/boot/dts/or1klitex.dts | 49 +++++++++++++++++++++++
arch/openrisc/configs/or1klitex_defconfig | 18 +++++++++
3 files changed, 68 insertions(+)
create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
create mode 100644 arch/openrisc/configs/or1klitex_defconfig
--
2.23.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [OpenRISC] [PATCH 0/1] openrisc: LiteX+mor1kx platform
@ 2019-10-23 9:54 ` Mateusz Holenko
0 siblings, 0 replies; 6+ messages in thread
From: Mateusz Holenko @ 2019-10-23 9:54 UTC (permalink / raw)
To: openrisc
This patchset adds a new LiteX SoC-based platform
configured for mor1kx (OpenRISC) CPU coupled with
LiteUART serial device.
Details about LiteX can be found at
https://github.com/enjoy-digital/litex.
This platform is intended for further extension
once drivers for other LiteX devices are merged
to the kernel.
NOTE:
This requires another patchset to be merged first:
https://lore.kernel.org/patchwork/cover/1143352/
Filip Kokosinski (1):
openrisc: add support for LiteX
MAINTAINERS | 1 +
arch/openrisc/boot/dts/or1klitex.dts | 49 +++++++++++++++++++++++
arch/openrisc/configs/or1klitex_defconfig | 18 +++++++++
3 files changed, 68 insertions(+)
create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
create mode 100644 arch/openrisc/configs/or1klitex_defconfig
--
2.23.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] openrisc: add support for LiteX
2019-10-23 9:54 ` [OpenRISC] " Mateusz Holenko
@ 2019-10-23 9:54 ` Mateusz Holenko
-1 siblings, 0 replies; 6+ messages in thread
From: Mateusz Holenko @ 2019-10-23 9:54 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Jonas Bonn, Stefan Kristiansson,
Stafford Horne, openrisc
Cc: Karol Gugala, Mateusz Holenko, Mauro Carvalho Chehab,
David S. Miller, Greg Kroah-Hartman, Paul E. McKenney,
Filip Kokosinski, linux-kernel, devicetree, Joel Stanley
From: Filip Kokosinski <fkokosinski@internships.antmicro.com>
This adds support for a basic LiteX-based SoC with a mor1kx soft CPU.
Signed-off-by: Filip Kokosinski <fkokosinski@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
---
MAINTAINERS | 1 +
arch/openrisc/boot/dts/or1klitex.dts | 49 +++++++++++++++++++++++
arch/openrisc/configs/or1klitex_defconfig | 18 +++++++++
3 files changed, 68 insertions(+)
create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
create mode 100644 arch/openrisc/configs/or1klitex_defconfig
diff --git a/MAINTAINERS b/MAINTAINERS
index c24a37833e78..e84b2cb4c186 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9500,6 +9500,7 @@ S: Maintained
F: include/linux/litex.h
F: Documentation/devicetree/bindings/*/litex,*.yaml
F: drivers/tty/serial/liteuart.c
+F: arch/openrisc/boot/dts/or1klitex.dts
LIVE PATCHING
M: Josh Poimboeuf <jpoimboe@redhat.com>
diff --git a/arch/openrisc/boot/dts/or1klitex.dts b/arch/openrisc/boot/dts/or1klitex.dts
new file mode 100644
index 000000000000..63399398002d
--- /dev/null
+++ b/arch/openrisc/boot/dts/or1klitex.dts
@@ -0,0 +1,49 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * LiteX-based System on Chip
+ *
+ * Copyright (C) 2019 Antmicro Ltd <www.antmicro.com>
+ */
+
+/dts-v1/;
+/ {
+ compatible = "opencores,or1ksim";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&pic>;
+
+ aliases {
+ serial0 = &serial0;
+ };
+
+ chosen {
+ bootargs = "console=liteuart";
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x00000000 0x10000000>;
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cpu@0 {
+ compatible = "opencores,or1200-rtlsvn481";
+ reg = <0>;
+ clock-frequency = <100000000>;
+ };
+ };
+
+ pic: pic {
+ compatible = "opencores,or1k-pic";
+ #interrupt-cells = <1>;
+ interrupt-controller;
+ };
+
+ serial0: serial@e0001800 {
+ device_type = "serial";
+ compatible = "litex,liteuart";
+ reg = <0xe0001800 0x100>;
+ };
+};
diff --git a/arch/openrisc/configs/or1klitex_defconfig b/arch/openrisc/configs/or1klitex_defconfig
new file mode 100644
index 000000000000..0e4c2e74451c
--- /dev/null
+++ b/arch/openrisc/configs/or1klitex_defconfig
@@ -0,0 +1,18 @@
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
+CONFIG_BUG_ON_DATA_CORRUPTION=y
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_CROSS_COMPILE="or32-linux-"
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_EMBEDDED=y
+CONFIG_HZ_100=y
+CONFIG_INITRAMFS_SOURCE="openrisc-rootfs.cpio.gz"
+CONFIG_OF_OVERLAY=y
+CONFIG_OPENRISC_BUILTIN_DTB="or1klitex"
+CONFIG_PANIC_ON_OOPS=y
+CONFIG_PRINTK_TIME=y
+CONFIG_SERIAL_LITEUART=y
+CONFIG_SERIAL_LITEUART_CONSOLE=y
+CONFIG_SOFTLOCKUP_DETECTOR=y
+CONFIG_TTY_PRINTK=y
--
2.23.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [OpenRISC] [PATCH 1/1] openrisc: add support for LiteX
@ 2019-10-23 9:54 ` Mateusz Holenko
0 siblings, 0 replies; 6+ messages in thread
From: Mateusz Holenko @ 2019-10-23 9:54 UTC (permalink / raw)
To: openrisc
From: Filip Kokosinski <fkokosinski@internships.antmicro.com>
This adds support for a basic LiteX-based SoC with a mor1kx soft CPU.
Signed-off-by: Filip Kokosinski <fkokosinski@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
---
MAINTAINERS | 1 +
arch/openrisc/boot/dts/or1klitex.dts | 49 +++++++++++++++++++++++
arch/openrisc/configs/or1klitex_defconfig | 18 +++++++++
3 files changed, 68 insertions(+)
create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
create mode 100644 arch/openrisc/configs/or1klitex_defconfig
diff --git a/MAINTAINERS b/MAINTAINERS
index c24a37833e78..e84b2cb4c186 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9500,6 +9500,7 @@ S: Maintained
F: include/linux/litex.h
F: Documentation/devicetree/bindings/*/litex,*.yaml
F: drivers/tty/serial/liteuart.c
+F: arch/openrisc/boot/dts/or1klitex.dts
LIVE PATCHING
M: Josh Poimboeuf <jpoimboe@redhat.com>
diff --git a/arch/openrisc/boot/dts/or1klitex.dts b/arch/openrisc/boot/dts/or1klitex.dts
new file mode 100644
index 000000000000..63399398002d
--- /dev/null
+++ b/arch/openrisc/boot/dts/or1klitex.dts
@@ -0,0 +1,49 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * LiteX-based System on Chip
+ *
+ * Copyright (C) 2019 Antmicro Ltd <www.antmicro.com>
+ */
+
+/dts-v1/;
+/ {
+ compatible = "opencores,or1ksim";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&pic>;
+
+ aliases {
+ serial0 = &serial0;
+ };
+
+ chosen {
+ bootargs = "console=liteuart";
+ };
+
+ memory at 0 {
+ device_type = "memory";
+ reg = <0x00000000 0x10000000>;
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cpu at 0 {
+ compatible = "opencores,or1200-rtlsvn481";
+ reg = <0>;
+ clock-frequency = <100000000>;
+ };
+ };
+
+ pic: pic {
+ compatible = "opencores,or1k-pic";
+ #interrupt-cells = <1>;
+ interrupt-controller;
+ };
+
+ serial0: serial at e0001800 {
+ device_type = "serial";
+ compatible = "litex,liteuart";
+ reg = <0xe0001800 0x100>;
+ };
+};
diff --git a/arch/openrisc/configs/or1klitex_defconfig b/arch/openrisc/configs/or1klitex_defconfig
new file mode 100644
index 000000000000..0e4c2e74451c
--- /dev/null
+++ b/arch/openrisc/configs/or1klitex_defconfig
@@ -0,0 +1,18 @@
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
+CONFIG_BUG_ON_DATA_CORRUPTION=y
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_CROSS_COMPILE="or32-linux-"
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_EMBEDDED=y
+CONFIG_HZ_100=y
+CONFIG_INITRAMFS_SOURCE="openrisc-rootfs.cpio.gz"
+CONFIG_OF_OVERLAY=y
+CONFIG_OPENRISC_BUILTIN_DTB="or1klitex"
+CONFIG_PANIC_ON_OOPS=y
+CONFIG_PRINTK_TIME=y
+CONFIG_SERIAL_LITEUART=y
+CONFIG_SERIAL_LITEUART_CONSOLE=y
+CONFIG_SOFTLOCKUP_DETECTOR=y
+CONFIG_TTY_PRINTK=y
--
2.23.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] openrisc: add support for LiteX
2019-10-23 9:54 ` [OpenRISC] " Mateusz Holenko
@ 2019-10-24 21:26 ` Stafford Horne
-1 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2019-10-24 21:26 UTC (permalink / raw)
To: Mateusz Holenko
Cc: Rob Herring, Mark Rutland, Jonas Bonn, Stefan Kristiansson,
openrisc, Karol Gugala, Mauro Carvalho Chehab, David S. Miller,
Greg Kroah-Hartman, Paul E. McKenney, Filip Kokosinski,
linux-kernel, devicetree, Joel Stanley
Hello,
On Wed, Oct 23, 2019 at 11:54:44AM +0200, Mateusz Holenko wrote:
> From: Filip Kokosinski <fkokosinski@internships.antmicro.com>
>
> This adds support for a basic LiteX-based SoC with a mor1kx soft CPU.
Thanks for getting these patches ready.
> Signed-off-by: Filip Kokosinski <fkokosinski@internships.antmicro.com>
> Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
> ---
> MAINTAINERS | 1 +
> arch/openrisc/boot/dts/or1klitex.dts | 49 +++++++++++++++++++++++
> arch/openrisc/configs/or1klitex_defconfig | 18 +++++++++
> 3 files changed, 68 insertions(+)
> create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
> create mode 100644 arch/openrisc/configs/or1klitex_defconfig
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index c24a37833e78..e84b2cb4c186 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -9500,6 +9500,7 @@ S: Maintained
> F: include/linux/litex.h
> F: Documentation/devicetree/bindings/*/litex,*.yaml
> F: drivers/tty/serial/liteuart.c
> +F: arch/openrisc/boot/dts/or1klitex.dts
>
> LIVE PATCHING
> M: Josh Poimboeuf <jpoimboe@redhat.com>
> diff --git a/arch/openrisc/boot/dts/or1klitex.dts b/arch/openrisc/boot/dts/or1klitex.dts
> new file mode 100644
> index 000000000000..63399398002d
> --- /dev/null
> +++ b/arch/openrisc/boot/dts/or1klitex.dts
> @@ -0,0 +1,49 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * LiteX-based System on Chip
> + *
> + * Copyright (C) 2019 Antmicro Ltd <www.antmicro.com>
> + */
> +
> +/dts-v1/;
> +/ {
> + compatible = "opencores,or1ksim";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + interrupt-parent = <&pic>;
> +
> + aliases {
> + serial0 = &serial0;
> + };
> +
> + chosen {
> + bootargs = "console=liteuart";
As this depents on litex uart I will wait to queue this until it looks like the
uart patches are accepted for 5.5 merge window.
> + };
> +
> + memory@0 {
> + device_type = "memory";
> + reg = <0x00000000 0x10000000>;
> + };
> +
> + cpus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + cpu@0 {
> + compatible = "opencores,or1200-rtlsvn481";
> + reg = <0>;
> + clock-frequency = <100000000>;
> + };
> + };
> +
> + pic: pic {
> + compatible = "opencores,or1k-pic";
> + #interrupt-cells = <1>;
> + interrupt-controller;
> + };
> +
> + serial0: serial@e0001800 {
> + device_type = "serial";
> + compatible = "litex,liteuart";
> + reg = <0xe0001800 0x100>;
> + };
> +};
> diff --git a/arch/openrisc/configs/or1klitex_defconfig b/arch/openrisc/configs/or1klitex_defconfig
> new file mode 100644
> index 000000000000..0e4c2e74451c
> --- /dev/null
> +++ b/arch/openrisc/configs/or1klitex_defconfig
> @@ -0,0 +1,18 @@
> +CONFIG_BLK_DEV_INITRD=y
> +CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
> +CONFIG_BUG_ON_DATA_CORRUPTION=y
> +CONFIG_CC_OPTIMIZE_FOR_SIZE=y
> +CONFIG_CROSS_COMPILE="or32-linux-"
We use or1k-linux- now. Is this what you really use?
> +CONFIG_DEVTMPFS=y
> +CONFIG_DEVTMPFS_MOUNT=y
> +CONFIG_EMBEDDED=y
> +CONFIG_HZ_100=y
> +CONFIG_INITRAMFS_SOURCE="openrisc-rootfs.cpio.gz"
> +CONFIG_OF_OVERLAY=y
> +CONFIG_OPENRISC_BUILTIN_DTB="or1klitex"
> +CONFIG_PANIC_ON_OOPS=y
> +CONFIG_PRINTK_TIME=y
> +CONFIG_SERIAL_LITEUART=y
> +CONFIG_SERIAL_LITEUART_CONSOLE=y
Note, Litex uart dependency lookds fine nere.
> +CONFIG_SOFTLOCKUP_DETECTOR=y
> +CONFIG_TTY_PRINTK=y
> --
> 2.23.0
>
-Stafford
^ permalink raw reply [flat|nested] 6+ messages in thread
* [OpenRISC] [PATCH 1/1] openrisc: add support for LiteX
@ 2019-10-24 21:26 ` Stafford Horne
0 siblings, 0 replies; 6+ messages in thread
From: Stafford Horne @ 2019-10-24 21:26 UTC (permalink / raw)
To: openrisc
Hello,
On Wed, Oct 23, 2019 at 11:54:44AM +0200, Mateusz Holenko wrote:
> From: Filip Kokosinski <fkokosinski@internships.antmicro.com>
>
> This adds support for a basic LiteX-based SoC with a mor1kx soft CPU.
Thanks for getting these patches ready.
> Signed-off-by: Filip Kokosinski <fkokosinski@internships.antmicro.com>
> Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
> ---
> MAINTAINERS | 1 +
> arch/openrisc/boot/dts/or1klitex.dts | 49 +++++++++++++++++++++++
> arch/openrisc/configs/or1klitex_defconfig | 18 +++++++++
> 3 files changed, 68 insertions(+)
> create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
> create mode 100644 arch/openrisc/configs/or1klitex_defconfig
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index c24a37833e78..e84b2cb4c186 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -9500,6 +9500,7 @@ S: Maintained
> F: include/linux/litex.h
> F: Documentation/devicetree/bindings/*/litex,*.yaml
> F: drivers/tty/serial/liteuart.c
> +F: arch/openrisc/boot/dts/or1klitex.dts
>
> LIVE PATCHING
> M: Josh Poimboeuf <jpoimboe@redhat.com>
> diff --git a/arch/openrisc/boot/dts/or1klitex.dts b/arch/openrisc/boot/dts/or1klitex.dts
> new file mode 100644
> index 000000000000..63399398002d
> --- /dev/null
> +++ b/arch/openrisc/boot/dts/or1klitex.dts
> @@ -0,0 +1,49 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * LiteX-based System on Chip
> + *
> + * Copyright (C) 2019 Antmicro Ltd <www.antmicro.com>
> + */
> +
> +/dts-v1/;
> +/ {
> + compatible = "opencores,or1ksim";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + interrupt-parent = <&pic>;
> +
> + aliases {
> + serial0 = &serial0;
> + };
> +
> + chosen {
> + bootargs = "console=liteuart";
As this depents on litex uart I will wait to queue this until it looks like the
uart patches are accepted for 5.5 merge window.
> + };
> +
> + memory at 0 {
> + device_type = "memory";
> + reg = <0x00000000 0x10000000>;
> + };
> +
> + cpus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + cpu at 0 {
> + compatible = "opencores,or1200-rtlsvn481";
> + reg = <0>;
> + clock-frequency = <100000000>;
> + };
> + };
> +
> + pic: pic {
> + compatible = "opencores,or1k-pic";
> + #interrupt-cells = <1>;
> + interrupt-controller;
> + };
> +
> + serial0: serial at e0001800 {
> + device_type = "serial";
> + compatible = "litex,liteuart";
> + reg = <0xe0001800 0x100>;
> + };
> +};
> diff --git a/arch/openrisc/configs/or1klitex_defconfig b/arch/openrisc/configs/or1klitex_defconfig
> new file mode 100644
> index 000000000000..0e4c2e74451c
> --- /dev/null
> +++ b/arch/openrisc/configs/or1klitex_defconfig
> @@ -0,0 +1,18 @@
> +CONFIG_BLK_DEV_INITRD=y
> +CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
> +CONFIG_BUG_ON_DATA_CORRUPTION=y
> +CONFIG_CC_OPTIMIZE_FOR_SIZE=y
> +CONFIG_CROSS_COMPILE="or32-linux-"
We use or1k-linux- now. Is this what you really use?
> +CONFIG_DEVTMPFS=y
> +CONFIG_DEVTMPFS_MOUNT=y
> +CONFIG_EMBEDDED=y
> +CONFIG_HZ_100=y
> +CONFIG_INITRAMFS_SOURCE="openrisc-rootfs.cpio.gz"
> +CONFIG_OF_OVERLAY=y
> +CONFIG_OPENRISC_BUILTIN_DTB="or1klitex"
> +CONFIG_PANIC_ON_OOPS=y
> +CONFIG_PRINTK_TIME=y
> +CONFIG_SERIAL_LITEUART=y
> +CONFIG_SERIAL_LITEUART_CONSOLE=y
Note, Litex uart dependency lookds fine nere.
> +CONFIG_SOFTLOCKUP_DETECTOR=y
> +CONFIG_TTY_PRINTK=y
> --
> 2.23.0
>
-Stafford
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-10-24 21:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 9:54 [PATCH 0/1] openrisc: LiteX+mor1kx platform Mateusz Holenko
2019-10-23 9:54 ` [OpenRISC] " Mateusz Holenko
2019-10-23 9:54 ` [PATCH 1/1] openrisc: add support for LiteX Mateusz Holenko
2019-10-23 9:54 ` [OpenRISC] " Mateusz Holenko
2019-10-24 21:26 ` Stafford Horne
2019-10-24 21:26 ` [OpenRISC] " Stafford Horne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.