您尚未登录。

楼主 # 2021-09-02 15:19:02

X3
会员
注册时间: 2020-04-08
已发帖子: 33
积分: 28

F133 跑 D1 的Tina Linux挂了,这是什么情况?

[98]HELLO! BOOT0 is starting!
[101]BOOT0 commit : 27369ab
[104]set pll start
[106]periph0 has been enabled
[109]set pll end
[110][pmu]: bus read error
[113]board init ok
[114]ZQ value = 0x32***********
[117]get_pmu_exist() = -1
[120]ddr_efuse_type: 0x0
[123][AUTO DEBUG] single rank and full DQ!
[127]ddr_efuse_type: 0x0
[130][AUTO DEBUG] rank 0 row = 13
[133][AUTO DEBUG] rank 0 bank = 4
[136][AUTO DEBUG] rank 0 page size = 2 KB
[140]DRAM BOOT DRIVE INFO: V0.24
[143]DRAM CLK = 528 MHz
[145]DRAM Type = 2 (2:DDR2,3:DDR3)
[148]DRAMC read ODT  off.
[151]DRAM ODT off.
[153]ddr_efuse_type: 0x0
[155]DRAM SIZE =64 M
[159]DRAM simple test OK.
[161]dram size =64
[163]card no is 0
[165]sdcard 0 line count 4
[167][mmc]: mmc driver ver 2021-04-2 16:45
[177][mmc]: Wrong media type 0x0
[180][mmc]: ***Try SD card 0***
[192][mmc]: HSSDR52/SDR25 4 bit
[195][mmc]: 50000000 Hz
[197][mmc]: 1876 MB
[199][mmc]: ***SD/MMC 0 init OK!!!***
[257]Loading boot-pkg Succeed(index=0).
[261]Entry_name        = opensbi
[264]Entry_name        = u-boot
[268]Entry_name        = dtb
[270]mmc not para
[272]Jump to second Boot.

OpenSBI v0.6
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,▒

U-Boot 2018.05-g0a88ac9-dirty (Aug 30 2021 - 18:24:19 +0800) Allwinner Technology

[00.355]DRAM:  64 MiB
[00.357]Relocation Offset is: 01ef0000
[00.362]secure enable bit: 0
[00.364]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
[00.371]flash init start
[00.373]workmode = 0,storage type = 1
[00.376][mmc]: mmc driver ver uboot2018:2021-04-16 14:23:00-1
[00.382][mmc]: get sdc_type fail and use default host:tm1.
[00.388][mmc]: can't find node "mmc0",will add new node
[00.393][mmc]: fdt err returned <no error>
[00.397][mmc]: Using default timing para
[00.400][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.421][mmc]: card_caps:0x3000000a
[00.424][mmc]: host_caps:0x3000003f
[00.429]sunxi flash init ok
[00.431]line:714 init_clocks
__clk_init: clk pll_periph0x2 already initialized
register fix_factor clk error
[00.441]drv_disp_init
request pwm success, pwm2:pwm2:0x2000c00.
[00.458]drv_disp_init finish
[00.461]boot_gui_init:start
[00.463]set disp.dev2_output_type fail. using defval=0
[00.655]boot_gui_init:finish
sunxi_partition_get_partno_byname: try part 1, ret = 0
sunxi_partition_get_partno_byname: try part 2, ret = 0
sunxi_partition_get_partno_byname: try part 3, ret = 0
sunxi_partition_get_partno_byname: try part 4, ret = 0
sunxi_partition_get_partno_byname: try part 5, ret = 0
sunxi_partition_get_partno_byname: try part 6, ret = 0
sunxi_partition_get_partno_byname: try part 7, ret = 0
sunxi_partition_get_partno_byname: try part 8, ret = 0
sunxi_partition_get_partno_byname: try part 9, ret = -1
partno erro : can't find partition bootloader
sunxi_partition_get_partno_byname: try part 1, ret = 0
54 bytes read in 2 ms [01.067]LCD open finish
(26.4 KiB/s)
[01.070]bmp_name=bootlogo.bmp size 307254
307254 bytes read in 19 ms (15.4 MiB/s)
[01.112]Loading Environment from SUNXI_FLASH... OK
[01.136]out of usb burn from boot: not need burn key
root_partition is rootfs
set root to /dev/mmcblk0p5
[01.146]update part info
[01.149]update bootcmd
[01.153]change working_fdt 0x42aafda8 to 0x42a8fda8
[01.174]update dts
Hit any key to stop autoboot:  0
Android's image name: d1-nezha
No reserved memory region found in source FDT
[01.678]
Starting kernel ...

[01.680][mmc]: MMC Device 2 not found
[01.684][mmc]: mmc 2 not find, so not exit
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (cube@ubuntu) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #40 PREEMPT Sat Aug 28 01:37:30 UTC 2021
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15655
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dsp0@mmcblk0p6:recovery@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun20iw1p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05-g0a88ac9-dirty(08/30/2021-18:24:19) mbr_off
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 42216K/63488K available (6067K kernel code, 663K rwdata, 2093K rodata, 192K init, 254K bss, 13080K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000029] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000371] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001010] Console: colour dummy device 80x25
[    0.001056] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001075] pid_max: default: 32768 minimum: 301
[    0.001291] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001312] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003350] ASID allocator initialised with 65536 entries
[    0.003556] rcu: Hierarchical SRCU implementation.
[    0.004298] devtmpfs: initialized
[    0.022812] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.023781] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023817] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.024389] pinctrl core: initialized pinctrl subsystem
[    0.025926] NET: Registered protocol family 16
[    0.027969] DMA: preallocated 256 KiB pool for atomic allocations
[    0.028729] cpuidle: using governor menu
[    0.075867] rtc_ccu: sunxi ccu init OK
[    0.083712] clock: sunxi ccu init OK
[    0.084890] clock: sunxi ccu init OK
[    0.125048] iommu: Default domain type: Translated
[    0.125252] sunxi iommu: irq = 4
[    0.126569] SCSI subsystem initialized
[    0.126961] usbcore: registered new interface driver usbfs
[    0.127055] usbcore: registered new interface driver hub
[    0.127198] usbcore: registered new device driver usb
[    0.127417] mc: Linux media interface: v0.10
[    0.127489] videodev: Linux video capture interface: v2.00
[    0.128800] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.129560] Advanced Linux Sound Architecture Driver Initialized.
[    0.130259] Bluetooth: Core ver 2.22
[    0.130360] NET: Registered protocol family 31
[    0.130373] Bluetooth: HCI device and connection manager initialized
[    0.130400] Bluetooth: HCI socket layer initialized
[    0.130418] Bluetooth: L2CAP socket layer initialized
[    0.130461] Bluetooth: SCO socket layer initialized
[    0.130942] pwm module init!
[    0.132670] g2d 5410000.g2d: Adding to iommu group 0
[    0.133234] G2D: rcq version initialized.major:250
[    0.134042] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.135604] clocksource: Switched to clocksource riscv_clocksource
[    0.149142] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.167834] thermal_sys: Registered thermal governor 'step_wise'
[    0.167842] thermal_sys: Registered thermal governor 'user_space'
[    0.168448] NET: Registered protocol family 2
[    0.169367] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.169418] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.169442] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.169458] TCP: Hash tables configured (established 512 bind 512)
[    0.169643] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.169690] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.169978] NET: Registered protocol family 1
[    0.172838] Initialise system trusted keyrings
[    0.173153] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.181146] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.201370] Key type asymmetric registered
[    0.201389] Asymmetric key parser 'x509' registered
[    0.201417] io scheduler mq-deadline registered
[    0.201426] io scheduler kyber registered
[    0.201449] atomic64_test: passed
[    0.202868] [DISP]disp_module_init
[    0.203493] disp 5000000.disp: Adding to iommu group 0
[    0.204178] [DISP] disp_init,line:2385:
[    0.204186] smooth display screen:0 type:1 mode:4
[    0.244375] display_fb_request,fb_id:0
[    0.260591] disp_al_manager_apply ouput_type:1
[    0.260777] [DISP] lcd_clk_config,line:731:
[    0.260792] disp 0, clk: pll(816000000),clk(816000000),dclk(34000000) dsi_rate(34000000)
[    0.260792]      clk real:pll(816000000),clk(816000000),dclk(204000000) dsi_rate(150000000)
[    0.261216] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.262259] [DISP]disp_module_init finish
[    0.263326] sunxi_sid_init()506 - insmod ok
[    0.263955] pwm-regulator: supplied by regulator-dummy
[    0.272677] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.273174] uart uart0: get regulator failed
[    0.273206] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.273564] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.273596] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    1.037526] printk: console [ttyS0] enabled
[    1.043195] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    1.054801] uart uart1: get regulator failed
[    1.059644] uart uart1: uart1 supply uart not found, using dummy regulator
[    1.067795] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    1.077950] misc dump reg init
[    1.082320] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    1.089648] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    1.097268] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    1.104584] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    1.112011] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    1.118594] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    1.125514] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    1.133301] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
[    1.141181] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    1.149387] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    1.157122] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    1.163850] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    1.171476] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    1.179918] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
[    1.187652] [ADDR_MGT] addr_mgt_probe: success.
[    1.194205] libphy: Fixed MDIO Bus: probed
[    1.198939] CAN device driver interface
[    1.204423] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator

离线

#1 2021-09-02 15:43:52

哇酷小二
管理员
注册时间: 2020-04-22
已发帖子: 2,561
积分: 1902

Re: F133 跑 D1 的Tina Linux挂了,这是什么情况?

[转载 aw-ol.com]  【极简操作】使用builroot 2021一键编译生成D1 nezha 系统镜像!
https://whycan.com/t_6753.html#p66259


[    0.975011] loop: module loaded
[    0.979567] libphy: Fixed MDIO Bus: probed
[    0.984173] CAN device driver interface
[    0.989450] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.000746] sunxi gmac driver's version: 1.0.0
[    1.005871] gmac-power0: NULL
[    1.009210] gmac-power1: NULL
[    1.012514] gmac-power2: NULL
[    1.016764] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.024072] sunxi-ehci: EHCI SUNXI driver

