[RFC PATCH openbmc v3 5/8] linux-obmc: Add a devicetree for QEMU palmetto-bmc machine
Andrew Jeffery
andrew at aj.id.au
Wed Mar 23 19:03:32 AEDT 2016
The patch adds a separate devicetree file specifically for QEMU,
integrating the Cadence GEM device which is configured with the MMIO
base and IRQ for what would be MAC2.
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
...d-qemupalmetto-dts-with-Cadence-GEM-suppo.patch | 43 ++++++++++++++++++++++
.../recipes-kernel/linux/linux-obmc_%.bbappend | 1 +
2 files changed, 44 insertions(+)
create mode 100644 meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc/0001-arch-arm-Add-qemupalmetto-dts-with-Cadence-GEM-suppo.patch
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc/0001-arch-arm-Add-qemupalmetto-dts-with-Cadence-GEM-suppo.patch b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc/0001-arch-arm-Add-qemupalmetto-dts-with-Cadence-GEM-suppo.patch
new file mode 100644
index 0000000..3734bb0
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc/0001-arch-arm-Add-qemupalmetto-dts-with-Cadence-GEM-suppo.patch
@@ -0,0 +1,43 @@
+From 70f44f3fa819e2c13726895a2c1e3c5e8fa51eef Mon Sep 17 00:00:00 2001
+From: Andrew Jeffery <andrew at aj.id.au>
+Date: Mon, 21 Mar 2016 13:49:47 +1030
+Subject: [PATCH] arch/arm: Add qemupalmetto dts with Cadence GEM support
+
+Describes a machine that is as similar to the Palmetto BMC, primarily for
+running under QEMU. Relaxing the constraint of booting the exact Palmetto
+BMC hardware in QEMU allows us to integrate existing device models to expand
+the machine's capability without huge effort.
+
+In this case, the Cadence GEM controller is integrated to provide networking.
+
+Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
+---
+ arch/arm/boot/dts/aspeed-bmc-opp-qemupalmetto.dts | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+ create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-qemupalmetto.dts
+
+diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-qemupalmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-qemupalmetto.dts
+new file mode 100644
+index 0000000..b0915cd
+--- /dev/null
++++ b/arch/arm/boot/dts/aspeed-bmc-opp-qemupalmetto.dts
+@@ -0,0 +1,16 @@
++#include "aspeed-bmc-opp-palmetto.dts"
++
++/ {
++ ahb {
++ mac1: ethernet at 1e680000 {
++ compatible = "cdns,gem";
++ reg = <0x1e680000 0x1000>;
++ interrupts = <3>;
++ clock-names = "pclk", "hclk", "tx_clk";
++ clocks = <&clk_apb>, <&clk_apb>, <&clk_apb>;
++ status = "okay";
++ #address-cells = <1>;
++ #size-cells = <0>;
++ };
++ };
++};
+--
+2.5.0
+
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc_%.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc_%.bbappend
index a49c239..a56c34c 100644
--- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc_%.bbappend
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-palmetto/recipes-kernel/linux/linux-obmc_%.bbappend
@@ -1,2 +1,3 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-obmc:"
SRC_URI += "file://palmetto.cfg"
+SRC_URI += "file://0001-arch-arm-Add-qemupalmetto-dts-with-Cadence-GEM-suppo.patch"
--
2.5.0
More information about the openbmc
mailing list