diff --git a/boards/arm/ev11l78a/doc/index.rst b/boards/arm/ev11l78a/doc/index.rst index 894cda97197d06..e09c5106232e36 100644 --- a/boards/arm/ev11l78a/doc/index.rst +++ b/boards/arm/ev11l78a/doc/index.rst @@ -54,6 +54,8 @@ features: +-----------+------------+------------------------------------------+ | ADC | on-chip | Analog-to-Digital Converter | +-----------+------------+------------------------------------------+ +| DAC | on-chip | Digital-to-Analog Converter | ++-----------+------------+------------------------------------------+ Other hardware features are not currently supported by Zephyr. diff --git a/boards/arm/ev11l78a/dts/bindings/microchip,ev11l78a-ensink.yaml b/boards/arm/ev11l78a/dts/bindings/microchip,ev11l78a-ensink.yaml new file mode 100644 index 00000000000000..b22f4a0d38e60f --- /dev/null +++ b/boards/arm/ev11l78a/dts/bindings/microchip,ev11l78a-ensink.yaml @@ -0,0 +1,13 @@ +# Copyright (c) 2023, Meta Platforms, Inc. and its affiliates. +# SPDX-License-Identifier: Apache-2.0 + +description: GPIO used to enable the power Sink on the EV11L78A board + +compatible: "microchip,ev11l78a-ensink" + +properties: + gpios: + type: phandle-array + required: true + description: | + GPIO to enable the power sink on the EV11L78A board, output. diff --git a/boards/arm/ev11l78a/ev11l78a-pinctrl.dtsi b/boards/arm/ev11l78a/ev11l78a-pinctrl.dtsi index 38a797923054d2..b8e2495c6a15af 100644 --- a/boards/arm/ev11l78a/ev11l78a-pinctrl.dtsi +++ b/boards/arm/ev11l78a/ev11l78a-pinctrl.dtsi @@ -34,4 +34,10 @@ ; }; }; + + dac_default: dac_default { + group1 { + pinmux = ; + }; + }; }; diff --git a/boards/arm/ev11l78a/ev11l78a.dts b/boards/arm/ev11l78a/ev11l78a.dts index 0096fe9651d663..5b09d55240eafe 100644 --- a/boards/arm/ev11l78a/ev11l78a.dts +++ b/boards/arm/ev11l78a/ev11l78a.dts @@ -5,6 +5,7 @@ */ /dts-v1/; +#include #include #include #include "ev11l78a-pinctrl.dtsi" @@ -32,6 +33,18 @@ gpios = <&porta 23 GPIO_ACTIVE_HIGH>; label = "CAP_MIS"; }; + + // The following are not LEDs on the board, but rather + // testpoints. On the other hand, they are "fit the part." + ind_1_5a: led_1 { + gpios = <&porta 1 GPIO_ACTIVE_HIGH>; + label = "1.5A_IND"; + }; + + ind_3_0a: led_2 { + gpios = <&porta 15 GPIO_ACTIVE_HIGH>; + label = "3.0A_IND"; + }; }; csa_i_sense: i_sense { @@ -41,6 +54,11 @@ sense-gain-mult = <100>; }; + enable_sink: enable_sink { + compatible = "microchip,ev11l78a-ensink"; + gpios = <&porta 22 GPIO_ACTIVE_HIGH>; + }; + }; &cpu0 { @@ -83,7 +101,13 @@ pinctrl-names = "default"; }; +&sram0 { + reg = <0x20000000 DT_SIZE_K(8)>; +}; + &flash0 { + reg = <0 DT_SIZE_K(64)>; + partitions { compatible = "fixed-partitions"; #address-cells = <1>; @@ -94,9 +118,9 @@ * Storage partition will be used by FCB/LittleFS/NVS * if enabled. */ - storage_partition: partition@3c000 { + storage_partition: partition@c000 { label = "storage"; - reg = <0x0003c000 0x00004000>; + reg = <0x0000c000 DT_SIZE_K(16)>; }; }; }; @@ -120,3 +144,10 @@ pinctrl-0 = <&adc_default>; pinctrl-names = "default"; }; + +&dac0 { + status = "okay"; + + pinctrl-0 = <&dac_default>; + pinctrl-names = "default"; +}; diff --git a/boards/arm/ev11l78a/ev11l78a.yaml b/boards/arm/ev11l78a/ev11l78a.yaml index c181bd12f0d7f1..2555cfab46a56f 100644 --- a/boards/arm/ev11l78a/ev11l78a.yaml +++ b/boards/arm/ev11l78a/ev11l78a.yaml @@ -10,6 +10,7 @@ toolchain: - xtools supported: - adc + - dac - gpio - i2c - spi