感觉是 F133 板子没有 mac 芯片导致,你到 dts 里面屏蔽试一试呗。

离线

楼主 #2 2021-09-02 16:03:11

X3
会员
注册时间: 2020-04-08
已发帖子: 33
积分: 28

Re: F133 跑 D1 的Tina Linux挂了,这是什么情况?

感谢楼上的朋友,board.dts 屏蔽了 gmac,然后这样了:

[85]HELLO! BOOT0 is starting!
[88]BOOT0 commit : 27369ab
[91]set pll start
[93]periph0 has been enabled
[95]set pll end
[97][pmu]: bus read error
[99]board init ok
[101]ZQ value = 0x32***********
[104]get_pmu_exist() = -1
[107]ddr_efuse_type: 0x0
[109][AUTO DEBUG] single rank and full DQ!
[113]ddr_efuse_type: 0x0
[116][AUTO DEBUG] rank 0 row = 13
[119][AUTO DEBUG] rank 0 bank = 4
[123][AUTO DEBUG] rank 0 page size = 2 KB
[126]DRAM BOOT DRIVE INFO: V0.24
[129]DRAM CLK = 528 MHz
[132]DRAM Type = 2 (2:DDR2,3:DDR3)
[135]DRAMC read ODT  off.
[137]DRAM ODT off.
[139]ddr_efuse_type: 0x0
[142]DRAM SIZE =64 M
[146]DRAM simple test OK.
[148]dram size =64
[150]card no is 0
[152]sdcard 0 line count 4
[154][mmc]: mmc driver ver 2021-04-2 16:45
[163][mmc]: Wrong media type 0x0
[166][mmc]: ***Try SD card 0***
[179][mmc]: HSSDR52/SDR25 4 bit
[182][mmc]: 50000000 Hz
[184][mmc]: 1876 MB
[186][mmc]: ***SD/MMC 0 init OK!!!***
[243]Loading boot-pkg Succeed(index=0).
[247]Entry_name        = opensbi
[250]Entry_name        = u-boot
[254]Entry_name        = dtb
[256]mmc not para
[258]Jump to second Boot.

OpenSBI v0.6
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,▒

U-Boot 2018.05-g0a88ac9-dirty (Sep 02 2021 - 15:47:05 +0800) Allwinner Technology

[00.341]DRAM:  64 MiB
[00.343]Relocation Offset is: 01ef0000
[00.348]secure enable bit: 0
[00.350]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
[00.357]flash init start
[00.359]workmode = 0,storage type = 1
[00.362][mmc]: mmc driver ver uboot2018:2021-04-16 14:23:00-1
[00.368][mmc]: get sdc_type fail and use default host:tm1.
[00.374][mmc]: can't find node "mmc0",will add new node
[00.379][mmc]: fdt err returned <no error>
[00.383][mmc]: Using default timing para
[00.386][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.407][mmc]: card_caps:0x3000000a
[00.410][mmc]: host_caps:0x3000003f
[00.415]sunxi flash init ok
[00.417]line:714 init_clocks
__clk_init: clk pll_periph0x2 already initialized
register fix_factor clk error
[00.427]drv_disp_init
request pwm success, pwm2:pwm2:0x2000c00.
[00.444]drv_disp_init finish
[00.447]boot_gui_init:start
[00.450]set disp.dev2_output_type fail. using defval=0
[00.641]boot_gui_init:finish
sunxi_partition_get_partno_byname: try part 1, ret = 0
sunxi_partition_get_partno_byname: try part 2, ret = 0
sunxi_partition_get_partno_byname: try part 3, ret = 0
sunxi_partition_get_partno_byname: try part 4, ret = 0
sunxi_partition_get_partno_byname: try part 5, ret = 0
sunxi_partition_get_partno_byname: try part 6, ret = 0
sunxi_partition_get_partno_byname: try part 7, ret = 0
sunxi_partition_get_partno_byname: try part 8, ret = 0
sunxi_partition_get_partno_byname: try part 9, ret = -1
partno erro : can't find partition bootloader
sunxi_partition_get_partno_byname: try part 1, ret = 0
54 bytes read [01.053]LCD open finish
in 3 ms (17.6 KiB/s)
[01.057]bmp_name=bootlogo.bmp size 307254
307254 bytes read in 20 ms (14.7 MiB/s)
[01.100]Loading Environment from SUNXI_FLASH... OK
[01.123]out of usb burn from boot: not need burn key
root_partition is rootfs
set root to /dev/mmcblk0p5
[01.133]update part info
[01.136]update bootcmd
[01.140]change working_fdt 0x42aafda8 to 0x42a8fda8
[01.161]update dts
Hit any key to stop autoboot:  0
Android's image name: d1-nezha
No reserved memory region found in source FDT
[01.647]
Starting kernel ...

