WIP FPC-III support
[linux/fpc-iii.git] / arch / arm64 / boot / dts / amlogic / meson-gxm-s912-libretech-pc.dts
blob444c249863cbc2fec9ee409e26ad703f80893ada
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2019 BayLibre SAS. All rights reserved.
4  * Author: Jerome Brunet <jbrunet@baylibre.com>
5  */
7 /dts-v1/;
9 #include "meson-gxm.dtsi"
10 #include "meson-gx-libretech-pc.dtsi"
12 / {
13         compatible = "libretech,aml-s912-pc", "amlogic,s912",
14                      "amlogic,meson-gxm";
15         model = "Libre Computer AML-S912-PC";
17         typec2_vbus: regulator-typec2_vbus {
18                 compatible = "regulator-fixed";
19                 regulator-name = "TYPEC2_VBUS";
20                 regulator-min-microvolt = <5000000>;
21                 regulator-max-microvolt = <5000000>;
22                 vin-supply = <&vcc5v>;
24                 gpio = <&gpio GPIODV_1 GPIO_ACTIVE_HIGH>;
25                 enable-active-high;
26         };
29 &pinctrl_periphs {
30         /*
31          * Make sure the irq pin of the TYPE C controller is not driven
32          * by the SoC.
33          */
34         fusb302_irq_pins: fusb302_irq {
35                 mux {
36                         groups = "GPIODV_0";
37                         function = "gpio_periphs";
38                         bias-pull-up;
39                         output-disable;
40                 };
41         };
44 &i2c_C {
45         fusb302@22 {
46                 compatible = "fcs,fusb302";
47                 reg = <0x22>;
49                 pinctrl-0 = <&fusb302_irq_pins>;
50                 pinctrl-names = "default";
51                 interrupt-parent = <&gpio_intc>;
52                 interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
54                 vbus-supply = <&typec2_vbus>;
56                 status = "okay";
57         };
60 &usb2_phy2 {
61         phy-supply = <&typec2_vbus>;