Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: usb-nop-xceiv: Repurpose vbus-regulator

The vbus-regulator property was never actually read from the device tree.
Introduce a new property vbus-supply to represent the regulator powering
the VBUS when acting as an A-Device. This supply will be enabled and
disabled as necessary. Note that this is different from vbus-regulator,
which represented the available current available to draw from VBUS in
B-Device mode. Because no one was using vbus-regulator, remove it.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240123225111.1629405-2-sean.anderson@seco.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sean Anderson and committed by
Greg Kroah-Hartman
c281d8a5 4158af05

+6 -5
+6 -5
Documentation/devicetree/bindings/usb/usb-nop-xceiv.yaml
··· 37 37 description: Should specify the GPIO detecting a VBus insertion 38 38 maxItems: 1 39 39 40 - vbus-regulator: 41 - description: Should specify the regulator supplying current drawn from 42 - the VBus line. 43 - $ref: /schemas/types.yaml#/definitions/phandle 40 + vbus-supply: 41 + description: regulator supplying VBUS. It will be enabled and disabled 42 + dynamically in OTG mode. If the regulator is controlled by a 43 + GPIO line, this should be modeled as a regulator-fixed and 44 + referenced by this supply. 44 45 45 46 wakeup-source: 46 47 description: ··· 66 65 vcc-supply = <&hsusb1_vcc_regulator>; 67 66 reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 68 67 vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; 69 - vbus-regulator = <&vbus_regulator>; 68 + vbus-supply = <&vbus_regulator>; 70 69 #phy-cells = <0>; 71 70 }; 72 71