[01.649][mmc]: MMC Device 2 not found
[01.653][mmc]: mmc 2 not find, so not exit
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (cube@ubuntu) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #41 PREEMPT Thu Sep 2 07:48:48 UTC 2021
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15655
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dsp0@mmcblk0p6:recovery@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun20iw1p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05-g0a88ac9-dirty(09/02/2021-15:47:05) mbr_off
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 42216K/63488K available (6067K kernel code, 663K rwdata, 2093K rodata, 192K init, 254K bss, 13080K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000029] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000374] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001013] Console: colour dummy device 80x25
[    0.001059] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001079] pid_max: default: 32768 minimum: 301
[    0.001291] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001311] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003374] ASID allocator initialised with 65536 entries
[    0.003579] rcu: Hierarchical SRCU implementation.
[    0.004322] devtmpfs: initialized
[    0.022703] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.023675] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023711] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.024282] pinctrl core: initialized pinctrl subsystem
[    0.025827] NET: Registered protocol family 16
[    0.027875] DMA: preallocated 256 KiB pool for atomic allocations
[    0.028642] cpuidle: using governor menu
[    0.074668] rtc_ccu: sunxi ccu init OK
[    0.082594] clock: sunxi ccu init OK
[    0.083772] clock: sunxi ccu init OK
[    0.125148] iommu: Default domain type: Translated
[    0.125349] sunxi iommu: irq = 4
[    0.126654] SCSI subsystem initialized
[    0.127057] usbcore: registered new interface driver usbfs
[    0.127154] usbcore: registered new interface driver hub
[    0.127277] usbcore: registered new device driver usb
[    0.127483] mc: Linux media interface: v0.10
[    0.127587] videodev: Linux video capture interface: v2.00
[    0.128887] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.129658] Advanced Linux Sound Architecture Driver Initialized.
[    0.130319] Bluetooth: Core ver 2.22
[    0.130415] NET: Registered protocol family 31
[    0.130428] Bluetooth: HCI device and connection manager initialized
[    0.130455] Bluetooth: HCI socket layer initialized
[    0.130609] Bluetooth: L2CAP socket layer initialized
[    0.130665] Bluetooth: SCO socket layer initialized
[    0.131002] pwm module init!
[    0.132757] g2d 5410000.g2d: Adding to iommu group 0
[    0.133340] G2D: rcq version initialized.major:250
[    0.134145] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.135721] clocksource: Switched to clocksource riscv_clocksource
[    0.149343] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.167933] thermal_sys: Registered thermal governor 'step_wise'
[    0.167940] thermal_sys: Registered thermal governor 'user_space'
[    0.168548] NET: Registered protocol family 2
[    0.169461] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.169513] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.169535] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.169552] TCP: Hash tables configured (established 512 bind 512)
[    0.169737] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.169785] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.170056] NET: Registered protocol family 1
[    0.172913] Initialise system trusted keyrings
[    0.173240] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.181176] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.202194] Key type asymmetric registered
[    0.202212] Asymmetric key parser 'x509' registered
[    0.202240] io scheduler mq-deadline registered
[    0.202250] io scheduler kyber registered
[    0.202273] atomic64_test: passed
[    0.203688] [DISP]disp_module_init
[    0.204346] disp 5000000.disp: Adding to iommu group 0
[    0.205006] [DISP] disp_init,line:2385:
[    0.205012] smooth display screen:0 type:1 mode:4
[    0.245011] display_fb_request,fb_id:0
[    0.261161] disp_al_manager_apply ouput_type:1
[    0.261348] [DISP] lcd_clk_config,line:731:
[    0.261362] disp 0, clk: pll(816000000),clk(816000000),dclk(34000000) dsi_rate(34000000)
[    0.261362]      clk real:pll(816000000),clk(816000000),dclk(204000000) dsi_rate(150000000)
[    0.261783] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.262849] [DISP]disp_module_init finish
[    0.263879] sunxi_sid_init()506 - insmod ok
[    0.264539] pwm-regulator: supplied by regulator-dummy
[    0.273185] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.273685] uart uart0: get regulator failed
[    0.273718] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.274118] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.274150] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    1.037858] printk: console [ttyS0] enabled
[    1.043524] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    1.055126] uart uart1: get regulator failed
[    1.059974] uart uart1: uart1 supply uart not found, using dummy regulator
[    1.068114] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    1.078191] misc dump reg init
[    1.082606] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    1.089867] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    1.097547] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    1.104840] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    1.112307] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    1.118855] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    1.125848] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    1.133584] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
[    1.141469] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    1.149674] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    1.157397] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    1.164163] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    1.171729] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    1.180198] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
[    1.187920] [ADDR_MGT] addr_mgt_probe: success.
[    1.194491] libphy: Fixed MDIO Bus: probed
[    1.199252] CAN device driver interface
[    1.203920] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.211260] sunxi-ehci: EHCI SUNXI driver
[    1.216496] get ehci1-controller wakeup-source is fail.
[    1.222445] sunxi ehci1-controller don't init wakeup source
[    1.228787] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe0008fbf20, 0x:ffffffd004078000, irq_no:31
[    1.242385] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator
[    1.255043] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    1.262332] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    1.272306] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
[    1.305772] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    1.314699] hub 1-0:1.0: USB hub found
[    1.319081] hub 1-0:1.0: 1 port detected
[    1.324437] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.331541] sunxi-ohci: OHCI SUNXI driver
[    1.336717] get ohci1-controller wakeup-source is fail.
[    1.342674] sunxi ohci1-controller don't init wakeup source
[    1.349011] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe0008fca60
[    1.359501] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator
[    1.372104] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    1.379391] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    1.389296] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
[    1.470823] hub 2-0:1.0: USB hub found
[    1.475075] hub 2-0:1.0: 1 port detected
[    1.480869] usbcore: registered new interface driver uas
[    1.487088] usbcore: registered new interface driver usb-storage
[    1.493915] usbcore: registered new interface driver ums-alauda
[    1.500728] usbcore: registered new interface driver ums-cypress
[    1.507640] usbcore: registered new interface driver ums-datafab
[    1.514438] usbcore: registered new interface driver ums_eneub6250
[    1.521540] usbcore: registered new interface driver ums-freecom
[    1.528384] usbcore: registered new interface driver ums-isd200
[    1.535105] usbcore: registered new interface driver ums-jumpshot
[    1.542041] usbcore: registered new interface driver ums-karma
[    1.548765] usbcore: registered new interface driver ums-onetouch
[    1.555661] usbcore: registered new interface driver ums-realtek
[    1.562572] usbcore: registered new interface driver ums-sddr09
[    1.569318] usbcore: registered new interface driver ums-sddr55
[    1.576126] usbcore: registered new interface driver ums-usbat
[    1.583938] sunxi_gpadc_init,1968, success
[    1.589596] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.602045] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.607891] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:03 UTC (3)
[    1.616859] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.622743] i2c /dev entries driver
[    1.626886] IR NEC protocol handler initialized
[    1.632709] sunxi cedar version 1.1
[    1.637085] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.643333] VE: install start!!!
[    1.643333]
[    1.648942] VE: cedar-ve the get irq is 6
[    1.648942]
[    1.655384] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    1.655384]
[    1.667042] VE: install end!!!
[    1.667042]
[    1.673651] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.682944] Bluetooth: HCI UART driver ver 2.3
[    1.687963] Bluetooth: HCI UART protocol H4 registered
[    1.693725] Bluetooth: HCI UART protocol BCSP registered
[    1.699685] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.707105] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
[    1.713490] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
[    1.720164] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
[    1.720164]
[    1.728847] [XR_BT_LPM] bluesleep_probe: uart_index(1)
[    1.737987] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.748073] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.754249] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.760668] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.767108] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.773540] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.780079] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.786648] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.793155] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.800268] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.805808] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.812527] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.823746] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.843915] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.868460] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.874140] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    1.886077] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.896158] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    1.902371] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    1.908851] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    1.915343] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    1.921791] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    1.928375] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    1.934883] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    1.941493] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    1.948071] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    1.957703] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.968927] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    1.989096] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.013371] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    2.021064] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    2.028396] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    2.039386] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    2.046333] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.058239] sunxi_led_probe()1715 - start
[    2.062790] sunxi_get_str_of_property()1560 - failed to get the string of propname led_regulator!
[    2.072890] sunxi_register_led_classdev()1448 - led_classdev start
[    2.081591] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.096819] sunxi_led_probe()1820 - finish
[    2.102212] usbcore: registered new interface driver usbhid
[    2.108617] usbhid: USB HID core driver
[    2.113760] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.121373] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.128694] usbcore: registered new interface driver snd-usb-audio
[    2.135618] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.143260] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.150080] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    2.163749] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.176561] sunxi-daudio 2034000.daudio: regulator missing or invalid
[    2.185013] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    2.185013]
[    2.202212] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    2.213648] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    2.223441] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    2.233333] [SNDCODEC][sunxi_card_init][583]:card init finished
[    2.242759] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    2.254213] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input1
[    2.266522] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    2.274901] sunxi-rpaf-dsp soc@3000000:rpaf-dsp@203034c: register device finished!
[    2.283411] sunxi-rpaf-dsp soc@3000000:rpaf-dsp@203034c: [rpaf_dsp0] probe finished!
[    2.292613] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    2.304277] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    2.316620] NET: Registered protocol family 10
[    2.323096] Segment Routing with IPv6
[    2.327583] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.335099] NET: Registered protocol family 17
[    2.340297] can: controller area network core (rev 20170425 abi 9)
[    2.347397] NET: Registered protocol family 29
[    2.352401] can: raw protocol (rev 20170425)
[    2.357216] can: broadcast manager protocol (rev 20170425 t)
[    2.363543] can: netlink gateway (rev 20190810) max_hops=1
[    2.370123] Bluetooth: RFCOMM TTY layer initialized
[    2.375585] Bluetooth: RFCOMM socket layer initialized
[    2.381519] Bluetooth: RFCOMM ver 1.11
[    2.386913] Loading compiled-in X.509 certificates
[    2.395163] HDMI 2.0 driver init start!
[    2.399574] boot_hdmi=false
[    2.402765] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    2.410033] HDMI2.0 module init end
[    2.438387] twi twi2: twi2 supply twi not found, using dummy regulator
[    2.454847] twi_stop()488 - [i2c2] i2c state(0x0) isn't idle(0xf8)
[    2.461748] sunxi_i2c_core_process()1632 - [i2c2] STOP failed!
[    2.468359] sunxi_i2c_do_xfer()1816 - [i2c2] incomplete xfer (status: 0xff, dev addr: 0x38)
[    2.477808] pcf857x: probe of 2-0038 failed with error -70
[    2.483983] sunxi_i2c_probe()2262 - [i2c2] probe success
[    2.494810] debugfs: Directory '2031000.dmic' with parent 'snddmic' already present!
[    2.505479] sunxi-audio-card 2031060.sounddmic: dmic-hifi <-> 2031000.dmic mapping ok
[    2.516251] debugfs: Directory '2034000.daudio' with parent 'sndhdmi' already present!
[    2.527376] sunxi-audio-card 20340a0.sounddaudio2: 20340a4.hdmiaudio <-> 2034000.daudio mapping ok
[    2.539020] get ehci0-controller wakeup-source is fail.
[    2.544972] sunxi ehci0-controller don't init wakeup source
[    2.551313] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe0008fbb60, 0x:ffffffd004b72000, irq_no:2e
[    2.564883] [sunxi-ehci0]: Not init ehci0
[    2.569954] get ohci0-controller wakeup-source is fail.
[    2.575993] sunxi ohci0-controller don't init wakeup source
[    2.582253] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe0008fc6a0
[    2.592737] [sunxi-ohci0]: Not init ohci0
[    2.599841] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.611098] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.618846] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.628550] clk: Not disabling unused clocks
[    2.633360] ALSA device list:
[    2.636834] cfg80211: failed to load regulatory.db
[    2.642278]   #0: audiocodec
[    2.645526]   #1: snddmic
[    2.648534]   #2: sndhdmi
[    2.651470] alloc_fd: slot 0 not NULL!
[    2.656222] VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
[    2.664900] Please append a correct "root=" boot option; here are the available partitions:
[    2.674362] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.683590] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #41
[    2.690088] Call Trace:
[    2.692829] [<ffffffe0000323ce>] walk_stackframe+0x0/0xa0
[    2.698850] [<ffffffe0000325b0>] show_stack+0x2a/0x34
[    2.704494] [<ffffffe00060231c>] dump_stack+0x20/0x28
[    2.710129] [<ffffffe000037376>] panic+0xee/0x2b6
[    2.715376] [<ffffffe000000eda>] mount_block_root+0x1ee/0x28a
[    2.721782] [<ffffffe000000ffc>] mount_root+0x86/0x90
[    2.727414] [<ffffffe000001116>] prepare_namespace+0x110/0x152
[    2.733916] [<ffffffe000000b78>] kernel_init_freeable+0x17e/0x19a
[    2.740713] [<ffffffe000615c2a>] kernel_init+0x12/0xee
[    2.746442] [<ffffffe000031018>] ret_from_exception+0x0/0xc
[    2.752658] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

离线

#3 2021-09-02 16:49:51

哇酷小二
管理员
注册时间: 2020-04-22
已发帖子: 2,561
积分: 1902

Re: F133 跑 D1 的Tina Linux挂了,这是什么情况?

[    1.805808] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail

是不是TF卡做根文件系统,这里的cd检测脚貌似出问题了。

离线

楼主 #4 2021-09-02 17:05:22

X3
会员
注册时间: 2020-04-08
已发帖子: 33
积分: 28

Re: F133 跑 D1 的Tina Linux挂了,这是什么情况?

屏蔽 /*cd-inverted;*/ 切换cd引脚逻辑

或者无需检测cd引脚:
        /*cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        /*non-removable;*/
        broken-cd;

&sdc0 {
        bus-width = <4>;
        cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        /*non-removable;*/
        /*broken-cd;*/
        /*cd-inverted;*/
        /*data3-detect;*/
        /*card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;*/
        cd-used-24M;
        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 = <&reg_dcdc1>;*/
        /*vqmmc33sw-supply = <&reg_dcdc1>;*/
        /*vdmmc33sw-supply = <&reg_dcdc1>;*/
        /*vqmmc18sw-supply = <&reg_eldo1>;*/
        /*vdmmc18sw-supply = <&reg_eldo1>;*/
        status = "okay";
};

这样,就能顺利启动了:

