I'm working on a design using the AM335x based on the EVM and I've run into a little snag. Our design does not use the RTC, in fact we've pulled the RTC_PORZ to ground, see below schematic snap shot.
As such I would like to disable the RTC in the device tree, we've found when we boot with the RTC enabled in the tree the board dies the first time it tried to access an RTC_SS register. When we take the following code from arch/arm/boot/dts/am33xx.h:
rtc@44e3e000 { compatible = "ti,da830-rtc"; reg = <0x44e3e000 0x1000>; interrupts = <75 76>; ti,hwmods = "rtc"; clocks = <&clk_32768_ck>; clock-names = "fck"; };
and comment it out, then we can boot just fine. I don't want to comment out anything in am33xx.h I'd rather disable this in our device tree file.
I've looked at the documentation found at Documentation/devicetree/bindings/rtc-omap.txt, but there doesn't appear to be anything in here which allows us to disable it (like status="disabled").
So first question: How do we correctly disable this RTC?
I did however notice that the am33xx.dtsi defines the RTC to be "compatible" with the DA8xx SoC family instead of the AM335x family.
Second question therefore: Isn't that a mistake? Shouldn't that be:
compatible = "ti,am3352-rtc"