Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3944561pxb; Fri, 4 Feb 2022 22:52:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJww3SeoTACs/GbKFcDvVyoVCdaXV75mdUdltMrMs0kBTBJZ2+Lb1EqpgkxTGy5ktD+sfoWK X-Received: by 2002:a17:903:2309:: with SMTP id d9mr6633654plh.149.1644043929282; Fri, 04 Feb 2022 22:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644043929; cv=none; d=google.com; s=arc-20160816; b=PQLxeYG0fAb1UCBwX5+tE3u2FWipjmJqXGiTl+mtAm+ClZGR0ApgDGbcSxG2RWylp4 XUrWs37eAfenq2Co+lqspzbtO5LwP+8w6779deDe7yKANlY7QfOStegK7I4BjAmetOv1 xcYnrjZfXrPD62orXSGYOAL6tJIm9p9f9TFzV0H8vFIEBEK4Aawrh7FL42FPlC0E7Wg0 duAg9CR/CP04HJY/qEOypqkr6a0n+Nlh3/JcNsK20LH+RNAckr0fpw6dSL/SW1YZPv6z SN1ExXe2qFQkQ+clFKsIubbnCLJSIRU6PLXWHQV0Zp5fmR3UHNma1YMLpuwFYRIg8Xa3 hgsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=HfHoyP2ABY9yW/Ao/Ah4oEqzly5C2xQEksuTsXyC+gM=; b=w8tLc5uJMLgrQGXHu3vlf9pHIrAhe0hu96pZxJIbLI0nTc5FqyxAlTMQEpvS5ywlTg H+td6l5sXM7VVp9RIjTslXmf5Y3NdWJf66MhXSFcTp4LfDlnp/wFvjV2Dh8ChikjZPmU eCRiP8eJpt6IXVzs7lPQCDIJws88wXXIaAAU23xkWkLoQeNLnq5rHbi4KW+stP0PB/OG 8LXmGq0cpfpsQCZPsDJxPb1N4WCj0lloXHzxTFH9zks8kx6+1+GuM9TAF2YAkgI7qbIw kufbVKJz0/kUNxENlqlgq1LHr0Z8YRWqGuMKS4CUUxepqzXs7a32taWGks3XG/h7q/bD RQ8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=J7N82W8K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11si1734580plc.538.2022.02.04.22.51.56; Fri, 04 Feb 2022 22:52:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=J7N82W8K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347599AbiBDISK (ORCPT + 99 others); Fri, 4 Feb 2022 03:18:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238253AbiBDISI (ORCPT ); Fri, 4 Feb 2022 03:18:08 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74280C06173D for ; Fri, 4 Feb 2022 00:18:08 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id f17so9854249wrx.1 for ; Fri, 04 Feb 2022 00:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=HfHoyP2ABY9yW/Ao/Ah4oEqzly5C2xQEksuTsXyC+gM=; b=J7N82W8K3p0I29aXM6EtvyZx3jrhwgL4L5VxurdQNIDwquO0UshIpnxX1dhAWU06KX ICSE6ib6b/YMzbgflc7pf+rlqXl1+2bEqyynw2rQB5q9GoXo0pyPpJnUMAgGDRjXev0V nBpjMtUz3ZcVD5MIiIe0Es1WGw1HaOqubBwXxPwmycXS5y9Gp6rw46wUlHIavOuLkjj/ KhKGzs30jdYYe3lTCLDmG+5Zv4EluuzMdCjsKkm+lZeXzD+ASrPWWvN8/fN4qPj8DVd2 F7v779RhAQ//eVGZHq5g6pDXOVeuIGSxbTPkavAeym01c4zaIqRn49euF6+KJMYXps9Z uSiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=HfHoyP2ABY9yW/Ao/Ah4oEqzly5C2xQEksuTsXyC+gM=; b=mamwyXgvb3YX4KjvfoPaC2ScaCdKGBKcAa4vgjT0fyz6C7wmnzTcEkhrxMyj7xnCBM PT/b7i/6/rPzNTKTHJg3scc5cfKWvQ2NFgsCi8XZ7v3XviX9rLDyNLIgqaTjaN3CcgA1 LJD+7VkclQOJ0chsvXHcqE/d6N9rPWYKRsUFEVqAPfmh0Au9ITMnLNyPx2Mq6iJRogCm dPMFlyc6/VrsggQ0hAjvkQ9UnMQKTpIhTSpPfJiFEhia2AfMUtGz6B1isb2Bb7OyfRo4 Wz/DRE+Ff4y3vazZSZ0KPXwucSUenQzy03hb8qNwxxd7p4gVaX84W3fU+H9bz5omsBc4 1tng== X-Gm-Message-State: AOAM533c7m4dHx3BiJPFJCvn9Nh86Y/sdyeBsZvoXhIUweO5JpEon0G+ +oJldy3aqYbvDT2UnZwF14UwfA== X-Received: by 2002:a05:6000:156d:: with SMTP id 13mr1444470wrz.34.1643962686794; Fri, 04 Feb 2022 00:18:06 -0800 (PST) Received: from ?IPV6:2001:861:44c0:66c0:3fbe:ff10:110:739? ([2001:861:44c0:66c0:3fbe:ff10:110:739]) by smtp.gmail.com with ESMTPSA id r2sm1381781wrz.76.2022.02.04.00.18.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Feb 2022 00:18:05 -0800 (PST) Message-ID: <5cbe1d1e-1e80-26d9-ec39-2137f7e9e576@baylibre.com> Date: Fri, 4 Feb 2022 09:18:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] arm64: dts: meson-sm1-odroid: fix boot loop after reboot Content-Language: en-US To: Lutz Koschorreck , Rob Herring , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220128193150.GA1304381@odroid-VirtualBox> From: Neil Armstrong Organization: Baylibre In-Reply-To: <20220128193150.GA1304381@odroid-VirtualBox> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 28/01/2022 20:31, Lutz Koschorreck wrote: > Since the correct gpio pin is used for enabling tf-io regulator the > system did not boot correctly after calling reboot. > > [ 36.862443] reboot: Restarting system > bl31 reboot reason: 0xd > bl31 reboot reason: 0x0 > system cmd 1. > SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:B;RCY:0;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;0.0;CHK:0; > bl2_stage_init 0x01 > bl2_stage_init 0x81 > hw id:▒SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:B;RCY:0;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:400;USB:8;LOOP:1;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:400;USB:8;LOOP:2;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:400;USB:8;LOOP:3;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:400;USB:8;LOOP:4;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:400;USB:8;LOOP:5;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:400;USB:8; > > Setting the gpio to open drain solves the issue. > Fixes: 1f80a5cf74a6 ("arm64: dts: meson-sm1-odroid: add missing enable gpio and supply for tf_io regulator") > Signed-off-by: Lutz Koschorreck > --- > arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi > index ed7cd5f53046..ddb1b345397f 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi > @@ -48,7 +48,7 @@ tf_io: gpio-regulator-tf_io { > regulator-max-microvolt = <3300000>; > vin-supply = <&vcc_5v>; > > - enable-gpio = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>; > + enable-gpio = <&gpio_ao GPIOE_2 GPIO_OPEN_DRAIN>; > enable-active-high; > regulator-always-on; > Reviewed-by: Neil Armstrong