/*
|
* Allwinner Technology CO., Ltd. sun50iw10p1 soc board.
|
*
|
* soc board support.
|
*/
|
|
/dts-v1/;
|
|
#include "sun50iw10p1.dtsi"
|
|
/{
|
model = "sun50iw10";
|
compatible = "allwinner,a133", "arm,sun50iw10p1";
|
|
aliases {
|
pmu0 = &pmu0;
|
standby_param = &standby_param;
|
};
|
|
reg_usb1_vbus: usb1-vbus {
|
compatible = "regulator-fixed";
|
gpio = <&r_pio PL 8 1 2 0 1>;
|
regulator-name = "usb1-vbus";
|
regulator-min-microvolt = <5000000>;
|
regulator-max-microvolt = <5000000>;
|
regulator-enable-ramp-delay = <1000>;
|
enable-active-high;
|
};
|
|
soc@03000000 {
|
|
r_pio: pinctrl@07022000 {
|
|
s_twi0_pins_a: s_twi0@0 {
|
allwinner,pins = "PL0", "PL1";
|
allwinner,pname = "s_twi0_scl", "s_twi0_sda";
|
allwinner,function = "s_twi0";
|
allwinner,muxsel = <2>;
|
allwinner,drive = <1>;
|
allwinner,pull = <1>;
|
};
|
|
s_twi0_pins_b: s_twi0@1 {
|
allwinner,pins = "PL0", "PL1";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
};
|
pio: pinctrl@0300b000 {
|
twi0_pins_a: twi0@0 {
|
allwinner,pins = "PH0", "PH1";
|
allwinner,pname = "twi0_scl", "twi0_sda";
|
allwinner,function = "twi0";
|
allwinner,muxsel = <2>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
twi0_pins_b: twi0@1 {
|
allwinner,pins = "PH0", "PH1";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
twi1_pins_a: twi1@0 {
|
allwinner,pins = "PH2", "PH3";
|
allwinner,pname = "twi1_scl", "twi1_sda";
|
allwinner,function = "twi1";
|
allwinner,muxsel = <2>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
twi1_pins_b: twi1@1 {
|
allwinner,pins = "PH2", "PH3";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
twi2_pins_a: twi2@0 {
|
allwinner,pins = "PE1", "PE2";
|
allwinner,pname = "twi2_scl", "twi2_sda";
|
allwinner,function = "twi2";
|
allwinner,muxsel = <2>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
twi2_pins_b: twi2@1 {
|
allwinner,pins = "PE1", "PE2";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
twi3_pins_a: twi3@0 {
|
allwinner,pins = "PE3", "PE4";
|
allwinner,pname = "twi3_scl", "twi3_sda";
|
allwinner,function = "twi3";
|
allwinner,muxsel = <2>;
|
allwinner,drive = <1>;
|
allwinner,pull = <1>;
|
};
|
|
twi3_pins_b: twi3@1 {
|
allwinner,pins = "PE3", "PE4";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
pwm0_pin_a: pwm0@0 {
|
allwinner,pins = "PD23";
|
allwinner,function = "pwm0";
|
allwinner,muxsel = <0x02>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm0_pin_b: pwm0@1 {
|
allwinner,pins = "PD23";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <0x07>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm1_pin_a: pwm1@0 {
|
allwinner,pins = "PD22";
|
allwinner,function = "pwm1";
|
allwinner,muxsel = <0x02>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm1_pin_b: pwm1@1 {
|
allwinner,pins = "PD22";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <0x07>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm2_pin_a: pwm2@0 {
|
allwinner,pins = "PD20";
|
allwinner,function = "pwm2";
|
allwinner,muxsel = <0x02>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm2_pin_b: pwm2@1 {
|
allwinner,pins = "PD20";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <0x07>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm3_pin_a: pwm3@0 {
|
allwinner,pins = "PD21";
|
allwinner,function = "pwm3";
|
allwinner,muxsel = <0x02>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
pwm3_pin_b: pwm3@1 {
|
allwinner,pins = "PD21";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <0x07>;
|
allwinner,drive = <0x2>;
|
allwinner,pull = <0>;
|
allwinner,data = <0xffffffff>;
|
};
|
|
spi0_pins_a: spi0@0 {
|
allwinner,pins = "PC2", "PC4", "PC12", "PC15", "PC16";
|
allwinner,pname = "spi0_mosi", "spi0_miso",
|
"spi0_sclk", "spi0_wp", "spi0_hold";
|
allwinner,function = "spi0";
|
allwinner,muxsel = <4>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
spi0_pins_b: spi0@1 {
|
allwinner,pins = "PC3", "PC7";
|
allwinner,pname = "spi0_cs0", "spi0_cs1";
|
allwinner,function = "spi0";
|
allwinner,muxsel = <4>;
|
allwinner,drive = <1>;
|
allwinner,pull = <1>; /* only CS should be pulled up */
|
};
|
|
spi0_pins_c: spi0@2 {
|
allwinner,pins = "PC2", "PC3", "PC4", "PC7", "PC12", "PC15", "PC16";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
spi1_pins_a: spi1@0 {
|
allwinner,pins = "PD11", "PD12", "PD13";
|
allwinner,pname = "spi1_sclk", "spi1_mosi",
|
"spi1_miso";
|
allwinner,function = "spi1";
|
allwinner,muxsel = <4>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
spi1_pins_b: spi1@1 {
|
allwinner,pins = "PD10";
|
allwinner,pname = "spi1_cs0";
|
allwinner,function = "spi1";
|
allwinner,muxsel = <4>;
|
allwinner,drive = <1>;
|
allwinner,pull = <1>; /* only CS should be pulled up */
|
};
|
|
spi1_pins_c: spi1@2 {
|
allwinner,pins = "PD10", "PD11", "PD12", "PD13";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
spi2_pins_a: spi2@0 {
|
allwinner,pins = "PB1", "PB2", "PB3";
|
allwinner,pname = "spi2_sclk", "spi2_mosi",
|
"spi2_miso";
|
allwinner,function = "spi2";
|
allwinner,muxsel = <3>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
spi2_pins_b: spi2@1 {
|
allwinner,pins = "PB0";
|
allwinner,pname = "spi2_cs0";
|
allwinner,function = "spi2";
|
allwinner,muxsel = <3>;
|
allwinner,drive = <1>;
|
allwinner,pull = <1>; /* only CS should be pulled up */
|
};
|
|
spi2_pins_c: spi2@2 {
|
allwinner,pins = "PB0", "PB1", "PB2", "PB3";
|
allwinner,function = "io_disabled";
|
allwinner,muxsel = <7>;
|
allwinner,drive = <1>;
|
allwinner,pull = <0>;
|
};
|
|
};
|
|
twi0: twi@0x05002000{
|
clock-frequency = <400000>;
|
pinctrl-0 = <&twi0_pins_a>;
|
pinctrl-1 = <&twi0_pins_b>;
|
status = "okay";
|
ctp {
|
compatible = "allwinner,gslX680";
|
reg = <0x40>;
|
device_type = "ctp";
|
status = "disabled";
|
ctp_name = "gslX680_3676_1280x800";
|
ctp_twi_id = <0x0>;
|
ctp_twi_addr = <0x40>;
|
ctp_screen_max_x = <0x320>;
|
ctp_screen_max_y = <0x500>;
|
ctp_revert_x_flag = <1>;
|
ctp_revert_y_flag = <1>;
|
|
ctp_exchange_x_y_flag = <0x1>;
|
ctp_int_port = <&pio PH 9 6 0xffffffff 0xffffffff 0>;
|
ctp_wakeup = <&pio PH 10 1 0xffffffff 0xffffffff 1>;
|
ctp-supply = <®_ldoio0>;
|
ctp_power_ldo_vol = <3300>;
|
};
|
};
|
|
twi1: twi@0x05002400{
|
clock-frequency = <200000>;
|
pinctrl-0 = <&twi1_pins_a>;
|
pinctrl-1 = <&twi1_pins_b>;
|
status = "okay";
|
gsensor {
|
compatible = "allwinner,sc7a20";
|
reg = <0x19>;
|
device_type = "gsensor";
|
status = "disabled";
|
gsensor_twi_id = <0x1>;
|
gsensor_twi_addr = <0x19>;
|
gsensor_int1 = <&pio PH 11 6 1 0xffffffff 0xffffffff>;
|
gsensor-supply = <®_dcdc1>;
|
gsensor_vcc_io_val = <3300>;
|
};
|
lightsensor {
|
compatible = "allwinner,stk3x1x";
|
reg = <0x48>;
|
device_type = "lightsensor";
|
status = "disabled";
|
ls_twi_id = <0x1>;
|
ls_twi_addr = <0x48>;
|
ls_int = <&pio PH 4 6 1 0xffffffff 0xffffffff>;
|
lightsensor-supply = <®_dcdc1>;
|
};
|
|
|
};
|
|
twi2: twi@0x05002800{
|
clock-frequency = <200000>;
|
pinctrl-0 = <&twi2_pins_a>;
|
pinctrl-1 = <&twi2_pins_b>;
|
twi-supply = <®_dldo2>;
|
status = "okay";
|
|
/* ac107@36 {
|
compatible = "Allwinnertech,ac107_0";
|
gpio-reset = "null";
|
reg = <0x36>;
|
status = "okay";
|
}; */
|
};
|
|
twi3: twi@0x05002c00{
|
clock-frequency = <200000>;
|
pinctrl-0 = <&twi3_pins_a>;
|
pinctrl-1 = <&twi3_pins_b>;
|
status = "okay";
|
};
|
|
twi6: s_twi@0x07081400{
|
clock-frequency = <200000>;
|
pinctrl-0 = <&s_twi0_pins_a>;
|
pinctrl-1 = <&s_twi0_pins_b>;
|
twi_drv_used = <1>;
|
status = "okay";
|
no_suspend = <1>;
|
|
pmu0: pmu@34 {
|
compatible = "x-powers,axp803";
|
reg = <0x34>;
|
status = "okay";
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
|
interrupt-parent = <&nmi_intc>;
|
x-powers,drive-vbus-en;
|
pmu_reset = <0>;
|
pmu_irq_wakeup = <1>;
|
pmu_hot_shutdown = <1>;
|
|
wakeup-source;
|
|
ac_power_supply: ac-power-supply {
|
compatible = "x-powers,axp803-ac-power-supply";
|
status = "okay";
|
|
pmu_ac_vol = <4600>;
|
pmu_ac_cur = <3000>;
|
|
wakeup_ac_in;
|
wakeup_ac_out;
|
};
|
|
usb_power_supply: usb_power_supply {
|
compatible = "x-powers,axp803-usb-power-supply";
|
status = "disabled";
|
|
pmu_usbpc_vol = <4600>;
|
pmu_usbpc_cur = <1000>;
|
pmu_usbad_vol = <4600>;
|
pmu_usbad_cur = <2500>;
|
|
wakeup_usb_in;
|
wakeup_usb_out;
|
};
|
|
battery_power_supply: battery-power-supply {
|
compatible = "x-powers,axp803-battery-power-supply";
|
status = "disabled";
|
|
pmu_chg_ic_temp = <0>;
|
pmu_battery_rdc= <93>;
|
pmu_battery_cap = <5067>;
|
pmu_runtime_chgcur = <1000>;
|
pmu_suspend_chgcur = <2000>;
|
pmu_shutdown_chgcur = <2000>;
|
pmu_init_chgvol = <4200>;
|
pmu_battery_warning_level1 = <15>;
|
pmu_battery_warning_level2 = <0>;
|
pmu_chgled_func = <0>;
|
pmu_chgled_type = <0>;
|
ocv_coulumb_100 = <1>;
|
pmu_bat_para1 = <0>;
|
pmu_bat_para2 = <0>;
|
pmu_bat_para3 = <0>;
|
pmu_bat_para4 = <0>;
|
pmu_bat_para5 = <6>;
|
pmu_bat_para6 = <8>;
|
pmu_bat_para7 = <9>;
|
pmu_bat_para8 = <10>;
|
pmu_bat_para9 = <11>;
|
pmu_bat_para10 = <12>;
|
pmu_bat_para11 = <13>;
|
pmu_bat_para12 = <15>;
|
pmu_bat_para13 = <18>;
|
pmu_bat_para14 = <23>;
|
pmu_bat_para15 = <29>;
|
pmu_bat_para16 = <44>;
|
pmu_bat_para17 = <50>;
|
pmu_bat_para18 = <58>;
|
pmu_bat_para19 = <65>;
|
pmu_bat_para20 = <70>;
|
pmu_bat_para21 = <75>;
|
pmu_bat_para22 = <80>;
|
pmu_bat_para23 = <83>;
|
pmu_bat_para24 = <84>;
|
pmu_bat_para25 = <86>;
|
pmu_bat_para26 = <90>;
|
pmu_bat_para27 = <94>;
|
pmu_bat_para28 = <97>;
|
pmu_bat_para29 = <99>;
|
pmu_bat_para30 = <100>;
|
pmu_bat_para31 = <100>;
|
pmu_bat_para32 = <100>;
|
|
pmu_bat_temp_enable = <0>;
|
pmu_bat_charge_ltf = <1105>;
|
pmu_bat_charge_htf = <121>;
|
pmu_bat_shutdown_ltf = <1381>;
|
pmu_bat_shutdown_htf = <89>;
|
pmu_bat_temp_para1 = <2814>;
|
pmu_bat_temp_para2 = <2202>;
|
pmu_bat_temp_para3 = <1737>;
|
pmu_bat_temp_para4 = <1381>;
|
pmu_bat_temp_para5 = <1105>;
|
pmu_bat_temp_para6 = <890>;
|
pmu_bat_temp_para7 = <722>;
|
pmu_bat_temp_para8 = <484>;
|
pmu_bat_temp_para9 = <332>;
|
pmu_bat_temp_para10 = <233>;
|
pmu_bat_temp_para11 = <196>;
|
pmu_bat_temp_para12 = <166>;
|
pmu_bat_temp_para13 = <141>;
|
pmu_bat_temp_para14 = <121>;
|
pmu_bat_temp_para15 = <89>;
|
pmu_bat_temp_para16 = <66>;
|
|
wakeup_bat_out;
|
/* wakeup_bat_in; */
|
/* wakeup_bat_charging; */
|
/* wakeup_bat_charge_over; */
|
/* wakeup_low_warning1; */
|
/* wakeup_low_warning2; */
|
/* wakeup_bat_untemp_work; */
|
/* wakeup_bat_ovtemp_work; */
|
/* wakeup_bat_untemp_chg; */
|
/* wakeup_bat_ovtemp_chg; */
|
};
|
|
powerkey0: powerkey@0 {
|
status = "okay";
|
compatible = "x-powers,axp2101-pek";
|
pmu_powkey_off_time = <6000>;
|
pmu_powkey_off_func = <0>;
|
pmu_powkey_off_en = <1>;
|
pmu_powkey_long_time = <1500>;
|
pmu_powkey_on_time = <512>;
|
wakeup_rising;
|
wakeup_falling;
|
};
|
|
regulator0: regulators@0 {
|
reg_dcdc1: dcdc1 {
|
regulator-name = "axp803-dcdc1";
|
regulator-min-microvolt = <1600000>;
|
regulator-max-microvolt = <3400000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-boot-on;
|
};
|
reg_dcdc2: dcdc2 {
|
regulator-name = "axp803-dcdc2";
|
regulator-min-microvolt = <500000>;
|
regulator-max-microvolt = <1300000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-boot-on;
|
regulator-always-on;
|
};
|
reg_dcdc3: dcdc3 {
|
regulator-name = "axp803-dcdc3";
|
regulator-min-microvolt = <500000>;
|
regulator-max-microvolt = <1300000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-boot-on;
|
regulator-always-on;
|
};
|
reg_dcdc4: dcdc4 {
|
regulator-name = "axp803-dcdc4";
|
regulator-min-microvolt = <500000>;
|
regulator-max-microvolt = <1300000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-boot-on;
|
regulator-always-on;
|
};
|
reg_dcdc5: dcdc5 {
|
regulator-name = "axp803-dcdc5";
|
regulator-min-microvolt = <800000>;
|
regulator-max-microvolt = <1840000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-always-on;
|
};
|
reg_dcdc6: dcdc6 {
|
regulator-name = "axp803-dcdc6";
|
regulator-min-microvolt = <600000>;
|
regulator-max-microvolt = <1520000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_dcdc7: dcdc7 {
|
regulator-name = "axp803-dcdc7";
|
regulator-min-microvolt = <600000>;
|
regulator-max-microvolt = <1520000>;
|
regulator-ramp-delay = <250>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_rtcldo: rtcldo {
|
/* RTC_LDO is a fixed, always-on regulator */
|
regulator-name = "axp803-rtcldo";
|
regulator-min-microvolt = <1800000>;
|
regulator-max-microvolt = <1800000>;
|
regulator-boot-on;
|
regulator-always-on;
|
};
|
reg_aldo1: aldo1 {
|
regulator-name = "axp803-aldo1";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-boot-on;
|
regulator-always-on;
|
};
|
reg_aldo2: aldo2 {
|
regulator-name = "axp803-aldo2";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-always-on;
|
};
|
reg_aldo3: aldo3 {
|
regulator-name = "axp803-aldo3";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-always-on;
|
regulator-boot-on;
|
};
|
reg_dldo1: dldo1 {
|
regulator-name = "axp803-dldo1";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_dldo2: dldo2 {
|
regulator-name = "axp803-dldo2";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <4200000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_dldo3: dldo3 {
|
regulator-name = "axp803-dldo3";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_dldo4: dldo4 {
|
regulator-name = "axp803-dldo4";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_eldo1: eldo1 {
|
regulator-name = "axp803-eldo1";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <1900000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_eldo2: eldo2 {
|
regulator-name = "axp803-eldo2";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <1900000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_eldo3: eldo3 {
|
regulator-name = "axp803-eldo3";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <1900000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_fldo1: fldo1 {
|
regulator-name = "axp803-fldo1";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <1450000>;
|
regulator-enable-ramp-delay = <1000>;
|
regulator-always-on;
|
};
|
reg_fldo2: fldo2 {
|
regulator-name = "axp803-fldo2";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <1450000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_ldoio0: ldoio0 {
|
regulator-name = "axp803-ldoio0";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_ldoio1: ldoio1 {
|
regulator-name = "axp803-ldoio1";
|
regulator-min-microvolt = <700000>;
|
regulator-max-microvolt = <3300000>;
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_dc1sw: dc1sw {
|
regulator-name = "axp803-dc1sw";
|
regulator-enable-ramp-delay = <1000>;
|
};
|
reg_drivevbus: drivevbus {
|
regulator-name = "axp803-drivevbus";
|
regulator-enable-ramp-delay = <1000>;
|
};
|
};
|
|
virtual-dcdc1 {
|
compatible = "xpower-vregulator,dcdc1";
|
dcdc1-supply = <®_dcdc1>;
|
};
|
virtual-dcdc2 {
|
compatible = "xpower-vregulator,dcdc2";
|
dcdc2-supply = <®_dcdc2>;
|
};
|
virtual-dcdc3 {
|
compatible = "xpower-vregulator,dcdc3";
|
dcdc3-supply = <®_dcdc3>;
|
};
|
virtual-dcdc4 {
|
compatible = "xpower-vregulator,dcdc4";
|
dcdc4-supply = <®_dcdc4>;
|
};
|
virtual-dcdc5 {
|
compatible = "xpower-vregulator,dcdc5";
|
dcdc5-supply = <®_dcdc5>;
|
};
|
virtual-dcdc6 {
|
compatible = "xpower-vregulator,dcdc6";
|
dcdc6-supply = <®_dcdc6>;
|
};
|
virtual-dcdc7 {
|
compatible = "xpower-vregulator,dcdc7";
|
dcdc7-supply = <®_dcdc7>;
|
};
|
virtual-rtcldo {
|
compatible = "xpower-vregulator,rtcldo";
|
rtcldo-supply = <®_rtcldo>;
|
};
|
virtual-aldo1 {
|
compatible = "xpower-vregulator,aldo1";
|
aldo1-supply = <®_aldo1>;
|
};
|
virtual-aldo2 {
|
compatible = "xpower-vregulator,aldo2";
|
aldo2-supply = <®_aldo2>;
|
};
|
virtual-aldo3 {
|
compatible = "xpower-vregulator,aldo3";
|
aldo3-supply = <®_aldo3>;
|
};
|
virtual-dldo1 {
|
compatible = "xpower-vregulator,dldo1";
|
dldo1-supply = <®_dldo1>;
|
};
|
virtual-dldo2 {
|
compatible = "xpower-vregulator,dldo2";
|
dldo2-supply = <®_dldo2>;
|
};
|
virtual-dldo3 {
|
compatible = "xpower-vregulator,dldo3";
|
dldo3-supply = <®_dldo3>;
|
};
|
virtual-dldo4 {
|
compatible = "xpower-vregulator,dldo4";
|
dldo4-supply = <®_dldo4>;
|
};
|
virtual-eldo1 {
|
compatible = "xpower-vregulator,eldo1";
|
eldo1-supply = <®_eldo1>;
|
};
|
virtual-eldo2 {
|
compatible = "xpower-vregulator,eldo2";
|
eldo2-supply = <®_eldo2>;
|
};
|
virtual-eldo3 {
|
compatible = "xpower-vregulator,eldo3";
|
eldo3-supply = <®_eldo3>;
|
};
|
virtual-fldo1 {
|
compatible = "xpower-vregulator,fldo1";
|
fldo1-supply = <®_fldo1>;
|
};
|
virtual-fldo2 {
|
compatible = "xpower-vregulator,fldo2";
|
fldo2-supply = <®_fldo2>;
|
};
|
virtual-ldoio0 {
|
compatible = "xpower-vregulator,ldoio0";
|
ldoio0-supply = <®_ldoio0>;
|
};
|
virtual-ldoio1 {
|
compatible = "xpower-vregulator,ldoio1";
|
ldoio1-supply = <®_ldoio1>;
|
};
|
virtual-dc1sw {
|
compatible = "xpower-vregulator,dc1sw";
|
dc1sw-supply = <®_dc1sw>;
|
};
|
virtual-drivevbus {
|
compatible = "xpower-vregulator,drivevbus";
|
drivevbus-supply = <®_drivevbus>;
|
};
|
|
axp_gpio0: axp_gpio@0 {
|
gpio-controller;
|
#size-cells = <0>;
|
#gpio-cells = <6>;
|
status = "disabled";
|
};
|
};
|
};
|
|
standby_param: standby_param {
|
vdd-cpu = <0x00000006>;
|
vdd-sys = <0x00000008>;
|
vcc-pll = <0x00000100>;
|
|
osc24m-on = <0x1>;
|
};
|
|
pwm0: pwm0@0300a000 {
|
pinctrl-names = "active", "sleep";
|
pinctrl-0 = <&pwm0_pin_a>;
|
pinctrl-1 = <&pwm0_pin_b>;
|
};
|
|
spi0: spi@05010000 {
|
pinctrl-0 = <&spi0_pins_a &spi0_pins_b>;
|
pinctrl-1 = <&spi1_pins_c>;
|
spi_slave_mode = <0>;
|
status = "disabled";
|
};
|
|
spi1: spi@05011000 {
|
pinctrl-0 = <&spi1_pins_a &spi1_pins_b>;
|
pinctrl-1 = <&spi1_pins_c>;
|
spi_slave_mode = <0>;
|
status = "disabled";
|
};
|
|
spi2: spi@05012000 {
|
pinctrl-0 = <&spi2_pins_a &spi2_pins_b>;
|
pinctrl-1 = <&spi2_pins_c>;
|
spi_slave_mode = <0>;
|
status = "disabled";
|
};
|
|
gpadc:gpadc{
|
channel_num = <1>;
|
channel_select = <0x01>;
|
channel_data_select = <0>;
|
channel_compare_select = <0x01>;
|
channel_cld_select = <0x01>;
|
channel_chd_select = <0>;
|
channel0_compare_lowdata = <1700000>;
|
channel0_compare_higdata = <1200000>;
|
status = "disabled";
|
};
|
|
sdc2: sdmmc@04022000 {
|
non-removable;
|
bus-width = <8>;
|
mmc-ddr-1_8v;
|
mmc-hs200-1_8v;
|
mmc-hs400-1_8v;
|
no-sdio;
|
no-sd;
|
ctl-spec-caps = <0x308>;
|
cap-mmc-highspeed;
|
sunxi-power-save-mode;
|
sunxi-dis-signal-vol-sw;
|
max-frequency = <100000000>;
|
vmmc-supply = <®_dcdc1>;
|
/*emmc io vol 3.3v*/
|
/*vqmmc-supply = <®_aldo1>;*/
|
/*emmc io vol 1.8v*/
|
vqmmc-supply = <®_eldo1>;
|
status = "disabled";
|
};
|
|
sdc0: sdmmc@04020000 {
|
bus-width = <4>;
|
cd-gpios = <&pio PF 6 6 1 3 0xffffffff>;
|
/*non-removable;*/
|
/*broken-cd;*/
|
/*cd-inverted*/
|
/*data3-detect;*/
|
cd-used-24M;
|
cd-gpios = <&pio PF 6 6 1 3 0xffffffff>;
|
cap-sd-highspeed;
|
sd-uhs-sdr50;
|
sd-uhs-ddr50;
|
sd-uhs-sdr104;
|
no-sdio;
|
no-mmc;
|
sunxi-power-save-mode;
|
/*sunxi-dis-signal-vol-sw;*/
|
max-frequency = <150000000>;
|
ctl-spec-caps = <0x8>;
|
vmmc-supply = <®_dcdc1>;
|
vqmmc33sw-supply = <®_dcdc1>;
|
vdmmc33sw-supply = <®_dcdc1>;
|
vqmmc18sw-supply = <®_eldo1>;
|
vdmmc18sw-supply = <®_eldo1>;
|
status = "okay";
|
};
|
|
/*
|
*usb_port_type: usb mode. 0-device, 1-host, 2-otg.
|
*usb_detect_type: usb hotplug detect mode. 0-none, 1-vbus/id detect, 2-id/dpdm detect.
|
*usb_id_gpio: gpio for id detect.
|
*usb_det_vbus_gpio: gpio for id detect. gpio or "axp_ctrl";
|
*usb_wakeup_suspend:0-SUPER_STANDBY, 1-USB_STANDBY.
|
*/
|
usbc0:usbc0@0 {
|
device_type = "usbc0";
|
usb_port_type = <0x0>;
|
usb_detect_type = <0x1>;
|
usb_id_gpio = <&pio PH 8 0 0 0xffffffff 0xffffffff>;
|
usb_det_vbus_gpio = "axp_ctrl";
|
usb_regulator_io = "nocare";
|
det_vbus_supply = <&usb_power_supply>;
|
usb_wakeup_suspend = <1>;
|
usb_serial_unique = <0>;
|
usb_serial_number = "20080411";
|
rndis_wceis = <1>;
|
status = "okay";
|
};
|
|
udc:udc-controller@0x05100000 {
|
det_vbus_supply = <&usb_power_supply>;
|
};
|
|
ehci0:ehci0-controller@0x05101000 {
|
drvvbus-supply = <®_drivevbus>;
|
};
|
|
ohci0:ohci0-controller@0x05101400 {
|
drvvbus-supply = <®_drivevbus>;
|
};
|
|
usbc1:usbc1@0 {
|
device_type = "usbc1";
|
usb_regulator_io = "nocare";
|
usb_wakeup_suspend = <0>;
|
status = "okay";
|
};
|
|
ehci1:ehci1-controller@0x05200000 {
|
drvvbus-supply = <®_usb1_vbus>;
|
};
|
|
ohci1:ohci1-controller@0x05200400 {
|
drvvbus-supply = <®_usb1_vbus>;
|
};
|
|
sdc1: sdmmc@04021000 {
|
bus-width = <4>;
|
no-mmc;
|
no-sd;
|
cap-sd-highspeed;
|
/*sd-uhs-sdr12*/
|
/*sd-uhs-sdr25*/
|
/*sd-uhs-sdr50;*/
|
/*sd-uhs-ddr50;*/
|
/*sd-uhs-sdr104*/
|
/*sunxi-power-save-mode;*/
|
/*sunxi-dis-signal-vol-sw;*/
|
cap-sdio-irq;
|
keep-power-in-suspend;
|
ignore-pm-notify;
|
max-frequency = <50000000>;
|
ctl-spec-caps = <0x8>;
|
status = "okay";
|
};
|
|
/* Audio Driver Modules */
|
codec:codec@0x05096000 {
|
/* MIC and headphone gain setting */
|
mic1gain = <0x1F>;
|
mic2gain = <0x1F>;
|
/* ADC/DAC DRC/HPF func enabled */
|
/* 0x1:DAP_HP_EN; 0x2:DAP_SPK_EN; 0x3:DAP_HPSPK_EN */
|
adcdrc_cfg = <0x2>;
|
adchpf_cfg = <0x1>;
|
dacdrc_cfg = <0x2>;
|
dachpf_cfg = <0x0>;
|
/* Volume about */
|
digital_vol = <0x00>;
|
lineout_vol = <0x1a>;
|
headphonegain = <0x00>;
|
/* Pa enabled about */
|
pa_level = <0x01>;
|
pa_msleep_time = <0x78>;
|
gpio-spk = <&pio PH 11 1 1 1 1>;
|
/* regulator about */
|
avcc-supply = <®_aldo1>;
|
cpvin-supply = <®_eldo1>;
|
status = "okay";
|
};
|
|
sndcodec:sound@0 {
|
status = "okay";
|
};
|
|
spdif:spdif-controller@0x05094000{
|
status = "disabled";
|
};
|
|
sndspdif:sound@1{
|
status = "disabled";
|
};
|
|
dmic:dmic-controller@0x05095000{
|
status = "disabled";
|
};
|
|
snddmic:sound@2{
|
status = "disabled";
|
};
|
|
daudio0:daudio@0x05090000 {
|
mclk_div = <0x01>;
|
frametype = <0x00>;
|
tdm_config = <0x01>;
|
sign_extend = <0x00>;
|
tx_data_mode = <0x00>;
|
rx_data_mode = <0x00>;
|
msb_lsb_first = <0x00>;
|
pcm_lrck_period = <0x80>;
|
audio_format = <0x01>;
|
daudio_master = <0x04>;
|
signal_inversion = <0x01>;
|
slot_width_select = <0x20>;
|
status = "disabled";
|
};
|
|
snddaudio0:sound@3 {
|
/* sunxi,snddaudio-codec = "ac108.1-003b";
|
sunxi,snddaudio-codec-dai = "ac108-pcm0";*/
|
|
/* sunxi,snddaudio-codec = "ac107.1-0036";
|
sunxi,snddaudio-codec-dai = "ac107-pcm0"; */
|
status = "disabled";
|
};
|
|
daudio1:daudio@0x05091000 {
|
mclk_div = <0x01>;
|
frametype = <0x00>;
|
tdm_config = <0x01>;
|
sign_extend = <0x00>;
|
tx_data_mode = <0x00>;
|
rx_data_mode = <0x00>;
|
msb_lsb_first = <0x00>;
|
pcm_lrck_period = <0x80>;
|
audio_format = <0x01>;
|
daudio_master = <0x04>;
|
signal_inversion = <0x01>;
|
slot_width_select = <0x20>;
|
status = "disabled";
|
};
|
|
snddaudio1:sound@4 {
|
status = "disabled";
|
};
|
|
daudio2:daudio@0x05092000 {
|
mclk_div = <0x01>;
|
frametype = <0x00>;
|
tdm_config = <0x01>;
|
sign_extend = <0x00>;
|
tx_data_mode = <0x00>;
|
rx_data_mode = <0x00>;
|
msb_lsb_first = <0x00>;
|
pcm_lrck_period = <0x80>;
|
audio_format = <0x01>;
|
daudio_master = <0x04>;
|
signal_inversion = <0x01>;
|
slot_width_select = <0x20>;
|
status = "disabled";
|
};
|
|
snddaudio2:sound@5 {
|
status = "disabled";
|
};
|
|
daudio3:daudio@0x05093000 {
|
mclk_div = <0x01>;
|
frametype = <0x00>;
|
tdm_config = <0x01>;
|
sign_extend = <0x00>;
|
tx_data_mode = <0x00>;
|
rx_data_mode = <0x00>;
|
msb_lsb_first = <0x00>;
|
pcm_lrck_period = <0x80>;
|
audio_format = <0x01>;
|
daudio_master = <0x04>;
|
signal_inversion = <0x01>;
|
slot_width_select = <0x20>;
|
status = "disabled";
|
};
|
|
snddaudio3:sound@6 {
|
status = "disabled";
|
};
|
vind0:vind@0 {
|
vind0_clk = <336000000>;
|
vind0_isp = <300000000>;
|
status = "okay";
|
|
actuator0:actuator@0 {
|
device_type = "actuator0";
|
actuator0_name = "ad5820_act";
|
actuator0_slave = <0x18>;
|
actuator0_af_pwdn = <>;
|
actuator0_afvdd = "afvcc-csi";
|
actuator0_afvdd_vol = <2800000>;
|
status = "disabled";
|
};
|
flash0:flash@0 {
|
device_type = "flash0";
|
flash0_type = <2>;
|
flash0_en = <&r_pio PL 11 1 0 1 0>;
|
flash0_mode = <>;
|
flash0_flvdd = "";
|
flash0_flvdd_vol = <>;
|
device_id = <0>;
|
status = "disabled";
|
};
|
sensor0:sensor@0 {
|
device_type = "sensor0";
|
sensor0_mname = "gc2385_mipi";
|
sensor0_twi_cci_id = <2>;
|
sensor0_twi_addr = <0x6e>;
|
sensor0_mclk_id = <0>;
|
sensor0_pos = "rear";
|
sensor0_isp_used = <1>;
|
sensor0_fmt = <1>;
|
sensor0_stby_mode = <0>;
|
sensor0_vflip = <0>;
|
sensor0_hflip = <0>;
|
sensor0_iovdd-supply = <®_dldo2>;
|
sensor0_iovdd_vol = <1800000>;
|
sensor0_avdd-supply = <®_dldo3>;
|
sensor0_avdd_vol = <2800000>;
|
sensor0_dvdd-supply = <®_eldo2>;
|
sensor0_dvdd_vol = <1200000>;
|
sensor0_power_en = <>;
|
sensor0_reset = <&pio PE 9 1 0 1 0>;
|
sensor0_pwdn = <&pio PE 8 1 0 1 0>;
|
status = "disabled";
|
};
|
sensor1:sensor@1 {
|
device_type = "sensor1";
|
sensor1_mname = "gc030a_mipi";
|
sensor1_twi_cci_id = <2>;
|
sensor1_twi_addr = <0x42>;
|
sensor1_mclk_id = <0>;
|
sensor1_pos = "front";
|
sensor1_isp_used = <1>;
|
sensor1_fmt = <1>;
|
sensor1_stby_mode = <0>;
|
sensor1_vflip = <0>;
|
sensor1_hflip = <0>;
|
sensor1_iovdd-supply = <®_dldo2>;
|
sensor1_iovdd_vol = <1800000>;
|
sensor1_avdd-supply = <®_dldo3>;
|
sensor1_avdd_vol = <2800000>;
|
sensor1_dvdd-supply = <>;
|
sensor1_dvdd_vol = <>;
|
sensor1_power_en = <>;
|
sensor1_reset = <&pio PE 7 1 0 1 0>;
|
sensor1_pwdn = <&pio PE 6 1 0 1 0>;
|
status = "disabled";
|
};
|
vinc0:vinc@0 {
|
vinc0_csi_sel = <0>;
|
vinc0_mipi_sel = <0>;
|
vinc0_isp_sel = <0>;
|
vinc0_isp_tx_ch = <0>;
|
vinc0_tdm_rx_sel = <0xff>;
|
vinc0_rear_sensor_sel = <0>;
|
vinc0_front_sensor_sel = <1>;
|
vinc0_sensor_list = <0>;
|
status = "okay";
|
};
|
vinc1:vinc@1 {
|
vinc1_csi_sel = <0>;
|
vinc1_mipi_sel = <0>;
|
vinc1_isp_sel = <0>;
|
vinc1_isp_tx_ch = <0>;
|
vinc1_tdm_rx_sel = <0xff>;
|
vinc1_rear_sensor_sel = <0>;
|
vinc1_front_sensor_sel = <1>;
|
vinc1_sensor_list = <0>;
|
status = "okay";
|
};
|
vinc2:vinc@2 {
|
vinc2_csi_sel = <1>;
|
vinc2_mipi_sel = <1>;
|
vinc2_isp_sel = <0>;
|
vinc2_isp_tx_ch = <0>;
|
vinc2_tdm_rx_sel = <0xff>;
|
vinc2_rear_sensor_sel = <0>;
|
vinc2_front_sensor_sel = <1>;
|
vinc2_sensor_list = <0>;
|
status = "okay";
|
};
|
vinc3:vinc@3 {
|
vinc3_csi_sel = <1>;
|
vinc3_mipi_sel = <1>;
|
vinc3_isp_sel = <0>;
|
vinc3_isp_tx_ch = <0>;
|
vinc3_tdm_rx_sel = <0xff>;
|
vinc3_rear_sensor_sel = <0>;
|
vinc3_front_sensor_sel = <1>;
|
vinc3_sensor_list = <0>;
|
status = "okay";
|
};
|
};
|
/*----------------------------------------------------------------------------------
|
disp init configuration
|
|
disp_mode (0:screen0<screen0,fb0>)
|
screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi;5:vdpo)
|
screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
|
(5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
|
screenx_output_format (for hdmi, 0:RGB 1:yuv444 2:yuv422 3:yuv420)
|
screenx_output_bits (for hdmi, 0:8bit 1:10bit 2:12bit 2:16bit)
|
screenx_output_eotf (for hdmi, 0:reserve 4:SDR 16:HDR10 18:HLG)
|
screenx_output_cs (for hdmi, 0:undefined 257:BT709 260:BT601 263:BT2020)
|
screenx_output_dvi_hdmi (for hdmi, 0:undefined 1:dvi mode 2:hdmi mode)
|
screen0_output_range (for hdmi, 0:default 1:full 2:limited)
|
screen0_output_scan (for hdmi, 0:no data 1:overscan 2:underscan)
|
screen0_output_aspect_ratio (for hdmi, 8-same as original picture 9-4:3 10-16:9 11-14:9)
|
fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
|
fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
|
fb0_scaler_mode_enable(scaler mode enable, used FE)
|
fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
|
lcdx_backlight (lcd init backlight,the range:[0,256],default:197
|
lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
|
lcd0_contrast (LCD contrast, 0~100)
|
lcd0_saturation (LCD saturation, 0~100)
|
lcd0_hue (LCD hue, 0~100)
|
framebuffer software rotation setting:
|
disp_rotation_used: (0:disable; 1:enable,you must set fbX_width to lcd_y,
|
set fbX_height to lcd_x)
|
degreeX: (X:screen index; 0:0 degree; 1:90 degree; 3:270 degree)
|
degreeX_Y: (X:screen index; Y:layer index 0~15; 0:0 degree; 1:90 degree; 3:270 degree)
|
devX_output_type : config output type in bootGUI framework in UBOOT-2018.
|
(0:none; 1:lcd; 2:tv; 4:hdmi;)
|
devX_output_mode : config output resolution(see include/video/sunxi_display2.h) of bootGUI framework in UBOOT-2018
|
devX_screen_id : config display index of bootGUI framework in UBOOT-2018
|
devX_do_hpd : whether do hpd detectation or not in UBOOT-2018
|
chn_cfg_mode : Hardware DE channel allocation config. 0:single display with 6
|
channel, 1:dual display with 4 channel in main display and 2 channel in second
|
display, 2:dual display with 3 channel in main display and 3 channel in second
|
in display.
|
----------------------------------------------------------------------------------*/
|
disp: disp@06000000 {
|
disp_init_enable = <1>;
|
disp_mode = <0>;
|
|
screen0_output_type = <1>;
|
screen0_output_mode = <4>;
|
|
screen1_output_type = <1>;
|
screen1_output_mode = <4>;
|
|
screen1_output_format = <0>;
|
screen1_output_bits = <0>;
|
screen1_output_eotf = <4>;
|
screen1_output_cs = <257>;
|
screen1_output_dvi_hdmi = <2>;
|
screen1_output_range = <2>;
|
screen1_output_scan = <0>;
|
screen1_output_aspect_ratio = <8>;
|
|
dev0_output_type = <1>;
|
dev0_output_mode = <4>;
|
dev0_screen_id = <0>;
|
dev0_do_hpd = <0>;
|
|
dev1_output_type = <4>;
|
dev1_output_mode = <10>;
|
dev1_screen_id = <1>;
|
dev1_do_hpd = <1>;
|
|
def_output_dev = <0>;
|
hdmi_mode_check = <1>;
|
|
fb0_format = <0>;
|
fb0_width = <600>;
|
fb0_height = <1024>;
|
|
fb1_format = <0>;
|
fb1_width = <0>;
|
fb1_height = <0>;
|
chn_cfg_mode = <1>;
|
|
disp_para_zone = <1>;
|
/*VCC-LCD*/
|
dc1sw-supply = <®_dc1sw>;
|
/*VCC-DSI*/
|
eldo3-supply = <®_eldo3>;
|
/*VCC-PD*/
|
dcdc1-supply = <®_dcdc1>;
|
};
|
/*----------------------------------------------------------------------------------
|
;lcd0 configuration
|
|
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
|
;lcd_hv_if 0:Parallel RGB; 8:Serial RGB; 10:Dummy RGB; 11: RGB Dummy;12:CCIR656
|
;lcd_hv_clk_phase 0:0 degree;1:90 degree;2:180 degree;3:270 degree
|
;lcd_hv_sync_polarity 0:vs low,hs low; 1:vs high,hslow; 2:vs low,hs high; 3:vs high,hs high
|
;lcd_hv_syuv_seq 0:YUYV; 1:YVYU; 2:UYVY; 3:VYUY
|
;lcd_cpu_if 0:18bit/1 cycle parallel(RGB666); 4:16bit/1cycle parallel (RGB565)
|
; 6:18bit/3 cycle parallel(RGB666); 7:16bit/2cycle parallel (RGB565)
|
;lcd_cpu_te 0:frame auto trigger; 1:frame triggered by te rising edge; 2:frame triggered by te falling edge;
|
;lcd_dsi_if 0:video mode; 1: Command mode; 2:video burst mode
|
;lcd_dsi_te 0:frame auto trigger; 1:frame triggered by te rising edge; 2:frame triggered by te falling edge;
|
;lcd_x: lcd horizontal resolution
|
;lcd_y: lcd vertical resolution
|
;lcd_width: width of lcd in mm
|
;lcd_height: height of lcd in mm
|
;lcd_dclk_freq: in MHZ unit
|
;lcd_pwm_freq: in HZ unit
|
;lcd_pwm_pol: lcd backlight PWM polarity
|
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
|
;lcd_hbp: hsync back porch(pixel) + hsync plus width(pixel);
|
;lcd_ht: hsync total cycle(pixel)
|
;lcd_vbp: vsync back porch(line) + vysnc plus width(line)
|
;lcd_vt: vysnc total cycle(line)
|
;lcd_hspw: hsync plus width(pixel)
|
;lcd_vspw: vysnc plus width(pixel)
|
;lcd_lvds_if: 0:single link; 1:dual link
|
;lcd_lvds_colordepth: 0:8bit; 1:6bit
|
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
|
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
|
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
|
; 8~11bit:dclk phase; 12~15bit:de phase)
|
;lcd_gamma_en lcd gamma correction enable
|
;lcd_bright_curve_en lcd bright curve correction enable
|
;lcd_cmap_en lcd color map function enable
|
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
|
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
|
; decrease it while lcd is not bright enough; increase while lcd is too bright
|
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
|
;Pin setting for special function ie.LVDS, RGB data or vsync
|
; name(donot care) = port:PD12<pin function><pull up or pull down><drive ability><output level>
|
;Pin setting for gpio:
|
; lcd_gpio_X = port:PD12<pin function><pull up or pull down><drive ability><output level>
|
;Pin setting for backlight enable pin
|
; lcd_bl_en = port:PD12<pin function><pull up or pull down><drive ability><output level>
|
;fsync setting, pulse to csi
|
;lcd_fsync_en (0:disable fsync,1:enable)
|
;lcd_fsync_act_time (active time of fsync, unit:pixel)
|
;lcd_fsync_dis_time (disactive time of fsync, unit:pixel)
|
;lcd_fsync_pol (0:positive;1:negative)
|
;gpio config: <&pio for cpu or &r_pio for cpus, port, port num, pio function,
|
pull up or pull down(default 0), driver level(default 1), data>
|
;For dual link lvds: use lvds2link_pins_a and lvds2link_pins_b instead
|
;For rgb24: use rgb24_pins_a and rgb24_pins_b instead
|
;For lvds1: use lvds1_pins_a and lvds1_pins_b instead
|
;For lvds0: use lvds0_pins_a and lvds0_pins_b instead
|
;----------------------------------------------------------------------------------*/
|
lcd0: lcd0@01c0c000 {
|
lcd_used = <1>;
|
|
lcd_driver_name = "k101im2qa04";
|
lcd_backlight = <50>;
|
lcd_if = <4>;
|
|
lcd_x = <600>;
|
lcd_y = <1024>;
|
lcd_width = <135>;
|
lcd_height = <216>;
|
lcd_dclk_freq = <68>;
|
|
lcd_pwm_used = <1>;
|
lcd_pwm_ch = <0>;
|
lcd_pwm_freq = <50000>;
|
lcd_pwm_pol = <1>;
|
lcd_pwm_max_limit = <255>;
|
|
|
lcd_hbp = <36>;
|
lcd_ht = <854>;
|
lcd_hspw = <18>;
|
lcd_vbp = <12>;
|
lcd_vt = <1320>;
|
lcd_vspw = <4>;
|
|
lcd_frm = <0>;
|
lcd_gamma_en = <0>;
|
lcd_bright_curve_en = <0>;
|
lcd_cmap_en = <0>;
|
|
deu_mode = <0>;
|
lcdgamma4iep = <22>;
|
smart_color = <90>;
|
|
lcd_dsi_if = <0>;
|
lcd_dsi_lane = <4>;
|
lcd_dsi_format = <0>;
|
lcd_dsi_te = <0>;
|
lcd_dsi_eotp = <0>;
|
|
lcd_pin_power = "dcdc1";
|
lcd_pin_power1 = "eldo3";
|
|
lcd_power = "dc1sw";
|
lcd_bl_en = <&pio PB 8 1 0 3 1>;
|
/*lcd_gpio_1 = <&pio PD 23 1 0 3 1>;*/
|
lcd_gpio_0 = <&pio PD 22 1 0 3 1>;
|
pinctrl-0 = <&dsi4lane_pins_a>;
|
pinctrl-1 = <&dsi4lane_pins_b>;
|
};
|
|
hall_para {
|
hall_name = "MH248";
|
status = "disabled";
|
hall_int_port = <&r_pio PL 9 6 1 0xffffffff 0xffffffff>;
|
};
|
|
keyboard {
|
compatible = "allwinner,keyboard_1350mv";
|
status = "okay";
|
key_cnt = <3>;
|
key0 = <475 0x7372>;
|
key1 = <646 0x73>;
|
key2 = <900 0x72>;
|
};
|
|
wlan: wlan@0 {
|
compatible = "allwinner,sunxi-wlan";
|
clocks = <&clk_losc_out>, <&clk_dcxo_out>;
|
pinctrl-0;
|
pinctrl-names;
|
wlan_busnum = <0x1>;
|
wlan_power = "axp803-dldo1";
|
wlan_io_regulator;
|
wlan_regon = <&r_pio PL 5 1 0xffffffff 0xffffffff 0>;
|
wlan_hostwake = <&r_pio PL 6 6 0xffffffff 0xffffffff 0>;
|
chip_en;
|
power_en;
|
status = "okay";
|
};
|
|
bt: bt@0 {
|
compatible = "allwinner,sunxi-bt";
|
clocks = <&clk_losc_out>, <&clk_dcxo_out>;
|
bt_power = "axp803-dldo1";
|
bt_io_regulator;
|
bt_rst_n = <&r_pio PL 2 1 0xffffffff 0xffffffff 0>;
|
status = "okay";
|
};
|
|
btlpm: btlpm@0 {
|
compatible = "allwinner,sunxi-btlpm";
|
uart_index = <0x1>;
|
bt_wake = <&r_pio PL 4 1 0xffffffff 0xffffffff 1>;
|
bt_hostwake = <&r_pio PL 3 6 0xffffffff 0xffffffff 1>;
|
status = "okay";
|
};
|
|
addr_mgt: addr_mgt@0 {
|
compatible = "allwinner,sunxi-addr_mgt";
|
type_addr_wifi = <0x0>;
|
type_addr_bt = <0x0>;
|
type_addr_eth = <0x0>;
|
status = "okay";
|
};
|
|
uart0: uart@05000000 {
|
uart-supply = <®_dcdc1>;
|
};
|
|
uart1: uart@05000400 {
|
status = "okay";
|
};
|
};
|
gpu: gpu@0x01800000 {
|
gpu_idle = <1>;/*ic version ctrl*/
|
dvfs_status = <1>;
|
pll_rate = <504000>;
|
independent_power = <0>;
|
operating-points = <
|
/* KHz uV */
|
504000 950000
|
472500 950000
|
441000 950000
|
252000 950000
|
>;
|
gpu-supply = <®_dcdc4>;
|
};
|
};
|
|
&cpu0 {
|
cpu-supply = <®_dcdc2>;
|
};
|