ARM64: dts: rk3399-evb: add gsl3673 node for rk3399-evb
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-evb.dtsi
index c97260c216a5471878adec91d70eb099b7a218e4..6c3cae823d34d98f1d5006bf8eea82b1393ef0ae 100644 (file)
 / {
        compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
 
-       vdd_center: vdd-center {
-               compatible = "pwm-regulator";
-               pwms = <&pwm3 0 25000 0>;
-               regulator-name = "vdd_center";
-               regulator-min-microvolt = <800000>;
-               regulator-max-microvolt = <1400000>;
-               regulator-always-on;
-               regulator-boot-on;
-       };
-
        vcc3v3_sys: vcc3v3-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc3v3_sys";
                BT,wake_host_irq = <&gpio0 4 GPIO_ACTIVE_HIGH>; /* GPIO0_A4 */
                status = "okay";
        };
+
+       test-power {
+               status = "okay";
+       };
 };
 
 &cpu_l0 {
                tp-size = <911>;
                tp-supply = <&vcc3v0_tp>;
        };
+
+       gsl3673: gsl3673@40 {
+               compatible = "GSL,GSL3673";
+               reg = <0x40>;
+               screen_max_x = <1536>;
+               screen_max_y = <2048>;
+               irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
+               rst_gpio_number = <&gpio4 22 GPIO_ACTIVE_HIGH>;
+       };
 };
 
 &pcie0 {
        status = "okay";
 };
 
+&tcphy0 {
+       extcon = <&fusb0>;
+       status = "okay";
+};
+
+&tcphy1 {
+       extcon = <&fusb1>;
+       status = "okay";
+};
+
 &tsadc {
        rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
        rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
 
 &u2phy0 {
        status = "okay";
+       extcon = <&fusb0>;
 
        u2phy0_otg: otg-port {
                status = "okay";
 
 &u2phy1 {
        status = "okay";
+       extcon = <&fusb1>;
 
        u2phy1_otg: otg-port {
                status = "okay";
 };
 
 &usbdrd3_0 {
+       extcon = <&fusb0>;
        status = "okay";
 };
 
 };
 
 &usbdrd3_1 {
+       extcon = <&fusb1>;
        status = "okay";
 };
 
        status = "okay";
 };
 
-&pwm3 {
-       status = "okay";
-};
-
 &gmac {
        phy-supply = <&vcc_phy>;
        phy-mode = "rgmii";
                                <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       fusb30x {
+               fusb0_int: fusb0-int {
+                       rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+
+               fusb1_int: fusb1-int {
+                       rockchip,pins = <1 24 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
 };