From 952767ea03748235da5ebf7f1bdc815a80a475fa Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Tue, 7 Jan 2020 09:30:15 +0000 Subject: [PATCH] add BB-I2C1-ADXL34X.dts --- overlays/bb/BB-I2C1-ADXL34X.dts | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 overlays/bb/BB-I2C1-ADXL34X.dts diff --git a/overlays/bb/BB-I2C1-ADXL34X.dts b/overlays/bb/BB-I2C1-ADXL34X.dts new file mode 100644 index 0000000..4f7fd42 --- /dev/null +++ b/overlays/bb/BB-I2C1-ADXL34X.dts @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2018 Seeed Studio + * Peter Yang + * + * 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"; + }; + }; + }; +}; +