From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/4] Armada 7K/8K CP110 DT de-duplication
Date: Fri, 29 Dec 2017 17:17:14 +0100 [thread overview]
Message-ID: <20171229161718.8896-1-thomas.petazzoni@free-electrons.com> (raw)
Hello,
This series aims at de-duplicating the Armada CP110 Device Tree
description, which is currently duplicated between
armada-cp110-master.dtsi and armada-cp110-slave.dtsi, even though they
are almost identical. Indeed, one concept of Marvell SoCs is that they
are made of HW blocks composed of a variety of IPs (network, PCIe,
SATA, XOR, SPI, I2C, etc.), and those HW blocks can be duplicated
several times within a given SoC. The Armada 7K SoC has a single CP110
(so no duplication), while the Armada 8K SoC has two CP110. In the
future, SoCs with more than 2 CP110s will be introduced.
This duplication issue has been discussed at the DT workshop [1] in
Prague last October, and I presented on this topic [2]. The solution
of using the C pre-processor to avoid this duplication has been
validated by the people present in this DT workshop, and this patch
series simply submits what has been presented.
The first three patches are minor preparation patches. The patch
making use of aliases for SPI busses simply aims at reducing the
number of changes between the CP110 master and CP110 slave
description, by avoiding the need for the cell-index property in the
SPI controller DT nodes.
The last patch implements the de-duplication itself, by introducing an
armada-cp110.dtsi file included twice on Armada 8K platforms, once for
the master CP110 and once for the slave CP110.
Note: this series is based on mvebu/dt64-nand, since it is the branch
that contains the most up-to-date DT changes for the Marvell Armada
7K/8K platforms. When PATCH 4/4 is applied, I recommend checking that
the DTB contents are the same before/after. To achieve that, just
build the dtb before/after, "decompile" it with "dtc -I dtb -O dts",
and diff the result. The only difference should be the SDHCI
controller appearing in the slave CP (see the commit log of PATCH 4/4
for details about this).
Thanks!
Thomas
[1] https://elinux.org/Device_tree_kernel_summit_2017_etherpad
[2] https://elinux.org/images/1/14/DTWorkshop2017-duplicate-data.pdf
Thomas Petazzoni (4):
arm64: dts: marvell: fix watchdog unit address in Armada AP806
arm64: dts: marvell: use mvebu-icu.h where possible
arm64: dts: marvell: use aliases for SPI busses on Armada 7K/8K
arm64: dts: marvell: de-duplicate CP110 description
arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 2 +
arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 4 +
arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 4 +-
arch/arm64/boot/dts/marvell/armada-common.dtsi | 10 +
.../boot/dts/marvell/armada-cp110-master.dtsi | 406 +-------------------
.../arm64/boot/dts/marvell/armada-cp110-slave.dtsi | 414 ++-------------------
arch/arm64/boot/dts/marvell/armada-cp110.dtsi | 398 ++++++++++++++++++++
7 files changed, 465 insertions(+), 773 deletions(-)
create mode 100644 arch/arm64/boot/dts/marvell/armada-common.dtsi
create mode 100644 arch/arm64/boot/dts/marvell/armada-cp110.dtsi
--
2.14.3
next reply other threads:[~2017-12-29 16:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-29 16:17 Thomas Petazzoni [this message]
2017-12-29 16:17 ` [PATCH 1/4] arm64: dts: marvell: fix watchdog unit address in Armada AP806 Thomas Petazzoni
2017-12-29 16:17 ` [PATCH 2/4] arm64: dts: marvell: use mvebu-icu.h where possible Thomas Petazzoni
2017-12-29 16:17 ` [PATCH 3/4] arm64: dts: marvell: use aliases for SPI busses on Armada 7K/8K Thomas Petazzoni
2017-12-29 16:17 ` [PATCH 4/4] arm64: dts: marvell: de-duplicate CP110 description Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171229161718.8896-1-thomas.petazzoni@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox