zephyr/boards/microchip/mec172xmodular_assy6930/mec172xmodular_assy6930.dts

273 lines
4.7 KiB
Plaintext

/*
* Copyright (c) 2022, Microchip Technology Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <microchip/mec172xnsz.dtsi>
#include <microchip/mec172x/mec172xnsz-pinctrl.dtsi>
/ {
model = "Microchip MEC172XMODULAR_ASSY6930 evaluation board";
compatible = "microchip,mec172xmodular_assy6930", "microchip,mec172xnsz";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart1;
};
aliases {
led1 = &led3;
led2 = &led2;
i2c0 = &i2c_smb_0;
i2c1 = &i2c_smb_1;
i2c7 = &i2c_smb_2;
pwm-0 = &pwm0;
};
leds {
compatible = "gpio-leds";
led3: led_1 {
/* GPIO157/LED1 on schematic,
* LED3 on silkscreen.
*/
gpios = <MCHP_GPIO_DECODE_157 GPIO_ACTIVE_HIGH>;
};
led2: led_2{
/* GPIO153/LED2 on schematic,
* LED2 on silkscreen.
*/
gpios = <MCHP_GPIO_DECODE_153 GPIO_ACTIVE_HIGH>;
};
};
};
&cpu0 {
clock-frequency = <96000000>;
status = "okay";
};
/* Initialize ECIA. Does not initialize child devices */
&ecia {
status = "okay";
};
/* Enable aggregated GIRQ24 and GIRQ25 for eSPI virtual wires interrupts */
&girq24 {
status = "okay";
};
&girq25 {
status = "okay";
};
&rtimer {
status = "okay";
};
&pcr {
status = "okay";
};
&uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>;
pinctrl-names = "default";
};
&adc0 {
status = "okay";
pinctrl-0 = <&adc00_gpio200 &adc03_gpio203
&adc04_gpio204 &adc05_gpio205>;
pinctrl-names = "default";
};
&espi0 {
status = "okay";
pinctrl-0 = < &espi_reset_n_gpio061 &espi_cs_n_gpio066
&espi_alert_n_gpio063 &espi_clk_gpio065
&espi_io0_gpio070 &espi_io1_gpio071
&espi_io2_gpio072 &espi_io3_gpio073 >;
pinctrl-names = "default";
};
/* enable various eSPI child devices (host facing) */
&kbc0 {
status = "okay";
};
&acpi_ec0 {
status = "okay";
};
&acpi_ec1 {
status = "okay";
};
&emi0 {
status = "okay";
};
&p80bd0 {
status = "okay";
};
/* I2C */
&i2c_smb_0 {
status = "okay";
port_sel = <0>;
pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >;
pinctrl-names = "default";
};
&i2c00_scl_gpio004 {
drive-open-drain;
output-enable;
output-high;
};
&i2c00_sda_gpio003 {
drive-open-drain;
output-enable;
output-high;
};
&i2c_smb_1 {
status = "okay";
port_sel = <1>;
pinctrl-0 = <&i2c01_scl_gpio131 &i2c01_sda_gpio130>;
pinctrl-names = "default";
};
&i2c01_scl_gpio131 {
drive-open-drain;
output-enable;
output-high;
};
&i2c01_sda_gpio130 {
drive-open-drain;
output-enable;
output-high;
};
&i2c_smb_2 {
status = "okay";
port_sel = <7>;
pinctrl-0 = <&i2c07_scl_gpio013 &i2c07_sda_gpio012>;
pinctrl-names = "default";
};
&i2c07_scl_gpio013 {
drive-open-drain;
output-enable;
output-high;
};
&i2c07_sda_gpio012 {
drive-open-drain;
output-enable;
output-high;
};
&spi0 {
status = "okay";
compatible = "microchip,xec-qmspi-ldma";
clock-frequency = <4000000>;
lines = <4>;
chip-select = <0>;
pinctrl-0 = < &shd_cs0_n_gpio055
&shd_clk_gpio056
&shd_io0_gpio223
&shd_io1_gpio224
&shd_io2_gpio227
&shd_io3_gpio016 >;
pinctrl-names = "default";
};
&kbd0 {
status = "okay";
pinctrl-0 = < &ksi0_gpio017 &ksi1_gpio020 &ksi2_gpio021 &ksi3_gpio026
&ksi4_gpio027 &ksi5_gpio030 &ksi6_gpio031 &ksi7_gpio032
&kso00_gpio040 &kso01_gpio045 &kso02_gpio046 &kso03_gpio047
&kso04_gpio107 &kso05_gpio112 &kso06_gpio113 &kso07_gpio120
&kso08_gpio121 &kso09_gpio122 &kso10_gpio123 &kso11_gpio124
&kso12_gpio125 &kso13_gpio126 >;
pinctrl-1 = < &ksi0_gpio017_sleep &ksi1_gpio020_sleep &ksi2_gpio021_sleep
&ksi3_gpio026_sleep &ksi4_gpio027_sleep &ksi5_gpio030_sleep
&ksi6_gpio031_sleep &ksi7_gpio032_sleep &kso00_gpio040_sleep
&kso01_gpio045_sleep &kso02_gpio046_sleep &kso03_gpio047_sleep
&kso04_gpio107_sleep &kso05_gpio112_sleep &kso06_gpio113_sleep
&kso07_gpio120_sleep &kso08_gpio121_sleep &kso09_gpio122_sleep
&kso10_gpio123_sleep &kso11_gpio124_sleep &kso12_gpio125_sleep
&kso13_gpio126_sleep >;
pinctrl-names = "default", "sleep";
row-size = <8>;
col-size = <16>;
kscan_input: kscan-input {
compatible = "zephyr,kscan-input";
};
};
&ksi0_gpio017 {
bias-pull-up;
};
&ksi1_gpio020 {
bias-pull-up;
};
&ksi2_gpio021 {
bias-pull-up;
};
&ksi3_gpio026 {
bias-pull-up;
};
&ksi4_gpio027 {
bias-pull-up;
};
&ksi5_gpio030 {
bias-pull-up;
};
&ksi6_gpio031 {
bias-pull-up;
};
&ksi7_gpio032 {
bias-pull-up;
};
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_gpio053>;
pinctrl-names = "default";
};
&tach0 {
status = "okay";
pinctrl-0 = <&tach0_gpio050>;
pinctrl-names = "default";
};
&ps2_0 {
status = "okay";
pinctrl-0 = <&ps2_clk0a_gpio114 &ps2_dat0a_gpio115>;
pinctrl-names = "default";
};
&timer5 {
status = "okay";
};