summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/boards/arm/volteer/volteer.dts4
-rw-r--r--zephyr/projects/volteer/volteer/gpio.dts4
-rw-r--r--zephyr/projects/volteer/volteer/usbc.dts19
-rw-r--r--zephyr/projects/volteer/volteer/zmake.yaml1
4 files changed, 24 insertions, 4 deletions
diff --git a/zephyr/boards/arm/volteer/volteer.dts b/zephyr/boards/arm/volteer/volteer.dts
index d837f8ab55..f25363f03f 100644
--- a/zephyr/boards/arm/volteer/volteer.dts
+++ b/zephyr/boards/arm/volteer/volteer.dts
@@ -60,12 +60,12 @@
enum-name = "I2C_PORT_ACCEL";
label = "ACCEL";
};
- usb-c0 {
+ i2c_usb_c0: usb-c0 {
i2c-port = <&i2c1_0>;
enum-name = "I2C_PORT_USB_C0";
label = "USB_C0";
};
- usb-c1 {
+ i2c_usb_c1: usb-c1 {
i2c-port = <&i2c2_0>;
enum-name = "I2C_PORT_USB_C1";
label = "USB_C1";
diff --git a/zephyr/projects/volteer/volteer/gpio.dts b/zephyr/projects/volteer/volteer/gpio.dts
index 3f679fc7b5..06381d6492 100644
--- a/zephyr/projects/volteer/volteer/gpio.dts
+++ b/zephyr/projects/volteer/volteer/gpio.dts
@@ -108,7 +108,7 @@
enum-name = "GPIO_USB_C1_PPC_INT_ODL";
label = "USB_C1_PPC_INT_ODL";
};
- usb_c0_bc12_int_odl {
+ gpio_usb_c0_bc12_int_odl: usb_c0_bc12_int_odl {
gpios = <&gpioe 4 GPIO_INPUT>;
enum-name = "GPIO_USB_C0_BC12_INT_ODL";
label = "USB_C0_BC12_INT_ODL";
@@ -119,7 +119,7 @@
enum-name = "GPIO_USB_C1_MIX_INT_ODL";
label = "USB_C1_MIX_INT_ODL";
};
- usb_c1_bc12_int_odl {
+ gpio_usb_c1_bc12_int_odl: usb_c1_bc12_int_odl {
#gpio-cells = <0>;
gpios = <&gpio0 3 GPIO_INPUT>;
enum-name = "GPIO_USB_C1_BC12_INT_ODL";
diff --git a/zephyr/projects/volteer/volteer/usbc.dts b/zephyr/projects/volteer/volteer/usbc.dts
new file mode 100644
index 0000000000..35035e8bf1
--- /dev/null
+++ b/zephyr/projects/volteer/volteer/usbc.dts
@@ -0,0 +1,19 @@
+/ {
+ usbc {
+ port0: usbc-port0 {
+ bc12 {
+ compatible = "pericom,pi3usb9201";
+ port = <&i2c_usb_c0>;
+ irq = <&gpio_usb_c0_bc12_int_odl>;
+ };
+ };
+
+ port1: usbc-port1 {
+ bc12 {
+ compatible = "pericom,pi3usb9201";
+ port = <&i2c_usb_c1>;
+ irq = <&gpio_usb_c1_bc12_int_odl>;
+ };
+ };
+ };
+};
diff --git a/zephyr/projects/volteer/volteer/zmake.yaml b/zephyr/projects/volteer/volteer/zmake.yaml
index 7382d98440..d8b2ce7a61 100644
--- a/zephyr/projects/volteer/volteer/zmake.yaml
+++ b/zephyr/projects/volteer/volteer/zmake.yaml
@@ -12,6 +12,7 @@ dts-overlays:
- motionsense.dts
- pwm.dts
- pwm_leds.dts
+ - usbc.dts
supported-toolchains:
- coreboot-sdk
- zephyr