Message ID | 20241223-max31331-driver-support-v1-1-f9499bd598f5@analog.com |
---|---|
State | Changes Requested |
Headers | show |
Series | Subject: [PATCH v1 0/2] Add support for MAX31331 RTC | expand |
On Mon, 23 Dec 2024 11:57:44 +0530, PavithraUdayakumar-adi wrote: > Add support to max31331 RTC chip in adi,max31335.yaml > > Signed-off-by: PavithraUdayakumar-adi <pavithra.u@analog.com> > --- > .../devicetree/bindings/rtc/adi,max31335.yaml | 32 ++++++++++++++++++---- > 1 file changed, 26 insertions(+), 6 deletions(-) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: dtschema/dtc warnings/errors: Documentation/devicetree/bindings/rtc/adi,max31335.example.dts:23.20-31.15: Warning (i2c_bus_reg): /example-0/i2c/rtc@68: I2C bus unit address format error, expected "69" doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20241223-max31331-driver-support-v1-1-f9499bd598f5@analog.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml index 0125cf6727cc3d9eb3e0253299904ee363ec40ca..2379600911304e995086de6393fae1fd24f5c653 100644 --- a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml +++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml @@ -13,15 +13,15 @@ description: Analog Devices MAX31335 I2C RTC ±2ppm Automotive Real-Time Clock with Integrated MEMS Resonator. -allOf: - - $ref: rtc.yaml# - properties: compatible: - const: adi,max31335 + enum: + - adi,max31331 + - adi,max31335 reg: - maxItems: 1 + items: + - enum: [0x68, 0x69] interrupts: maxItems: 1 @@ -50,6 +50,26 @@ required: unevaluatedProperties: false +allOf: + - $ref: rtc.yaml# + + - if: + properties: + compatible: + contains: + enum: + - adi,max31335 + then: + properties: + reg: + items: + - const: 0x69 + else: + properties: + reg: + items: + - const: 0x68 + examples: - | #include <dt-bindings/interrupt-controller/irq.h> @@ -59,7 +79,7 @@ examples: rtc@68 { compatible = "adi,max31335"; - reg = <0x68>; + reg = <0x69>; pinctrl-0 = <&rtc_nint_pins>; interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; aux-voltage-chargeable = <1>;