0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright (c) 2019 BayLibre SAS. All rights reserved.
0004 * Author: Jerome Brunet <jbrunet@baylibre.com>
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "meson-gxm.dtsi"
0010 #include "meson-gx-libretech-pc.dtsi"
0011
0012 / {
0013 compatible = "libretech,aml-s912-pc", "amlogic,s912",
0014 "amlogic,meson-gxm";
0015 model = "Libre Computer AML-S912-PC";
0016
0017 typec2_vbus: regulator-typec2_vbus {
0018 compatible = "regulator-fixed";
0019 regulator-name = "TYPEC2_VBUS";
0020 regulator-min-microvolt = <5000000>;
0021 regulator-max-microvolt = <5000000>;
0022 vin-supply = <&vcc5v>;
0023
0024 gpio = <&gpio GPIODV_1 GPIO_ACTIVE_HIGH>;
0025 enable-active-high;
0026 };
0027 };
0028
0029 &pinctrl_periphs {
0030 /*
0031 * Make sure the irq pin of the TYPE C controller is not driven
0032 * by the SoC.
0033 */
0034 fusb302_irq_pins: fusb302_irq {
0035 mux {
0036 groups = "GPIODV_0";
0037 function = "gpio_periphs";
0038 bias-pull-up;
0039 output-disable;
0040 };
0041 };
0042 };
0043
0044 &i2c_C {
0045 fusb302@22 {
0046 compatible = "fcs,fusb302";
0047 reg = <0x22>;
0048
0049 pinctrl-0 = <&fusb302_irq_pins>;
0050 pinctrl-names = "default";
0051 interrupt-parent = <&gpio_intc>;
0052 interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
0053
0054 vbus-supply = <&typec2_vbus>;
0055
0056 status = "okay";
0057 };
0058 };
0059
0060 &usb2_phy2 {
0061 phy-supply = <&typec2_vbus>;
0062 };