dts: mchp: Add Microchip I2C SoC device tree

Expose MEC1501 5 I2C/SMB  controllers
Add Microchip specific I2C device tree properties

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
This commit is contained in:
Jose Alberto Meza 2019-04-22 14:36:40 -07:00 committed by Andrew Boie
parent 467d1c3205
commit 291e1289a0
2 changed files with 67 additions and 0 deletions

View file

@ -5,6 +5,7 @@
*/
#include <arm/armv7-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
/ {
cpus {
@ -52,6 +53,36 @@
label = "UART_2";
reg-shift = <0>;
};
i2c0: i2c@40004000 {
compatible = "microchip,xec-i2c";
reg = <0x40004000 0x80>;
clock-frequency = <I2C_BITRATE_STANDARD>;
label = "I2C_0";
};
i2c1: i2c@40004400 {
compatible = "microchip,xec-i2c";
reg = <0x40004400 0x80>;
clock-frequency = <I2C_BITRATE_STANDARD>;
label = "I2C_1";
};
i2c2: i2c@40004800 {
compatible = "microchip,xec-i2c";
reg = <0x40004800 0x80>;
clock-frequency = <I2C_BITRATE_STANDARD>;
label = "I2C_2";
};
i2c3: i2c@40004c00 {
compatible = "microchip,xec-i2c";
reg = <0x40004C00 0x80>;
clock-frequency = <I2C_BITRATE_STANDARD>;
label = "I2C_3";
};
i2c4: i2c@40005000 {
compatible = "microchip,xec-i2c";
reg = <0x40005000 0x80>;
clock-frequency = <I2C_BITRATE_STANDARD>;
label = "I2C_4";
};
};
};

View file

@ -0,0 +1,36 @@
#
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: MICROCHIP I2C
version: 0.1
description: >
This binding gives a base representation for I2C/SMB controller for Microchip
inherits:
!include i2c.yaml
properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "microchip,xec-i2c"
generation: define
reg:
type: int
description: mmio register space
generation: define
category: required
port_sel:
type: int
description: soc block mapping to pin
generation: define
category: define
...