summaryrefslogtreecommitdiff
path: root/zephyr/projects/herobrine
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-01-26 11:27:03 +1100
committerCommit Bot <commit-bot@chromium.org>2022-02-01 06:34:55 +0000
commitbbfb707f04d3b4c7cd503afb936ecb05ae526731 (patch)
tree425c62d9dc5904b1605088375b1aca4c0b1d51d1 /zephyr/projects/herobrine
parent92d4008f05667a989ac523a3385d3ea7cb08b36a (diff)
downloadchrome-ec-bbfb707f04d3b4c7cd503afb936ecb05ae526731.tar.gz
zephyr: Fix named-gpios et al to drop #gpio-cells
The #gpio-cells property is only required when the referenced node is a GPIO controller. named-gpios is not a GPIO controller, and cannot be used as a GPIO reference. DTS and code can refer to named-gpios directly, and then retrieve the GPIO from the named-gpio gpios property. Also rename irq-gpio to irq-pin so that DTS does not complain about missing #gpio-cells. BUG=b:216402316 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3418800, chromium:3418799, chromium:3423294 Change-Id: Ifdea8662647c092950962d3b6b0f32acda23aa5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3412626 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'zephyr/projects/herobrine')
-rw-r--r--zephyr/projects/herobrine/gpio.dts21
1 files changed, 0 insertions, 21 deletions
diff --git a/zephyr/projects/herobrine/gpio.dts b/zephyr/projects/herobrine/gpio.dts
index ff3340fdb0..7f31aab9e4 100644
--- a/zephyr/projects/herobrine/gpio.dts
+++ b/zephyr/projects/herobrine/gpio.dts
@@ -8,92 +8,74 @@
compatible = "named-gpios";
gpio_usb_c0_pd_int_odl: usb_c0_pd_int_odl {
- #gpio-cells = <0>;
gpios = <&gpioe 0 GPIO_INPUT>;
enum-name = "GPIO_USB_C0_PD_INT_ODL";
};
gpio_usb_c1_pd_int_odl: usb_c1_pd_int_odl {
- #gpio-cells = <0>;
gpios = <&gpiof 5 GPIO_INPUT>;
enum-name = "GPIO_USB_C1_PD_INT_ODL";
};
gpio_usb_c0_swctl_int_odl: usb_c0_swctl_int_odl {
- #gpio-cells = <0>;
gpios = <&gpio0 3 GPIO_INPUT>;
enum-name = "GPIO_USB_C0_SWCTL_INT_ODL";
};
gpio_usb_c1_swctl_int_odl: usb_c1_swctl_int_odl {
- #gpio-cells = <0>;
gpios = <&gpio4 0 GPIO_INPUT>;
enum-name = "GPIO_USB_C1_SWCTL_INT_ODL";
};
gpio_usb_c0_bc12_int_l: usb_c0_bc12_int_l {
- #gpio-cells = <0>;
gpios = <&gpio6 1 GPIO_INPUT_PULL_UP>;
enum-name = "GPIO_USB_C0_BC12_INT_L";
};
gpio_usb_c1_bc12_int_l: usb_c1_bc12_int_l {
- #gpio-cells = <0>;
gpios = <&gpio8 2 GPIO_INPUT_PULL_UP>;
enum-name = "GPIO_USB_C1_BC12_INT_L";
};
gpio_usb_a0_oc_odl: usb_a0_oc_odl {
- #gpio-cells = <0>;
gpios = <&gpiof 4 GPIO_INPUT_PULL_UP>;
enum-name = "GPIO_USB_A0_OC_ODL";
};
gpio_chg_acok_od: chg_acok_od {
- #gpio-cells = <0>;
gpios = <&gpiod 2 GPIO_INPUT>;
enum-name = "GPIO_AC_PRESENT";
};
gpio_ec_pwr_btn_odl: ec_pwr_btn_odl {
- #gpio-cells = <0>;
gpios = <&gpio0 0 GPIO_INPUT>;
enum-name = "GPIO_POWER_BUTTON_L";
};
gpio_ec_voldn_btn_odl: ec_voldn_btn_odl {
- #gpio-cells = <0>;
gpios = <&gpio6 2 GPIO_INPUT_PULL_UP>;
enum-name = "GPIO_VOLUME_DOWN_L";
};
gpio_ec_volup_btn_odl: ec_volup_btn_odl {
- #gpio-cells = <0>;
gpios = <&gpioc 2 GPIO_INPUT_PULL_UP>;
enum-name = "GPIO_VOLUME_UP_L";
};
gpio_ec_wp_odl: ec_wp_odl {
- #gpio-cells = <0>;
gpios = <&gpiod 3 GPIO_INPUT>;
enum-name = "GPIO_WP_L";
};
gpio_lid_open_ec: lid_open_ec {
- #gpio-cells = <0>;
gpios = <&gpio0 1 GPIO_INPUT>;
enum-name = "GPIO_LID_OPEN";
};
gpio_ap_rst_l: ap_rst_l {
- #gpio-cells = <0>;
gpios = <&gpio5 1 GPIO_INPUT>;
enum-name = "GPIO_AP_RST_L";
};
gpio_ps_hold: ps_hold {
- #gpio-cells = <0>;
gpios = <&gpioa 6 GPIO_INPUT_PULL_DOWN>;
enum-name = "GPIO_PS_HOLD";
};
gpio_ap_suspend: ap_suspend {
- #gpio-cells = <0>;
gpios = <&gpio5 7 GPIO_INPUT>;
enum-name = "GPIO_AP_SUSPEND";
};
gpio_mb_power_good: mb_power_good {
- #gpio-cells = <0>;
gpios = <&gpio3 7 GPIO_INPUT_PULL_DOWN>;
enum-name = "GPIO_POWER_GOOD";
};
gpio_warm_reset_l: warm_reset_l {
- #gpio-cells = <0>;
gpios = <&gpiob 0 GPIO_INPUT>;
enum-name = "GPIO_WARM_RESET_L";
};
@@ -101,17 +83,14 @@
gpios = <&gpio5 3 GPIO_INPUT_PULL_DOWN>;
};
gpio_tablet_mode_l: tablet_mode_l {
- #gpio-cells = <0>;
gpios = <&gpioc 6 GPIO_INPUT>;
enum-name = "GPIO_TABLET_MODE_L";
};
gpio_accel_gyro_int_l: accel_gyro_int_l {
- #gpio-cells = <0>;
gpios = <&gpioa 3 GPIO_INPUT>;
enum-name = "GPIO_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";
};