board: arm: npcx7/9 EVB: add PECI alias

This commit adds the PECI alias and set the PECI node's status to okay.
With this change, we can build the PECI sample with npcx7m6fb_evb and
npcx9m6f_evb to test the PECI driver.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
This commit is contained in:
Jun Lin 2022-06-28 09:58:15 +08:00 committed by Carles Cufí
parent ec4f700202
commit e0975945be
2 changed files with 14 additions and 0 deletions

View file

@ -26,6 +26,7 @@
/* For i2c test suites */
i2c-0 = &i2c0_0;
watchdog0 = &twd0;
peci-0 = &peci0;
/* For samples/drivers/spi_flash */
spi-flash0 = &int_flash;
};
@ -107,3 +108,9 @@
sample-clk = <NPCX_TACH_FREQ_LFCLK>; /* Use LFCLK as sampling clock */
pulses-per-round = <1>; /* number of pulses per round of encoder */
};
&peci0 {
status = "okay";
pinctrl-0 = <&peci_dat_gp81>;
pinctrl-names = "default";
};

View file

@ -29,6 +29,7 @@
i2c-0 = &i2c0_0;
/* For watchdog sample */
watchdog0 = &twd0;
peci-0 = &peci0;
/* For samples/drivers/spi_flash */
spi-flash0 = &int_flash;
};
@ -119,3 +120,9 @@
sample-clk = <NPCX_TACH_FREQ_LFCLK>; /* Use LFCLK as sampling clock */
pulses-per-round = <1>; /* number of pulses per round of encoder */
};
&peci0 {
status = "okay";
pinctrl-0 = <&peci_dat_gp81>;
pinctrl-names = "default";
};