dts: Add bindings for imx lpi2c
Adds device tree bindings for the imx lpi2c peripheral. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
e664c78b82
commit
ce5926aa6d
|
@ -7,6 +7,7 @@
|
|||
#include <arm/armv7-m.dtsi>
|
||||
#include <dt-bindings/clock/imx_ccm.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/i2c/i2c.h>
|
||||
|
||||
/ {
|
||||
cpus {
|
||||
|
@ -117,6 +118,54 @@
|
|||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
i2c1: i2c@403f0000 {
|
||||
compatible = "nxp,imx-lpi2c";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x403f0000 0x4000>;
|
||||
interrupts = <28 0>;
|
||||
clocks = <&ccm IMX_CCM_LPI2C_CLK 0x70 6>;
|
||||
label = "I2C_1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
i2c2: i2c@403f4000 {
|
||||
compatible = "nxp,imx-lpi2c";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x403f4000 0x4000>;
|
||||
interrupts = <29 0>;
|
||||
clocks = <&ccm IMX_CCM_LPI2C_CLK 0x70 8>;
|
||||
label = "I2C_2";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
i2c3: i2c@403f8000 {
|
||||
compatible = "nxp,imx-lpi2c";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x403f8000 0x4000>;
|
||||
interrupts = <30 0>;
|
||||
clocks = <&ccm IMX_CCM_LPI2C_CLK 0x70 10>;
|
||||
label = "I2C_3";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
i2c4: i2c@403fc000 {
|
||||
compatible = "nxp,imx-lpi2c";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x403fc000 0x4000>;
|
||||
interrupts = <31 0>;
|
||||
clocks = <&ccm IMX_CCM_LPI2C_CLK 0x80 24>;
|
||||
label = "I2C_4";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
iomuxc: iomuxc@401f8000 {
|
||||
reg = <0x401f8000 0x4000>;
|
||||
label = "PINMUX_0";
|
||||
|
|
30
dts/bindings/i2c/nxp,imx-lpi2c.yaml
Normal file
30
dts/bindings/i2c/nxp,imx-lpi2c.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: NXP LPI2C
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of the NXP i.MX LPI2C controller
|
||||
|
||||
inherits:
|
||||
!include i2c.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
constraint: "nxp,imx-lpi2c"
|
||||
|
||||
reg:
|
||||
type: int
|
||||
description: mmio register space
|
||||
generation: define
|
||||
category: required
|
||||
|
||||
interrupts:
|
||||
type: compound
|
||||
category: required
|
||||
description: required interrupts
|
||||
generation: define
|
Loading…
Reference in a new issue