diff options
Diffstat (limited to 'zephyr/include/cros')
-rw-r--r-- | zephyr/include/cros/binman.dtsi | 51 | ||||
-rw-r--r-- | zephyr/include/cros/ite/it8xxx2.dtsi | 83 | ||||
-rw-r--r-- | zephyr/include/cros/nuvoton/npcx.dtsi | 159 | ||||
-rw-r--r-- | zephyr/include/cros/nuvoton/npcx7.dtsi | 24 | ||||
-rw-r--r-- | zephyr/include/cros/nuvoton/npcx9.dtsi | 15 | ||||
-rw-r--r-- | zephyr/include/cros/thermistor/thermistor.dtsi | 308 |
6 files changed, 0 insertions, 640 deletions
diff --git a/zephyr/include/cros/binman.dtsi b/zephyr/include/cros/binman.dtsi deleted file mode 100644 index 82bb801e6c..0000000000 --- a/zephyr/include/cros/binman.dtsi +++ /dev/null @@ -1,51 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. 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/; - -/ { - #address-cells = <1>; - #size-cells = <1>; - binman { - filename = "zephyr.bin"; - pad-byte = <0x1d>; - wp-ro { - compatible = "cros-ec,flash-layout"; - type = "section"; - offset = <0x0>; - size = <0x40000>; - read-only; - ec-ro { - type = "section"; - ro-fw { - type = "blob"; - filename = "zephyr_ro.bin"; - }; - fmap { - }; - ro-frid { - type = "text"; - size = <32>; - text-label = "version"; - }; - }; - }; - ec-rw { - compatible = "cros-ec,flash-layout"; - type = "section"; - offset = <0x40000>; - size = <0x40000>; - rw-fw { - type = "blob"; - filename = "zephyr_rw.bin"; - }; - rw-fwid { - type = "text"; - size = <32>; - text-label = "version"; - }; - }; - }; -}; diff --git a/zephyr/include/cros/ite/it8xxx2.dtsi b/zephyr/include/cros/ite/it8xxx2.dtsi deleted file mode 100644 index 54ca7f63e3..0000000000 --- a/zephyr/include/cros/ite/it8xxx2.dtsi +++ /dev/null @@ -1,83 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include <cros/binman.dtsi> - -/ { - named-bbram-regions { - compatible = "named-bbram-regions"; - - scratchpad { - offset = <0x08>; - size = <0x04>; - }; - saved-reset-flags { - offset = <0x00>; - size = <0x04>; - }; - wake { - offset = <0x08>; - size = <0x04>; - }; - pd0 { - offset = <0x04>; - size = <0x01>; - }; - pd1 { - offset = <0x05>; - size = <0x01>; - }; - try_slot { - offset = <0x0e>; - size = <0x01>; - }; - pd2 { - offset = <0x06>; - size = <0x01>; - }; - }; - - soc { - bbram: bb-ram@f02200 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "ite,it8xxx2-cros-bbram"; - status = "okay"; - reg = <0x00f02200 0xbf>; - reg-names = "memory"; - label = "BBRAM"; - }; - - shi: shi@f03a00 { - compatible = "ite,it8xxx2-cros-shi"; - reg = <0x00f03a00 0x30>; - label = "SHI"; - interrupts = <171 0>; - interrupt-parent = <&intc>; - pinctrl-0 = <&pinctrl_shi_mosi /* GPM0 */ - &pinctrl_shi_miso /* GPM1 */ - &pinctrl_shi_clk /* GPM4 */ - &pinctrl_shi_cs>; /* GPM5 */ - }; - - fiu0: cros-flash@80000000 { - compatible = "ite,it8xxx2-cros-flash"; - reg = <0x80000000 0x100000>; - label = "FLASH"; - }; - }; - - /* it8xxx2 has 1MB of flash. currently, we use 512KB from flash. */ - binman { - wp-ro { - offset = <0x0>; - size = <0x40000>; - }; - ec-rw { - offset = <0x40000>; - size = <0x40000>; - }; - }; -}; diff --git a/zephyr/include/cros/nuvoton/npcx.dtsi b/zephyr/include/cros/nuvoton/npcx.dtsi deleted file mode 100644 index 9c84d5712d..0000000000 --- a/zephyr/include/cros/nuvoton/npcx.dtsi +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2021 The Chromium OS Authors - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/dts-v1/; - -#include <cros/binman.dtsi> -#include <nuvoton/npcx.dtsi> - -/ { - - named-bbram-regions { - compatible = "named-bbram-regions"; - - scratchpad { - offset = <0x00>; - size = <0x04>; - }; - saved-reset-flags { - offset = <0x04>; - size = <0x04>; - }; - wake { - offset = <0x08>; - size = <0x04>; - }; - pd0 { - offset = <0x0c>; - size = <0x01>; - }; - pd1 { - offset = <0x0d>; - size = <0x01>; - }; - try_slot { - offset = <0x0e>; - size = <0x01>; - }; - pd2 { - offset = <0x0f>; - size = <0x01>; - }; - ramlog { - offset = <0x20>; - size = <0x01>; - }; - panic_flags { - offset = <0x23>; - size = <0x01>; - }; - panic_bkup { - offset = <0x24>; - size = <0x1c>; - }; - lct_time { - offset = <0x40>; - size = <0x04>; - }; - }; - - soc { - - cros_kb_raw: cros-kb-raw@400a3000 { - compatible = "nuvoton,npcx-cros-kb-raw"; - reg = <0x400a3000 0x2000>; - label = "CROS_KB_RAW_0"; - interrupts = <49 4>; - clocks = <&pcc NPCX_CLOCK_BUS_APB1 NPCX_PWDWN_CTL1 0>; - /* - * No KSO2 (It's inverted and implemented by GPIO for - * CONFIG_KEYBOARD_COL2_INVERTED.) - */ - pinctrl-0 = <&alt7_no_ksi0_sl - &alt7_no_ksi1_sl - &alt7_no_ksi2_sl - &alt7_no_ksi3_sl - &alt7_no_ksi4_sl - &alt7_no_ksi5_sl - &alt7_no_ksi6_sl - &alt7_no_ksi7_sl - &alt8_no_kso00_sl - &alt8_no_kso01_sl - &alt8_no_kso03_sl - &alt8_no_kso04_sl - &alt8_no_kso05_sl - &alt8_no_kso06_sl - &alt8_no_kso07_sl - &alt9_no_kso08_sl - &alt9_no_kso09_sl - &alt9_no_kso10_sl - &alt9_no_kso11_sl - &alt9_no_kso12_sl - &alt9_no_kso13_sl - &alt9_no_kso14_sl - &alt9_no_kso15_sl - &alta_no_kso16_sl - &alta_no_kso17_sl - >; - wui_maps = <&wui_io31 &wui_io30 &wui_io27 &wui_io26 - &wui_io25 &wui_io24 &wui_io23 &wui_io22>; - }; - - mtc: mtc@400b7000 { - compatible = "nuvoton,npcx-cros-mtc"; - reg = <0x400b7000 0x2000>; - mtc-alarm = <&wui_mtc>; - label = "MTC"; - }; - - fiu0: cros-flash@40020000 { - compatible = "nuvoton,npcx-cros-flash"; - reg = <0x40020000 0x2000>; - clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL1 2>; - size = <0x80000>; - label = "FLASH_INTERFACE_UNIT0"; - pinctrl-0 = <>; - }; - - shi: shi@4000f000 { - compatible = "nuvoton,npcx-cros-shi"; - reg = <0x4000f000 0x120>; - interrupts = <18 1>; - clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL5 1>; - pinctrl-0 = <&altc_shi_sl>; - shi-cs-wui =<&wui_io53>; - label = "SHI"; - }; - }; - - power-states { - suspend_to_idle_instant: suspend_to_idle_instant { - compatible = "zephyr,power-state"; - power-state-name = "suspend-to-idle"; - substate-id = <0>; - min-residency-us = <500>; - }; - - suspend_to_idle_normal: suspend_to_idle_normal { - compatible = "zephyr,power-state"; - power-state-name = "suspend-to-idle"; - substate-id = <1>; - min-residency-us = <200100>; - }; - }; -}; - -&cpu0 { - cpu-power-states = <&suspend_to_idle_instant &suspend_to_idle_normal>; -}; - -&bbram { - status = "okay"; -}; - -&mdc { - status = "okay"; -}; diff --git a/zephyr/include/cros/nuvoton/npcx7.dtsi b/zephyr/include/cros/nuvoton/npcx7.dtsi deleted file mode 100644 index 0526341e2c..0000000000 --- a/zephyr/include/cros/nuvoton/npcx7.dtsi +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2021 The Chromium OS Authors - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/dts-v1/; - -#include <cros/nuvoton/npcx.dtsi> - -/ { - - soc { - - dbg: dbg@400c3074 { - compatible = "nuvoton,npcx-cros-dbg"; - reg = <0x400c3074 0x0C>; - pinctrl-0 = <&alt5_njen0_en>; - label = "DBG"; - status = "disabled"; - }; - }; - -}; diff --git a/zephyr/include/cros/nuvoton/npcx9.dtsi b/zephyr/include/cros/nuvoton/npcx9.dtsi deleted file mode 100644 index de492d3306..0000000000 --- a/zephyr/include/cros/nuvoton/npcx9.dtsi +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) 2021 The Chromium OS Authors - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/dts-v1/; - -#include <cros/nuvoton/npcx.dtsi> - -/ { - soc { - - }; -}; diff --git a/zephyr/include/cros/thermistor/thermistor.dtsi b/zephyr/include/cros/thermistor/thermistor.dtsi deleted file mode 100644 index 033d5639e2..0000000000 --- a/zephyr/include/cros/thermistor/thermistor.dtsi +++ /dev/null @@ -1,308 +0,0 @@ -/ { - thermistor_3V3_30K9_47K_4050B: thermistor-3V3-30K9-47K-4050B { - status = "disabled"; - compatible = "cros-ec,thermistor"; - scaling-factor = <11>; - num-pairs = <10>; - steinhart-reference-mv = <3300>; - steinhart-reference-res = <30900>; - - /* - * Data derived from Steinhart-Hart equation in a resistor - * divider circuit with Vdd=3300mV, R = 30.9Kohm, and thermistor - * (B = 4050, T0 = 298.15 K, nominal resistance (R0) = 47Kohm). - */ - sample-datum-0 { - milivolt = <(2753 / 11)>; - temp = <0>; - sample-index = <0>; - }; - sample-datum-1 { - milivolt = <(2487 / 11)>; - temp = <10>; - sample-index = <1>; - }; - sample-datum-2 { - milivolt = <(2165 / 11)>; - temp = <20>; - sample-index = <2>; - }; - sample-datum-3 { - milivolt = <(1813 / 11)>; - temp = <30>; - sample-index = <3>; - }; - sample-datum-4 { - milivolt = <(1145 / 11)>; - temp = <50>; - sample-index = <4>; - }; - sample-datum-5 { - milivolt = <(878 / 11)>; - temp = <60>; - sample-index = <5>; - }; - sample-datum-6 { - milivolt = <(665 / 11)>; - temp = <70>; - sample-index = <6>; - }; - sample-datum-7 { - milivolt = <(500 / 11)>; - temp = <80>; - sample-index = <7>; - }; - sample-datum-8 { - milivolt = <(375 / 11)>; - temp = <90>; - sample-index = <8>; - }; - sample-datum-9 { - milivolt = <(282 / 11)>; - temp = <100>; - sample-index = <9>; - }; - }; - - - thermistor_3V0_22K6_47K_4050B: thermistor-3V0-22K6-47K-4050B { - status = "disabled"; - compatible = "cros-ec,thermistor"; - scaling-factor = <11>; - num-pairs = <13>; - steinhart-reference-mv = <3000>; - steinhart-reference-res = <22600>; - - /* - * Data derived from Steinhart-Hart equation in a resistor - * divider circuit with Vdd=3000mV, R = 22.6Kohm, and thermistor - * (B = 4050, T0 = 298.15 K, nominal resistance (R0) = 47Kohm). - */ - sample-datum-0 { - milivolt = <( 2619 / 11)>; - temp = <0>; - sample-index = <0>; - }; - sample-datum-1 { - milivolt = <( 2421 / 11)>; - temp = <10>; - sample-index = <1>; - }; - sample-datum-2 { - milivolt = <( 2168 / 11)>; - temp = <20>; - sample-index = <2>; - }; - sample-datum-3 { - milivolt = <( 1875 / 11)>; - temp = <30>; - sample-index = <3>; - }; - sample-datum-4 { - milivolt = <( 1563 / 11)>; - temp = <40>; - sample-index = <4>; - }; - sample-datum-5 { - milivolt = <( 1262 / 11)>; - temp = <50>; - sample-index = <5>; - }; - sample-datum-6 { - milivolt = <( 994 / 11)>; - temp = <60>; - sample-index = <6>; - }; - sample-datum-7 { - milivolt = <( 769 / 11)>; - temp = <70>; - sample-index = <7>; - }; - sample-datum-8 { - milivolt = <( 588 / 11)>; - temp = <80>; - sample-index = <8>; - }; - sample-datum-9 { - milivolt = <( 513 / 11)>; - temp = <85>; - sample-index = <9>; - }; - sample-datum-10 { - milivolt = <( 448 / 11)>; - temp = <90>; - sample-index = <10>; - }; - sample-datum-11 { - milivolt = <( 390 / 11)>; - temp = <95>; - sample-index = <11>; - }; - sample-datum-12 { - milivolt = <( 340 / 11)>; - temp = <100>; - sample-index = <12>; - }; - }; - - thermistor_3V3_13K7_47K_4050B: thermistor-3V3-13K7-47K-4050B { - status = "disabled"; - compatible = "cros-ec,thermistor"; - scaling-factor = <13>; - num-pairs = <13>; - steinhart-reference-mv = <3300>; - steinhart-reference-res = <13700>; - - /* - * Data derived from Steinhart-Hart equation in a resistor - * divider circuit with Vdd=3300mV, R = 13.7Kohm, and thermistor - * (B = 4050, T0 = 298.15 K, nominal resistance (R0) = 47Kohm). - */ - sample-datum-0 { - milivolt = <(3033 / 13)>; - temp = <0>; - sample-index = <0>; - }; - sample-datum-1 { - milivolt = <(2882 / 13)>; - temp = <10>; - sample-index = <1>; - }; - sample-datum-2 { - milivolt = <(2677 / 13)>; - temp = <20>; - sample-index = <2>; - }; - sample-datum-3 { - milivolt = <(2420 / 13)>; - temp = <30>; - sample-index = <3>; - }; - sample-datum-4 { - milivolt = <(2119 / 13)>; - temp = <40>; - sample-index = <4>; - }; - sample-datum-5 { - milivolt = <(1799 / 13)>; - temp = <50>; - sample-index = <5>; - }; - sample-datum-6 { - milivolt = <(1485 / 13)>; - temp = <60>; - sample-index = <6>; - }; - sample-datum-7 { - milivolt = <(1197 / 13)>; - temp = <70>; - sample-index = <7>; - }; - sample-datum-8 { - milivolt = <( 947 / 13)>; - temp = <80>; - sample-index = <8>; - }; - sample-datum-9 { - milivolt = <( 839 / 13)>; - temp = <85>; - sample-index = <9>; - }; - sample-datum-10 { - milivolt = <( 741 / 13)>; - temp = <90>; - sample-index = <10>; - }; - sample-datum-11 { - milivolt = <( 653 / 13)>; - temp = <95>; - sample-index = <11>; - }; - sample-datum-12 { - milivolt = <( 576 / 13)>; - temp = <100>; - sample-index = <12>; - }; - }; - - - thermistor_3V3_51K1_47K_4050B: thermistor-3V3-51K1-47K-4050B { - status = "disabled"; - compatible = "cros-ec,thermistor"; - scaling-factor = <11>; - num-pairs = <13>; - steinhart-reference-mv = <3300>; - steinhart-reference-res = <51100>; - - /* - * Data derived from Steinhart-Hart equation in a resistor - * divider circuit with Vdd=3300mV, R = 51.1Kohm, and thermistor - * (B = 4050, T0 = 298.15 K, nominal resistance (R0) = 47Kohm). - */ - sample-datum-0 { - milivolt = <(2484 / 11)>; - temp = <0>; - sample-index = <0>; - }; - sample-datum-1 { - milivolt = <(2142 / 11)>; - temp = <10>; - sample-index = <1>; - }; - sample-datum-2 { - milivolt = <(1767 / 11)>; - temp = <20>; - sample-index = <2>; - }; - sample-datum-3 { - milivolt = <(1400 / 11)>; - temp = <30>; - sample-index = <3>; - }; - sample-datum-4 { - milivolt = <(1072 / 11)>; - temp = <40>; - sample-index = <4>; - }; - sample-datum-5 { - milivolt = <( 802 / 11)>; - temp = <50>; - sample-index = <5>; - }; - sample-datum-6 { - milivolt = <( 593 / 11)>; - temp = <60>; - sample-index = <6>; - }; - sample-datum-7 { - milivolt = <( 436 / 11)>; - temp = <70>; - sample-index = <7>; - }; - sample-datum-8 { - milivolt = <( 321 / 11)>; - temp = <80>; - sample-index = <8>; - }; - sample-datum-9 { - milivolt = <( 276 / 11)>; - temp = <85>; - sample-index = <9>; - }; - sample-datum-10 { - milivolt = <( 237 / 11)>; - temp = <90>; - sample-index = <10>; - }; - sample-datum-11 { - milivolt = <( 204 / 11)>; - temp = <95>; - sample-index = <11>; - }; - sample-datum-12 { - milivolt = <( 177 / 11)>; - temp = <100>; - sample-index = <12>; - }; - }; -}; |