aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-11-29 10:57:37 +0100
committerMarek Vasut <marex@denx.de>2018-12-07 16:31:45 +0100
commit6c3af1f24e4b8ccbef20bc00b9529f4a325583f2 (patch)
tree534081dec42ca033d3e9737965804d6d1ebe02e4 /arch
parent4d3825c1915e1649c4be0320e74be158e4698655 (diff)
downloadu-boot-6c3af1f24e4b8ccbef20bc00b9529f4a325583f2.zip
u-boot-6c3af1f24e4b8ccbef20bc00b9529f4a325583f2.tar.gz
u-boot-6c3af1f24e4b8ccbef20bc00b9529f4a325583f2.tar.bz2
syscon: dm: Add a new method to get a regmap from DTS
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon device from a reference in the DTS. It operates similarly to the linux version of the namesake function. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 6722e18..515acbb 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -460,6 +460,8 @@
test4 {
compatible = "denx,u-boot-probe-test";
+ first-syscon = <&syscon0>;
+ second-sys-ctrl = <&another_system_controller>;
};
};
@@ -540,12 +542,12 @@
};
};
- syscon@0 {
+ syscon0: syscon@0 {
compatible = "sandbox,syscon0";
reg = <0x10 16>;
};
- syscon@1 {
+ another_system_controller: syscon@1 {
compatible = "sandbox,syscon1";
reg = <0x20 5
0x28 6