root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# cat /proc/interrupts
           CPU0
  1:          0  SiFive PLIC  77  sunxikbd
  4:          0  SiFive PLIC  80  2010000.iommu
  6:          0  SiFive PLIC  82  cedar_dev
  8:          0  SiFive PLIC 160  7090000.rtc
 18:        260  SiFive PLIC  18  uart0
 26:          0  SiFive PLIC 102  3003000.msgbox
 27:          2  SiFive PLIC  27  twi2
 29:          0  SiFive PLIC 105  5410000.g2d
 32:     101832  SiFive PLIC 108  dispaly
 36:          0  SiFive PLIC  36  ledcirq
 41:          1  SiFive PLIC  41  audio jack irq
 49:          0  SiFive PLIC  49  ehci_hcd:usb1
 50:          0  SiFive PLIC  50  ohci_hcd:usb2
 56:       2057  SiFive PLIC  56  mmc0
 57:         62  SiFive PLIC  57  mmc1
 64:          0  SiFive PLIC 140  3003000.msgbox
 66:        389  SiFive PLIC  66  3002000.dma-controller
 70:          0  SiFive PLIC 144  3003000.msgbox
 75:          0  SiFive PLIC  75  timer@2050000
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# cat /proc/meminfo
MemTotal:          50600 kB
MemFree:           10944 kB
MemAvailable:      25120 kB
Buffers:            5188 kB
Cached:             8908 kB
SwapCached:            0 kB
Active:            12464 kB
Inactive:           4476 kB
Active(anon):       2860 kB
Inactive(anon):       28 kB
Active(file):       9604 kB
Inactive(file):     4448 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          2892 kB
Mapped:             3396 kB
Shmem:                44 kB
KReclaimable:       3708 kB
Slab:              14092 kB
SReclaimable:       3708 kB
SUnreclaim:        10384 kB
KernelStack:         944 kB
PageTables:          304 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       25300 kB
Committed_AS:      56192 kB
VmallocTotal:   67108863 kB
VmallocUsed:        2340 kB
VmallocChunk:          0 kB
Percpu:               32 kB
CmaTotal:           8192 kB
CmaFree:            5388 kB
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# top
Mem: 39616K used, 10984K free, 44K shrd, 5188K buff, 8912K cached
CPU:   0% usr   9% sys   0% nic  90% idle   0% io   0% irq   0% sirq
Load average: 1.09 1.03 0.85 1/59 758
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
  758   120 root     R     2620   5%   5% top
  663     1 root     S     1496   3%   5% /sbin/swupdate-progress -w
  270     1 root     S     217m 440%   0% /bin/adbd -D
  704     1 root     S    85548 169%   0% tt
  644     1 root     S     9820  19%   0% /usr/sbin/MtpDaemon -D
  145   140 root     S     5260  10%   0% /usr/bin/lvgl_demo
  695     1 root     S<    2708   5%   0% /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd
  120     1 root     S     2684   5%   0% /bin/ash --login
  140     1 root     S     2620   5%   0% {S99lvgldemo} /bin/sh /etc/rc.common /
  261     1 root     S     2096   4%   0% /usr/sbin/dbus-daemon --system
    1     0 root     S     2092   4%   0% /sbin/procd
  622     1 root     S     1760   3%   0% /sbin/netifd
  108     1 root     S     1660   3%   0% /sbin/ubusd
  121     1 root     S     1624   3%   0% /sbin/askfirst /bin/ash --login
   10     2 root     IW       0   0%   0% [rcu_preempt]
   63     2 root     SW       0   0%   0% [cec thread]
   13     2 root     IW       0   0%   0% [kworker/0:1-eve]
   62     2 root     SW       0   0%   0% [hdmi proc]
  750     2 root     IW       0   0%   0% [kworker/0:2-eve]
  58     2 root     IW<      0   0%   0% [kworker/0:1H-kb]

离线

楼主 #5 2021-09-02 18:43:13

X3
会员
注册时间: 2020-04-08
已发帖子: 33
积分: 28

Re: F133 跑 D1 的Tina Linux挂了,这是什么情况?

最终修改两个文件即可:


device/config/chips/d1/configs/nezha/sys_config.fex

;sunxi platform application
;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
;---------------------------------------------------------------------------------------------------------

;---------------------------------------------------------------------------------
; version:版本1.00
; machine:板级文件名
;---------------------------------------------------------------------------------
[product]
version = "100"
machine = "nezha"


;----------------------------------------------------------------------------------
;debug_mode     = 0-close printf, > 0-open printf
;----------------------------------------------------------------------------------
[platform]
debug_mode  = 8

;----------------------------------------------------------------------------------
;storage_type   = boot medium, 0-nand, 1-sd, 2-emmc, 3-nor, 4-emmc3, 5-spinand -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
storage_type    = 5


;----------------------------------------------------------------------------------
;card_ctrl              -卡量产相关的控制器选择0      |
;card_high_speed        -速度模式 0为低速,1为高速|
;card_line              -4:4线卡,8:8线卡|
;sdc_d1                 -sdc卡数据1线信号的GPIO配置     |
;sdc_d0                 -sdc卡数据0线信号的GPIO配置  |
;sdc_clk                -sdc卡时钟信号的GPIO配置   |
;sdc_cmd                -sdc命令信号的GPIO配置|
;sdc_d3                 -sdc卡数据3线信号的GPIO配置    |
;sdc_d2                 -sdc卡数据2线信号的GPIO配置  |
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl       = 0
card_high_speed = 1
card_line       = 4
sdc_d1          = port:PF0<2><1><2><default>
sdc_d0          = port:PF1<2><1><2><default>
sdc_clk         = port:PF2<2><1><2><default>
sdc_cmd         = port:PF3<2><1><2><default>
sdc_d3          = port:PF4<2><1><2><default>
sdc_d2          = port:PF5<2><1><2><default>
bus-width = 4
cap-sd-highspeed =
cap-wait-while-busy =
no-sdio =
no-mmc =
sunxi-power-save-mode =


;----------------------------------------------------------------------------------
;card_ctrl              -卡启动控制器选择2
;card_high_speed        -速度模式 0为低速,1为高速
;card_line              -4:4线卡,8:8线卡
;sdc_ds                 -ds信号的GPIO配置
;sdc_d1                 -sdc卡数据1线信号的GPIO配置
;sdc_d0                 -sdc卡数据0线信号的GPIO配置
;sdc_clk                -sdc卡时钟信号的GPIO配置
;sdc_cmd                -sdc命令信号的GPIO配置
;sdc_d3                 -sdc卡数据3线信号的GPIO配置
;sdc_d2                 -sdc卡数据2线信号的GPIO配置
;sdc_d4                 -sdc卡数据4线信号的GPIO配置
;sdc_d5                 -sdc卡数据5线信号的GPIO配置
;sdc_d6                 -sdc卡数据6线信号的GPIO配置
;sdc_d7                 -sdc卡数据7线信号的GPIO配置
;sdc_emmc_rst           -emmc_rst信号的GPIO配置
;sdc_ex_dly_used        -ex_dly_used信号
;sdc_io_1v8             -sdc_io_1v8高速emmc模式配置
;----------------------------------------------------------------------------------
[card2_boot_para]
card_ctrl       = 2
card_high_speed = 1
card_line       = 8
sdc_clk         = port:PF25<2><1><3><default>
sdc_cmd         = port:PF24<2><1><3><default>
sdc_d0          = port:PF16<2><1><3><default>
sdc_d1          = port:PF17<2><1><3><default>
sdc_d2          = port:PF18<2><1><3><default>
sdc_d3          = port:PF19<2><1><3><default>
sdc_d4          = port:PF20<2><1><3><default>
sdc_d5          = port:PF21<2><1><3><default>
sdc_d6          = port:PF22<2><1><3><default>
sdc_d7          = port:PF23<2><1><3><default>
sdc_emmc_rst    = port:PF31<2><1><3><default>
sdc_ds          = port:PF27<2><1><3><default>



;----------------------------------------------------------------------------------
;jtag_enable    |JTAG使能   |
;jtag_ms        |测试模式选择输入(TMS) 的GPIO配置|
;jtag_ck        |测试时钟输入(CLK) 的GPIO配置    |
;jtag_do        |测试数据输出(TDO) 的GPIO配置     |
;jtag_di        |测试数据输出(TDI) 的GPIO配置     |
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable     = 0
jtag_ms         = port:PF0<4><default><default><default>
jtag_ck         = port:PF5<4><default><default><default>
jtag_do         = port:PF3<4><default><default><default>
jtag_di         = port:PF1<4><default><default><default>

;*****************************************************************************
;
;dram select configuration
;
;select_mode    :       dram模式选择,   0:不进行自动识别
;                                       1:gpio识别模式(dram_para, dram_para1-15, 共16组有效)
;                                       2:gpadc识别模式(dram_para, dram_para1-7, 共8组有效)
;                                       3:1个IO+gpadc识别模式(dram_para, dram_para1-15, 共16组有效)。其中IO配置优先级按select_gpio0>select_gpio1>select_gpio2>select_gpio3
;gpadc_channel  :       选择gpadc通道   有效值(0-3)
;select_gpio1-4 :       选择gpio pin
;*****************************************************************************


[dram_select_para]
select_mode     = 0
gpadc_channel   = 1
select_gpio0    = port:PB7<0><1><default><default>
select_gpio1    = port:PB4<0><1><default><default>
select_gpio2    = port:PH1<0><1><default><default>
select_gpio3    = port:PH0<0><1><default><default>


;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]
dram_clk            = 528
dram_type           = 2
dram_zq             = 0x07b7bf9
dram_odt_en         = 0x00
dram_para1          = 0x000000d2
dram_para2          = 0x00000000
dram_mr0            = 0x00000E73
dram_mr1            = 0x02
dram_mr2            = 0x0
dram_mr3            = 0x0
dram_tpr0           = 0x00471992
dram_tpr1           = 0x0131A10C
dram_tpr2           = 0x00057041
dram_tpr3           = 0xB4787896
dram_tpr4           = 0x0
dram_tpr5           = 0x48484848
dram_tpr6           = 0x48
dram_tpr7           = 0x1621121e
dram_tpr8           = 0x0
dram_tpr9           = 0x0
dram_tpr10          = 0x00000000
dram_tpr11          = 0x00030010
dram_tpr12          = 0x00000035
dram_tpr13          = 0x34000000

