sensror: add dts node for lightsensor and hallsensor
author郭毅 <gy@rock-chips.com>
Wed, 19 Mar 2014 08:32:37 +0000 (16:32 +0800)
committer郭毅 <gy@rock-chips.com>
Wed, 19 Mar 2014 08:35:12 +0000 (16:35 +0800)
arch/arm/boot/dts/rk3288-tb.dts

index 2e4ba57b7ae4d0363dd8421317da6c246dd0bb62..6364bfc89e898073fc71bd4d27339114c7c68126 100755 (executable)
         status = "okay";
     };
 
+    hallsensor {
+               compatible = "hall_och165t";
+               type = <SENSOR_TYPE_HALL>;
+               irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
+     };
+
        backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm0 0 25000>;
                poll_delay_ms = <30>;
                layout = <1>;
        };
+       sensor@10 {
+              compatible = "ls_cm3218";
+              reg = <0x10>;
+              type = <SENSOR_TYPE_LIGHT>;
+              irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_EDGE_FALLING>;              
+              irq_enable = <1>;
+              poll_delay_ms = <30>;
+              layout = <1>;
+       };
        
 };