Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD493EB64D9 for ; Fri, 7 Jul 2023 12:29:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E635E865ED; Fri, 7 Jul 2023 14:27:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mx5.nisiq.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 37229863B8; Fri, 7 Jul 2023 13:30:18 +0200 (CEST) Received: from isp-msaf1.u-netsurf.ne.jp (isp-msaf1.u-netsurf.ne.jp [202.233.11.26]) by phobos.denx.de (Postfix) with ESMTP id DEEFF861C5 for ; Fri, 7 Jul 2023 13:30:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mx5.nisiq.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=uaa@mx5.nisiq.net Received: from framboise.uaa.org.uk.uaa.org.uk (unknown [116.65.140.46]) by isp-msaf1.u-netsurf.ne.jp (Postfix) with ESMTPA id 20E071D828; Fri, 7 Jul 2023 20:30:13 +0900 (JST) Date: Fri, 07 Jul 2023 20:30:11 +0900 Message-ID: <87y1jsc62k.wl-uaa@mx5.nisiq.net> From: SASANO Takayoshi To: u-boot@lists.denx.de Subject: [WIP] AXP313A(for Mango Pi MQ-Quad) support User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-unknown-openbsd) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Fri, 07 Jul 2023 14:27:05 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hello, Now I am trying to run U-Boot on Mango Pi MQ-Quad board. This board requires AXP313A driver and it is implemented. The diff is at GitHub, https://github.com/u-boot/u-boot/compare/master...jg1uaa:u-boot:mq Before submitting the diff, I want to know board configuration (configs/mangopi_mq_quad_defconfig and arch/arm/dts/sun50i-h616-mangopi-mq-quad.dts) is correct. At least OpenBSD for Allwinner H616 (RAMDISK kernel for installer) looks working like this: ---- U-Boot SPL 2023.07-rc6-gdc29b21fc2 (Jul 07 2023 - 20:19:06 +0900) DRAM: 1024 MiB Trying to boot from MMC1 NOTICE: BL31: lts-v2.8.4(debug): NOTICE: BL31: Built : 19:29:55, Apr 22 2023 NOTICE: BL31: Detected Allwinner H616 SoC (1823) NOTICE: BL31: Found U-Boot DTB at 0x4a08d048, model: MangoPi MQ-Quad INFO: ARM GICv2 driver initialized INFO: Configuring SPC Controller INFO: PMIC: Probing AXP305 on RSB ERROR: RSB: set run-time address: 0x10003 INFO: Could not init RSB: -65539 INFO: BL31: Platform setup done INFO: BL31: Initializing runtime services INFO: BL31: cortex_a53: CPU workaround for 855873 was applied INFO: BL31: cortex_a53: CPU workaround for 1530924 was applied INFO: PSCI: Suspend is unavailable INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x4a000000 INFO: SPSR = 0x3c9 INFO: Changed devicetree. U-Boot 2023.07-rc6-gdc29b21fc2 (Jul 07 2023 - 20:19:06 +0900) Allwinner Technology CPU: Allwinner H616 (SUN50I) Model: MangoPi MQ-Quad DRAM: 1 GiB Core: 45 devices, 18 uclasses, devicetree: separate WDT: Not starting watchdog@30090a0 MMC: mmc@4020000: 0 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: serial@5000000 Out: serial@5000000 Err: serial@5000000 Net: No ethernet found. Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 18104 bytes read in 4 ms (4.3 MiB/s) No EFI system partition No EFI system partition Failed to persist EFI variables BootOrder not defined EFI boot manager: Cannot load any image Found EFI removable media binary efi/boot/bootaa64.efi 219050 bytes read in 12 ms (17.4 MiB/s) Booting /efi\boot\bootaa64.efi disks: sd0* >> OpenBSD/arm64 BOOTAA64 1.18 boot> boot bsd.rd cannot open sd0a:/etc/random.seed: No such file or directory booting sd0a:bsd.rd: 2858428+1077500+12724624+631888 [1705467+791232+168+26848]=0x1560490 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.3-current (RAMDISK) #56: Fri Jul 7 19:28:38 JST 2023 uaa@openbsd-current-vm.uaa.org.uk:/usr/src/sys/arch/arm64/compile/RAMDISK real mem = 1072021504 (1022MB) avail mem = 1000779776 (954MB) random: boothowto does not indicate good seed mainbus0 at root: MangoPi MQ-Quad psci0 at mainbus0: PSCI 1.1, SMCCC 1.2 cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4 cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 1024KB 64b/line 16-way L2 cache cpu0: CRC32,SHA2,SHA1,AES+PMULL,ASID16 efi0 at mainbus0: UEFI 2.10 efi0: Das U-Boot rev 0x20230700 smbios0 at efi0: SMBIOS 3.0 smbios0: vendor U-Boot version "2023.07-rc6-gdc29b21fc2" date 07/01/2023 smbios0: Unknown Unknown Product "secmon" at mainbus0 not configured "osc24M-clk" at mainbus0 not configured "pmu" at mainbus0 not configured agtimer0 at mainbus0: 24000 kHz simplebus0 at mainbus0: "soc" sxisyscon0 at simplebus0 sxiccmu0 at simplebus0 sxipio0 at simplebus0: 85 pins ampintc0 at simplebus0 nirq 192, ncpu 4: "interrupt-controller" sxiccmu1 at simplebus0 sxipio1 at simplebus0: 2 pins sxitwi0 at simplebus0 iic0 at sxitwi0 "x-powers,axp313a" at iic0 addr 0x36 not configured sxidog0 at simplebus0 sximmc0 at simplebus0 sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma com0 at simplebus0: dw16550 com0: console "usb" at simplebus0 not configured "phy" at simplebus0 not configured ehci0 at simplebus0 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at simplebus0: version 1.0 "rtc" at simplebus0 not configured gpio0 at sxipio0: 32 pins gpio1 at sxipio0: 32 pins gpio2 at sxipio0: 32 pins gpio3 at sxipio0: 32 pins gpio4 at sxipio0: 32 pins gpio5 at sxipio0: 32 pins gpio6 at sxipio0: 32 pins gpio7 at sxipio0: 32 pins gpio8 at sxipio0: 32 pins gpio9 at sxipio1: 32 pins usb1 at ohci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 "leds" at mainbus0 not configured "vcc5v" at mainbus0 not configured "vcc3v3" at mainbus0 not configured "binman" at mainbus0 not configured scsibus0 at sdmmc0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: removable sd0: 14768MB, 512 bytes/sector, 30244864 sectors softraid0 at root scsibus1 at softraid0: 256 targets root on rd0a swap on rd0b dump on rd0b WARNING: CHECK AND RESET THE DATE! erase ^?, werase ^W, kill ^U, intr ^C, status ^T Welcome to the OpenBSD/arm64 7.3 installation program. (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? ---- Any comments are welcomed. Regards, -- SASANO Takayoshi (JG1UAA)