[dram_para1]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para2]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para3]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para4]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para5]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para6]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para7]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para8]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para9]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para10]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para11]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para12]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para13]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para14]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22

[dram_para15]

dram_clk       = 672
dram_type      = 7
dram_dx_odt    = 0x06060606
dram_dx_dri    = 0x0c0c0c0c
dram_ca_dri    = 0x1919
dram_para0     = 0x16171411
dram_para1     = 0x30eb
dram_para2     = 0x0000
dram_mr0       = 0x0
dram_mr1       = 0xc3
dram_mr2       = 0x6
dram_mr3       = 0x2
dram_mr4       = 0x0
dram_mr5       = 0x0
dram_mr6       = 0x0
dram_mr11      = 0x0
dram_mr12      = 0x0
dram_mr13      = 0x0
dram_mr14      = 0x0
dram_mr16      = 0x0
dram_mr17      = 0x0
dram_mr22      = 0x0
dram_tpr0      = 0x0
dram_tpr1      = 0x0
dram_tpr2      = 0x0
dram_tpr3      = 0x0
dram_tpr6      = 0x2fb48080
dram_tpr10     = 0x002f876b
dram_tpr11     = 0x10120c05
dram_tpr12     = 0x12121111
dram_tpr13     = 0x61
dram_tpr14     = 0x211e1e22


;----------------------------------------------------------------------------------
;twi configuration
;twi_used       0:关闭, 1:打开
;twi_port       0:twi0,  1:twi1, 2:twi2, 3:twi3, 4:twi4, 5:twi5, 6:r_twi0, 7:r_twi1
;twi_scl        boot0 scl的GPIO配置
;twi_sda        boot0 sda的GPIO配置
;----------------------------------------------------------------------------------
[twi_para]
twi_used = 0
twi_port = 2
twi_scl  = port:PG14<3><1><default><default>
twi_sda  = port:PG15<3><1><default><default>

;----------------------------------------------------------------------------------
;uart configuration
;uart_debug_port  |Boot串口控制器编号        |
;uart_debug_tx       |Boot串口发送的GPIO配置|
;uart_debug_rx  |Boot串口接收的GPIO配置     |
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PE02<6><1><default><default>
uart_debug_rx   = port:PE03<6><1><default><default>


;----------------------------------------------------------------------------------
;dram_region_mbytes :设置drm大小以bytes为单位
;----------------------------------------------------------------------------------
[secure]
dram_region_mbytes       = 80
drm_region_mbytes        = 0
drm_region_start_mbytes  = 0

device/config/chips/d1/configs/nezha/board.dts

/*
 * Allwinner Technology CO., Ltd. sun20iw1p1 fpga.
 *
 * fpga support.
 */

/dts-v1/;

#include "sun20iw1p1.dtsi"

/{
        compatible = "allwinner,d1", "arm,sun20iw1p1", "allwinner,sun20iw1p1";

        aliases {
                dsp0 = &dsp0;
                dsp0_gpio_int= &dsp0_gpio_int;
        };

        dsp0: dsp0 {
                compatible = "allwinner,sun20iw1-dsp";
                status = "okay";
        };

        dsp0_gpio_int: dsp0_gpio_int {
                compatible = "allwinner,sun20iw1-dsp-gpio-int";
                pin-group = "PB", "PC", "PD", "PE";
                status = "disabled";
        };

        reg_vdd_cpu: vdd-cpu {
                compatible = "sunxi-pwm-regulator";
                pwms = <&pwm 0 5000 0>;
                regulator-name = "vdd_cpu";
                regulator-min-microvolt = <810000>;
                regulator-max-microvolt = <1160000>;
                regulator-ramp-delay = <25>;
                regulator-always-on;
                regulator-boot-on;
                status = "okay";
        };

        reg_usb1_vbus: usb1-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb1-vbus";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
                regulator-enable-ramp-delay = <1000>;
                gpio = <&pio PD 19 GPIO_ACTIVE_HIGH>;
                enable-active-high;
        };
};

&CPU0 {
        cpu-supply = <&reg_vdd_cpu>;
};

&pio {
        sdc0_pins_a: sdc0@0 {
                allwinner,pins = "PF0", "PF1", "PF2",
                                 "PF3", "PF4", "PF5";
                allwinner,function = "sdc0";
                allwinner,muxsel = <2>;
                allwinner,drive = <3>;
                allwinner,pull = <1>;
                pins = "PF0", "PF1", "PF2",
                       "PF3", "PF4", "PF5";
                function = "sdc0";
                drive-strength = <30>;
                bias-pull-up;
                power-source = <3300>;
        };


        sdc0_pins_b: sdc0@1 {
                pins = "PF0", "PF1", "PF2",
                       "PF3", "PF4", "PF5";
                function = "sdc0";
                drive-strength = <30>;
                bias-pull-up;
                power-source = <1800>;
        };

        sdc0_pins_c: sdc0@2 {
                pins = "PF0", "PF1", "PF2",
                        "PF3", "PF4", "PF5";
                function = "gpio_in";
        };

        /* TODO: add jtag pin */
        sdc0_pins_d: sdc0@3 {
                pins = "PF2", "PF4";
                function = "uart0";
                drive-strength = <10>;
                bias-pull-up;
        };

        sdc0_pins_e: sdc0@4 {
                pins = "PF0", "PF1", "PF3",
                        "PF5";
                function = "jtag";
                drive-strength = <10>;
                bias-pull-up;
        };


        sdc1_pins_a: sdc1@0 {
                pins = "PG0", "PG1", "PG2",
                       "PG3", "PG4", "PG5";
                function = "sdc1";
                drive-strength = <30>;
                bias-pull-up;
        };

        sdc1_pins_b: sdc1@1 {
                pins = "PG0", "PG1", "PG2",
                       "PG3", "PG4", "PG5";
                        function = "gpio_in";
        };

        sdc2_pins_a: sdc2@0 {
                allwinner,pins = "PC2", "PC3", "PC4",
                                 "PC5", "PC6", "PC7";
                allwinner,function = "sdc2";
                allwinner,muxsel = <3>;
                allwinner,drive = <3>;
                allwinner,pull = <1>;
                pins = "PC2", "PC3", "PC4",
                        "PC5", "PC6", "PC7";
                function = "sdc2";
                drive-strength = <30>;
                bias-pull-up;
        };

        sdc2_pins_b: sdc2@1 {
                pins = "PC2", "PC3", "PC4",
                       "PC5", "PC6", "PC7";
                function = "gpio_in";
        };

        wlan_pins_a:wlan@0 {
                pins = "PG11";
                function = "clk_fanout1";
        };

        uart0_pins_a: uart0_pins@0 {  /* For nezha board */
                pins = "PB8", "PB9";
                function = "uart0";
                drive-strength = <10>;
                bias-pull-up;
        };

        uart0_pins_b: uart0_pins@1 {  /* For nezha board */
                pins = "PB8", "PB9";
                function = "gpio_in";
        };

        uart1_pins_a: uart1_pins@0 {  /* For EVB1 board */
                pins = "PG6", "PG7", "PG8", "PG9";
                function = "uart1";
                drive-strength = <10>;
                bias-pull-up;
        };

        uart1_pins_b: uart1_pins {  /* For EVB1 board */
                pins = "PG6", "PG7", "PG8", "PG9";
                function = "gpio_in";
        };

        uart2_pins_a: uart2_pins@0 {  /* For EVB1 board */
                pins = "PC0", "PC1";
                function = "uart2";
                drive-strength = <10>;
                bias-pull-up;
        };

        uart2_pins_b: uart2_pins@1 {  /* For EVB1 board */
                pins = "PC0", "PC1";
                function = "gpio_in";
        };

        uart3_pins_a: uart3_pins@0 {  /* For EVB1 board */
                pins = "PD10", "PD11";
                function = "uart3";
                muxsel = <5>;
                drive-strength = <10>;
                bias-pull-up;
        };

        twi0_pins_a: twi0@0 {
                pins = "PB10", "PB11";  /*sck sda*/
                function = "twi0";
                drive-strength = <10>;
        };

        twi0_pins_b: twi0@1 {
                pins = "PB10", "PB11";
                function = "gpio_in";
        };

        twi1_pins_a: twi1@0 {
                pins = "PB4", "PB5";
                function = "twi1";
                drive-strength = <10>;
        };

        twi1_pins_b: twi1@1 {
                pins = "PB4", "PB5";
                function = "gpio_in";
        };

        twi2_pins_a: twi2@0 {
                pins = "PB0", "PB1";
                function = "twi2";
                drive-strength = <10>;
        };

        twi2_pins_b: twi2@1 {
                pins = "PB0", "PB1";
                function = "gpio_in";
        };

        twi3_pins_a: twi3@0 {
                pins = "PB6", "PB7";
                function = "twi3";
                drive-strength = <10>;
        };

        twi3_pins_b: twi3@1 {
                pins = "PB6", "PB7";
                function = "gpio_in";
        };

        gmac_pins_a: gmac@0 {
                pins = "PE0", "PE1", "PE2", "PE3",
                       "PE4", "PE5", "PE6", "PE7",
                       "PE8", "PE9", "PE10", "PE11",
                       "PE12", "PE13", "PE14", "PE15";
                function = "gmac0";
                drive-strength = <10>;
        };

        gmac_pins_b: gmac@1 {
                pins = "PE0", "PE1", "PE2", "PE3",
                       "PE4", "PE5", "PE6", "PE7",
                       "PE8", "PE9", "PE10", "PE11",
                       "PE12", "PE13", "PE14", "PE15";
                function = "gpio_in";
        };

        dmic_pins_a: dmic@0 {
                /* DMIC_PIN: CLK, DATA0, DATA1, DATA2 */
                pins = "PE17", "PB11", "PB10", "PD17";
                function = "dmic";
                drive-strength = <20>;
                bias-disable;
        };

        dmic_pins_b: dmic@1 {
                pins = "PE17", "PB11", "PB10", "PD17";
                function = "io_disabled";
                drive-strength = <20>;
                bias-disable;
        };

        daudio0_pins_a: daudio0@0 {
                pins = "PE17", "PE16", "PE15", "PE14", "PE13";
                function = "i2s0";
                drive-strength = <20>;
                bias-disable;
        };

        daudio0_pins_b: daudio0_sleep@0 {
                pins = "PE17", "PE16", "PE15", "PE14", "PE13";
                function = "io_disabled";
                drive-strength = <20>;
                bias-disable;
        };

        daudio1_pins_a: daudio1@0 {
                pins = "PG11", "PG12", "PG13", "PG14", "PG15";
                function = "i2s1";
                drive-strength = <20>;
                bias-disable;
        };

        daudio1_pins_b: daudio1_sleep@0 {
                pins = "PG11", "PG12", "PG13", "PG14", "PG15";
                function = "io_disabled";
                drive-strength = <20>;
                bias-disable;
        };

        daudio2_pins_a: daudio2@0 {
                /* I2S_PIN: MCLK, BCLK, LRCK */
                pins = "PB7", "PB5", "PB6";
                function = "i2s2";
                drive-strength = <20>;
                bias-disable;
        };

        daudio2_pins_b: daudio2@1 {
                /* I2S_PIN: DOUT0 */
                pins = "PB4";
                function = "i2s2_dout";
                drive-strength = <20>;
                bias-disable;
        };

        daudio2_pins_c: daudio2@2 {
                /* I2S_PIN: DIN0 */
                pins = "PB3";
                function = "i2s2_din";
                drive-strength = <20>;
                bias-disable;
        };

        daudio2_pins_d: daudio2_sleep@0 {
                pins = "PB7", "PB5", "PB6", "PB4", "PB3";
                function = "io_disabled";
                drive-strength = <20>;
                bias-disable;
        };

        spdif_pins_a: spdif@0 {
                /* SPDIF_PIN: SPDIF_OUT */
                pins = "PB0";
                function = "spdif";
                drive-strength = <20>;
                bias-disable;
        };

        spdif_pins_b: spdif_sleep@0 {
                pins = "PB0";
                function = "io_disabled";
                drive-strength = <20>;
                bias-disable;
        };

        spi0_pins_a: spi0@0 {
                pins = "PC2", "PC4", "PC5","PC7", "PC6"; /*clk mosi miso hold wp*/
                function = "spi0";
                muxsel = <2>;
                drive-strength = <10>;
        };

        spi0_pins_b: spi0@1 {
                pins = "PC3", "PC7", "PC6";
                function = "spi0";
                muxsel = <2>;
                drive-strength = <10>;
                bias-pull-up;   /* only CS should be pulled up */
        };

        spi0_pins_c: spi0@2 {
                pins = "PC2", "PC3", "PC4", "PC5","PC6", "PC7";
                function = "gpio_in";
                muxsel = <0>;
                drive-strength = <10>;
        };

        spi1_pins_a: spi1@0 {
                pins = "PD11", "PD12", "PD13","PD14", "PD15"; /*clk mosi miso hold wp*/
                function = "spi1";
                drive-strength = <10>;
        };

        spi1_pins_b: spi1@1 {
                pins = "PD10";
                function = "spi1";
                drive-strength = <10>;
                bias-pull-up;   // only CS should be pulled up
        };

        spi1_pins_c: spi1@2 {
                pins = "PD10", "PD11", "PD12", "PD13","PD14", "PD15";
                function = "gpio_in";
                drive-strength = <10>;
        };

        ledc_pins_a: ledc@0 {
                pins = "PC0";
                function = "ledc";
                drive-strength = <10>;
        };

        ledc_pins_b: ledc@1 {
                pins = "PC0";
                function = "gpio_in";
        };

        pwm0_pin_a: pwm0@0 {
                pins = "PD16";
                function = "pwm0";
                drive-strength = <10>;
                bias-pull-up;
        };

        pwm0_pin_b: pwm0@1 {
                pins = "PD16";
                function = "gpio_in";
                bias-disable;
        };

        pwm2_pin_a: pwm2@0 {
                pins = "PD18";
                function = "pwm2";
                drive-strength = <10>;
                bias-pull-up;
        };

        pwm2_pin_b: pwm2@1 {
                pins = "PD18";
                function = "gpio_in";
        };

/*
        pwm7_pin_a: pwm7@0 {
                pins = "PD22";
                function = "pwm7";
                drive-strength = <10>;
                bias-pull-up;
        };

        pwm7_pin_b: pwm7@1 {
                pins = "PD22";
                function = "gpio_in";
        };
*/

        s_cir0_pins_a: s_cir@0 {
                pins = "PB12";
                function = "ir";
                drive-strength = <10>;
                bias-pull-up;
        };

        s_cir0_pins_b: s_cir@1 {
                pins = "PB12";
                function = "gpio_in";
        };

        ir1_pins_a: ir1@0 {
                pins = "PB0";
                function = "ir";
                drive-strength = <10>;
                bias-pull-up;
        };

        ir1_pins_b: ir1@1 {
                pins = "PB0";
                function = "gpio_in";
        };
};

