Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4048126ybv; Sun, 16 Feb 2020 12:23:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxVU7e0TjGlNhziVpXNt+l/ciCozN6vyx4/d/+Y1gCfGEDcJJB/wMVTQ1Wv4k7L3ssUzcsa X-Received: by 2002:a9d:7852:: with SMTP id c18mr9440317otm.247.1581884580696; Sun, 16 Feb 2020 12:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581884580; cv=none; d=google.com; s=arc-20160816; b=bt2SZJNefYEZbc5GJt1CqSMWHfuFULtBybZPiQixQ4+kVJBYqC6xsgXISsNhb1LkRw cWkO2nESiziNeN3GAWJS22+KmR+UFkqvM4QbquKYJug0s9RkWPJWD4sJrXW8SvOx8F0O Dj+gRnv0xxqdZimLkTPQ1EXRjnEyNZPqw6qZugnSBEweJOrVyNgfLagCRaHxgHoZ8Dtq GhHF3NXfOc2gkqkswzQ1FVDEQwLZjMrOUDlEB11Zrt1tU2DMvvFwYEh1T+uQUKZWfrDG tDO5jwZbvHkVs7KxujXvFMe0PnMRfypjxcfMSzzbpAAAo0DMa/PJ/MxPrS1WzyAtaqVw 1eGg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=z3zfUADPk/oUyuzJ7VgI1Juwrp+2x57KXXaZ+inluLQ=; b=sC/vb0REO8k6nCf9S1hvEAHtktMXYAqobCf3KVRywiBB2UyaF9YaebqaflEq5e7PA0 bUcQDkOf7hHBqQ35N/cyeVP7D6nwnqD2UT0YTLzQ0C3eBk/Ihfvgmht0sIr63PlQh7rR +eg9HHa2uPw1/Zm3Gj4JbLYyyM7JtrBXP5BufU/k7peEKKdfiRqYvBplI4p5u2aRawFd vBvAbnLFSszhCwa24QwLJUYygptazf0Euo3FovC5b4GbhWJuO6JOzxeK9bKls3x/UApZ newj87TWf4CvuieYG34bb75li818bkWFM3K8lW8h8pOCkVooK2Ud5WazUiLV0f0/F4Kz i7Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FfX3pzUB; 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 k9si5809900oiw.262.2020.02.16.12.22.48; Sun, 16 Feb 2020 12:23:00 -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=FfX3pzUB; 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 S1728198AbgBPUV3 (ORCPT + 99 others); Sun, 16 Feb 2020 15:21:29 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41717 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728054AbgBPUV0 (ORCPT ); Sun, 16 Feb 2020 15:21:26 -0500 Received: by mail-pg1-f195.google.com with SMTP id 70so7911210pgf.8; Sun, 16 Feb 2020 12:21:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z3zfUADPk/oUyuzJ7VgI1Juwrp+2x57KXXaZ+inluLQ=; b=FfX3pzUBHrAj8jkxvad38rERLbzrfN6+fcK0HplUj8CLnl7DtX87kPUDbcoasbyS82 pQ9uEpb/xIrz/MpMfylFu9z6L8g6whgnCiUxq23GL/a6EihKQsLBTMhTmqA3SR80+h3C TOvZGwwM3Ko2e3npVE/d9dI4cNkAaL7Qxbt8OrLFDQIX/f+OmLSd0W5/RWKSV4VcC9Wv vXPCJGyEPhvzo8tY6cuI+5EwhTPJxkYVb0HlES2oO/AUQ9Y5ytzRHlLfZX8frnnwgg1N gYKdezI67yJAV59FQoRuM3NVQtL6Fp6/jKR2Wuin3KONqeeE4YATVM6KqbQBaSRCOdJQ hb2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z3zfUADPk/oUyuzJ7VgI1Juwrp+2x57KXXaZ+inluLQ=; b=XA8ipsank3fZA1zpRZIOjy//fBpAOsU3fg/woqj1FIxWoVFGuXh4hg11FftQFzTtYa uRLq8LDN8rpIhJi8Xm3w/XGJhBTg13Z28j9j+lrCqWlmUcLED6+hazU/A/ZqTRF4thEm HiTkD/K8psitlN1eL8BtZzKMLMKMb1W3hyaKRKiHflYPfkYwE43mdYmWMftF2uHkmUN8 DVA6Eqj1KtluwYAkrEhPATmGjFk/7DU3bUdhNhrit4gv6AHeHUjy/DDSG4oEz7p3UFLG Cw175o+n2unw+rrIUWqPxTDCpFttNoxHI8lS/yWNzznwCqytYgtavOVZqpCraUZxeAg4 2jvg== X-Gm-Message-State: APjAAAVhZst2VugebkT4xsWE5sR/uEegtRU58D1LI0XscGge45H7Xde6 sDw4h6e5DMg87AfR314mT88= X-Received: by 2002:a63:9dcd:: with SMTP id i196mr14159101pgd.93.1581884485869; Sun, 16 Feb 2020 12:21:25 -0800 (PST) Received: from localhost.localdomain ([103.51.74.127]) by smtp.gmail.com with ESMTPSA id l69sm14424750pgd.1.2020.02.16.12.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 12:21:25 -0800 (PST) From: Anand Moon To: Rob Herring , Kevin Hilman , Martin Blumenstingl , Neil Armstrong Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Jerome Brunet Subject: [PATCH] arm64: dts: amlogic: odroid-n2: set usb-pwr-en regulator always on Date: Sun, 16 Feb 2020 20:21:01 +0000 Message-Id: <20200216202101.2810-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.25.0 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 usb-pwr-en regulator is getting disable after booting, setting regulator-alway-on help enable the regulator after booting. [ 31.766097] USB_PWR_EN: disabling Fixes: c35f6dc5c377 (arm64: dts: meson: Add minimal support for Odroid-N2) Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- Patch generated on top of my earier patch. [0] https://patchwork.kernel.org/patch/11384531/ [1] https://patchwork.kernel.org/patch/11384533/ Before [root@alarm ~]# cat /sys/kernel/debug/regulator/regulator_summary | grep USB USB_PWR_EN 0 1 0 unknown 5000mV 0mA 5000mV 5000mV After [root@alarm ~]# cat /sys/kernel/debug/regulator/regulator_summary | grep USB USB_PWR_EN 1 1 0 unknown 5000mV 0mA 5000mV 5000mV --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts index 23eddff85fe5..938a9e15adfc 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -177,6 +177,7 @@ usb_pwr_en: regulator-usb_pwr_en { regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; vin-supply = <&vcc_5v>; + regulator-always-on; /* Connected to the microUSB port power enable */ gpio = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; -- 2.25.0