Skip to content

Commit 3cb6ff5

Browse files
alvsunjhedberg
authored andcommitted
dts: nuvoton: npcx: add support for GDMA and driver enable options
1. Introduces boolean properties to enable support for different versions of the FIU/Nor flash driver. 2. Add dmas phandle for DMA configuration. Signed-off-by: Alvis Sun <[email protected]>
1 parent 97d8aa3 commit 3cb6ff5

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

dts/arm/nuvoton/npck/npck.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@
551551
#size-cells = <0>;
552552
reg = <0x40020000 0x1000>;
553553
clocks = <&pcc NPCX_CLOCK_BUS_FIU NPCX_PWDWN_CTL1 2>;
554+
support-npckn-v1;
554555
};
555556

556557
peci0: peci@400d4000 {

dts/arm/nuvoton/npcx/npcx4.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@
392392
/* FIU0 configuration in npcx4 series */
393393
qspi_fiu0: quadspi@40020000 {
394394
clocks = <&pcc NPCX_CLOCK_BUS_FIU0 NPCX_PWDWN_CTL8 5>;
395+
support-npcxn-v2;
395396
};
396397

397398
/* FIU1 configuration in npcx4 series */
@@ -401,6 +402,7 @@
401402
#size-cells = <0>;
402403
reg = <0x40021000 0x1000>;
403404
clocks = <&pcc NPCX_CLOCK_BUS_FIU0 NPCX_PWDWN_CTL8 6>;
405+
support-npcxn-v2;
404406
};
405407

406408
sha0: sha@148 {

dts/arm/nuvoton/npcx/npcx9.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@
379379
/* FIU0 configuration in npcx9 series */
380380
qspi_fiu0: quadspi@40020000 {
381381
clocks = <&pcc NPCX_CLOCK_BUS_FIU NPCX_PWDWN_CTL1 2>;
382+
support-npcxn-v1;
382383
};
383384

384385
sha0: sha@13c {

dts/bindings/flash_controller/nuvoton,npcx-fiu-qspi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,19 @@ properties:
4242
type: boolean
4343
description: |
4444
Inverse the device connected to the base address.
45+
dmas:
46+
description: |
47+
Optional DMA channel specifier. If DMA should be used, specifier should
48+
hold a phandle reference to the dma controller and its channel.
49+
support-npcxn-v1:
50+
type: boolean
51+
description: |
52+
This option enables the FIU support for NPCXn V1.
53+
support-npcxn-v2:
54+
type: boolean
55+
description: |
56+
This option enables the FIU support for NPCXn V2.
57+
support-npckn-v1:
58+
type: boolean
59+
description: |
60+
This option enables the FIU support for NPCKn V1.

0 commit comments

Comments
 (0)