&uart0 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&uart0_pins_a>;
        pinctrl-1 = <&uart0_pins_b>;
        status = "okay";
};

&uart1 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&uart1_pins_a>;
        pinctrl-1 = <&uart1_pins_b>;
        status = "okay";
};

&uart2 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&uart2_pins_a>;
        pinctrl-1 = <&uart2_pins_b>;
        status = "disabled";
};

&uart3 {
        /*compatible = "allwinner,sun20iw1-dsp-uart";*/
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&uart3_pins_a>;
        pinctrl-1 = <&uart3_pins_a>;
        status = "disabled";
};

&soc {
        card0_boot_para@2 {
                /*
                 * Avoid dtc compiling warnings.
                 * @TODO: Developer should modify this to the actual value
                 */
                reg = <0x0 0x2 0x0 0x0>;
                device_type = "card0_boot_para";
                card_ctrl = <0x0>;
                card_high_speed = <0x1>;
                card_line = <0x4>;
                pinctrl-0 = <&sdc0_pins_a>;
        };

        card2_boot_para@3 {
                /*
                 * Avoid dtc compiling warnings.
                 * @TODO: Developer should modify this to the actual value
                 */
                reg = <0x0 0x3 0x0 0x0>;
                device_type = "card2_boot_para";
                card_ctrl = <0x2>;
                card_high_speed = <0x1>;
                card_line = <0x4>;
                pinctrl-0 = <&sdc2_pins_a>;
                /*pinctrl-0 = <&sdc0_pins_a>;*/
                /*sdc_ex_dly_used = <0x2>;*/
                sdc_io_1v8 = <0x1>;
                /*sdc_type = "tm4";*/
                sdc_tm4_hs200_max_freq = <150>;
                sdc_tm4_hs400_max_freq = <100>;
                sdc_ex_dly_used = <2>;
                /*sdc_tm4_win_th = <8>;*/
                /*sdc_dis_host_caps = <0x180>;*/
        };

        rfkill: rfkill@0 {
                compatible    = "allwinner,sunxi-rfkill";
                chip_en;
                power_en;
                status        = "okay";

                wlan: wlan@0 {
                        compatible    = "allwinner,sunxi-wlan";
                        pinctrl-0 = <&wlan_pins_a>;
                        pinctrl-names = "default";
                        clock-names = "32k-fanout1";
                        clocks = <&ccu CLK_FANOUT1_OUT>;
                        wlan_busnum    = <0x1>;
                        wlan_regon    = <&pio PG 12 GPIO_ACTIVE_HIGH>;
                        wlan_hostwake  = <&pio PG 10 GPIO_ACTIVE_HIGH>;
                        /*wlan_power    = "VCC-3V3";*/
                        /*wlan_power_vol = <3300000>;*/
                        /*interrupt-parent = <&pio>;
                        interrupts = < PG 10 IRQ_TYPE_LEVEL_HIGH>;*/
                        wakeup-source;

                };

                bt: bt@0 {
                        compatible    = "allwinner,sunxi-bt";
                        pinctrl-0 = <&wlan_pins_a>;
                        pinctrl-names = "default";
                        clock-names = "32k-fanout1";
                        clocks = <&ccu CLK_FANOUT1_OUT>;
                        /*bt_power_num = <0x01>;*/
                        /*bt_power      = "axp803-dldo1";*/
                        /*bt_io_regulator = "axp803-dldo1";*/
                        /*bt_io_vol = <3300000>;*/
                        /*bt_power_vol = <330000>;*/
                        bt_rst_n      = <&pio PG 18 GPIO_ACTIVE_LOW>;
                        status        = "okay";
                };
        };

        btlpm: btlpm@0 {
                compatible  = "allwinner,sunxi-btlpm";
                uart_index  = <0x1>;
                bt_wake     = <&pio PG 16 GPIO_ACTIVE_HIGH>;
                bt_hostwake = <&pio PG 17 GPIO_ACTIVE_HIGH>;
                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";
        };
};

&sdc2 {
        non-removable;
        bus-width = <4>;
        mmc-ddr-1_8v;
        mmc-hs200-1_8v;
        no-sdio;
        no-sd;
        ctl-spec-caps = <0x308>;
        cap-mmc-highspeed;
        sunxi-power-save-mode;
        sunxi-dis-signal-vol-sw;
        mmc-bootpart-noacc;
        max-frequency = <150000000>;
        /*vmmc-supply = <&reg_dcdc1>;*/
        /*emmc io vol 3.3v*/
        /*vqmmc-supply = <&reg_aldo1>;*/
        /*emmc io vol 1.8v*/
        /*vqmmc-supply = <&reg_eldo1>;*/
        status = "disabled";
};

&sdc0 {
        bus-width = <4>;
        cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        /*non-removable;*/
        /*broken-cd;*/
        /*cd-inverted*/;
        /*data3-detect;*/
        /*card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;*/
        cd-used-24M;
        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 = <&reg_dcdc1>;*/
        /*vqmmc33sw-supply = <&reg_dcdc1>;*/
        /*vdmmc33sw-supply = <&reg_dcdc1>;*/
        /*vqmmc18sw-supply = <&reg_eldo1>;*/
        /*vdmmc18sw-supply = <&reg_eldo1>;*/
        status = "okay";
};

