Skip to content

Commit 0a60763

Browse files
nboullispopcornmix
authored andcommitted
BCM270X_DT: Add DS1339 to i2c-rtc overlay
1 parent b2ee342 commit 0a60763

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ Info: Adds support for a number of I2C Real Time Clock devices
371371
Load: dtoverlay=i2c-rtc,<param>=<val>
372372
Params: ds1307 Select the DS1307 device
373373

374+
ds1339 Select the DS1339 device
375+
374376
ds3231 Select the DS3231 device
375377

376378
mcp7941x Select the MCP7941x device
@@ -381,6 +383,8 @@ Params: ds1307 Select the DS1307 device
381383

382384
pcf8563 Select the PCF8563 device
383385

386+
trickle-resistor-ohms Resistor value for trickle charge (DS1339-only)
387+
384388

385389
Name: i2c0-bcm2708
386390
Info: Enable the i2c_bcm2708 driver for the i2c0 bus

arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
reg = <0x68>;
1818
status = "disable";
1919
};
20+
ds1339: ds1339@68 {
21+
compatible = "dallas,ds1339";
22+
trickle-resistor-ohms = <0>;
23+
reg = <0x68>;
24+
status = "disable";
25+
};
2026
mcp7941x: mcp7941x@6f {
2127
compatible = "microchip,mcp7941x";
2228
reg = <0x6f>;
@@ -46,10 +52,12 @@
4652
};
4753
__overrides__ {
4854
ds1307 = <&ds1307>,"status";
55+
ds1339 = <&ds1339>,"status";
4956
ds3231 = <&ds3231>,"status";
5057
mcp7941x = <&mcp7941x>,"status";
5158
pcf2127 = <&pcf2127>,"status";
5259
pcf8523 = <&pcf8523>,"status";
5360
pcf8563 = <&pcf8563>,"status";
61+
trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0";
5462
};
5563
};

0 commit comments

Comments
 (0)