WORKAROUND: ARM: dts: add rfkill-bluetooth device node 74/21074/1
authorBeomho Seo <beomho.seo@samsung.com>
Thu, 15 May 2014 02:29:22 +0000 (11:29 +0900)
committerBeomho Seo <beomho.seo@samsung.com>
Thu, 15 May 2014 02:29:22 +0000 (11:29 +0900)
WORKAROUND: Temporary workaround for bluetooth enable.
This patch add rfkill-bluetooth device node and pinctrl.
And then, add line for parse shutdown-gpio.

Change-Id: I1263b020f7c939a65a95c7a5b94e379a7a51210f
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
arch/arm/boot/dts/exynos4412-trats2.dts
arch/arm/boot/dts/exynos4x12-pinctrl.dtsi
net/rfkill/rfkill-gpio.c

index ff08a4b..0a5e2a3 100644 (file)
        };
 
        serial@13800000 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&uart0_data &uart0_fctl>;
                status = "okay";
        };
 
                status = "okay";
        };
 
+       rfkill_bt {
+               compatible = "rfkill-gpio";
+               pinctrl-0 = <&eint22>;
+               pinctrl-names = "default";
+               status = "okay";
+               rfkill-name = "bt";
+               rfkill-type = <2>;
+               shutdown-gpio = <&gpl0 6 0>;
+       };
+
        i2c_ak8975: i2c-gpio-0 {
                compatible = "i2c-gpio";
                gpios = <&gpy2 4 0>, <&gpy2 5 0>;
index b4919a6..0b85587 100644 (file)
                        samsung,pin-drv = <0>;
                };
 
+               eint22: ext-int22 {
+                       samsung,pins = "gpx2-6";
+                       samsung,pin-function = <0xf>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+
                eint31: ext-int31 {
                        samsung,pins = "gpx3-7";
                        samsung,pin-function = <0xf>;
index 99c778c..ad5c956 100644 (file)
@@ -79,6 +79,7 @@ static int rfkill_gpio_dt_probe(struct device *dev,
        rfkill->name = np->name;
        of_property_read_string(np, "rfkill-name", &rfkill->name);
        of_property_read_u32(np, "rfkill-type", &rfkill->type);
+       rfkill->shutdown_gpio = of_get_named_gpio(np, "shutdown-gpio", 0);
 
        return 0;
 }