diff options
Diffstat (limited to 'zephyr/projects')
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/gpio.dts | 1 | ||||
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/i2c.dts | 7 | ||||
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/prj.conf | 1 |
3 files changed, 9 insertions, 0 deletions
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 |