Created
August 22, 2014 16:58
-
-
Save RobertCNelson/58e917d7e1c0a4ee0a7a to your computer and use it in GitHub Desktop.
rtc wip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From a1d20ba78d04571d86224922fc6116a066dd054c Mon Sep 17 00:00:00 2001 | |
| From: Robert Nelson <[email protected]> | |
| Date: Fri, 22 Aug 2014 11:57:49 -0500 | |
| Subject: [PATCH] testing | |
| Signed-off-by: Robert Nelson <[email protected]> | |
| --- | |
| arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi | 7 +++++++ | |
| arch/arm/boot/dts/am335x-bone-rtc-01-00a1.dtsi | 21 +++++++++++++++++++++ | |
| 2 files changed, 28 insertions(+) | |
| create mode 100644 arch/arm/boot/dts/am335x-bone-rtc-01-00a1.dtsi | |
| diff --git a/arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi b/arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi | |
| index 1a7d71b..cab953d 100644 | |
| --- a/arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi | |
| +++ b/arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi | |
| @@ -135,6 +135,13 @@ | |
| >; | |
| }; | |
| + i2c1_pins: pinmux_i2c1_pins { | |
| + pinctrl-single,pins = < | |
| + 0x158 0x72 /* spi0_d1.i2c1_sda, SLEWCTRL_SLOW | INPUT_PULLUP | MODE2 */ | |
| + 0x15c 0x72 /* spi0_cs0.i2c1_scl, SLEWCTRL_SLOW | INPUT_PULLUP | MODE2 */ | |
| + >; | |
| + }; | |
| + | |
| i2c2_pins: pinmux_i2c2_pins { | |
| pinctrl-single,pins = < | |
| 0x178 0x73 /* (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) uart1_ctsn.i2c2_sda */ | |
| diff --git a/arch/arm/boot/dts/am335x-bone-rtc-01-00a1.dtsi b/arch/arm/boot/dts/am335x-bone-rtc-01-00a1.dtsi | |
| new file mode 100644 | |
| index 0000000..2a0d514 | |
| --- /dev/null | |
| +++ b/arch/arm/boot/dts/am335x-bone-rtc-01-00a1.dtsi | |
| @@ -0,0 +1,21 @@ | |
| +/* | |
| + * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.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. | |
| + */ | |
| + | |
| +&i2c1 { | |
| + pinctrl-names = "default"; | |
| + pinctrl-0 = <&i2c1_pins>; | |
| + | |
| + status = "okay"; | |
| + clock-frequency = <100000>; | |
| + | |
| + /* MCP79410 RTC module */ | |
| + rtc@68 { | |
| + compatible = "maxim,ds1338"; | |
| + reg = <0x68>; | |
| + }; | |
| +}; | |
| -- | |
| 2.1.0.rc1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment