Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1s麻雀 关闭uboot的显示(#CONFIG_DISP2_SUNXI=y)后,内核dts不改动,lcd的data引脚就没有输出了

    D1系列-RISC-V
    2
    19
    217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wjp2547532 LV 5 last edited by

      好像关掉uboot的显示后,内核的显示模块就不起作用了,有大佬碰到过这种情况么

      1 Reply Last reply Reply Quote Share 0
      • W
        whycan晕哥 LV 9 last edited by

        linux 配好 dts 和 CONFIG_DISP2_SUNXI 就可以了。

        W 1 Reply Last reply Reply Quote Share 0
        • W
          wjp2547532 LV 5 @whycan last edited by

          @whycan 好的晕哥,我现在想用d1s的mipi-dsi接口,将mipi信号发送到fpga,然后fpga再转换成rgb发送到液晶,可是改了dts后测量DSI_CKN和DSI_CKP引脚上就没有信号,uboot显示已关闭,board.dts修改如下:11111111111.png
          可能是哪里不对呢?

          W 1 Reply Last reply Reply Quote Share 0
          • W
            whycan晕哥 LV 9 @wjp2547532 last edited by

            @wjp2547532
            贴上启动日志看看

            W 1 Reply Last reply Reply Quote Share 0
            • W
              wjp2547532 LV 5 @whycan last edited by xiaowenge

              @whycan

              root@TinaLinux:/# [404]HELLO! BOOT0 is starting!
              [406]BOOT0 commit : 27369ab
              [409]set pll start
              [411]periph0 has been enabled
              [414]set pll end
              [415][pmu]: bus read error
              [418]board init ok
              [420]ZQ value = 0x2e***********
              [423]get_pmu_exist() = -1
              [425]ddr_efuse_type: 0xa
              [428][AUTO DEBUG] single rank and full DQ!
              [432]ddr_efuse_type: 0xa
              [435][AUTO DEBUG] rank 0 row = 13 
              [438][AUTO DEBUG] rank 0 bank = 4 
              [441][AUTO DEBUG] rank 0 page size = 2 KB 
              [445]DRAM BOOT DRIVE INFO: V0.24
              [448]DRAM CLK = 528 MHz
              [450]DRAM Type = 2 (2:DDR2,3:DDR3)
              [454]DRAMC read ODT  off.
              [456]DRAM ODT off.
              [458]ddr_efuse_type: 0xa
              [461]DRAM SIZE =64 M
              [464]DRAM simple test OK.
              [467]dram size =64
              [469]card no is 0
              [470]sdcard 0 line count 4
              [473][mmc]: mmc driver ver 2021-04-2 16:45
              [482][mmc]: Wrong media type 0x0
              [485][mmc]: ***Try SD card 0***
              [494][mmc]: HSSDR52/SDR25 4 bit
              [497][mmc]: 50000000 Hz
              [499][mmc]: 3796 MB
              [501][mmc]: ***SD/MMC 0 init OK!!!***
              [540]Loading boot-pkg Succeed(index=0).
              [544]Entry_name        = opensbi
              [547]Entry_name        = u-boot
              [550]Entry_name        = dtb
              [553]mmc not para
              [555]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    : 0x0000000000000000-0x0000000007ffffff (A,R,W)
              PMP3    : 0x0000000009000000-0x000000000901ffff (A,R,W)
              PMP4    : 0x0000000010000000-0x0000000017ffffff (A,R,W)
              [    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
              [    0.000000] Linux version 5.4.61 (root@wjp) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #79 PREEMPT Thu Feb 16 08:48:45 UTC 2023
              [    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,0x02500c00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dsp0@mmcblk0p6:recovery@mmcblk0p7:rootfs_data@mmcblk0p8:UDISK@mmcblk0p9 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(02/1
              [    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: 43648K/63488K available (6131K kernel code, 657K rwdata, 2113K rodata, 196K init, 252K bss, 11648K 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.000027] riscv_timer_clockevent depends on broadcast, but no broadcast function available
              [    0.000366] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
              [    0.001006] Console: colour dummy device 80x25
              [    0.001054] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
              [    0.001074] pid_max: default: 32768 minimum: 301
              [    0.001282] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
              [    0.001301] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
              [    0.003375] ASID allocator initialised with 65536 entries
              [    0.003580] rcu: Hierarchical SRCU implementation.
              [    0.004304] devtmpfs: initialized
              [    0.016091] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
              [    0.017193] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
              [    0.017227] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
              [    0.017775] pinctrl core: initialized pinctrl subsystem
              [    0.019261] NET: Registered protocol family 16
              [    0.021482] DMA: preallocated 256 KiB pool for atomic allocations
              [    0.022200] cpuidle: using governor menu
              [    0.064090] rtc_ccu: sunxi ccu init OK
              [    0.071866] clock: sunxi ccu init OK
              [    0.072980] clock: sunxi ccu init OK
              [    0.114150] iommu: Default domain type: Translated 
              [    0.114373] sunxi iommu: irq = 4
              [    0.115585] SCSI subsystem initialized
              [    0.115966] usbcore: registered new interface driver usbfs
              [    0.116079] usbcore: registered new interface driver hub
              [    0.116209] usbcore: registered new device driver usb
              [    0.116395] mc: Linux media interface: v0.10
              [    0.116459] videodev: Linux video capture interface: v2.00
              [    0.117724] sunxi-msgbox-amp 3003000.msgbox: invalid resource
              [    0.118487] Advanced Linux Sound Architecture Driver Initialized.
              [    0.119124] Bluetooth: Core ver 2.22
              [    0.119217] NET: Registered protocol family 31
              [    0.119229] Bluetooth: HCI device and connection manager initialized
              [    0.119254] Bluetooth: HCI socket layer initialized
              [    0.119269] Bluetooth: L2CAP socket layer initialized
              [    0.119309] Bluetooth: SCO socket layer initialized
              [    0.119652] pwm module init!
              [    0.121413] g2d 5410000.g2d: Adding to iommu group 0
              [    0.121975] G2D: rcq version initialized.major:250
              [    0.123638] clocksource: Switched to clocksource riscv_clocksource
              [    0.136837] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
              [    0.155119] thermal_sys: Registered thermal governor 'step_wise'
              [    0.155125] thermal_sys: Registered thermal governor 'user_space'
              [    0.155714] NET: Registered protocol family 2
              [    0.156615] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
              [    0.156665] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
              [    0.156685] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
              [    0.156701] TCP: Hash tables configured (established 512 bind 512)
              [    0.156876] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
              [    0.156924] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
              [    0.157179] NET: Registered protocol family 1
              [    0.158538] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
              [    0.159173] spi spi0: spi0 supply spi not found, using dummy regulator
              [    0.159417] sunxi_spi_resource_get()2062 - [spi0] SPI MASTER MODE
              [    0.159528] sunxi_spi_clk_init()2138 - [spi0] mclk 100000000
              [    0.160327] sunxi_spi_probe()2542 - [spi0]: driver probe succeed, base ffffffd00405e000, irq 31
              [    0.162456] Initialise system trusted keyrings
              [    0.162706] workingset: timestamp_bits=62 max_order=14 bucket_order=0
              [    0.170866] squashfs: version 4.0 (2009/01/31) Phillip Lougher
              [    0.192177] Key type asymmetric registered
              [    0.192195] Asymmetric key parser 'x509' registered
              [    0.192223] io scheduler mq-deadline registered
              [    0.192232] io scheduler kyber registered
              [    0.192255] atomic64_test: passed
              [    0.193698] [DISP]disp_module_init
              [    0.194328] disp 5000000.disp: Adding to iommu group 0
              [    0.237181] display_fb_request,fb_id:0
              [    0.251109] [DISP] Fb_copy_boot_fb,line:1444:
              [    0.251113] no boot_fb0
              [    0.251628] disp_al_manager_apply ouput_type:0
              [    0.252049] [DISP] lcd_clk_config,line:731:
              [    0.252063] disp 0, clk: pll(186000000),clk(186000000),dclk(31000000) dsi_rate(31000000)
              [    0.252063]      clk real:pll(288000000),clk(288000000),dclk(72000000) dsi_rate(150000000)
              [    0.253304] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
              [    0.254079] [DISP]disp_module_init finish
              [    0.255036] sunxi_sid_init()506 - insmod ok
              [    0.263041] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
              [    0.263531] uart uart0: get regulator failed
              [    0.263562] uart uart0: uart0 supply uart not found, using dummy regulator
              [    0.264020] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
              [    0.264918] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
              [    0.265438] uart uart3: get regulator failed
              [    0.265469] uart uart3: uart3 supply uart not found, using dummy regulator
              [    0.265846] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
              [    0.265878] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
              [    0.454781] platform 2000c12.pwm2: pinctrl_get failed!
              [    0.454803] [DISP] disp_device_attached_and_enable,line:233:
              [    0.454808] attached ok, mgr0<-->dev0
              [    0.454812] [DISP] disp_device_attached_and_enable,line:236:
              [    0.454821] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
              [    1.117864] printk: console [ttyS3] enabled
              [    1.123819] misc dump reg init
              [    1.128144] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
              [    1.135401] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
              [    1.142982] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
              [    1.150304] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
              [    1.157724] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
              [    1.164265] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
              [    1.171196] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
              [    1.179072] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
              [    1.187214] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
              [    1.194911] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
              [    1.201660] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
              [    1.209847] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
              [    1.217514] [ADDR_MGT] addr_mgt_probe: success.
              [    1.223635] sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228
              [    1.230884] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
              [    1.245774] random: fast init done
              [    1.611514] random: crng init done
              [    2.233772] sunxi-spinand-phy: read id failed : -110
              [    2.239345] spi-nand: probe of spi0.0 failed with error -110
              [    2.246210] libphy: Fixed MDIO Bus: probed
              [    2.250783] CAN device driver interface
              [    2.255457] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
              [    2.262741] sunxi-ehci: EHCI SUNXI driver
              [    2.267805] get ehci0-controller wakeup-source is fail.
              [    2.273804] sunxi ehci0-controller don't init wakeup source
              [    2.280026] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe00090f3a8, 0x:ffffffd004076000, irq_no:2e
              [    2.293539] [sunxi-ehci0]: Not init ehci0
              [    2.298436] get ehci1-controller wakeup-source is fail.
              [    2.304435] sunxi ehci1-controller don't init wakeup source
              [    2.310658] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe00090f768, 0x:ffffffd00407a000, irq_no:31
              [    2.324201] hci: sunxi_insmod_ehci()600 WARN: get supply failed
              [    2.330845] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
              [    2.338108] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
              [    2.347985] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
              [    2.383685] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
              [    2.392605] hub 1-0:1.0: USB hub found
              [    2.396959] hub 1-0:1.0: 1 port detected
              [    2.402257] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
              [    2.409285] sunxi-ohci: OHCI SUNXI driver
              [    2.414391] get ohci0-controller wakeup-source is fail.
              [    2.420367] sunxi ohci0-controller don't init wakeup source
              [    2.426647] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe00090fee8
              [    2.437055] [sunxi-ohci0]: Not init ohci0
              [    2.441918] get ohci1-controller wakeup-source is fail.
              [    2.447927] sunxi ohci1-controller don't init wakeup source
              [    2.454193] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe0009102a8
              [    2.464641] hci: sunxi_insmod_ohci()265 WARN: get supply failed
              [    2.471289] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
              [    2.478556] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
              [    2.488441] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
              [    2.568747] hub 2-0:1.0: USB hub found
              [    2.572996] hub 2-0:1.0: 1 port detected
              [    2.578654] usbcore: registered new interface driver uas
              [    2.584882] usbcore: registered new interface driver usb-storage
              [    2.591657] usbcore: registered new interface driver ums-alauda
              [    2.598435] usbcore: registered new interface driver ums-cypress
              [    2.605270] usbcore: registered new interface driver ums-datafab
              [    2.612035] usbcore: registered new interface driver ums_eneub6250
              [    2.619054] usbcore: registered new interface driver ums-freecom
              [    2.625885] usbcore: registered new interface driver ums-isd200
              [    2.632581] usbcore: registered new interface driver ums-jumpshot
              [    2.639510] usbcore: registered new interface driver ums-karma
              [    2.646148] usbcore: registered new interface driver ums-onetouch
              [    2.653032] usbcore: registered new interface driver ums-realtek
              [    2.659865] usbcore: registered new interface driver ums-sddr09
              [    2.666599] usbcore: registered new interface driver ums-sddr55
              [    2.673290] usbcore: registered new interface driver ums-usbat
              [    2.680341] mousedev: PS/2 mouse device common for all mice
              [    2.687422] ts probe start
              [    2.687846] input: 2009c00.rtp as /devices/platform/soc@3000000/2009c00.rtp/input/input0
              [    2.700494] ts probe success
              [    2.700920] sunxi_gpadc_init,1968, success
              [    2.709571] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
              [    2.721919] sunxi-rtc 7090000.rtc: registered as rtc0
              [    2.727724] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
              [    2.736626] sunxi-rtc 7090000.rtc: sunxi rtc probed
              [    2.742464] i2c /dev entries driver
              [    2.746549] IR NEC protocol handler initialized
              [    2.751600] IR RC5(x/sz) protocol handler initialized
              [    2.757273] IR RC6 protocol handler initialized
              [    2.762325] IR JVC protocol handler initialized
              [    2.767397] IR Sony protocol handler initialized
              [    2.772545] IR SANYO protocol handler initialized
              [    2.777812] IR Sharp protocol handler initialized
              [    2.783056] IR MCE Keyboard/mouse protocol handler initialized
              [    2.789579] IR XMP protocol handler initialized
              [    2.794648] ir_imon_decoder: IR iMON protocol handler initialized
              [    2.801440] IR RCMM protocol handler initialized
              [    2.807318] sunxi cedar version 1.1
              [    2.811491] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
              [    2.817798] VE: install start!!!
              [    2.817798] 
              [    2.823345] VE: cedar-ve the get irq is 6
              [    2.823345] 
              [    2.829746] VE: ve_debug_proc_info:000000003244b3da, data:000000003d5aa67a, lock:000000000fa1de3a
              [    2.829746] 
              [    2.841338] VE: install end!!!
              [    2.841338] 
              [    2.847874] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
              [    2.857064] Bluetooth: HCI UART driver ver 2.3
              [    2.862025] Bluetooth: HCI UART protocol H4 registered
              [    2.867805] Bluetooth: HCI UART protocol BCSP registered
              [    2.873755] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
              [    2.881041] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
              [    2.887488] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
              [    2.894075] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
              [    2.894075] 
              [    2.902711] [XR_BT_LPM] bluesleep_probe: uart_index(1)
              [    2.911772] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
              [    2.921793] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
              [    2.928020] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
              [    2.934365] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
              [    2.940772] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
              [    2.947211] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
              [    2.953746] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
              [    2.960251] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
              [    2.966786] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
              [    2.973854] sunxi-mmc 4020000.sdmmc: Got CD GPIO
              [    2.979337] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
              [    2.986031] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    2.997186] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
              [    3.017340] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.041794] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
              [    3.047520] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.059796] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
              [    3.069939] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
              [    3.076199] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
              [    3.082560] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
              [    3.089032] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.100617] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
              [    3.107060] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
              [    3.113563] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
              [    3.120212] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
              [    3.126786] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
              [    3.133368] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
              [    3.142437] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.154945] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.166161] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
              [    3.175112] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.186713] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.211032] sunxi-mmc 4021000.sdmmc: detmode:manually by software
              [    3.218740] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
              [    3.226377] usbcore: registered new interface driver usbhid
              [    3.232645] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
              [    3.239558] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.251187] usbhid: USB HID core driver
              [    3.257835] usbcore: registered new interface driver snd-usb-audio
              [    3.264908] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
              [    3.276527] mmc0: host does not support reading read-only switch, assuming write-enable
              [    3.288389] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
              [    3.301352] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
              [    3.312819] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
              [    3.319858] [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
              [    3.319858] 
              [    3.336950] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
              [    3.343876] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
              [    3.355531] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
              [    3.362330] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
              [    3.373211] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
              [    3.380005] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
              [    3.391280] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
              [    3.403618] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
              [    3.411968] mmc0: new high speed SDHC card at address 1234
              [    3.419606] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
              [    3.426802] mmcblk0: mmc0:1234 SA04G 3.71 GiB 
              [    3.433953] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
              [    3.444309] [SNDCODEC][sunxi_card_init][583]:card init finished
              [    3.452726] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
              [    3.462817]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
              [    3.469529] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input1
              [    3.485144] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
              [    3.493421] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
              [    3.505084] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
              [    3.517280] NET: Registered protocol family 10
              [    3.523877] Segment Routing with IPv6
              [    3.528169] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
              [    3.535782] NET: Registered protocol family 17
              [    3.540825] can: controller area network core (rev 20170425 abi 9)
              [    3.547942] NET: Registered protocol family 29
              [    3.552914] can: raw protocol (rev 20170425)
              [    3.557718] can: broadcast manager protocol (rev 20170425 t)
              [    3.564070] can: netlink gateway (rev 20190810) max_hops=1
              [    3.570551] Bluetooth: RFCOMM TTY layer initialized
              [    3.576155] Bluetooth: RFCOMM socket layer initialized
              [    3.581921] Bluetooth: RFCOMM ver 1.11
              [    3.587384] Loading compiled-in X.509 certificates
              [    3.595545] HDMI 2.0 driver init start!
              [    3.599842] boot_hdmi=false
              [    3.603023] ERROR: pinctrl_get for HDMI2.0 DDC fail
              [    3.610211] HDMI2.0 module init end
              [    3.637415] twi twi2: twi2 supply twi not found, using dummy regulator
              [    3.651034] sunxi_i2c_probe()2262 - [i2c2] probe success
              [    3.660552] debugfs: Directory '2031000.dmic' with parent 'snddmic' already present!
              [    3.671151] sunxi-audio-card 2031060.sounddmic: dmic-hifi <-> 2031000.dmic mapping ok
              [    3.683260] cfg80211: Loading compiled-in X.509 certificates for regulatory database
              [    3.694528] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
              [    3.702010] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
              [    3.711852] clk: Not disabling unused clocks
              [    3.716705] cfg80211: failed to load regulatory.db
              [    3.722145] ALSA device list:
              [    3.725631]   #0: audiocodec
              [    3.728844]   #1: snddmic
              [    3.731773] alloc_fd: slot 0 not NULL!
              [    3.749031] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
              [    3.767611] devtmpfs: mounted
              [    3.771175] Freeing unused kernel memory: 196K
              [    3.776184] This architecture does not have kernel memory protection.
              [    3.783369] Run /pseudo_init as init process
              [    4.172483] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
              mount: mounting none on /dev failed: Device or resource busy
              [    5.962324] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
              [    5.980060] EXT4-fs (mmcblk0p8): mounted filesystem with journalled data mode. Opts: data=journal
              can't run '/etc/preinit': No such file or directory
              mount: mounting proc on /proc failed: Device or resource busy
              hostname: can't open '/etc/hostname': No such file or directory
              ------run rc.preboot file-----
              [    6.405868] EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: (null)
              ------run rc.modules file-----
              ------run rc.final file-----
              Load mpp modules
              ifconfig: SIOCGIFFLAGS: No such device
              [    6.829656] file system registered
              Failed to find videobuf2-core. Maybe it is a built in module ?
              [    7.136181] read descriptors
              [    7.139413] read strings
              Failed to find videobuf2-dma-contig. Maybe it is a built in module ?
              Failed to find videobuf2-v4l2. Maybe it is a built in module ?
              Failed to find vin_io. Maybe it is a built in module ?
              Failed to find imx386_mipi. Maybe it is a built in module ?
              Failed to find vin_v4l2. Maybe it is a built in module ?
              Failed to find sunxi_aio. Maybe it is a built in module ?
              Failed to find sunxi_eise. Maybe it is a built in module ?
              Starting logging: [    7.343730] 
              [    7.343730] insmod_device_driver
              [    7.343730] 
              start-stop-daemon: unrecognized option '--exec'
              BusyBox v1.27.2 () multi-call binary.
              
              Usage: start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]
              
              Search for matching processes, and then
              -K: stop all matching processes.
              -S: start a process unless a matching process is found.
              
              Process matching:
                      -u USERNAME|UID Match only this user's processes
                      -n NAME         Match processes with NAME
                                      in comm field in /proc/PID/stat
                      -x EXECUTABLE   Match processes with this command
                                      command in /proc/PID/cmdline
                      -p FILE         Match a process with PID from the file
                      All specified conditions must match
              -S only:
                      -x EXECUTABLE   Program to run
                      -a NAME         Zeroth argument
                      -b              Background
                      -c USER[:[GRP]] Change to user/group
                      -m              Write PID to the pidfile specified by -p
              -K only:
                      -s SIG          Signal to send
                      -t              Match only, exit with 0 if a process is found
              Other:
                      -q              Quiet
              start-stop-daemon: unrecognized option '--exec'
              [    7.513747] hdmi_hpd_sys_config_release
              BusyBox v1.27.2 () multi-call binary.
              
              Usage: start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]
              
              Search for matching processes, and then
              -K: stop all matching processes.
              -S: start a process unless a matching process is found.
              
              Process matching:
                      -u USERNAME|UID Match only this user's processes
                      -n NAME         Match processes with NAME
                                      in comm field in /proc/PID/stat
                      -x EXECUTABLE   Match processes with this command
                                      command in /proc/PID/cmdline
                      -p FILE         Match a process with PID from the file
                      All specified conditions must match
              -S only:
                      -x EXECUTABLE   Program to run
                      -a NAME         Zeroth argument
                      -b              Background
                      -c USER[:[GRP]] Change to user/group
                      -m              Write PID to the pidfile specified by -p
              -K only:
                      -s SIG          Signal to send
                      -t              Match only, exit with 0 if a process is found
              Other:
                      -q              Quiet
              OK
              mkdir: can't create directory '/dev/pts': File exists
              mkdir: can't create directory '/dev/shm': File exists
              Initializing random number generator... done.
              Starting network: Failed to connect to ubus
              /sbin/ifup: line 51: /sbin/wifi: not found
              FAIL
              ifconfig: invalid hw-addr 00:
              udhcpc: SIOCGIFINDEX: No such device
              Starting telnetd: OK
              enable android usb
              Failed to find sunxi_usb_udc. Maybe it is a built in module ?
              Failed to find sunxi_usbc. Maybe it is a built in module ?
              mount: mounting none on /sys/kernel/config failed: Device or resource busy
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1': File exists
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/strings/0x409': File exists
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/functions/uvc.usb0': No such file or directory
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/': No such file or directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/wWidth: nonexistent directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/wHeight: nonexistent directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwFrameInterval: nonexistent directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwDefaultFrameInterval: nonexistent directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwMinBitRate: nonexistent directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwMaxBitRate: nonexistent directory
              /etc/init.d/S50usb: line 99: can't create /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize: nonexistent directory
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/header/h': No such file or directory
              ln: /sys/kernel/config/usb_gadget/g1/functions/uvc.usb[    8.375524] Mass Storage Function, version: 2009/09/11
              0/streaming/header/h/: No such file or directory
              ln: /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/class/fs: No[    8.391077] LUN: removable file: (no medium)
               such file or directory
              ln: /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/class/hs: No such file or directory
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/header/h': No such file or directory
              ln: /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/class/fs/: No such file or directory
              ln: /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/class/ss/: No such file or directory
              mkdir: can't create directory '/sys/kernel/config/u[    8.442211] ffs_data_put(): freeing
              sb_gadget/g1/configs/c.1': File exists
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409': File exists
              mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/functions/ffs.adb': File exists
              ln: /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb/ffs.adb: Operation not permitted
              mkdir: can't create directory '/dev/usb-ffs': File exists
              mkdir: can't create directory '/dev/usb-ffs/adb': File exists
              mount: mounting adb on /dev/usb-ffs/adb/ failed: Device or resource busy
              sh: write error: Device or resource busy
              mount: mounting /dev/mmcblk0p1 on /mnt/extsd failed: No such file or directory
              
              
              BusyBox v1.27.2 () built-in shell (ash)
              
              Trying to connect to SWUpdate...
              ------run profile file-----
               _____  _              __     _
              |_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
                | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
                | |  | || | || _ |  |_____||_||_|_||___||_,_|
                |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
               ----------------------------------------------
               Tina Linux (Neptune, 5C1C9C53)
               ----------------------------------------------
              swu_param: ####
              swu_software: ####
              swu_mode: ####
              no swupdate_cmd to run, wait for next swupdate
              
              W 1 Reply Last reply Reply Quote Share 0
              • W
                whycan晕哥 LV 9 @wjp2547532 last edited by

                @wjp2547532 在 D1s麻雀 关闭uboot的显示(#CONFIG_DISP2_SUNXI=y)后,内核dts不改动,lcd的data引脚就没有输出了 中说:

                [ 0.454812] [DISP] disp_device_attached_and_enable,line:236:
                [ 0.454821] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8

                linux 的 board.dts 完整贴出来看看。

                W 2 Replies Last reply Reply Quote Share 0
                • W
                  wjp2547532 LV 5 @whycan last edited by xiaowenge

                  @whycan

                  /*
                   * 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 = "disabled";
                  	};
                  
                  	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 PB 3 GPIO_ACTIVE_HIGH>;
                  		enable-active-high;
                  		status = "disabled"; /* mango */
                  	};
                  
                  };
                  
                  &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";
                  	};
                  #if 0
                  	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";
                  	};
                  #endif
                  
                          uart0_pins_a: uart0_pins@0 {  /* For nezha board */
                                  pins = "PE2", "PE3";
                                  function = "uart0";
                                  drive-strength = <10>;
                                  bias-pull-up;
                          };
                  
                          uart0_pins_b: uart0_pins@1 {  /* For nezha board */
                                  pins = "PE2", "PE3";
                                  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";
                  	};
                  #if 0
                  	uart3_pins_a: uart3_pins@0 {  /* For EVB1 board */
                  		pins = "PG8", "PG9";
                  		function = "uart3";
                  		muxsel = <5>;
                  		drive-strength = <10>;
                  		bias-pull-up;
                  	};
                  #endif
                  uart3_pins_a: uart3_pins@0 {  
                  				  pins = "PG8", "PG9";
                  				  function = "uart3";
                  				  drive-strength = <10>;
                  				  bias-pull-up;
                  			  };
                  
                  uart3_pins_b: uart3_pins@1 {  
                  				  pins = "PG8", "PG9";
                  				  function = "gpio_in";
                  			  };
                  
                  	twi0_pins_a: twi0@0 {
                  		pins = "PB2", "PB3";	/*sck sda*/
                  		function = "twi0";
                  		drive-strength = <10>;
                  	};
                  
                  	twi0_pins_b: twi0@1 {
                  		pins = "PB2", "PB3";
                  		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 = "PE12", "PE13";
                  		function = "twi2";
                  		drive-strength = <10>;
                  	};
                  
                  	twi2_pins_b: twi2@1 {
                  		pins = "PE12", "PE13";
                  		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 = "PB5";
                  		function = "pwm0";
                  		drive-strength = <10>;
                  		bias-pull-up;
                  	};
                  
                  	pwm0_pin_b: pwm0@1 {
                  		pins = "PB5";
                  		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 = "PB7";
                  		function = "ir";
                  		drive-strength = <10>;
                  		bias-pull-up;
                  	};
                  
                  	s_cir0_pins_b: s_cir@1 {
                  		pins = "PB7";
                  		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";
                  	};
                  	dsi2lane_pins_a: dsi2lane@0 {
                  		pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5";
                  		function = "dsi";
                  		drive-strength = <30>;
                  	    bias-disable;
                  	};
                  
                  	dsi2lane_pins_b: dsi2lane@1 {
                  		pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5";
                  		function = "io_disabled";
                  		bias-disable;
                  	};
                  };	
                  
                  &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 = "disabled";
                  };
                  
                  &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_b>;
                  	status = "okay";
                  };
                  
                  &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 15 GPIO_ACTIVE_LOW>;
                  			status        = "okay";
                  		};
                  	};
                  
                  	btlpm: btlpm@0 {
                  		compatible  = "allwinner,sunxi-btlpm";
                  		uart_index  = <0x1>;
                  		bt_wake     = <&pio PG 13 GPIO_ACTIVE_HIGH>;
                  		bt_hostwake = <&pio PG 14 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 = "disabled";
                  };
                  
                  /* 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 = "disabled";
                  };
                  
                  /* if HDMI audio is used, daudio2 should be enable. */
                  &hdmiaudio {
                  	status = "disabled";
                  };
                  
                  &sounddaudio2 {
                  	status = "disabled";
                  	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 PB 8 GPIO_ACTIVE_HIGH>; /*unused */
                  	enable-active-high;
                  	usb_det_vbus_gpio = <&pio PB 9 GPIO_ACTIVE_HIGH>;/*unused */
                  	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 {
                  	drvvbus-supply = <&reg_usb1_vbus>;
                  	status = "okay";
                  };
                  
                  &ohci1 {
                  	drvvbus-supply = <&reg_usb1_vbus>;
                  	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";
                          dmas = <&dma 44>, <&dma 44>;
                          dma-names = "tx", "rx";
                  	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 = "disabled";
                  	}; */
                  
                  	ctp@14 {
                  		compatible = "allwinner,goodix";
                  		device_type = "ctp";
                  		reg = <0x14>;
                  		status = "okay";
                  		ctp_name = "gt9xxnew_ts";
                  		ctp_twi_id = <0x2>;
                  		ctp_twi_addr = <0x14>;
                  		ctp_screen_max_x = <0x320>;
                  		ctp_screen_max_y = <0x1E0>;
                  		ctp_revert_x_flag = <0x0>;
                  		ctp_revert_y_flag = <0x0>;
                  		ctp_exchange_x_y_flag = <0x0>;
                  		ctp_int_port = <&pio PB 3 GPIO_ACTIVE_HIGH>;
                  		ctp_wakeup = <&pio PB 2 GPIO_ACTIVE_HIGH>;
                  	};
                  };
                  
                  &twi3 {
                  	clock-frequency = <400000>;
                  	pinctrl-0 = <&twi3_pins_a>;
                  	pinctrl-1 = <&twi3_pins_b>;
                  	pinctrl-names = "default", "sleep";
                  	dmas = <&dma 46>, <&dma 46>;
                  	dma-names = "tx", "rx";
                  	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 = "disabled";
                  };
                  
                  &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 = "okay";
                  
                  	spi-nand@0 {
                  		compatible = "spi-nand";
                  		spi-max-frequency=<0x5F5E100>;
                  		reg = <0x0>;
                  		spi-rx-bus-width=<0x04>;
                  		spi-tx-bus-width=<0x04>;
                  		status="okay";
                  	};
                  };
                  
                  /*
                  &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	= "disabled";
                  };
                  
                  &keyboard0 {
                  	key0 = <210 0x160>;
                  	wakeup-source;
                  	status = "disabled";
                  };
                  
                  /*----------------------------------------------------------------------------------
                  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     = "default_lcd";
                  	lcd_backlight       = <50>;
                  	lcd_if              = <4>;
                  
                  	lcd_x               = <480>;
                  	lcd_y               = <800>;
                  	lcd_width           = <81>;
                  	lcd_height          = <34>;
                  
                  	lcd_pwm_used        = <1>;
                  	lcd_pwm_ch          = <2>;
                  	lcd_pwm_freq        = <1000>;
                  	lcd_pwm_pol         = <0>;
                  	lcd_pwm_max_limit   = <255>;
                  
                  	lcd_dclk_freq       = <31>;
                  	lcd_hbp             = <120>;
                  	lcd_ht              = <624>;
                  	lcd_hspw            = <48>;
                  	lcd_vbp             = <28>;
                  	lcd_vt              = <908>;
                  	lcd_vspw            = <12>;
                  
                  	lcd_dsi_if          = <0>;
                  	lcd_dsi_lane        = <4>;
                  
                  	deu_mode            = <0>;
                  	lcdgamma4iep        = <22>;
                  	smart_color         = <90>;
                  
                  	pinctrl-0 = <&dsi4lane_pins_a>;
                  	pinctrl-1 = <&dsi4lane_pins_b>;
                  };
                  
                  /*
                  &lcd0 {
                  // part 1 
                  lcd_used = <1>;
                  lcd_driver_name = "default_lcd";
                  // part 2 
                  lcd_if = <4>;
                  lcd_dsi_if = <0>;
                  //lcd_hv_if = <0>;
                  // part 3 
                  lcd_width = <81>;
                  lcd_height = <34>;
                  lcd_x = <480>;
                  lcd_y = <800>;
                  lcd_dclk_freq = <31>;
                  lcd_hbp = <72>;
                  lcd_ht = <624>;
                  lcd_hspw = <48>;
                  lcd_vbp = <18>;
                  lcd_vt = <831>;
                  lcd_vspw = <12>;
                  // part 4 
                  //lcd_backlight = <10>;
                  lcd_pwm_used = <0>;
                  //lcd_pwm_ch = <8>;
                  //lcd_pwm_freq = <10000>;
                  //lcd_pwm_pol = <1>;
                  //lcd_bl_en = <&pio PD 27 1 0 3 1>;
                  //lcd_bright_curve_en = <0>;
                  // part 5 
                  lcd_dsi_lane = <2>;
                  lcd_dsi_format = <0>;
                  lcd_dsi_te = <0>;
                  
                  lcd_frm = <0>;
                  //lcd_io_phase = <0x0000>;
                  lcd_gamma_en = <0>;
                  lcd_cmap_en = <0>;
                  //lcd_hv_clk_phase = <0>;
                  //lcd_hv_sync_polarity= <0>;
                  // part 6 
                  lcd_power = "vcc-lcd";
                  lcd_pin_power = "vcc-pd";
                  pinctrl-0 = <&dsi2lane_pins_a>;
                  pinctrl-1 = <&dsi2lane_pins_b>;
                  };
                  */
                  /*
                  &lcd0 {
                  // part 1 
                  lcd_used = <1>;
                  lcd_driver_name = "default_lcd";
                  // part 2 
                  lcd_if = <0>;
                  lcd_hv_if = <0>;
                  // part 3 
                  lcd_width = <150>;
                  lcd_height = <94>;
                  lcd_x = <800>;
                  lcd_y = <480>;
                  lcd_dclk_freq = <33>;
                  lcd_hbp = <46>;
                  lcd_ht = <1055>;
                  lcd_hspw = <0>;
                  lcd_vbp = <23>;
                  lcd_vt = <525>;
                  lcd_vspw = <0>;
                  // part 4 
                  lcd_backlight = <10>;
                  lcd_pwm_used = <1>;
                  lcd_pwm_ch = <8>;
                  lcd_pwm_freq = <10000>;
                  lcd_pwm_pol = <1>;
                  lcd_bl_en = <&pio PD 27 1 0 3 1>;
                  lcd_bright_curve_en = <0>;
                  // part 5 
                  lcd_frm = <1>;
                  lcd_io_phase = <0x0000>;
                  lcd_gamma_en = <0>;
                  lcd_cmap_en = <0>;
                  lcd_hv_clk_phase = <0>;
                  lcd_hv_sync_polarity= <0>;
                  // part 6 
                  lcd_power = "vcc-lcd";
                  lcd_pin_power = "vcc-pd";
                  pinctrl-0 = <&rgb18_pins_a>;
                  pinctrl-1 = <&rgb18_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 = "okay";
                  };
                  
                  &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";
                  };
                  
                  1 Reply Last reply Reply Quote Share 0
                  • W
                    wjp2547532 LV 5 @whycan last edited by

                    @whycan 晕哥,我改为rgb接口以后测量数据管脚PD0~PD8也是没有信号

                    W 1 Reply Last reply Reply Quote Share 0
                    • W
                      whycan晕哥 LV 9 @wjp2547532 last edited by

                      @wjp2547532

                      cat /sys/class/disp/disp/attr/sys

                      执行命令看看.

                      W 1 Reply Last reply Reply Quote Share 0
                      • W
                        wjp2547532 LV 5 @whycan last edited by xiaowenge

                        @whycan

                        screen 0:
                        de_rate 300000000 hz, ref_fps:60
                        mgr0: 800x480 fmt[rgb] cs[0x204] range[full] eotf[0x4] bits[8bits] err[0] force_sync[0] unblank direct_show[false] iommu[1]
                        dmabuf: cache[0] cache max[0] umap skip[0] overflow[0]
                                lcd output      backlight( 10)  fps:87.7         800x 480
                                err:0   skip:188        irq:5882        vsync:0 vsync_skip:0
                           BUF    enable ch[1] lyr[0] z[16] prem[N] a[pixel 255] fmt[  0] fb[ 800, 480; 800, 480; 800, 480] crop[   0,   0, 800, 480] frame[   0,   0, 800, 480] addr[ffc00000,       0,       0] flags[0x       0] trd[0,0]
                        

                        这是我改成rgb接口的

                        1 Reply Last reply Reply Quote Share 0
                        • W
                          whycan晕哥 LV 9 last edited by

                          @wjp2547532
                          看起来正常,是不是量错了?

                          W 1 Reply Last reply Reply Quote Share 0
                          • W
                            wjp2547532 LV 5 @whycan last edited by

                            @whycan 好的晕哥,我这边在对一下原理图看看

                            W 1 Reply Last reply Reply Quote Share 0
                            • W
                              wjp2547532 LV 5 @wjp2547532 last edited by

                              @wjp2547532 晕哥,你那里有没有F133小麻雀对应的用mipi-dsi接口点树莓派那个屏的固件

                              1 Reply Last reply Reply Quote Share 0
                              • W
                                whycan晕哥 LV 9 last edited by

                                @wjp2547532

                                没有,但是有 别的D1s开发板+别的mipi显示屏固件:

                                复制这段内容后打开百度网盘APP,操作更方便哦。 链接:https://pan.baidu.com/s/1h-yRCvY3I7fhlVL9tVIfvw?pwd=awol 
                                提取码:awol--来自百度网盘超级会员V4的分享

                                W 1 Reply Last reply Reply Quote Share 0
                                • W
                                  wjp2547532 LV 5 @whycan last edited by

                                  @whycan好的,谢谢晕哥

                                  W 1 Reply Last reply Reply Quote Share 0
                                  • W
                                    wjp2547532 LV 5 @wjp2547532 last edited by xiaowenge

                                    @wjp2547532 2222222222.png
                                    晕哥,我用了上图中你链接里的两个固件都在麻雀板子上试了,都挂在uboot初始化sd卡时,这俩固件不支持从sd卡启动么?启动日志如下:

                                    [576]HELLO! BOOT0 is starting!
                                    [578]BOOT0 commit : 88480af-dirty
                                    [582]set pll start
                                    [584]fix vccio detect value:0xc0
                                    [587]periph0 has been enabled
                                    [590]set pll end
                                    [591][pmu]: bus read error
                                    [594]board init ok
                                    [596]ZQ value = 0x2e
                                    [598]get_pmu_exist() = -1
                                    [600]ddr_efuse_type: 0xa
                                    [602]trefi:7.8ms
                                    [605][AUTO DEBUG] single rank and full DQ!
                                    [609]ddr_efuse_type: 0xa
                                    [611]trefi:7.8ms
                                    [613][AUTO DEBUG] rank 0 row = 13 
                                    [616][AUTO DEBUG] rank 0 bank = 4 
                                    [619][AUTO DEBUG] rank 0 page size = 2 KB 
                                    [623]DRAM BOOT DRIVE INFO: V0.33
                                    [626]DRAM CLK = 528 MHz
                                    [628]DRAM Type = 2 (2:DDR2,3:DDR3)
                                    [632]DRAMC read ODT  off.
                                    [634]DRAM ODT off.
                                    [636]ddr_efuse_type: 0xa
                                    [639]DRAM SIZE =64 M
                                    [641]dram_tpr4:0x0
                                    [642]PLL_DDR_CTRL_REG:0xf8002b00
                                    [645]DRAM_CLK_REG:0xc0000000
                                    [648][TIMING DEBUG] MR2= 0x0
                                    [653]DRAM simple test OK.
                                    [655]dram size =64
                                    [657]card no is 0
                                    [658]sdcard 0 line count 4
                                    [661][mmc]: mmc driver ver 2021-04-2 16:45
                                    [670][mmc]: Wrong media type 0x0
                                    [673][mmc]: ***Try SD card 0***
                                    [682][mmc]: HSSDR52/SDR25 4 bit
                                    [685][mmc]: 50000000 Hz
                                    [687][mmc]: 3796 MB
                                    [689][mmc]: ***SD/MMC 0 init OK!!!***
                                    [741]Loading boot-pkg Succeed(index=0).
                                    [744]Entry_name        = opensbi
                                    [747]Entry_name        = u-boot
                                    [751]Entry_name        = dtb
                                    [754]mmc not para
                                    ?56]Jump to second Boot.
                                    
                                    U-Boot 2018.05-g24521d6-dirty (Nov 11 2022 - 13:32:11 +0800) Allwinner Technology
                                    
                                    [00.766]DRAM:  64 MiB
                                    [00.768]Relocation Offset is: 01ee3000
                                    [00.772]secure enable bit: 0
                                    [00.776]CPU=720 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
                                    [00.782]flash init start
                                    [00.784]workmode = 0,storage type = 1
                                    [00.787][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
                                    [00.793][mmc]: get sdc_type fail and use default host:tm1.
                                    FDT ERROR:fdt_get_all_pin:get property handle pinctrl-0 error:FDT_ERR_INTERNAL
                                    [00.805][mmc]: get card0 default pin fail
                                    [00.809][mmc]: can't find node "mmc0",will add new node
                                    [00.814][mmc]: fdt err returned <no error>
                                    [00.818][mmc]: Using default timing para
                                    [00.821][mmc]: sunxi mmc pin set failed!
                                    [00.825]error card no error
                                    [00.827][mmc]: MMC Device -1 not found
                                    fail to find one useful mmc card
                                    initcall sequence 0000000043f8f110 failed at call 000000004200e8c0 (err=-1)
                                    ### ERROR ### Please RESET the board ###
                                    
                                    W 1 Reply Last reply Reply Quote Share 0
                                    • W
                                      whycan晕哥 LV 9 @wjp2547532 last edited by

                                      @wjp2547532
                                      dts要改下才行,后来我改了,但是没有更新。

                                      晚点我更新一下。

                                      W 2 Replies Last reply Reply Quote Share 0
                                      • W
                                        wjp2547532 LV 5 @whycan last edited by

                                        @whycan 好的

                                        1 Reply Last reply Reply Quote Share 0
                                        • W
                                          wjp2547532 LV 5 @whycan last edited by

                                          @whycan 晕哥,有空的话更新一下固件哈,多谢多谢

                                          1 Reply Last reply Reply Quote Share 0
                                          • 1 / 1
                                          • First post
                                            Last post

                                          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                                          行为准则 | 用户协议 | 隐私权政策