Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * adapted from a cape that is
- * Copyright (C) 2013 CircuitCo
- *
- * Virtual cape for I2C2 on connector pins P9.21 P9.22
- *
- * 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.
- */
- /dts-v1/;
- /plugin/;
- / {
- compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";
- /* identification */
- part-number = "BB-I2C2-2";
- version = "00A0";
- /* state the resources this cape uses */
- exclusive-use =
- /* the pin header uses */
- "P9.22", /* i2c2_sda */
- "P9.21", /* i2c2_scl */
- /* the hardware ip uses */
- "i2c2";
- fragment@0 {
- target = <&am33xx_pinmux>;
- __overlay__ {
- bb_i2c2_2_pins: pinmux_bb_i2c2_2_pins {
- pinctrl-single,pins = <
- 0x150 0x72 /* i2c2_sda, SLEWCTRL_SLOW | INPUT_PULLUP | MODE2 */
- 0x154 0x72 /* i2c2_scl, SLEWCTRL_SLOW | INPUT_PULLUP | MODE2 */
- >;
- };
- };
- };
- fragment@1 {
- target = <&i2c2>;
- __overlay__ {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&bb_i2c2_2_pins>;
- /* this is the configuration part */
- clock-frequency = <100000>;
- #address-cells = <1>;
- #size-cells = <0>;
- /* add any i2c devices on the bus here */
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement