misc: npcx: Add soc id node
Nuvoton provides different series MCU. The NPCX series has a specific id, which can identify the real chip part number. This CL adds soc id for the NPCX series. Signed-off-by: Wealian Liao <WHLIAO@nuvoton.com>
This commit is contained in:
parent
c21bfdca9c
commit
ce36a05953
9 changed files with 62 additions and 0 deletions
|
@ -663,6 +663,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
compatible = "nuvoton,npcx-soc-id";
|
||||||
|
family-id = <0x20>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&nvic {
|
&nvic {
|
||||||
|
|
|
@ -197,4 +197,9 @@
|
||||||
&altf_adc9_sl>; /* ADC9 - PINF0 */
|
&altf_adc9_sl>; /* ADC9 - PINF0 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
chip-id = <0x07>;
|
||||||
|
revision-reg = <0x00007FFC 1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,4 +20,8 @@
|
||||||
compatible = "mmio-sram";
|
compatible = "mmio-sram";
|
||||||
reg = <0x200C0000 DT_SIZE_K(62)>;
|
reg = <0x200C0000 DT_SIZE_K(62)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
device-id = <0x21>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,4 +20,8 @@
|
||||||
compatible = "mmio-sram";
|
compatible = "mmio-sram";
|
||||||
reg = <0x200C0000 DT_SIZE_K(62)>;
|
reg = <0x200C0000 DT_SIZE_K(62)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
device-id = <0x29>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,4 +20,8 @@
|
||||||
compatible = "mmio-sram";
|
compatible = "mmio-sram";
|
||||||
reg = <0x200C0000 DT_SIZE_K(62)>;
|
reg = <0x200C0000 DT_SIZE_K(62)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
device-id = <0x20>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -223,4 +223,9 @@
|
||||||
&altf_adc11_sl>; /* ADC11 - PINC7 */
|
&altf_adc11_sl>; /* ADC11 - PINC7 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
chip-id = <0x09>;
|
||||||
|
revision-reg = <0x0000FFFC 4>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,4 +20,8 @@
|
||||||
compatible = "mmio-sram";
|
compatible = "mmio-sram";
|
||||||
reg = <0x200C0000 DT_SIZE_K(62)>;
|
reg = <0x200C0000 DT_SIZE_K(62)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
device-id = <0x25>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,4 +20,8 @@
|
||||||
compatible = "mmio-sram";
|
compatible = "mmio-sram";
|
||||||
reg = <0x200C0000 DT_SIZE_K(62)>;
|
reg = <0x200C0000 DT_SIZE_K(62)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
soc-id {
|
||||||
|
device-id = <0x21>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
27
dts/bindings/misc/nuvoton,npcx-soc-id.yaml
Normal file
27
dts/bindings/misc/nuvoton,npcx-soc-id.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Copyright (c) 2021 Nuvoton Technology Corporation.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
description: Nuvoton, NPCX soc ID node
|
||||||
|
|
||||||
|
compatible: "nuvoton,npcx-soc-id"
|
||||||
|
|
||||||
|
properties:
|
||||||
|
family-id:
|
||||||
|
type: int
|
||||||
|
required: true
|
||||||
|
description: NPCX family ID
|
||||||
|
|
||||||
|
chip-id:
|
||||||
|
type: int
|
||||||
|
required: true
|
||||||
|
description: NPCX chip ID
|
||||||
|
|
||||||
|
device-id:
|
||||||
|
type: int
|
||||||
|
required: true
|
||||||
|
description: NPCX device ID
|
||||||
|
|
||||||
|
revision-reg:
|
||||||
|
type: array
|
||||||
|
required: true
|
||||||
|
description: NPCX revision register address & length in byte
|
Loading…
Add table
Add a link
Reference in a new issue