diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-07-16 11:19:32 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-16 18:58:32 +0000 |
commit | 7bf735e896593bccdfa3f4c68cef05af67b740be (patch) | |
tree | e1123e79a41aaf493b1c1ee53b22a02ea1e8f1cc /zephyr/boards/riscv/asurada/asurada.dts | |
parent | ef75b89e05691b1a5a60d2f265a707f9966293e7 (diff) | |
download | chrome-ec-7bf735e896593bccdfa3f4c68cef05af67b740be.tar.gz |
zephyr: move all the boards directories under zephyr/boards
Move all the boards directories together under zephyr/boards from
their scattered locations under projects/.
This is the first step towards de-coupling the concept of a Zephyr
board from baseboard/board/model, as it currently is. Further work
will be required to actually unify these directories and delete the
baseboard-specific names from our tree.
BUG=b:193814903
BRANCH=none
TEST=zmake testall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I33a344af6890b2c2c54f1e91f0f0fa85caaf19d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3035222
Commit-Queue: Yuval Peress <peress@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/boards/riscv/asurada/asurada.dts')
-rw-r--r-- | zephyr/boards/riscv/asurada/asurada.dts | 182 |
1 files changed, 182 insertions, 0 deletions
diff --git a/zephyr/boards/riscv/asurada/asurada.dts b/zephyr/boards/riscv/asurada/asurada.dts new file mode 100644 index 0000000000..f5c4cc3cfe --- /dev/null +++ b/zephyr/boards/riscv/asurada/asurada.dts @@ -0,0 +1,182 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/dts-v1/; + +#include <cros/ite/it8xxx2.dtsi> +#include <dt-bindings/adc/adc.h> +#include <dt-bindings/gpio_defines.h> +#include <it8xxx2.dtsi> + +/ { + model = "Google Asurada Baseboard"; + + chosen { + zephyr,sram = &sram0; + zephyr,console = &uart1; + zephyr,shell-uart = &uart1; + zephyr,flash = &flash0; + zephyr,flash-controller = &flashctrl; + }; + + named-adc-channels { + compatible = "named-adc-channels"; + + adc_vbus_c0 { + label = "ADC_VBUS_C0"; + enum-name = "ADC_VBUS_C0"; + channel = <0>; + mul = <10>; + }; + adc_board_id0 { + label = "ADC_BOARD_ID_0"; + enum-name = "ADC_BOARD_ID_0"; + channel = <1>; + }; + adc_board_id1 { + label = "ADC_BOARD_ID_1"; + enum-name = "ADC_BOARD_ID_1"; + channel = <2>; + }; + adc_charger_amon_r { + label = "ADC_AMON_BMON"; + enum-name = "ADC_AMON_BMON"; + channel = <3>; + mul = <1000>; + div = <18>; + }; + adc_vbus_c1 { + label = "ADC_VBUS_C1"; + enum-name = "ADC_VBUS_C1"; + channel = <5>; + mul = <10>; + }; + adc_charger_pmon { + label = "ADC_PMON"; + enum-name = "ADC_PMON"; + channel = <6>; + }; + adc-psys { + label = "ADC_PSYS"; + enum-name = "ADC_PSYS"; + channel = <6>; + }; + }; + + named-i2c-ports { + compatible = "named-i2c-ports"; + + power { + i2c-port = <&i2c0>; + enum-name = "I2C_PORT_POWER"; + label = "POWER"; + }; + battery { + i2c-port = <&i2c0>; + remote-port = <0>; + enum-name = "I2C_PORT_BATTERY"; + label = "BATTERY"; + }; + eeprom { + i2c-port = <&i2c0>; + enum-name = "I2C_PORT_EEPROM"; + label = "EEPROM"; + }; + charger { + i2c-port = <&i2c0>; + enum-name = "I2C_PORT_CHARGER"; + label = "CHARGER"; + }; + i2c_sensor: sensor { + i2c-port = <&i2c1>; + enum-name = "I2C_PORT_SENSOR"; + label = "SENSOR"; + }; + i2c-accel { + i2c-port = <&i2c1>; + enum-name = "I2C_PORT_ACCEL"; + label = "ACCEL"; + }; + ppc0 { + i2c-port = <&i2c2>; + enum-name = "I2C_PORT_PPC0"; + label = "PPC0"; + }; + ppc1 { + i2c-port = <&i2c4>; + enum-name = "I2C_PORT_PPC1"; + label = "PPC1"; + }; + usb-c0 { + i2c-port = <&i2c2>; + enum-name = "I2C_PORT_USB_C0"; + label = "USB_C0"; + }; + usb-c1 { + i2c-port = <&i2c4>; + enum-name = "I2C_PORT_USB_C1"; + label = "USB_C1"; + }; + usb-mux0 { + i2c-port = <&i2c2>; + enum-name = "I2C_PORT_USB_MUX0"; + label = "USB_MUX0"; + }; + usb-mux1 { + i2c-port = <&i2c4>; + enum-name = "I2C_PORT_USB_MUX1"; + label = "USB_MUX1"; + }; + }; + + soc { + cros_kb_raw: cros-kb-raw@f01d00 { + compatible = "ite,it8xxx2-cros-kb-raw"; + reg = <0x00f01d00 0x29>; + label = "CROS_KB_RAW_0"; + interrupt-parent = <&intc>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + }; +}; + +&uart1 { + status = "okay"; + current-speed = <115200>; + clock-frequency = <1804800>; +}; + +&adc0 { + status = "okay"; +}; + +&i2c0 { + /* EC_I2C_PWR_CBI */ + status = "okay"; + clock-frequency = <I2C_BITRATE_STANDARD>; +}; + +&i2c1 { + /* EC_I2C_SENSOR */ + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST>; +}; + +&i2c2 { + /* EC_I2C_USB_C0 */ + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST>; +}; + +&i2c4{ + /* EC_I2C_USB_C1 */ + status = "okay"; + clock-frequency = <I2C_BITRATE_FAST>; +}; + +&cros_kb_raw { + status = "okay"; +}; |