summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts2
-rw-r--r--zephyr/projects/herobrine/herobrine_npcx9/gpio.dts1
-rw-r--r--zephyr/projects/herobrine/herobrine_npcx9/i2c.dts7
-rw-r--r--zephyr/projects/herobrine/herobrine_npcx9/prj.conf1
4 files changed, 10 insertions, 1 deletions
diff --git a/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts b/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts
index ac69400edb..34884a8275 100644
--- a/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts
+++ b/zephyr/boards/arm/herobrine_npcx9/herobrine_npcx9.dts
@@ -19,7 +19,7 @@
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
zephyr,flash = &flash0;
- cros,rtc = &mtc;
+ cros,rtc = &pcf85063a;
};
ec-console {
diff --git a/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts b/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
index 1c63f3875c..639fe30a3b 100644
--- a/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
+++ b/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
@@ -112,6 +112,7 @@
label = "ACCEL_GYRO_INT_L";
};
gpio_rtc_ec_wake_odl: rtc_ec_wake_odl {
+ #gpio-cells = <0>;
gpios = <&gpio0 2 GPIO_INPUT>;
enum-name = "GPIO_EC_RST_ODL";
label = "EC_RST_ODL";
diff --git a/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts b/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts
index 983f5af1f8..97b6f0661d 100644
--- a/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts
+++ b/zephyr/projects/herobrine/herobrine_npcx9/i2c.dts
@@ -102,6 +102,13 @@
&i2c4_1 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
+
+ pcf85063a: pcf85063a@51 {
+ compatible = "nxp,rtc-pcf85063a";
+ reg = <0x51>;
+ label = "RTC_PCF85063A";
+ int-gpios = <&gpio_rtc_ec_wake_odl>;
+ };
};
&i2c5_0 {
diff --git a/zephyr/projects/herobrine/herobrine_npcx9/prj.conf b/zephyr/projects/herobrine/herobrine_npcx9/prj.conf
index bcaa22fad0..16e6bd5be6 100644
--- a/zephyr/projects/herobrine/herobrine_npcx9/prj.conf
+++ b/zephyr/projects/herobrine/herobrine_npcx9/prj.conf
@@ -130,6 +130,7 @@ CONFIG_PLATFORM_EC_USB_PID=0x5055
# RTC
CONFIG_PLATFORM_EC_RTC=y
+CONFIG_CROS_RTC_NXP_PCF85063A=y
CONFIG_PLATFORM_EC_HOSTCMD_RTC=y
CONFIG_PLATFORM_EC_CONSOLE_CMD_RTC=y