#include "rk3399.dtsi"
#include "rk3399-android.dtsi"
+#include <dt-bindings/sensor-dev.h>
/ {
compatible = "rockchip,rk3399-mid", "rockchip,rk3399";
regulator-max-microvolt = <3300000>;
};
+ vcc5v0_host: vcc5v0-host-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&host_vbus_drv>;
+ regulator-name = "vcc5v0_host";
+ };
+
vdd_log: vdd-log {
compatible = "pwm-regulator";
pwms = <&pwm2 0 25000 0>;
#sound-dai-cells = <0>;
};
+&i2s2 {
+ #sound-dai-cells = <0>;
+};
+
&spdif {
status = "okay";
#sound-dai-cells = <0>;
orientation-z= <0>;
mpu-debug = <1>;
};
+
+ sensor@0d {
+ status = "okay";
+ compatible = "ak8963";
+ pinctrl-names = "default";
+ pinctrl-0 = <&ak8963_irq_gpio>;
+ reg = <0x0d>;
+ type = <SENSOR_TYPE_COMPASS>;
+ irq-gpio = <&gpio2 28 IRQ_TYPE_EDGE_RISING>;
+ irq_enable = <0>;
+ poll_delay_ms = <30>;
+ layout = <3>;
+ };
+
+ sensor@20 {
+ status = "disabled";
+ compatible = "capella,light_cm3218";
+ pinctrl-names = "default";
+ pinctrl-0 = <&cm3218_irq_gpio>;
+ reg = <0x20>;
+ type = <SENSOR_TYPE_LIGHT>;
+ irq-gpio = <&gpio4 24 IRQ_TYPE_EDGE_RISING>;
+ irq_enable = <1>;
+ poll_delay_ms = <30>;
+ };
};
&i2c5 {
};
};
+&isp0 {
+ status = "okay";
+};
+
+&isp1 {
+ status = "okay";
+};
+
&cpu_l0 {
cpu-supply = <&vdd_cpu_l>;
};
status = "okay";
};
+&u2phy0 {
+ status = "okay";
+
+ u2phy0_otg: otg-port {
+ status = "okay";
+ };
+};
+
+&u2phy1 {
+ status = "okay";
+
+ u2phy1_otg: otg-port {
+ status = "okay";
+ };
+
+ u2phy1_host: host-port {
+ phy-supply = <&vcc5v0_host>;
+ status = "okay";
+ };
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_xfer &uart0_cts>;
status = "okay";
};
-&usb2phy {
- vbus_drv-gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
-};
-
&usb_host0_ehci {
status = "okay";
};
rockchip,pins = <2 27 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
+
+ ak8963 {
+ ak8963_irq_gpio: ak8963-irq-gpio {
+ rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
+ cm3218 {
+ cm3218_irq_gpio: cm3218-irq-gpio {
+ rockchip,pins = <4 24 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
+ usb2 {
+ host_vbus_drv: host-vbus-drv {
+ rockchip,pins =
+ <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
};
&rk_screen {