Merge tag 'u-boot-imx-20191009' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git] / arch / arm / dts / rk3399-ficus.dts
index 4b2dd82b67e0827d8e517a8e84a404c4b5c8a2bc..6b059bd7a04fe2ee2acbb7c67507064ad64c0155 100644 (file)
                clock-output-names = "clkin_gmac";
                #clock-cells = <0>;
        };
+
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>,
+                           <&user_led4>, <&wlan_led>, <&bt_led>;
+
+               user_led1 {
+                       label = "red:user1";
+                       gpios = <&gpio4 25 0>;
+                       linux,default-trigger = "heartbeat";
+               };
+
+               user_led2 {
+                       label = "red:user2";
+                       gpios = <&gpio4 26 0>;
+                       linux,default-trigger = "mmc0";
+               };
+
+               user_led3 {
+                       label = "red:user3";
+                       gpios = <&gpio4 30 0>;
+                       linux,default-trigger = "mmc1";
+               };
+
+               user_led4 {
+                       label = "red:user4";
+                       gpios = <&gpio1 0 0>;
+                       panic-indicator;
+                       linux,default-trigger = "none";
+               };
+
+               wlan_active_led {
+                       label = "red:wlan";
+                       gpios = <&gpio1 1 0>;
+                       linux,default-trigger = "phy0tx";
+                       default-state = "off";
+               };
+
+               bt_active_led {
+                       label = "red:bt";
+                       gpios = <&gpio1 4 0>;
+                       linux,default-trigger = "hci0-power";
+                       default-state = "off";
+               };
+       };
 };
 
 &gmac {
        gmac {
                rgmii_sleep_pins: rgmii-sleep-pins {
                        rockchip,pins =
-                               <3 15 RK_FUNC_GPIO &pcfg_output_low>;
+                               <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>;
                };
        };
 
        pcie {
                pcie_drv: pcie-drv {
                        rockchip,pins =
-                               <1 24 RK_FUNC_GPIO &pcfg_pull_none>;
+                               <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
                        };
        };
 
        usb2 {
                host_vbus_drv: host-vbus-drv {
                        rockchip,pins =
-                               <4 27 RK_FUNC_GPIO &pcfg_pull_none>;
+                               <4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       leds {
+               user_led1: user_led1 {
+                       rockchip,pins =
+                               <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               user_led2: user_led2 {
+                       rockchip,pins =
+                               <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               user_led3: user_led3 {
+                       rockchip,pins =
+                               <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               user_led4: user_led4 {
+                       rockchip,pins =
+                               <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               wlan_led: wlan_led {
+                       rockchip,pins =
+                               <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
+               bt_led: bt_led {
+                       rockchip,pins =
+                               <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+};
+
+&usbdrd_dwc3_0 {
+       dr_mode = "host";
+};
+
+&usbdrd_dwc3_1 {
+       dr_mode = "host";
 };
 
 &vcc3v3_pcie {