/* Copyright 2022 Microchip Technology Inc. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /dts-v1/; #include #include #include #include / { model = "MEC1727"; chosen { zephyr,sram = &sram0; zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,flash = &flash0; zephyr,flash-controller = &int_flash; }; pinmux: pinmux { compatible = "microchip,xec-pinmux"; pinmux_000_036: pinmux-0 { ph-reg = <&gpio_000_036>; port-num = <0>; }; pinmux_040_076: pinmux-1 { ph-reg = <&gpio_040_076>; port-num = <1>; }; pinmux_100_136: pinmux-2 { ph-reg = <&gpio_100_136>; port-num = <2>; }; pinmux_140_176: pinmux-3 { ph-reg = <&gpio_140_176>; port-num = <3>; }; pinmux_200_236: pinmux-4 { ph-reg = <&gpio_200_236>; port-num = <4>; }; pinmux_240_276: pinmux-5 { ph-reg = <&gpio_240_276>; port-num = <5>; }; }; named-pwms { compatible = "named-pwms"; }; named-adc-channels { compatible = "named-adc-channels"; adc_ddr_soc: ddr_soc { enum-name = "ADC_TEMP_SENSOR_1_DDR_SOC"; io-channels = <&adc0 5>; }; adc_ambient: ambient { enum-name = "ADC_TEMP_SENSOR_2_AMBIENT"; io-channels = <&adc0 3>; }; adc_charger: charger { enum-name = "ADC_TEMP_SENSOR_3_CHARGER"; io-channels = <&adc0 0>; }; adc_wwan: wwan { enum-name = "ADC_TEMP_SENSOR_4_WWAN"; io-channels = <&adc0 4>; }; }; soc { /delete-node/ rtc@400f5000; /delete-node/ kscan@40009c00; crtc: cros-rtc@400f5000 { compatible = "microchip,xec-cros-rtc"; reg = <0x400f5000 0x100>; interrupts = <119 0>, <120 0>; label = "CRTC"; }; cros_kb_raw: cros-kb-raw@40009c00 { compatible = "microchip,xec-cros-kb-raw"; reg = <0x40009c00 0x18>; interrupts = <135 0>; }; }; }; &cpu0 { status = "okay"; /* cpu-power-states = <&suspend_to_idle_instant &suspend_to_idle_normal>; */ }; &bbram { status = "okay"; }; &ecia { status = "okay"; }; /* Enable aggregated GIRQ24/25 for eSPI virtual wires */ &girq24 { status = "okay"; }; &girq25 { status = "okay"; }; &espi0 { status = "okay"; pinctrl-0 = <&espi_reset_n_gpio061 &espi_cs_n_gpio066 &espi_clk_gpio065 &espi_io0_gpio070 &espi_io1_gpio071 &espi_io2_gpio072 &espi_io3_gpio073>; pinctrl-names = "default"; }; /* Host facing devices on eSPI bus */ &kbc0 { status = "okay"; }; &acpi_ec0 { status = "okay"; }; &acpi_ec1 { status = "okay"; }; &emi0 { status = "okay"; }; &p80bd0 { status = "okay"; }; &crtc { status = "okay"; }; &uart0 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_tx_gpio104 &uart0_rx_gpio105>; pinctrl-names = "default"; }; &spi0 { status = "okay"; clock-frequency = <12000000>; lines = <2>; port-sel = <2>; chip-select = <0>; pinctrl-0 = < &gpspi_cs_n_gpio116 &gpspi_clk_gpio117 &gpspi_io0_gpio074 &gpspi_io1_gpio075 &gpspi_wp_n_gpio076 >; pinctrl-names = "default"; int_flash: sst25pf040@0 { compatible ="jedec,spi-nor"; /* 4194304 bits = 512K Bytes */ size = <0x400000>; label = "SST25PF040"; reg = <0>; spi-max-frequency = <40000000>; status = "okay"; jedec-id = [62 06 13]; }; }; &cros_kb_raw { status = "okay"; /* * No KSO2 (It's inverted and implemented by GPIO for * CONFIG_KEYBOARD_COL2_INVERTED.) */ pinctrl-0 = <&ksi0_gpio017 &ksi1_gpio020 &ksi2_gpio021 &ksi3_gpio026 &ksi4_gpio027 &ksi5_gpio030 &ksi6_gpio031 &ksi7_gpio032 &kso00_gpio040 &kso01_gpio045 &kso03_gpio047 &kso04_gpio107 &kso05_gpio112 &kso06_gpio113 &kso07_gpio120 &kso08_gpio121 &kso09_gpio122 &kso10_gpio123 &kso11_gpio124 &kso12_gpio125>; pinctrl-names = "default"; }; /* Chrome design: KSI02 to H1 has not pull-up resistor */ &ksi2_gpio021 { bias-pull-up; }; &adc0 { status = "okay"; pinctrl-0 = <&adc00_gpio200 &adc03_gpio203 &adc04_gpio204 &adc05_gpio205>; pinctrl-names = "default"; };