diff options
author | Tim Lin <tim2.lin@ite.corp-partner.google.com> | 2022-05-09 14:20:33 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-16 17:03:43 +0000 |
commit | 57bf696401be0c937d90930c2e8fc79eaa43b08b (patch) | |
tree | c9b3b995fa93ea225760537345577c276910ce31 | |
parent | 4a82d74855a109dcc04f7b252e5f2c817d94db6f (diff) | |
download | chrome-ec-57bf696401be0c937d90930c2e8fc79eaa43b08b.tar.gz |
zephyr: it8xxx2_evb: Add pinctrl-0 property setting
The pinctrl driver has been added, so we need to add pinctrl-0
alternate function settings to each driver node.
For the I2C related GPIO setting, we can add the property to the
&pinctrl node. So remove the I2C related gpios=<...>.
BUG=none
BRANCH=none
TEST=zmake build it8xxx2_evb --clobber
Make sure these pins have been set as alternate function.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Change-Id: I8236c33aa38681019a3518619f2bfedf54b6f981
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3577329
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Yuval Peress <peress@google.com>
-rw-r--r-- | zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts index 3ad4f2b1b3..ec4ac828aa 100644 --- a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts +++ b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts @@ -59,31 +59,6 @@ gpio_ec_pch_wake_odl: pch_wake_l { gpios = <&gpiob 7 GPIO_OUTPUT_HIGH>; }; - i2c_a_scl { - gpios = <&gpiob 3 GPIO_INPUT>; - }; - i2c_a_sda { - gpios = <&gpiob 4 GPIO_INPUT>; - }; - i2c_b_scl { - gpios = <&gpioc 1 GPIO_INPUT>; - }; - i2c_b_sda { - gpios = <&gpioc 2 GPIO_INPUT>; - }; - i2c_c_scl { - gpios = <&gpiof 6 GPIO_INPUT>; - }; - i2c_c_sda { - gpios = <&gpiof 7 GPIO_INPUT>; - }; - i2c_e_scl { - gpios = <&gpioe 0 GPIO_INPUT>; - }; - i2c_e_sda { - gpios = <&gpioe 7 GPIO_INPUT>; - }; - spi0_cs: spi0_cs { gpios = <&gpiom 5 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; }; @@ -283,26 +258,40 @@ &adc0 { status = "okay"; + pinctrl-0 = <&adc0_ch3_gpi3_default>; + pinctrl-names = "default"; }; &i2c0 { status = "okay"; clock-frequency = <I2C_BITRATE_STANDARD>; + pinctrl-0 = <&i2c0_clk_gpb3_default + &i2c0_data_gpb4_default>; + pinctrl-names = "default"; }; &i2c1 { status = "okay"; clock-frequency = <I2C_BITRATE_STANDARD>; + pinctrl-0 = <&i2c1_clk_gpc1_default + &i2c1_data_gpc2_default>; + pinctrl-names = "default"; }; &i2c2 { status = "okay"; clock-frequency = <I2C_BITRATE_STANDARD>; + pinctrl-0 = <&i2c2_clk_gpf6_default + &i2c2_data_gpf7_default>; + pinctrl-names = "default"; }; &i2c4 { status = "okay"; clock-frequency = <I2C_BITRATE_STANDARD>; + pinctrl-0 = <&i2c4_clk_gpe0_default + &i2c4_data_gpe7_default>; + pinctrl-names = "default"; }; &uart1 { @@ -313,18 +302,25 @@ &ite_uart1_wrapper { status = "okay"; + pinctrl-0 = <&uart1_rx_gpb0_default + &uart1_tx_gpb1_default>; + pinctrl-names = "default"; }; /* pwm for test */ &pwm0 { status = "okay"; prescaler-cx = <PWM_PRESCALER_C6>; + pinctrl-0 = <&pwm0_gpa0_default>; + pinctrl-names = "default"; }; /* pwm for fan */ &pwm7 { status = "okay"; prescaler-cx = <PWM_PRESCALER_C4>; + pinctrl-0 = <&pwm7_gpa7_default>; + pinctrl-names = "default"; }; /* fan tachometer sensor */ @@ -332,4 +328,6 @@ status = "okay"; channel = <IT8XXX2_TACH_CHANNEL_A>; pulses-per-round = <2>; + pinctrl-0 = <&tach0a_gpd6_default>; + pinctrl-names = "default"; }; |