Skip to content

Missing spi-rtc-ds3234-overlay.dts ? #4290

Closed

Description

@Exaga

While searching in the Linux kernel source for a DTB overlay, or DT source to compile, for installing a DS3234-based RTC on a Raspberry Pi (using the SPI interface) I soon realised this RTC wasn't currently supported. So I created one.

May I suggest that it could become a standard overlay?

spi-rtc-ds3234-overlay.dts code:

/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2835";

	fragment@0 {
		target = <&spidev0>;
		__overlay__ {
			status = "disabled";
		};
	};

	fragment@1 {
		target = <&spi0>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			ds3234@0 {
				compatible = "ds3234";
				spi-max-frequency = <5000000>;
				reg = <0>;
			};
		};
	};
};

Activity

  1. pelwell commented on Apr 19, 2021

    @pelwell
    Contributor

    Rather than adding a dedicated overlay, I'm proposing to extend the existing spi-rtc overlay. See this pull request: #4292

  2. Exaga commented on Apr 19, 2021

    @Exaga
    Author

    Rather than adding a dedicated overlay, I'm proposing to extend the existing spi-rtc overlay. See this pull request: #4292

    Sounds good. However a DS3234 DT overlay is implemented would be a step forward for sure. Thanks.

  3. pelwell commented on Apr 21, 2021

    @pelwell
    Contributor

    #4292 has been merged, and the updated overlay will be in future kernel releases.

  4. Exaga commented on Apr 24, 2021

    @Exaga
    Author

    #4292 has been merged, and the updated overlay will be in future kernel releases.

    Thanks PhilE.

    Infinitely easier for all users when the DS3234 is supported by you guys in the Device Tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions