--- /dev/null
+Binding for EC Battery
+
+Required properties:
+- compatible: Should contain one of the following:
+ * "rockchip,ec-battery"
+- reg: integer, smbus address of the device.
+- tvirtual_power: integer, test power, if battery is not exist;
+- monitor_sec: integer, delay time of queue_delayed_work (s);
+
+
+Optional properties:
+
+Example:
+
+ec_battery: ec_battery09 {
+ compatible = "rockchip,ec-battery";
+ reg = <0x76>;
+ virtual_power = <0>;
+ monitor_sec = <5>;
+};
backlight: backlight {
compatible = "pwm-backlight";
- pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
+ pwms = <&pwm0 0 25000 0>;
brightness-levels = <
0 1 51 52 52 53 53 54
54 55 55 56 56 57 57 58
pinctrl-0 = <&hp_det>;
io-channels = <&saradc 2>;
};
+
+ hall_sensor: hall-mh248 {
+ compatible = "hall-mh248";
+ pinctrl-names = "default";
+ pinctrl-0 = <&mh248_irq_gpio>;
+ irq-gpio = <&gpio0 GPIO_A1 IRQ_TYPE_EDGE_BOTH>;
+ hall-active = <1>;
+ status = "okay";
+ };
};
&rk_key {
mali-supply = <&vdd_gpu>;
};
+&hdmi {
+ status = "disabled";
+};
+
&i2s0 {
status = "okay";
rockchip,i2s-broken-burst-len;
};
};
-&i2c5 {
+&i2c3 {
+ status="okay";
+
+ hidkey@68 {
+ clock-frequency = <100000>;
+ compatible = "hid-over-i2c";
+ interrupt-parent = <&gpio0>;
+ interrupts = <GPIO_B0 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&hidkey_irq_gpio>;
+ reg = <0x68>;
+ hid-descr-addr = <0x0001>;
+ };
+
+ ec_battery@76 {
+ compatible = "rockchip,ec-battery";
+ reg = <0x76>;
+ virtual_power = <0>;
+ monitor_sec = <5>;
+ };
+};
+
+&i2c2 {
status = "okay";
i2c-scl-rising-time-ns = <345>;
i2c-scl-falling-time-ns = <11>;
};
};
+ hallsensor {
+ mh248_irq_gpio: mh248-irq-gpio {
+ rockchip,pins = <0 GPIO_A2 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
+ hidkey {
+ hidkey_irq_gpio: hidkey-irq-gpio {
+ rockchip,pins = <0 GPIO_B0 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
touchpad {
touchpad_irq_gpio: touchpad-irq-gpio {
rockchip,pins = <1 GPIO_C2 RK_FUNC_GPIO &pcfg_pull_up>;