Am Freitag, den 15.01.2016, 14:44 +0000 schrieb James Hartley:[..]
+Example:If this is just a register in the cr_periph syscon, why not put the
+
+ pistachio_reset: reset-controller {
+ compatible = "img,pistachio-reset";
+ img,cr-periph = <&cr_periph>;
+ #reset-cells = <1>;
+ };
reset-controller node inside the cr_periph node:
cr_periph: syscon@xyz {
compatible = "syscon", "simple-mfd";
pistachio_reset: reset-controller {
compatible = "img,pistachio-reset";
#reset-cells = <1>;
};
};
And in the driver use
syscon_node_to_regmap(np->parent);
instead of
syscon_regmap_lookup_by_phandle(np, "img,cr-periph");
?
Do you need a reg property, or is will the register offset be 0 in all
pistachio variants?
+Example:
+
+ spdif_out: spdif-out@18100d00 {
+ ...
+ resets = <&pistachio_reset PISTACHIO_RESET_SPDIF_OUT>;
+ reset-names = "rst";
reset-names is not needed for devices that only have one reset.
Thanks,
regards
Philipp