Skip to content

Commit

Permalink
ev11l78a: add en_sink as a custom binding.
Browse files Browse the repository at this point in the history
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ò <[email protected]>
  • Loading branch information
Flameeyes committed Sep 10, 2023
1 parent 637e986 commit 181f087
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions boards/arm/ev11l78a/dts/bindings/microchip,ev11l78a-ensink.yaml
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 5 additions & 0 deletions boards/arm/ev11l78a/ev11l78a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
sense-gain-mult = <100>;
};

enable_sink: enable_sink {
compatible = "microchip,ev11l78a-ensink";
gpios = <&porta 22 GPIO_ACTIVE_HIGH>;
};

};

&cpu0 {
Expand Down

0 comments on commit 181f087

Please sign in to comment.