summaryrefslogtreecommitdiff
path: root/zephyr/boards/arm/brya/brya.dts
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/boards/arm/brya/brya.dts')
-rw-r--r--zephyr/boards/arm/brya/brya.dts49
1 files changed, 36 insertions, 13 deletions
diff --git a/zephyr/boards/arm/brya/brya.dts b/zephyr/boards/arm/brya/brya.dts
index 33f014981b..02dfee6d1c 100644
--- a/zephyr/boards/arm/brya/brya.dts
+++ b/zephyr/boards/arm/brya/brya.dts
@@ -18,6 +18,7 @@
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
zephyr,flash = &flash0;
+ cros,rtc = &mtc;
};
named-i2c-ports {
@@ -25,47 +26,42 @@
i2c_sensor: sensor {
i2c-port = <&i2c0_0>;
enum-name = "I2C_PORT_SENSOR";
- label = "SENSOR";
};
tcpc0_2 {
i2c-port = <&i2c1_0>;
enum-name = "I2C_PORT_USB_C0_C2_TCPC";
- label = "TCPC0,2";
};
tcpc1 {
i2c-port = <&i2c4_1>;
enum-name = "I2C_PORT_USB_C1_TCPC";
- label = "TCPC1";
};
ppc0_2 {
i2c-port = <&i2c2_0>;
enum-name = "I2C_PORT_USB_C0_C2_PPC";
- label = "PPC0,2";
};
ppc1 {
i2c-port = <&i2c6_1>;
enum-name = "I2C_PORT_USB_C1_PPC";
- label = "PPC1";
};
retimer0_2 {
i2c-port = <&i2c3_0>;
enum-name = "I2C_PORT_USB_C0_C2_MUX";
- label = "RETIMER0,2";
};
battery {
i2c-port = <&i2c5_0>;
enum-name = "I2C_PORT_BATTERY";
- label = "BATTERY";
};
eeprom {
i2c-port = <&i2c7_0>;
enum-name = "I2C_PORT_EEPROM";
- label = "EEPROM";
};
charger {
i2c-port = <&i2c7_0>;
enum-name = "I2C_PORT_CHARGER";
- label = "EEPROM";
+ };
+ mp2964 {
+ i2c-port = <&i2c7_0>;
+ enum-name = "I2C_PORT_MP2964";
};
};
@@ -100,7 +96,7 @@
named-temp-sensors {
ddr_soc {
- compatible = "cros-ec,temp-sensor";
+ compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "DDR and SOC";
enum-name = "TEMP_SENSOR_1_DDR_SOC";
@@ -112,7 +108,7 @@
adc = <&adc_ddr_soc>;
};
ambient {
- compatible = "cros-ec,temp-sensor";
+ compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "Ambient";
enum-name = "TEMP_SENSOR_2_AMBIENT";
@@ -124,7 +120,7 @@
adc = <&adc_ambient>;
};
charger {
- compatible = "cros-ec,temp-sensor";
+ compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "Charger";
enum-name = "TEMP_SENSOR_3_CHARGER";
@@ -136,7 +132,7 @@
adc = <&adc_charger>;
};
wwan {
- compatible = "cros-ec,temp-sensor";
+ compatible = "cros-ec,temp-sensor-thermistor";
thermistor = <&thermistor_3V3_30K9_47K_4050B>;
label = "WWAN";
enum-name = "TEMP_SENSOR_4_WWAN";
@@ -149,6 +145,11 @@
};
};
+ vsby-psl-in-list {
+ /* Use PSL_IN1/2/3 as detection pins from hibernate mode */
+ psl-in-pads = <&psl_in1 &psl_in2 &psl_in3>;
+ };
+
def-lvol-io-list {
compatible = "nuvoton,npcx-lvolctrl-def";
};
@@ -226,6 +227,12 @@
&i2c7_0 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
+
+ pmic_mp2964: pmic_mp2964@20 {
+ compatible = "mps,mp2964";
+ reg = <0x20>;
+ label = "I2C_ADDR_MP2964_FLAGS";
+ };
};
&i2c_ctrl7 {
@@ -264,6 +271,22 @@
status = "okay";
};
+/* Power switch logic input pads */
+/* LID_OPEN_OD */
+&psl_in1 {
+ flag = <NPCX_PSL_RISING_EDGE>;
+};
+
+/* ACOK_EC_OD */
+&psl_in2 {
+ flag = <NPCX_PSL_RISING_EDGE>;
+};
+
+/* GSC_EC_PWR_BTN_ODL */
+&psl_in3 {
+ flag = <NPCX_PSL_FALLING_EDGE>;
+};
+
&thermistor_3V3_30K9_47K_4050B {
status = "okay";
};