Skip to content

Commit

Permalink
add BB-I2C1-ADXL34X.dts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pillar1989 committed Jan 7, 2020
1 parent 8babf20 commit 952767e
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions overlays/bb/BB-I2C1-ADXL34X.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright (C) 2018 Seeed Studio
* Peter Yang <turmary@126.com>
*
* MIT License
*
*/
/dts-v1/;
/plugin/;

/ {
fragment@0 {
target-path="/";
__overlay__ {

aliases {
/* SLOT I2C1 */
adxl34x = "/ocp/i2c@4802a000/adxl34x@53";
/* SLOT I2C2 */
/*
adxl34x = "/ocp/i2c@4819c000/adxl34x@53";
*/
};
};
};

fragment@1 {
/* SLOT I2C1 */
/*
target = <&i2c1>;
*/
/* SLOT I2C2 */
target = <&i2c1>;

__overlay__ {
status = "okay";

clock-frequency = <400000>;

#address-cells = <1>;
#size-cells = <0>;

adxl34x@53 {
compatible = "adi,adxl34x";
reg = <0x53>;
status = "okay";
};
};
};
};

0 comments on commit 952767e

Please sign in to comment.