From: PavithraUdayakumar-adi <pavithra.u@xxxxxxxxxx> MAX31331 is an ultra-low-power, I2C Real-Time Clock RTC with flexible crystal support. While, MAX31335 offers higher precision, MEMS resonator, and integrated temperature sensor. MAX31331 uses I2C address as 0x68 where as max31335 uses 0x69. Changes: Added example for max31331 and modified the register address for max31335. Signed-off-by: PavithraUdayakumar-adi <pavithra.u@xxxxxxxxxx> --- .../devicetree/bindings/rtc/adi,max31335.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml index 0125cf6727cc3d9eb3e0253299904ee363ec40ca..f249313bc485d7a6154ce684726d6a950405ef0e 100644 --- a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml @@ -18,10 +18,13 @@ allOf: properties: compatible: - const: adi,max31335 + enum: + - adi,max31331 + - adi,max31335 reg: - maxItems: 1 + items: + - enum: [0x68, 0x69] interrupts: maxItems: 1 @@ -57,9 +60,9 @@ examples: #address-cells = <1>; #size-cells = <0>; - rtc@68 { + rtc@69 { compatible = "adi,max31335"; - reg = <0x68>; + reg = <0x69>; pinctrl-0 = <&rtc_nint_pins>; interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; aux-voltage-chargeable = <1>; @@ -67,4 +70,15 @@ examples: adi,tc-diode = "schottky"; }; }; + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@68 { + reg = <0x68>; + compatible = "adi,max31331"; + }; + }; ... -- 2.25.1