Skip to content
Permalink
Browse files

dts : Introduce gpio node entries for Microchip MEC

Dts Nodes for all the GPIO portswere defined. In addition,
a new binding file was created for the gpio driver.

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
  • Loading branch information...
franciscomunoz authored and andrewboie committed Apr 10, 2019
1 parent b47669a commit 2452b84c897ff546328baa62a2235eed4867faa5
Showing with 92 additions and 0 deletions.
  1. +49 −0 dts/arm/microchip/mec1501hsz.dtsi
  2. +43 −0 dts/bindings/gpio/microchip,xec-gpio.yaml
@@ -6,6 +6,7 @@

#include <arm/armv7-m.dtsi>
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/gpio/gpio.h>

/ {
cpus {
@@ -53,6 +54,54 @@
label = "UART_2";
reg-shift = <0>;
};
gpioa: gpio@40081000 {
compatible = "microchip,xec-gpio";
reg = <0x40081000 0x80>;
interrupts = <3 2>;
gpio-controller;
label="GPIO000_036";
#gpio-cells=<2>;
};
gpiob: gpio@40081080 {
compatible = "microchip,xec-gpio";
reg = <0x40081080 0x80>;
interrupts = <2 2>;
gpio-controller;
label="GPIO040_076";
#gpio-cells=<2>;
};
gpioc: gpio@40081100 {
compatible = "microchip,xec-gpio";
reg = <0x40081100 0x80>;
gpio-controller;
interrupts = <1 2>;
label="GPIO100_136";
#gpio-cells=<2>;
};
gpiod: gpio@40081180 {
compatible = "microchip,xec-gpio";
reg = <0x40081180 0x80>;
gpio-controller;
interrupts = <0 2>;
label="GPIO140_176";
#gpio-cells=<2>;
};
gpioe: gpio@40081200 {
compatible = "microchip,xec-gpio";
reg = <0x40081200 0x80>;
gpio-controller;
interrupts = <4 2>;
label="GPIO200_236";
#gpio-cells=<2>;
};
gpiof: gpio@40081280 {
compatible = "microchip,xec-gpio";
reg = <0x40081280 0x80>;
gpio-controller;
interrupts = <17 2>;
label="GPIO240_276";
#gpio-cells=<2>;
};
i2c0: i2c@40004000 {
compatible = "microchip,xec-i2c";
reg = <0x40004000 0x80>;
@@ -0,0 +1,43 @@
#
# Copyright (c) 2019, Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

---
title: MICROCHIP GPIO
version: 0.1

description: >
This is a representation of the CEC/MEC GPIO nodes for Microchip
properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "microchip,xec-gpio"
generation: define

reg:
type: int
description: mmio register space
generation: define
category: required

interrupts:
type: compound
category: optional
description: required interrupts
generation: define

label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define

"#cells":
- pin
- flags
...

0 comments on commit 2452b84

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