&sdc1 {
        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 = <150000000>;
        ctl-spec-caps = <0x8>;
        status = "okay";
};


/*
tvd configuration
used                   (create device, 0: do not create device, 1: create device)
agc_auto_enable        (0: agc manual mode,agc_manual_value is valid; 1: agc auto mode)
agc_manual_value       (agc manual value, default value is 64)
cagc_enable            (cagc        0: disable, 1: enable)
fliter_used            (3d fliter   0: disable, 1: enable)
support two PMU power  (tvd_power0, tvd_power1)
support two GPIO power (tvd_gpio0, tvd_gpio1)
NOTICE: If tvd need pmu power or gpio power,params need be configured under [tvd]
tvd_sw                 (the switch of all tvd driver.)
tvd_interface          (0: cvbs, 1: ypbpr,)
tvd_format             (0:TVD_PL_YUV420 , 1: MB_YUV420, 2: TVD_PL_YUV422)
tvd_system             (0:ntsc, 1:pal)
tvd_row                (total row number in multi channel mode 1-2)
tvd_column             (total column number in multi channel mode 1-2)
tvd_channelx_en        (0:disable, 1~4:position in multi channel mode,In single channel
                       mode,mean enable)
tvd_row*tvd_column is the total tvd channel number to be used in multichannel mode
+--------------------+--------------------+
|                    |                    |
|                    |                    |
|         1          |         2          |
|                    |                    |
|                    |                    |
+--------------------+--------------------+
|                    |                    |
|                    |                    |
|         3          |         4          |
|                    |                    |
|                    |                    |
+--------------------+--------------------+
*/

&tvd {
        tvd_sw          = <1>;
        tvd_interface   = <0>;
        tvd_format      = <0>;
        tvd_system      = <1>;
        tvd_row         = <1>;
        tvd_column      = <1>;
        tvd_channel0_en = <1>;
        tvd_channel1_en = <0>;
        tvd_channel2_en = <0>;
        tvd_channel3_en = <0>;
        /*tvd_gpio0 = <&pio PD 22 GPIO_ACTIVE_HIGH>;*/
        /*tvd_gpio1 = <&pio PD 23 GPIO_ACTIVE_HIGH>;*/
        /*tvd_gpio2 = <&pio PD 24 GPIO_ACTIVE_HIGH>;*/
        /*      dc1sw-supply = <&reg_dc1sw>;*/
        /*      eldo3-supply = <&reg_eldo3>;*/
        /*tvd_power0      = "dc1sw"*/
        /*tvd_power1      = "eldo3"*/
};

&tvd0 {
        used                    = <1>;
        agc_auto_enable         = <1>;
        agc_manual_value        = <64>;
        cagc_enable             = <1>;
        fliter_used             = <1>;
};

/* Audio Driver modules */
&sunxi_rpaf_dsp0 {
        status = "okay";
};

/* if audiocodec is used, sdc0 and uart0 should be closed to enable PA. */
&codec {
        /* MIC and headphone gain setting */
        mic1gain        = <0x13>;
        mic2gain        = <0x13>;
        mic3gain        = <0x13>;
        /* ADC/DAC DRC/HPF func enabled */
        /* 0x1:DAP_HP_EN; 0x2:DAP_SPK_EN; 0x3:DAP_HPSPK_EN */
        adcdrc_cfg      = <0x0>;
        adchpf_cfg      = <0x1>;
        dacdrc_cfg      = <0x0>;
        dachpf_cfg      = <0x0>;
        /* Volume about */
        digital_vol     = <0x00>;
        lineout_vol     = <0x1a>;
        headphonegain   = <0x03>;
        /* Pa enabled about */
        pa_level        = <0x01>;
        pa_pwr_level    = <0x01>;
        pa_msleep_time  = <0x78>;
        /* gpio-spk     = <&pio PF 2 GPIO_ACTIVE_HIGH>; */
        /* gpio-spk-pwr = <&pio PF 4 GPIO_ACTIVE_HIGH>; */
        /* regulator about */
        /* avcc-supply  = <&reg_aldo1>; */
        /* hpvcc-supply = <&reg_eldo1>; */
        status = "okay";
};

&sndcodec {
        hp_detect_case  = <0x01>;
        jack_enable     = <0x01>;
        status = "okay";
};

&dummy_cpudai {
        /* CMA config about */
        playback_cma    = <128>;
        capture_cma     = <256>;
        status = "okay";
};

&dmic {
        pinctrl-names   = "default","sleep";
        pinctrl-0       = <&dmic_pins_a>;
        pinctrl-1       = <&dmic_pins_b>;
        status = "okay";
};

&sounddmic {
        status = "okay";
};

&dmic_codec {
        status = "okay";
};

/*-----------------------------------------------------------------------------
 * pcm_lrck_period      16/32/64/128/256
 *                      (set 0x20 for HDMI audio out)
 * slot_width_select    16bits/20bits/24bits/32bits
 *                      (set 0x20 for HDMI audio out)
 * frametype            0 --> short frame = 1 clock width;
 *                      1 --> long frame = 2 clock width;
 * tdm_config           0 --> pcm
 *                      1 --> i2s
 *                      (set 0x01 for HDMI audio out)
 * mclk_div             0 --> not output
 *                      1/2/4/6/8/12/16/24/32/48/64/96/128/176/192
 *                      (set mclk as external codec clk source, freq is pll_audio/mclk_div)
 * pinctrl_used         0 --> I2S/PCM use for internal (e.g. HDMI)
 *                      1 --> I2S/PCM use for external audio
 * daudio_type:         0 --> external audio type
 *                      1 --> HDMI audio type
 *---------------------------------------------------------------------------*/
&daudio0 {
        mclk_div        = <0x01>;
        frametype       = <0x00>;
        tdm_config      = <0x01>;
        sign_extend     = <0x00>;
        msb_lsb_first   = <0x00>;
        pcm_lrck_period = <0x80>;
        slot_width_select = <0x20>;
        pinctrl-names   = "default", "sleep";
        pinctrl-0       = <&daudio0_pins_a>;
        pinctrl-1       = <&daudio0_pins_b>;
        pinctrl_used    = <0x0>;
        status = "disabled";
};

/*-----------------------------------------------------------------------------
 * simple-audio-card,name       name of sound card, e.g.
 *                              "snddaudio0" --> use for external audio
 *                              "sndhdmi" --> use for HDMI audio
 * sound-dai                    "snd-soc-dummy" --> use for I2S
 *                              "hdmiaudio" --> use for HDMI audio
 *                              "ac108" --> use for external audio of ac108
 *---------------------------------------------------------------------------*/
&sounddaudio0 {
        /* simple-audio-card,format = "i2s"; */
        /* simple-audio-card,frame-master = <&daudio0_master>; */
        /* simple-audio-card,bitclock-master = <&daudio0_master>; */
        /* simple-audio-card,bitclock-inversion; */
        /* simple-audio-card,frame-inversion; */
        status = "disabled";
        daudio0_master: simple-audio-card,codec {
                /* sound-dai = <&ac108>; */
        };
};

&daudio1 {
        mclk_div        = <0x01>;
        frametype       = <0x00>;
        tdm_config      = <0x01>;
        sign_extend     = <0x00>;
        msb_lsb_first   = <0x00>;
        pcm_lrck_period = <0x80>;
        slot_width_select = <0x20>;
        pinctrl-names   = "default", "sleep";
        pinctrl-0       = <&daudio1_pins_a>;
        pinctrl-1       = <&daudio1_pins_b>;
        pinctrl_used    = <0x0>;
        status = "disabled";
};

&sounddaudio1 {
        status = "disabled";
        daudio1_master: simple-audio-card,codec {
                /* sound-dai = <&ac108>; */
        };
};

&daudio2 {
        mclk_div        = <0x00>;
        frametype       = <0x00>;
        tdm_config      = <0x01>;
        sign_extend     = <0x00>;
        tx_data_mode    = <0x00>;
        rx_data_mode    = <0x00>;
        msb_lsb_first   = <0x00>;
        pcm_lrck_period = <0x20>;
        slot_width_select = <0x20>;
        asrc_function_en  = <0x00>;
        pinctrl-names   = "default", "sleep";
        /*pinctrl-0       = <&daudio2_pins_a &daudio2_pins_b &daudio2_pins_c>;*/
        /*pinctrl-1       = <&daudio2_pins_d>;*/
        /* HDMI audio, no need pin */
        pinctrl-0;
        pinctrl-1;
        pinctrl_used    = <0x0>;
        daudio_type     = <0x1>;
        status = "okay";
};

/* if HDMI audio is used, daudio2 should be enable. */
&hdmiaudio {
        status = "okay";
};

&sounddaudio2 {
        status = "okay";
        simple-audio-card,name = "sndhdmi";
        daudio2_master: simple-audio-card,codec {
                sound-dai = <&hdmiaudio>;
        };
};

&spdif {
        pinctrl-names   = "default","sleep";
        pinctrl-0       = <&spdif_pins_a>;
        pinctrl-1       = <&spdif_pins_b>;
        status = "disabled";
};

&soundspdif {
        status = "disabled";
};

