230 lines
4.7 KiB
Plaintext
230 lines
4.7 KiB
Plaintext
/*
|
|
* Allwinner Technology CO., Ltd. sun50iw10p1 soc board.
|
|
*
|
|
* soc board support.
|
|
*/
|
|
&power_sply {
|
|
};
|
|
|
|
&platform {
|
|
eraseflag = <1>;
|
|
next_work = <3>;
|
|
debug_mode = <1>;
|
|
};
|
|
|
|
&target {
|
|
boot_clock = <1008>; /*CPU boot frequency, Unit: MHz*/
|
|
storage_type = <0xffffffff>; /*boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan*/
|
|
burn_key = <1>; /*1:support burn key; 0:not support burn key*/
|
|
dragonboard_test = <0>; /*1:support card boot dragonboard; 0:not support card boot dragonboard*/
|
|
};
|
|
|
|
|
|
&charger0 {
|
|
pmu_safe_vol = <3500>;
|
|
};
|
|
|
|
|
|
&twi6 {
|
|
clock-frequency = <200000>;
|
|
pinctrl-0 = <&s_twi0_pins_a>;
|
|
pinctrl-1 = <&s_twi0_pins_b>;
|
|
no_suspend = <1>;
|
|
twi_drv_used = <1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm0_pin_a {
|
|
};
|
|
|
|
&pwm0_pin_b {
|
|
};
|
|
|
|
&pwm1_pin_a {
|
|
};
|
|
|
|
&pwm1_pin_b {
|
|
};
|
|
|
|
|
|
&pwm {
|
|
};
|
|
|
|
&pwm0 {
|
|
};
|
|
|
|
&pwm1 {
|
|
};
|
|
|
|
&pwm2 {
|
|
};
|
|
|
|
&pwm3 {
|
|
};
|
|
|
|
&pwm4 {
|
|
};
|
|
|
|
&pwm5 {
|
|
};
|
|
|
|
&pwm6 {
|
|
};
|
|
|
|
&pwm7 {
|
|
};
|
|
|
|
&pwm8 {
|
|
};
|
|
|
|
&pwm9 {
|
|
};
|
|
|
|
&sdc0_pins_a {
|
|
allwinner,pins = "PF0", "PF1", "PF2",
|
|
"PF3", "PF4", "PF5";
|
|
allwinner,function = "sdc0";
|
|
allwinner,muxsel = <2>;
|
|
allwinner,drive = <3>;
|
|
allwinner,pull = <1>;
|
|
};
|
|
|
|
&sdc0_pins_b {
|
|
allwinner,pins = "PF0", "PF1", "PF2",
|
|
"PF3", "PF4", "PF5";
|
|
allwinner,function = "io_disabled";
|
|
allwinner,muxsel = <7>;
|
|
allwinner,drive = <1>;
|
|
allwinner,pull = <1>;
|
|
};
|
|
|
|
&sdc0_pins_c {
|
|
allwinner,pins = "PF0", "PF1", "PF2",
|
|
"PF3", "PF4", "PF5";
|
|
allwinner,function = "uart0_jtag";
|
|
allwinner,muxsel = <3>;
|
|
allwinner,drive = <1>;
|
|
allwinner,pull = <1>;
|
|
};
|
|
|
|
|
|
&sdc2_pins_a {
|
|
allwinner,pins = "PC1", "PC5", "PC6",
|
|
"PC8", "PC9", "PC10", "PC11",
|
|
"PC13", "PC14", "PC15", "PC16";
|
|
allwinner,function = "sdc2";
|
|
allwinner,muxsel = <3>;
|
|
allwinner,drive = <3>;
|
|
allwinner,pull = <1>;
|
|
};
|
|
|
|
&sdc2_pins_b {
|
|
allwinner,pins = "PC0", "PC1", "PC5", "PC6",
|
|
"PC8", "PC9", "PC10", "PC11",
|
|
"PC13", "PC14", "PC15", "PC16";
|
|
allwinner,function = "io_disabled";
|
|
allwinner,muxsel = <7>;
|
|
allwinner,drive = <1>;
|
|
allwinner,pull = <1>;
|
|
};
|
|
|
|
&sdc2_pins_c {
|
|
allwinner,pins = "PC0";
|
|
allwinner,function = "sdc2";
|
|
allwinner,muxsel = <3>;
|
|
allwinner,drive = <3>;
|
|
allwinner,pull = <2>;
|
|
};
|
|
|
|
&nand0_pins_a {
|
|
allwinner,pins = "PC0", "PC1", "PC2", "PC5",
|
|
"PC8", "PC9", "PC10", "PC11",
|
|
"PC12", "PC13", "PC14", "PC15",
|
|
"PC16";
|
|
allwinner,pname= "nand0_we", "nand0_ale","nand0_cle", "nand0_nre",
|
|
"nand0_d0", "nand0_d1", "nand0_d2", "nand0_d3",
|
|
"nand0_d4", "nand0_d5", "nand0_d6", "nand0_d7",
|
|
"nand0_ndqs";
|
|
allwinner,function = "nand0";
|
|
allwinner,muxsel = <2>;
|
|
allwinner,drive = <1>;
|
|
allwinner,pull = <0>;
|
|
};
|
|
|
|
&nand0_pins_b {
|
|
allwinner,pins = "PC4", "PC6", "PC03", "PC07";
|
|
allwinner,pname= "nand0_ce0", "nand0_rb0", "nand0_ce1", "nand0_rb1";
|
|
allwinner,function = "nand0";
|
|
allwinner,muxsel = <2>;
|
|
allwinner,drive = <1>;
|
|
allwinner,pull = <1>; /* only RB&CE should be pulled up */
|
|
};
|
|
|
|
&nand0_pins_c {
|
|
allwinner,pins = "PC0", "PC1", "PC2", "PC3",
|
|
"PC4", "PC5", "PC6", "PC7",
|
|
"PC8", "PC9", "PC10", "PC11",
|
|
"PC12", "PC13", "PC14", "PC15",
|
|
"PC16";
|
|
allwinner,function = "io_disabled";
|
|
allwinner,muxsel = <7>;
|
|
allwinner,drive = <1>;
|
|
allwinner,pull = <0>;
|
|
};
|
|
|
|
&card0_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
|
|
/* reg = <0x0 0x2 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
|
|
device_type = "card0_boot_para";
|
|
card_ctrl = <0x0>;
|
|
card_high_speed = <0x1>;
|
|
card_line = <0x4>;
|
|
pinctrl-0 = <&sdc0_pins_a>;
|
|
};
|
|
|
|
&card2_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
|
|
/* reg = <0x0 0x3 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
|
|
device_type = "card2_boot_para";
|
|
card_ctrl = <0x2>;
|
|
card_high_speed = <0x1>;
|
|
card_line = <0x8>;
|
|
pinctrl-0 = <&sdc2_pins_a &sdc2_pins_c>;
|
|
sdc_ex_dly_used = <0x2>;
|
|
sdc_io_1v8 = <0x1>;
|
|
sdc_tm4_win_th = <0x08>;
|
|
sdc_tm4_hs200_max_freq = <150>;
|
|
sdc_tm4_hs400_max_freq = <100>;
|
|
sdc_type = "tm4";
|
|
};
|
|
&gpio_bias { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
|
|
device_type = "gpio_bias";
|
|
pc_bias = <1800>;
|
|
};
|
|
|
|
&nand0 {
|
|
compatible = "allwinner,sun50iw10-nand";
|
|
device_type = "nand0";
|
|
//reg = <0x0 0x04011000 0x0 0x1000>;/* nand0 */
|
|
pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&nand0_pins_a &nand0_pins_b>;
|
|
pinctrl-1 = <&nand0_pins_c>;
|
|
nand0_regulator1 = "vcc-nand";
|
|
nand0_regulator2 = "none";
|
|
nand0_cache_level = <0x55aaaa55>;
|
|
nand0_flush_cache_num = <0x55aaaa55>;
|
|
nand0_capacity_level = <0x55aaaa55>;
|
|
nand0_id_number_ctl = <0x55aaaa55>;
|
|
nand0_print_level = <0x55aaaa55>;
|
|
nand0_p0 = <0x55aaaa55>;
|
|
nand0_p1 = <0x55aaaa55>;
|
|
nand0_p2 = <0x55aaaa55>;
|
|
nand0_p3 = <0x55aaaa55>;
|
|
chip_code = "sun50iw10";
|
|
status = "disabled";
|
|
};
|
|
|
|
|
|
&aliases {
|
|
nand0 = &nand0;
|
|
twi6 = &twi6;
|
|
};
|