Skip to content
Permalink
Browse files

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>
  • Loading branch information...
Jose Alberto Meza authored and andrewboie committed Apr 22, 2019
1 parent 467d1c3 commit 291e1289a05745c99b56ad4583f0ee037d80be51
Showing with 67 additions and 0 deletions.
  1. +31 −0 dts/arm/microchip/mec1501hsz.dtsi
  2. +36 −0 dts/bindings/i2c/microchip,xec-i2c.yaml
@@ -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";
};
};
};

@@ -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

...

0 comments on commit 291e128

Please sign in to comment.
You can’t perform that action at this time.