From 291e1289a05745c99b56ad4583f0ee037d80be51 Mon Sep 17 00:00:00 2001 From: Jose Alberto Meza Date: Mon, 22 Apr 2019 14:36:40 -0700 Subject: [PATCH] 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 --- dts/arm/microchip/mec1501hsz.dtsi | 31 +++++++++++++++++++++ dts/bindings/i2c/microchip,xec-i2c.yaml | 36 +++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 dts/bindings/i2c/microchip,xec-i2c.yaml diff --git a/dts/arm/microchip/mec1501hsz.dtsi b/dts/arm/microchip/mec1501hsz.dtsi index 7162d2c577..2d7b56dc93 100644 --- a/dts/arm/microchip/mec1501hsz.dtsi +++ b/dts/arm/microchip/mec1501hsz.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { cpus { @@ -52,6 +53,36 @@ label = "UART_2"; reg-shift = <0>; }; + i2c0: i2c@40004000 { + compatible = "microchip,xec-i2c"; + reg = <0x40004000 0x80>; + clock-frequency = ; + label = "I2C_0"; + }; + i2c1: i2c@40004400 { + compatible = "microchip,xec-i2c"; + reg = <0x40004400 0x80>; + clock-frequency = ; + label = "I2C_1"; + }; + i2c2: i2c@40004800 { + compatible = "microchip,xec-i2c"; + reg = <0x40004800 0x80>; + clock-frequency = ; + label = "I2C_2"; + }; + i2c3: i2c@40004c00 { + compatible = "microchip,xec-i2c"; + reg = <0x40004C00 0x80>; + clock-frequency = ; + label = "I2C_3"; + }; + i2c4: i2c@40005000 { + compatible = "microchip,xec-i2c"; + reg = <0x40005000 0x80>; + clock-frequency = ; + label = "I2C_4"; + }; }; }; diff --git a/dts/bindings/i2c/microchip,xec-i2c.yaml b/dts/bindings/i2c/microchip,xec-i2c.yaml new file mode 100644 index 0000000000..da20d5d94a --- /dev/null +++ b/dts/bindings/i2c/microchip,xec-i2c.yaml @@ -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 + +...