This chip has an RTC within it, so define an "rtc" subnode. So far there
are no properties, but the existence of the node is enough to make it
accessible via a phandle.
BUG=chrome-os-partner:10617
TEST=build and boot to kernel prompt on snow
With later commits, see that we can find this node in the rtc driver.
Change-Id: Ia6d3fdb22b77b17bc4887ff3671b711f2969a251
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42575
--- /dev/null
+* MAX77686 Real Time Clock controller
+
+This RTC is part of the MAX77686 MFD, which also includes a PMIC device.
+The RTC part is in a subnode:
+
+Required properties:
+- name: "rtc"
+
+(no other properties are defined at present)
+
+Example:
+
+ max77686 {
+ voltage-regulators {
+ ...
+ };
+ rtc {
+ };
+ };
info->virq = IRQ_GPIO_END + 1 + MAX77686_RTCIRQ_RTCA1;
platform_set_drvdata(pdev, info);
+ /* Find OF node if available, no decoding of anything yet */
+ pdev->dev.of_node = of_find_node_by_name(max77686->dev->of_node,
+ "rtc");
+
ret = max77686_rtc_init_reg(info);
if (ret < 0) {