Received: by 10.223.185.116 with SMTP id b49csp1053851wrg; Sun, 11 Feb 2018 03:31:41 -0800 (PST) X-Google-Smtp-Source: AH8x227QJmOKJ00KJcCoHq327Xc04IFxCdOHZc1quM1nqVWnEH9sn11MEIFLPMYPnVpwf8kCJKZj X-Received: by 10.99.126.22 with SMTP id z22mr2333221pgc.131.1518348701613; Sun, 11 Feb 2018 03:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518348701; cv=none; d=google.com; s=arc-20160816; b=E/nY5idjSluo8Oj2GCkCdqqsRBP0SWVD4SCMu4VmqseKaUBiC36moNOGdU5qJGQSUy fqzztBDkHu1QB22SG1cIOFoe1z46K8UoxqzTmGbiLM0Uk5j0n51PdEsc+xQTR12vgMma wdYSjscTJE7e4txgzvsbOQcr4qkRJKU27ktBGNR4xiRH6uB0J+GSl7l373PJVYdbeKmP pn8oR8ti3lYJYL04vf6fUNSxUIpW1vqQzZIzAvNBvmw0ErUD38bxKCpVf51djmpOCUgI L6+eCsLx+S6GWWzPE6ghNxpTEfclWsHKguI1+LYjLXCPrcv0bQi2IQqxoJ3qE4EmHq3Q /AyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=84i/5Zyi/Q/37lP/Ez6cktnMLoJZ7saXeLw5YylxYAw=; b=evQKTWBA8R3O3T3TpMS/o9qtFD5Q3/63Qk2BtU+aZQXs3hbzOGguG5FNntNDvnj9L+ q844WhXXIlRAlTEJBWkDNJPZLmKTdvOxjxqRz6CX5C7CJNPGYZvLw6mLYFZIUVR/iLmm 0jyWUIRZpkWiQMLcGJqJJD+YUAvmeMD5IGRASIzaMH2vPtrL6VSlWQbD8bfj3+iQuA5l LkF1ao96B2833PPgpdNZkc95utaVLeIHzuUFmj6bOg8GDFWkY12cugHVIQ8ToSRq9XaM oho+6pA4kTVovZylA54EeaTHpfM9yplfGgvyYVYVBxtTnrt9MLwfgtfCWjaKD9tRkY/T e6UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ue/cN7Tr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si2382705pgo.709.2018.02.11.03.31.27; Sun, 11 Feb 2018 03:31:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ue/cN7Tr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753334AbeBKLah (ORCPT + 99 others); Sun, 11 Feb 2018 06:30:37 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:40232 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753148AbeBKLaf (ORCPT ); Sun, 11 Feb 2018 06:30:35 -0500 Received: by mail-wr0-f194.google.com with SMTP id o76so9317265wrb.7; Sun, 11 Feb 2018 03:30:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=84i/5Zyi/Q/37lP/Ez6cktnMLoJZ7saXeLw5YylxYAw=; b=ue/cN7TrTZ6Z/xpNQC5K8ao/4lkjgu4UR6clolDgiWWWlBLHA86KrOiLC2arDJcqcd BrYcAFnHbMcCZmCgseg9T9Lqw1mLXazOTlspUC9EDN+ASEP/eOn6wpYNcsBZ41NUcxxh exiG0ZcxKJtKwb0BDejLTmkfuyXB/QobGLqxJpM1OYZERaE2LdPulFa92nJnHcAHAI8Z M2INJ7Jvda9981CZ1F2O2KRUUt9XqM/1Nh6VB/GV7mtsCU7eoT+WOECQUzHMQCattWv/ t3ARIISvFcs0ijmra4VefMD8ZmqKRG4uG1RcmXtEFLoEdVzmjeP6q1nTdW/OU/io8cCU LvvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=84i/5Zyi/Q/37lP/Ez6cktnMLoJZ7saXeLw5YylxYAw=; b=amDyra9w1F2Nf5MpAaK5S6XP3klaXqdoJdXIIPxG932pgvefoOco/eh14du1yi0yzb BWKl1kcF1jf2Nnvq2HGHAK6C9Xxrdqg/YYbSwaA44WOjNGcSo2wNa4muqjOhon2YCww9 i65zwE0HMbcMLiVqtB5dPEr9L06a8gr4WqGZs2p6Gb5LPUSFpAPHjVw52YGulACBCzKk cwPe+HEG0Sw+wwPHFX8jyKfP9xROo24BIkiWwGGb1+I/6rVG5tqFFkqa4vXaLWGgSxFD clUB9tAk0amsLxyw4RmMuHx5PSeZ2i7sHCpEKwE4XwAKP999rQxOqU7jkcGmQn36Vo2w oNWQ== X-Gm-Message-State: APf1xPA1mAK9kjSFYL+ET4udnpCDCRsUkpYO0Bss2s3pUUhJscDh+sMr 3VPL/udI2jXNo3ErAIafC+E= X-Received: by 10.223.164.1 with SMTP id d1mr7720630wra.28.1518348634125; Sun, 11 Feb 2018 03:30:34 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.googlemail.com with ESMTPSA id z20sm6346746wrz.20.2018.02.11.03.30.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 03:30:33 -0800 (PST) Message-ID: <1518348631.1342.1.camel@gmail.com> Subject: Re: [PATCH 0/3] Fix broken bananapi m2 devicetree/regulators From: Philipp Rossak To: Sergey Suloev , robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Sun, 11 Feb 2018 12:30:31 +0100 In-Reply-To: <45fb86c9-2218-d00d-1952-6b79f9101049@orpaltech.com> References: <20180209175236.21215-1-embed3d@gmail.com> <160b60e2-6e50-0d63-e6ac-b67e10317e12@orpaltech.com> <40887d4b-0fb0-239e-e5a9-1a87f82946c2@orpaltech.com> <45fb86c9-2218-d00d-1952-6b79f9101049@orpaltech.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Sonntag, den 11.02.2018, 10:55 +0300 schrieb Sergey Suloev: > On 02/11/2018 01:07 AM, Philipp Rossak wrote: > > > > > > On 10.02.2018 22:08, Sergey Suloev wrote: > > > On 02/11/2018 12:01 AM, Philipp Rossak wrote: > > > > Hey Sergey, > > > > > > > > Thanks for mentioning, but I think the problem has nothing to > > > > do  > > > > with those patches. I tested them with the v4.15.0 Kernel since > > > > this  > > > > is the last stable release and we are right now in the merging > > > > window. > > > > > > > > I tested the latest mainline, without those patches and the > > > > kernel  > > > > is not booting (I can't see any uart output). > > > > > > > > Thanks, > > > > Philipp > > > > > > > > On 10.02.2018 14:56, Sergey Suloev wrote: > > > > > On 02/09/2018 08:52 PM, Philipp Rossak wrote: > > > > > > This patchseries fixes the bananapi m1 devicetree, to be > > > > > > able to  > > > > > > boot again. > > > > > > The first two patches update/improve the devicetree and the > > > > > > last  > > > > > > patch adds > > > > > > all missing regulators. > > > > > > > > > > > > Regards, > > > > > > Philipp > > > > > > > > > > > > Philipp Rossak (3): > > > > > >    arm: dts: sun6i: a31s: bpi-m2: update mmc supply nodes > > > > > >    arm: dts: sun6i: a31s: bpi-m2: improve pmic properties > > > > > >    arm: dts: sun6i: a31s: fix: bpi-m2: add missing > > > > > > regulators > > > > > > > > > > > >   arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 70  > > > > > > +++++++++++++++++++++++- > > > > > >   1 file changed, 67 insertions(+), 3 deletions(-) > > > > > > > > > > > > > > > > patches are not working > > > > > > > > > > Thanks > > > > > > > > > > > same problem, but after applying the patches my device is till > > > hanging. > > > > > > > > > > Can you please share a bootlog? Here is mine [1]. As you can see > > I'm  > > able to boot. > > I build it with this branch [2]. For testing you should replace > > the  > > dtb and the uImage/zImage > > > > Philipp > > > > > > [1]: https://pastebin.com/mVjv3LDf > > [2]:  > > https://github.com/embed-3d/linux/tree/testing/bpi-m2-regulator-tes > > t-2 > > My dmesg is very similar to yours unless it hangs on the last line > [1].  > For this test I used kernel from tag v4.15 with no additional > patching. > > [1] https://pastebin.com/3a6bk5Dk > > For me it looks like you have a different kernel and also an different dtb that you patch! And you are applying also a fixup script. These patches should be applied on top of linux mainline. fixup script: Applying kernel provided DT fixup script (sun6i-a31s-fixup.scr) Linux versions: 4.15.0-00003-g1bbe5edde691 vs 4.15.0-sunxi-dirty In addition to that you are also booting into fb/hdmi. If you use my branch (uImage and dtb) and replace the current boot.cmd with this (to get the boot.scr you need to use mkimage) it should work: setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait panic=10 load mmc 0:1 0x43000000 ${fdtfile} || load mmc 0:1 0x43000000 boot/${fdtfile} load mmc 0:1 0x42000000 uImage || load mmc 0:1 0x42000000 boot/uImage bootm 0x42000000 - 0x43000000