From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F017EA3 for ; Sat, 21 Oct 2023 00:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 608FA143D; Fri, 20 Oct 2023 17:04:07 -0700 (PDT) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D502A3F64C; Fri, 20 Oct 2023 17:03:25 -0700 (PDT) Date: Sat, 21 Oct 2023 01:02:21 +0100 From: Andre Przywara To: project-tvbox project-tvbox Cc: u-boot@lists.denx.de, linux-sunxi Subject: Re: error on h616 ID axp806 legacy kernel Message-ID: <20231021010221.3ac96652@slackpad.lan> In-Reply-To: References: Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.1 (GTK 3.24.31; x86_64-slackware-linux-gnu) Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 5 Oct 2023 17:37:48 -0300 project-tvbox project-tvbox wrote: Hi, > In the legacy kernel, when starting, the error appears: > the chip id is 0x5d00 > ic cant match axp, please check... Please keep in mind that the BSP code contains a lot of nonsense, the PMIC setup seems to be particularly problematic, with dramatic error messages even when everything is fine. So is there any actual problem with your box? And I don't know what "chip id" here refers to, but it's surely not the AXP ID from I2C register 0x3, since that is only 8 bits wide. That number looks more like from the first part of the SID, which is also used in the DVFS code to discern certain dies or SoC revisions. In any case, are you sure that your device actually has a PMIC? It is not unheard of for TV boxes to drop that chip (many H6 TV boxes did), as fine grained power management might not be too useful in a TV box. Cheers, Andre P.S. Please try to add some Allwinner specific lists (see the CC: here), or the #linux-sunxi IRC channel to get quicker responses. > well, in the axp.h code the id is defined as 0x40, I tried changing it > to 0x5d00, but it does not accept the u-boot compilation error, does > anyone know how to change it, it seems to be an error in the number of > registers available in the .h