/* 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 / { 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>; }; }; };