From 181f087a38d8d5c7f7d5499f4d537c4625d3f1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 10 Sep 2023 19:54:14 +0100 Subject: [PATCH] ev11l78a: add en_sink as a custom binding. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This exposes the EN_SINK signal as a custom binding, since it is ore to the business logic of the board. EN_SINK is a GPIO line connected to a MOSFET that provides power on the screw terminal of the board, and should be enabled after USB-PD negotiation. Signed-off-by: Diego Elio Pettenò --- .../dts/bindings/microchip,ev11l78a-ensink.yaml | 13 +++++++++++++ boards/arm/ev11l78a/ev11l78a.dts | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 boards/arm/ev11l78a/dts/bindings/microchip,ev11l78a-ensink.yaml 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.dts b/boards/arm/ev11l78a/ev11l78a.dts index 0c5f26bde8e269..23089afb3a51f1 100644 --- a/boards/arm/ev11l78a/ev11l78a.dts +++ b/boards/arm/ev11l78a/ev11l78a.dts @@ -43,6 +43,11 @@ sense-gain-mult = <100>; }; + enable_sink: enable_sink { + compatible = "microchip,ev11l78a-ensink"; + gpios = <&porta 22 GPIO_ACTIVE_HIGH>; + }; + }; &cpu0 {