Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Used and molded from bb.org-overlays on github.com/beagleboard/bb.org-overlays */
- /*
- * Copyright (C) 2018 Tim Small <tim@seoss.co.uk>
- *
- * Based on PB-I2C2-RTC-PCF8523.dts:
- *
- * Copyright (C) 2018 Robert Nelson <robertcnelson@gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This overlay is for a Maxim (Dallas) DS1338 RTC connected via the
- * BeagleBone's second I2C bus.
- * https://www.maximintegrated.com/en/products/digital/real-time-clocks/DS1338.html
- *
- * It was built for the South Coast Science "DFE" air quality monitoring
- * cape, but may be useful for any hardware which includes a DS1338
- *
- * https://www.southcoastscience.com/products/
- *
- * https://github.com/south-coast-science/scs_documentation/wiki/Digital-Front-End-%28DFE%29-for-BeagleBone-v1
- */
- /dts-v1/;
- /plugin/;
- #include <dt-bindings/board/am335x-bbw-bbb-base.h>
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/pinctrl/am33xx.h>
- / {
- fragment@0 {
- target-path="/";
- __overlay__ {
- chosen {
- overlays {
- BB-I2C0-DS1340-0A00 = __TIMESTAMP__;
- };
- };
- };
- };
- fragment@1 {
- target-path="/";
- __overlay__ {
- aliases {
- rtc0 = &extrtc;
- rtc1 = "/ocp/rtc@44e3e000";
- };
- };
- };
- fragment@2 {
- target = <&i2c0>;
- __overlay__ {
- status = "okay";
- #address-cells = <1>;
- #size-cells = <0>;
- extrtc: ds1340@6h {
- compatible = "maxim,ds1340";
- reg = <0x60>;
- /* DS1340: This is the last address seen before 0x7h that ends it all and returns to 0x0h (the start) */
- };
- };
- };
- };
Add Comment
Please, Sign In to add comment