dts: Add i2c bindings and nodes for lpc socs

Adds i2c device tree bindings and nodes for the lpc54xxx and lpc55s6x
socs in preparation for adding a new i2c driver.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2019-12-08 13:38:52 -06:00 committed by Kumar Gala
commit f1a8f6dd7b
3 changed files with 39 additions and 0 deletions

View file

@ -5,6 +5,7 @@
*/ */
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/i2c/i2c.h>
/ { / {
aliases{ aliases{
@ -91,6 +92,17 @@
status = "disabled"; status = "disabled";
}; };
i2c4: i2c@4008a000 {
compatible = "nxp,lpc-i2c";
clock-frequency = <I2C_BITRATE_STANDARD>;
reg = <0x4008a000 0x1000>;
interrupts = <18 0>;
label = "I2C_4";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
spi5: spi@40096000 { spi5: spi@40096000 {
compatible = "nxp,lpc-spi"; compatible = "nxp,lpc-spi";
reg = <0x40096000 0x1000>; reg = <0x40096000 0x1000>;

View file

@ -7,6 +7,7 @@
#include <mem.h> #include <mem.h>
#include <arm/armv8-m.dtsi> #include <arm/armv8-m.dtsi>
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/i2c/i2c.h>
/ { / {
aliases { aliases {
@ -143,6 +144,17 @@
#gpio-cells = <2>; #gpio-cells = <2>;
}; };
i2c4: i2c@5008a000 {
compatible = "nxp,lpc-i2c";
clock-frequency = <I2C_BITRATE_STANDARD>;
reg = <0x5008a000 0x1000>;
interrupts = <18 0>;
label = "I2C_4";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
spi8: spi@5009f000 { spi8: spi@5009f000 {
compatible = "nxp,lpc-spi"; compatible = "nxp,lpc-spi";
reg = <0x5009f000 0x1000>; reg = <0x5009f000 0x1000>;

View file

@ -0,0 +1,15 @@
# Copyright (c) 2019 NXP
# SPDX-License-Identifier: Apache-2.0
description: LPC I2C node
compatible: "nxp,lpc-i2c"
include: i2c-controller.yaml
properties:
reg:
required: true
interrupts:
required: true