/*
 *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_detect_mode: 0-thread scan, 1-id gpio interrupt.
 *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 {
        device_type = "usbc0";
        usb_port_type = <0x2>;
        usb_detect_type = <0x1>;
        usb_detect_mode = <0>;
        usb_id_gpio = <&pio PD 21 GPIO_ACTIVE_HIGH>;
        enable-active-high;
        usb_det_vbus_gpio = <&pio PD 20 GPIO_ACTIVE_HIGH>;
        usb_wakeup_suspend = <0>;
        usb_serial_unique = <0>;
        usb_serial_number = "20080411";
        rndis_wceis = <1>;
        status = "okay";
};

&ehci0 {
        drvvbus-supply = <&reg_usb1_vbus>;
};

&ohci0 {
        drvvbus-supply = <&reg_usb1_vbus>;
};

&usbc1 {
        device_type = "usbc1";
        usb_regulator_io = "nocare";
        usb_wakeup_suspend = <0>;
        status = "okay";
};

&ehci1 {
        status = "okay";
};

&ohci1 {
        status = "okay";
};

&twi0 {
        clock-frequency = <400000>;
        pinctrl-0 = <&twi0_pins_a>;
        pinctrl-1 = <&twi0_pins_b>;
        pinctrl-names = "default", "sleep";
        status = "disabled";

        eeprom@50 {
                compatible = "atmel,24c16";
                reg = <0x50>;
                status = "disabled";
        };
};

&twi1 {
        clock-frequency = <400000>;
        pinctrl-0 = <&twi1_pins_a>;
        pinctrl-1 = <&twi1_pins_b>;
        pinctrl-names = "default", "sleep";
        status = "disabled";
};

&twi2 {
        clock-frequency = <400000>;
        pinctrl-0 = <&twi2_pins_a>;
        pinctrl-1 = <&twi2_pins_b>;
        pinctrl-names = "default", "sleep";
        dmas = <&dma 45>, <&dma 45>;
        dma-names = "tx", "rx";
        status = "okay";

        /* pcf8574-usage:
         * only use gpio0~7, 0 means PP0.
         * pin set:
         * gpios = <&pcf8574 0 GPIO_ACTIVE_LOW>;
         * interrupt set:
         * interrupt-parent = <&pcf8574>;
         * interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
         */
        pcf8574: gpio@38 {
                compatible = "nxp,pcf8574";
                reg = <0x38>;
                gpio_base = <2020>;
                gpio-controller;
                #gpio-cells = <2>;
                interrupt-controller;
                #interrupt-cells = <2>;
                interrupt-parent = <&pio>;
                interrupts = <PB 2 IRQ_TYPE_EDGE_FALLING>;
                status = "okay";
        };

        ctp@14 {
                compatible = "allwinner,goodix";
                device_type = "ctp";
                reg = <0x14>;
                status = "disabled";
                ctp_name = "gt9xxnew_ts";
                ctp_twi_id = <0x2>;
                ctp_twi_addr = <0x14>;
                ctp_screen_max_x = <0x320>;
                ctp_screen_max_y = <0x500>;
                ctp_revert_x_flag = <0x0>;
                ctp_revert_y_flag = <0x0>;
                ctp_exchange_x_y_flag = <0x0>;
                ctp_int_port = <&pio PG 14 GPIO_ACTIVE_HIGH>;
                ctp_wakeup = <&pio PG 15 GPIO_ACTIVE_HIGH>;
        };
};

&twi3 {
        clock-frequency = <400000>;
        pinctrl-0 = <&twi3_pins_a>;
        pinctrl-1 = <&twi3_pins_b>;
        pinctrl-names = "default", "sleep";
        status = "disabled";
};

&gmac0 {
        phy-mode = "rgmii";
        use_ephy25m = <1>;
        pinctrl-0 = <&gmac_pins_a>;
        pinctrl-1 = <&gmac_pins_b>;
        pinctrl-names = "default", "sleep";
        phy-rst = <&pio PE 16 GPIO_ACTIVE_HIGH>;
        tx-delay = <3>; /*2~4*/
        rx-delay = <0>;
        status = "disable";
};

&spi0 {
        clock-frequency = <100000000>;
        pinctrl-0 = <&spi0_pins_a &spi0_pins_b>;
        pinctrl-1 = <&spi0_pins_c>;
        pinctrl-names = "default", "sleep";
        /*spi-supply = <&reg_dcdc1>;*/
        spi_slave_mode = <0>;
        spi0_cs_number = <1>;
        spi0_cs_bitmap = <1>;
        status = "disabled";

        spi-nand@0 {
                compatible = "spi-nand";
                spi-max-frequency=<0x5F5E100>;
                reg = <0x0>;
                spi-rx-bus-width=<0x04>;
                spi-tx-bus-width=<0x04>;
                status="disabled";
        };
};

&spi1 {
        clock-frequency = <100000000>;
        pinctrl-0 = <&spi1_pins_a &spi1_pins_b>;
        pinctrl-1 = <&spi1_pins_c>;
        pinctrl-names = "default", "sleep";
        spi_slave_mode = <0>;
        status = "disabled";

        spi_board1@0 {
                device_type = "spi_board1";
                compatible = "rohm,dh2228fv";
                spi-max-frequency = <0x5f5e100>;
                reg = <0x0>;
                spi-rx-bus-width = <0x4>;
                spi-tx-bus-width = <0x4>;
                status = "disabled";
        };
};

&ledc {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&ledc_pins_a>;
        pinctrl-1 = <&ledc_pins_b>;
        led_count = <12>;
        output_mode = "GRB";
        reset_ns = <84>;
        t1h_ns = <800>;
        t1l_ns = <320>;
        t0h_ns = <300>;
        t0l_ns = <800>;
        wait_time0_ns = <84>;
        wait_time1_ns = <84>;
        wait_data_time_ns = <600000>;
        status  = "okay";
};

&keyboard0 {
        key0 = <210 0x160>;
        wakeup-source;
        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_init_enable         = <1>;
        disp_mode                = <0>;

        screen0_output_type      = <1>;
        screen0_output_mode      = <4>;

        screen1_output_type      = <3>;
        screen1_output_mode      = <10>;

        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                = <0>;
        fb0_height               = <0>;

        fb1_format               = <0>;
        fb1_width                = <0>;
        fb1_height               = <0>;
        chn_cfg_mode             = <1>;

        disp_para_zone           = <1>;
        /*VCC-LCD*/
/*      dc1sw-supply = <&reg_dc1sw>;*/
        /*VCC-DSI*/
/*      eldo3-supply = <&reg_eldo3>;*/
        /*VCC-PD*/
/*      dcdc1-supply = <&reg_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 {
        lcd_used            = <1>;

        lcd_driver_name     = "tft08006";
        lcd_backlight       = <100>;
        lcd_if              = <4>;

        lcd_x               = <800>;
        lcd_y               = <1280>;
        lcd_width           = <52>;
        lcd_height          = <52>;
        lcd_dclk_freq       = <70>;

        lcd_pwm_used        = <1>;
        lcd_pwm_ch          = <2>;
        lcd_pwm_freq        = <1000>;
        lcd_pwm_pol         = <0>;
        lcd_pwm_max_limit   = <255>;

        lcd_hbp             = <32>;
        lcd_ht              = <868>;
        lcd_hspw            = <4>;
        lcd_vbp             = <12>;
        lcd_vt              = <1311>;
        lcd_vspw            = <4>;

        lcd_dsi_if          = <0>;
        lcd_dsi_lane        = <4>;
        lcd_lvds_if         = <0>;
        lcd_lvds_colordepth = <0>;
        lcd_lvds_mode       = <0>;
        lcd_frm             = <0>;
        lcd_hv_clk_phase    = <0>;
        lcd_hv_sync_polarity= <0>;
        lcd_io_phase        = <0x0000>;
        lcd_gamma_en        = <0>;
        lcd_bright_curve_en = <0>;
        lcd_cmap_en         = <0>;
        lcd_fsync_en        = <0>;
        lcd_fsync_act_time  = <1000>;
        lcd_fsync_dis_time  = <1000>;
        lcd_fsync_pol       = <0>;

        deu_mode            = <0>;
        lcdgamma4iep        = <22>;
        smart_color         = <90>;

        lcd_gpio_0 =  <&pio PG 13 GPIO_ACTIVE_HIGH>;
        pinctrl-0 = <&dsi4lane_pins_a>;
        pinctrl-1 = <&dsi4lane_pins_b>;
};

&hdmi {
        hdmi_used = <1>;
        hdmi_power_cnt = <0>;
        hdmi_cts_compatibility = <1>;
        hdmi_hdcp_enable = <1>;
        hdmi_hdcp22_enable = <0>;
        hdmi_cec_support = <1>;
        hdmi_cec_super_standby = <0>;

        ddc_en_io_ctrl = <0>;
        power_io_ctrl = <0>;
};

&pwm0 {
        pinctrl-names = "active", "sleep";
        pinctrl-0 = <&pwm0_pin_a>;
        pinctrl-1 = <&pwm0_pin_b>;
        status = "okay";
};

&pwm2 {
        pinctrl-names = "active", "sleep";
        pinctrl-0 = <&pwm2_pin_a>;
        pinctrl-1 = <&pwm2_pin_b>;
        status = "okay";
};
/*
&pwm7 {
        pinctrl-names = "active", "sleep";
        pinctrl-0 = <&pwm7_pin_a>;
        pinctrl-1 = <&pwm7_pin_b>;
        status = "okay";
};
*/

&rtp {
        allwinner,tp-sensitive-adjust = <0xf>;
        allwinner,filter-type = <0x1>;
        allwinner,ts-attached;
        status = "disabled";
};

&gpadc {
        channel_num = <2>;
        channel_select = <3>;
        channel_data_select = <3>;
        channel_compare_select = <3>;
        channel_cld_select = <3>;
        channel_chd_select = <3>;
        channel0_compare_lowdata = <1700000>;
        channel0_compare_higdata = <1200000>;
        channel1_compare_lowdata = <460000>;
        channel1_compare_higdata = <1200000>;
        status = "disabled";
};

&s_cir0 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&s_cir0_pins_a>;
        pinctrl-1 = <&s_cir0_pins_b>;
        status = "disabled";
};

&ir1 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&ir1_pins_a>;
        pinctrl-1 = <&ir1_pins_b>;
        status = "disabled";
};

用烧卡工具烧到TF卡启动:
QQ图片20210902184833.png

固件下载: tina_d1-nezha_uart0_f133_nolcd.7z

LCD 还没有测试。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn