LKML Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v2 0/7] interconnect: Introduce xlate_extended()
@ 2020-08-06 16:31 Georgi Djakov
  2020-08-06 16:31 ` [PATCH v2 1/7] interconnect: Introduce xlate_extended() callback Georgi Djakov
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Georgi Djakov @ 2020-08-06 16:31 UTC (permalink / raw)
  To: linux-pm, devicetree
  Cc: robh+dt, bjorn.andersson, sibis, mka, dianders, georgi.djakov,
	linux-kernel

Currently the interconnect framework provides the xlate() callback for
mapping the endpoints from phandle arguments in DT. This is implemented
by the provider drivers. But the endpoints (or the path between the
endpoints) might have an additional attributes, which should be parsed
and populated. During previous discussions [1], it was suggested that
adding more and more DT properties will not scale very well. So instead
of adding DT properties, such data should be put into the 'interconnects'
arguments.

This patchset is introducing a new xlate_extended() callback, which
would allow the interconnect provider drivers to parse additional data
(such as path tags) and allow the framework to make use of them.

Thanks to Sibi for the preliminary feedback and testing this patchset
on the sc7180 platform.

The patchset is based on linux-next (next-20200723).

Changelog:
v2:
* Add a patch to update the DT documentation, which i missed initially.
* Minor changes in commit text of patch 1/7. (Sibi)
* Remove a useless null check in patch 4/7. (Sibi)
* Print a warning if the number of DT args is higher than what we expect
  in patch 3/7. (Matthias)
* Pick Reviewed-by/Tested-by tags.
* TODO: Replace tag IDs with macros in patches 5/7 and 7/7 when [2] lands.

v1: http://lore.kernel.org/r/20200723130942.28491-1-georgi.djakov@linaro.org

[1] https://lore.kernel.org/linux-devicetree/20200519185836.GA469006@bogus/
[2] https://lore.kernel.org/r/20200801033215.1440-2-mdtipton@codeaurora.org

Georgi Djakov (5):
  interconnect: Introduce xlate_extended() callback
  dt-bindings: interconnect: Document the support of optional path tag
  interconnect: qcom: Implement xlate_extended() to parse tags
  interconnect: qcom: sdm845: Replace xlate with xlate_extended
  arm64: dts: qcom: sdm845: Increase the number of interconnect cells

Sibi Sankar (2):
  interconnect: qcom: sc7180: Replace xlate with xlate_extended
  arm64: dts: qcom: sc7180: Increase the number of interconnect cells

 .../bindings/interconnect/interconnect.txt    |  24 +-
 arch/arm64/boot/dts/qcom/sc7180.dtsi          | 216 +++++++++---------
 arch/arm64/boot/dts/qcom/sdm845.dtsi          |  44 ++--
 drivers/interconnect/core.c                   |  73 ++++--
 drivers/interconnect/qcom/icc-rpmh.c          |  27 +++
 drivers/interconnect/qcom/icc-rpmh.h          |   1 +
 drivers/interconnect/qcom/sc7180.c            |   2 +-
 drivers/interconnect/qcom/sdm845.c            |   2 +-
 include/linux/interconnect-provider.h         |  17 +-
 9 files changed, 248 insertions(+), 158 deletions(-)


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

end of thread, back to index

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 16:31 [PATCH v2 0/7] interconnect: Introduce xlate_extended() Georgi Djakov
2020-08-06 16:31 ` [PATCH v2 1/7] interconnect: Introduce xlate_extended() callback Georgi Djakov
2020-08-06 16:31 ` [PATCH v2 2/7] dt-bindings: interconnect: Document the support of optional path tag Georgi Djakov
2020-08-17 21:55   ` Rob Herring
2020-08-06 16:31 ` [PATCH v2 3/7] interconnect: qcom: Implement xlate_extended() to parse tags Georgi Djakov
2020-08-06 16:31 ` [PATCH v2 4/7] interconnect: qcom: sdm845: Replace xlate with xlate_extended Georgi Djakov
2020-08-06 16:31 ` [PATCH v2 5/7] arm64: dts: qcom: sdm845: Increase the number of interconnect cells Georgi Djakov
2020-08-19 20:07   ` Doug Anderson
2020-08-06 16:31 ` [PATCH v2 6/7] interconnect: qcom: sc7180: Replace xlate with xlate_extended Georgi Djakov
2020-08-06 16:31 ` [PATCH v2 7/7] arm64: dts: qcom: sc7180: Increase the number of interconnect cells Georgi Djakov

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

	# 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