arm64: dts: renesas: hihope-common: Add BT support
authorBiju Das <biju.das@bp.renesas.com>
Fri, 5 Jul 2019 10:15:19 +0000 (11:15 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 29 Jul 2019 13:36:00 +0000 (15:36 +0200)
This patch enables BT support for the HiHope RZ/G2[MN] boards.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/hihope-common.dtsi

index 1480242..fdeb4d2 100644 (file)
@@ -10,6 +10,7 @@
 / {
        aliases {
                serial0 = &scif2;
+               serial1 = &hscif0;
        };
 
        chosen {
        leds {
                compatible = "gpio-leds";
 
+               bt_active_led {
+                       label = "blue:bt";
+                       gpios = <&gpio7  0 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "hci0-power";
+                       default-state = "off";
+               };
+
                led0 {
                        gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
 
+&hscif0 {
+       pinctrl-0 = <&hscif0_pins>;
+       pinctrl-names = "default";
+
+       uart-has-rtscts;
+       status = "okay";
+
+       bluetooth {
+               compatible = "ti,wl1837-st";
+               enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
+       };
+};
+
 &hsusb {
        dr_mode = "otg";
        status = "okay";
        pinctrl-0 = <&scif_clk_pins>;
        pinctrl-names = "default";
 
+       hscif0_pins: hscif0 {
+               groups = "hscif0_data", "hscif0_ctrl";
+               function = "hscif0";
+       };
+
        scif2_pins: scif2 {
                groups = "scif2_data_a";
                function = "scif2";