dts: npcx: shi: support two version of shi hardware

The shi module in npcx4 supports the enhanced buffer mode.
Add a new compatible string "nuvoton,npcx-shi-enhanced" for it.
Then the shi driver can determine if it should use the enhanced buffer
mode based on the compatiable string.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
This commit is contained in:
Jun Lin 2023-11-10 10:40:41 +08:00 committed by Carles Cufí
parent 74f07b04ff
commit ba38a54faa
5 changed files with 41 additions and 10 deletions

View file

@ -376,16 +376,6 @@
status = "disabled";
};
shi0: shi@4000f000 {
compatible = "nuvoton,npcx-shi";
reg = <0x4000f000 0x120>;
interrupts = <18 1>;
clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL5 1>;
status = "disabled";
buffer-rx-size = <128>;
buffer-tx-size = <128>;
};
host_sub: lpc@400c1000 {
compatible = "nuvoton,npcx-host-sub";
/* host sub-module register address & size */

View file

@ -295,6 +295,17 @@
context-buffer-size = <228>;
status = "disabled";
};
shi0: shi@4000f000 {
compatible = "nuvoton,npcx-shi-enhanced";
reg = <0x4000f000 0x120>;
interrupts = <18 1>;
clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL5 1>;
status = "disabled";
buffer-rx-size = <128>;
buffer-tx-size = <128>;
shi-cs-wui =<&wui_io53>;
};
};
soc-if {

View file

@ -244,6 +244,17 @@
qspi_fiu0: quadspi@40020000 {
clocks = <&pcc NPCX_CLOCK_BUS_FIU NPCX_PWDWN_CTL1 2>;
};
shi0: shi@4000f000 {
compatible = "nuvoton,npcx-shi";
reg = <0x4000f000 0x120>;
interrupts = <18 1>;
clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL5 1>;
status = "disabled";
buffer-rx-size = <128>;
buffer-tx-size = <128>;
shi-cs-wui =<&wui_io53>;
};
};
soc-id {

View file

@ -272,6 +272,17 @@
context-buffer-size = <212>;
status = "disabled";
};
shi0: shi@4000f000 {
compatible = "nuvoton,npcx-shi";
reg = <0x4000f000 0x120>;
interrupts = <18 1>;
clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL5 1>;
status = "disabled";
buffer-rx-size = <128>;
buffer-tx-size = <128>;
shi-cs-wui =<&wui_io53>;
};
};
soc-id {

View file

@ -0,0 +1,8 @@
# Copyright (c) 2022 Google LLC
# SPDX-License-Identifier: Apache-2.0
description: Nuvoton, NPCX Serial Host Interface (SHI) node
compatible: "nuvoton,npcx-shi-enhanced"
include: [pinctrl-device.yaml, shi-device.yaml, "nuvoton,npcx-shi.yaml"]