compatible = "rockchip,tb", "rockchip,rk3366";
chosen {
- bootargs = "console=uart,mmio32,0xff690000 clk_ignore_unused";
+ bootargs = "console=uart,mmio32,0xff690000";
};
ion {
};
};
+ ramoops_mem: ramoops_mem {
+ reg = <0x0 0x100000 0x0 0x100000>;
+ reg-names = "ramoops_mem";
+ };
+
+ ramoops {
+ compatible = "ramoops";
+ record-size = <0x0 0x10000>;
+ console-size = <0x0 0x80000>;
+ ftrace-size = <0x0 0x10000>;
+ pmsg-size = <0x0 0x50000>;
+ memory-region = <&ramoops_mem>;
+ };
+
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
#clock-cells = <0>;
};
+ vbus_host: vbus-host-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&host_vbus_drv>;
+ regulator-name = "vbus_host";
+ };
+
vcc_phy: vcc-phy-regulator {
compatible = "regulator-fixed";
enable-active-high;
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "otg_id", "otg_bvalid",
"otg_linestate", "host0_linestate";
- clocks = <&cru SCLK_USBPHY480M>;
- clock-names = "usbphy_480m";
+ clocks = <&cru SCLK_USBPHY480M>, <&cru HCLK_OTG>;
+ clock-names = "sclk_otgphy0", "otg";
usb_bc {
compatible = "inno,phy";
};
};
+&tsadc {
+ status = "okay";
+};
+
&nandc0 {
status = "okay"; /* enable both for emmc and nand */
};
&i2c0 {
status = "okay";
+ i2c-scl-rising-time-ns = <250>;
+ i2c-scl-falling-time-ns = <20>;
syr827: syr827@40 {
regulator-name = "vdd_arm";
};
};
};
+
+ battery {
+ compatible = "rk818-battery";
+ ocv_table = <3400 3650 3693 3707 3731 3749 3760
+ 3770 3782 3796 3812 3829 3852 3882
+ 3915 3951 3981 4047 4086 4132 4182>;
+ design_capacity = <7916>;
+ design_qmax = <8708>;
+ bat_res = <65>;
+ max_input_current = <2000>;
+ max_chrg_current = <1600>;
+ max_chrg_voltage = <4200>;
+ sleep_enter_current = <300>;
+ sleep_exit_current = <300>;
+ power_off_thresd = <3400>;
+ zero_algorithm_vol = <3850>;
+ fb_temperature = <105>;
+ sample_res = <20>;
+ max_soc_offset = <60>;
+ energy_mode = <0>;
+ monitor_sec = <5>;
+ virtual_power = <0>;
+ power_dc2otg = <0>;
+ };
};
};
&i2c1 {
status = "okay";
+ i2c-scl-rising-time-ns = <460>;
+ i2c-scl-falling-time-ns = <15>;
rt5640: rt5640@1c {
#sound-dai-cells = <0>;
assigned-clock-parents = <&ext_gmac>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
- tx_delay = <0x30>;
- rx_delay = <0x10>;
+ tx_delay = <0x25>;
+ rx_delay = <0x1d>;
status = "okay";
};
+&u2phy_host {
+ phy-supply = <&vbus_host>;
+};
+
&dwc_control_usb {
- host_drv_gpio = <&gpio0 16 GPIO_ACTIVE_LOW>; /* GPIO_C0 = 16 */
otg_drv_gpio = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO_B2 = 10 */
rockchip,remote_wakeup;
rockchip,usb_irq_wakeup;
};
-&usb_host0_echi {
+&usb_host0_ehci {
+ assigned-clocks = <&cru SCLK_USBPHY480M>;
+ assigned-clock-parents = <&u2phy>;
status = "okay";
};
};
&usb_otg {
- clocks = <&cru SCLK_OTG_PHY0>, <&cru HCLK_OTG>;
- clock-names = "sclk_otgphy0", "otg";
+ clocks = <&cru SCLK_USBPHY480M>, <&cru HCLK_OTG>;
+ clock-names = "usbphy_480m", "otg";
resets = <&cru SRST_USBOTG_AHB>,
<&cru SRST_USBOTG_PHY>,
<&cru SRST_USBOTG_CON>;
mali-supply = <&vdd_logic>;
status = "okay";
};
+
+&pvtm {
+ status = "okay";
+};
+
+&pmu_pvtm {
+ status = "okay";
+};