#clock-cells = <1>;
};
+ pmctrl: pmctrl@fff31000 {
+ compatible = "hisilicon,hi3660-pmctrl", "syscon";
+ reg = <0x0 0xfff31000 0x0 0x1000>;
+ #clock-cells = <1>;
+ };
+
pmuctrl: crg_ctrl@fff34000 {
compatible = "hisilicon,hi3660-pmuctrl", "syscon";
reg = <0x0 0xfff34000 0x0 0x1000>;
resets = <&iomcu_rst 0x20 4>;
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
+ status = "ok";
+
+ rt1711@4e {
+ compatible = "richtek,rt1711";
+ reg = <0x4e>;
+ status = "ok";
+ rt1711,irq_pin = <&gpio27 3 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_cfg_func>;
+ /* 0: dfp/ufp, 1: dfp, 2: ufp */
+ rt-dual,supported_modes = <0>;
+ /* tcpc_device's name */
+ rt-tcpc,name = "type_c_port0";
+ /* 0: SNK Only, 1: SRC Only, 2: DRP, 3: Try.SRC, 4: Try.SNK */
+ rt-tcpc,role_def = <2>;
+ /* 0: Default, 1: 1.5, 2: 3.0 */
+ rt-tcpc,rp_level = <0>;
+ /* the number of notifier supply */
+ rt-tcpc,notifier_supply_num = <0>;
+ pd-data {
+ pd,source-pdo-size = <1>;
+ /*<0x019014>;*/
+ pd,source-pdo-data = <0x00019064>;
+
+ pd,sink-pdo-size = <2>;
+ /* 0x0002d0c8 : 9V, 2A */
+ pd,sink-pdo-data = <0x000190c8 0x0002d0c8> ;
+
+ pd,id-vdo-size = <3>;
+ pd,id-vdo-data = <0xd00029cf 0x0 0x00010000>;
+ };
+ dpm_caps {
+ local_dr_power;
+ local_dr_data;
+ // local_ext_power;
+ local_usb_comm;
+ // local_usb_suspend;
+ // local_high_cap;
+ // local_give_back;
+ // local_no_suspend;
+ local_vconn_supply;
+
+ // attemp_enter_dp_mode;
+ attemp_discover_cable;
+ attemp_discover_id;
+
+ /* 0: disable, 1: prefer_snk, 2: prefer_src */
+ pr_check = <0>;
+ // pr_reject_as_source;
+ // pr_reject_as_sink;
+ pr_check_gp_source;
+ // pr_check_gp_sink;
+
+ /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */
+ dr_check = <0>;
+ // dr_reject_as_dfp;
+ // dr_reject_as_ufp;
+
+ snk_prefer_low_voltage;
+ snk_ignore_mismatch_current;
+ };
+ };
+ };
+
+ pd_dpm {
+ compatible = "hisilicon,pd_dpm";
+ tcp_name = "type_c_port0";
+ status = "ok";
+ };
+
+ hubv1: gpio_hubv1 {
+ compatible = "hisilicon,gpio_hubv1";
+ typc_vbus_int_gpio,typec-gpios = <&gpio25 2 0>;
+ typc_vbus_enable_val = <0>;
+ hub_vdd12_en_gpio = <&gpio9 1 0>;
+ hub_vdd33_en_gpio = <&gpio9 2 0>;
+ status = "disabled";
+ };
+
+ hubv2: gpio_hubv2 {
+ compatible = "hisilicon,gpio_hubv2";
+ typc_vbus_int_gpio,typec-gpios = <&gpio25 2 0>;
+ typc_vbus_enable_val = <1>;
+ otg_gpio = <&gpio25 6 0>;
+ hub_vdd12_en_gpio = <&gpio2 1 0>;
+ hub_vdd33_en_gpio = <&gpio5 6 0>;
+ hub_reset_en_gpio = <&gpio4 4 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usbhub5734_pmx_func>;
status = "disabled";
};
};
};
};
+
+ hub5734_gpio:hub5734_gpio {
+ compatible = "hub5734_gpio";
+ pinctrl-names = "default";
+ pinctrl-0 = <&usbhub5734_pmx_func>;
+ };
+
+ hisi_usb@ff200000 {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "hisilicon,hi3660-dwc3";
+ reg = <0x0 0xff200000 0x0 0x1000 0x0 0xff100000 0x0 0x100000>;
+ ranges;
+ bc_again_flag = <1>;
+
+ clocks = <&crg_ctrl HI3660_CLK_ABB_USB>,
+ <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>;
+ clock-names = "clk_usb3phy_ref", "aclk_usb3otg";
+ eye_diagram_param = <0x1c466e3>;
+ eye_diagram_host_param = <0x1c466e3>;
+ usb3_phy_cr_param = <0xb80>;
+ usb3_phy_host_cr_param = <0x980>;
+ usb3_phy_tx_vboost_lvl = <0x5>;
+
+ dwc3@ff100000 {
+ compatible = "snps,dwc3";
+ reg = <0x0 0xff100000 0x0 0x100000>;
+ interrupts = <0 159 4>, <0 161 4>;
+ dr_mode = "otg";
+ maximum-speed = "super-speed";
+ };
+ };
};
};