From patchwork Sat Aug 24 18:49:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11113095 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 171FA912 for ; Sat, 24 Aug 2019 18:50:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E6267206B7 for ; Sat, 24 Aug 2019 18:50:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CqVNt+OP"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ueVeoJxL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E6267206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DcphgB7PovP3lBtCxUcabrIyDxStteQvPECdbn74CmE=; b=CqVNt+OPEs6RA4 MDw0+yTz4LRxWB6amhzhAI83X/htxf4ipf47kuBBCGZrrq7mYMLYwCriFtZtOe3fANHuzaRmjH/LZ VAnEBNrcQfoafAnLHYcwNZ1aOmOhjMNeFYlZm9dV2E9e2ZMmngh9i6yVYIA4oJ/Caeo642ysa0KJF A65jQYjpCRejYPKc2YINmBa/D3TwRn2u7L/UTozLYcgvO7+mOvnV0MOEyHsF69yDLxSaWLjKEdRwz 0JlUBF+fUnxVpwNJMsHMowcL/P0fAJj61JpDGs7L1/BapaO1XfveWdHZJw6/fwVc5ia6JxAE5gGMo 9DvKjaVo3z/Sr0ez5vBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i1b7E-0006Sd-4J; Sat, 24 Aug 2019 18:50:20 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i1b6q-000535-Vi; Sat, 24 Aug 2019 18:49:58 +0000 Received: by mail-pl1-x641.google.com with SMTP id t14so7606254plr.11; Sat, 24 Aug 2019 11:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mWM5LytVm+qVRCAst8MByyiY2Qa5JPuN6rsR3ZQ70z8=; b=ueVeoJxLluToFx+7NSL/79KFr3FgDymk0Q3IbzlNc+RpUCVdkfYubfuw6llg0MT83V RHgYVMjGtjLKwPLF61/YYc9Vamj9ZHFRtdUo1R167dxlVQEzi/NmTBb21scWlroo54nQ 20pTzu1ghzF8CEsSaxA7nT5KeVzB/td+GaCu8w9N/gYCutyTid0mHqavLhEVZneea+rj JcOH9hMGAmiucsSC3yXuhy6M96YV9hDz7evYiEfc8txKzC7iBrMNFDwUvCdW8R8kudaY 9bIZTWwLbpD0meiOnN64iZxIGMznrvrI9DZZyZ2P6xjpAc7JzbmhzPAwsq0nwUJzuxxv 18Gw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=mWM5LytVm+qVRCAst8MByyiY2Qa5JPuN6rsR3ZQ70z8=; b=bJtwJ2VZGLzrloUl1rzGXl48nHDn3Edjx87eVcxSqNAmB3b20OlmiUplgbfmgMkajM zkCloX89fDDgb4NIntpkohC59uBdmgSSukks8Si5z1h0O/9BwQT7qE18OX1RObxH6HWu prabXpSIuriBjiaqIXUYHBQwEaxx9IS1v9/jTO49NaVtpkNiypDbi+1bCrug8peQjNBa 7dC9qc8k5ZfhibK9NU88M3GuSFlffPAA/QiOAXRWA02ZjjYVtBGI2ouL2L81rbUNDZNV KdyXQNsOhrtdArqVN1Y30905/yqE+V6EPhTeRviQx1VVfHTyoQnT3GXmxhqVrshFx/Ph z75A== X-Gm-Message-State: APjAAAWnEuB8uqY/rp+8Y8V81Mu38AUHBMiG7IjvpCrnO+ZoWXDq/INP SqSXrsLA10HuWmlR5ftHQ+I= X-Google-Smtp-Source: APXvYqxcnSVgRSIlKHxAzb4Ia7pYMTMytnfEb5MOPyrQskplVfhLXfLS9fKipFL2C/aKSs2M2GNqjw== X-Received: by 2002:a17:902:1105:: with SMTP id d5mr11346603pla.197.1566672596225; Sat, 24 Aug 2019 11:49:56 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.111]) by smtp.gmail.com with ESMTPSA id t8sm5519292pji.24.2019.08.24.11.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2019 11:49:55 -0700 (PDT) From: Anand Moon To: Rob Herring , Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Kevin Hilman Subject: [PATCHv4 1/3] arm64: dts: meson: odroid-c2: p5v0 is the main 5V power input Date: Sat, 24 Aug 2019 18:49:10 +0000 Message-Id: <20190824184912.795-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190824184912.795-1-linux.amoon@gmail.com> References: <20190824184912.795-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190824_114957_016298_7A8DD601 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linux.amoon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org As per the schematic Monolithic Power Systems MP2161GJ-C499 supply a fixed output voltage of 5.0V. This supplies linked to VDD_EE, HDMI_P5V0, USB_POWER, VCCK, VDDIO_AO1V8, DDR_VDDC according to the schematics. Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- Changes from my previous attempt below [1] https://lore.kernel.org/patchwork/patch/1031243/ New patch and fix the commit message. Added regulator-always-on since this is core input regulator. Split the linking on regulator and usb node in separate patch. Later more patchs will follow linking more core regulator as per shematics. --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 9972b1515da6..41d5fa370eb3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -50,6 +50,15 @@ }; }; + p5v0: regulator-p5v0 { + compatible = "regulator-fixed"; + + regulator-name = "P5V0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + tflash_vdd: regulator-tflash_vdd { /* * signal name from schematics: TFLASH_VDD_EN From patchwork Sat Aug 24 18:49:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11113099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2764714DB for ; Sat, 24 Aug 2019 18:50:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 026402146E for ; Sat, 24 Aug 2019 18:50:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DSSD4vTB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ta+h6P6P" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 026402146E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FyDncG+AKwyyVrL7iqSvkS+QXNXKj+snDs4Uq8zBI0k=; b=DSSD4vTBvJLhyE UX/yamzIqHuxWXzbG9qrjDdlN6+QbHH7OFpkGFvyieiezPp1/xVVEDVh1Km7NzQJaxe7r/nGWe4n4 bSz1Gpmxj7ubkfsWn8faLfMMLtYxc70Qa+yHKFp79kfbrPm2faSAH+czg4rCA73QzeGisBIxbBEsw NTmwrHlZaU79aFQxuzLVbH9T5e53mFHAKd2rF91xgmaWk25ngvjvMqJ6zhjk4gYEyISKgro/S+aBb lnHVn7Jv8FQe+5GzE8eOBvPWmuaJrzbIyShzNIu02Z1L+H8+XVefsQcyHNK9JoUVcx/u4rcM1T3SK 65uG7YCl+yjGoF/jtwXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i1b7T-0006ga-K2; Sat, 24 Aug 2019 18:50:35 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i1b6u-00054A-3w; Sat, 24 Aug 2019 18:50:01 +0000 Received: by mail-pl1-x642.google.com with SMTP id y1so7591636plp.9; Sat, 24 Aug 2019 11:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KG3wU0cDOLtAU+yc37BRhIg5M3JzRBY8MVvSn1NtlyE=; b=Ta+h6P6PVcFDwVsgbSLDnX7gW1kemD4czlwwbc9mlHYkvo3nUiUfIZBGt3zo3guLa2 +lv7tOVxu5RWaoChp/DBlEUeL6kBIk4KP14FEyD81Rw7dkDatNKh1Nx8aPrIRW+055uE mzL7uMMNrUTDfre2uT4D5ewQRUlzt9CT0EzQTwMZKa+3YCyxwEL6zctSftTDqdf+DRv0 +XcRw2nk+xjeyD+uLyjgRyJvj919MO0EQqIiDCN32Cd4LjINgcLXvn5HHX3PpXb/tey5 uU5c8DHLDDoaRu1PXKgKITwBUejIhQFdLX1OoUhgVCKeEfJClSCPmhqS4uPSD2KF0CzQ 1VWQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KG3wU0cDOLtAU+yc37BRhIg5M3JzRBY8MVvSn1NtlyE=; b=JIuR8IgQwrkHFVjwQS62lJg+/Ly7lumNN8EHWyYtYOchJFw1Mghz6KOzcTaVOoptkV lO9PaH5V2UJqblOlQMffib5zyguZmh6ul4hfgfH8AQLu2+hGOU+DP/KK2S0wvaXvOiap gVnaK8ziDBstsJoXKHtvileQF/CvSvr7mf9ego0agUNpdw4qOgofFfzpKDsxKvsAUih2 79KRlDqhFqFy4a0Y0tZwVFhU8bayW0bX+7K3/iruEicVwFRNekQlXkmlwT4h4hC1NSpc akrAcpJgc+XGw/8ZIDVxAbbo7oO/aEtXbqWKWA0UJ+vtgrRpcC6oH/HVbNOOGq0A57e0 K1/A== X-Gm-Message-State: APjAAAX5TjRFbdYDGadfKYfTtHgEV+DlrO/K6fAcLkTJ5xw3q5mG5lEJ UJFzA68QLzPuouQvxZRE5rQ= X-Google-Smtp-Source: APXvYqyMAOX4IlwwT6RsKneClv2NtasaHom5hyOCs/mi2fe6yXE26vU3ERE59ELNNeC8HH/dakqjPw== X-Received: by 2002:a17:902:e30f:: with SMTP id cg15mr11298012plb.46.1566672599386; Sat, 24 Aug 2019 11:49:59 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.111]) by smtp.gmail.com with ESMTPSA id t8sm5519292pji.24.2019.08.24.11.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2019 11:49:59 -0700 (PDT) From: Anand Moon To: Rob Herring , Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Kevin Hilman Subject: [PATCHv4 2/3] arm64: dts: meson: odroid-c2: Add missing linking regulator to usb bus Date: Sat, 24 Aug 2019 18:49:11 +0000 Message-Id: <20190824184912.795-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190824184912.795-1-linux.amoon@gmail.com> References: <20190824184912.795-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190824_115000_158298_FFCBAE72 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linux.amoon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org Add missing linking regulator node to usb bus for power usb devices. Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- Changes from previous patch [1] https://lore.kernel.org/patchwork/patch/1031243/ split the changes and add the comments to power source --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 41d5fa370eb3..f3dcabf97c63 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -36,8 +36,15 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; + /* + * signal name from schematics: PWREN + */ gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; enable-active-high; + /* + * signal name from sehematics: USB_POWER + */ + vin-supply = <&p5v0>; }; leds { From patchwork Sat Aug 24 18:49:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11113103 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6A5E912 for ; Sat, 24 Aug 2019 18:50:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92534206B7 for ; Sat, 24 Aug 2019 18:50:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WcaiMaiv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ipXG6/TX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 92534206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2ze2LgzNlvseGvziDdiPcKVTPJr1Aup8daOcpq7ffKs=; b=WcaiMaivlCnYsA Cv6N4ECH5qj/VTKvU/sAr01GvmV2vZOZZk/4CyPBPWjcnGbo3QVW7uUUeJ3sTS16RbJCmI1kszpuL PlK2IEvEm+vdpcgy+wfx0tKiYv0vuUe/LcdzmGe4qt/ZP98ySoP89Bj+6TlKPq4DYKNRkqtD01523 KwKP9Err9QIktrA+4S0nua4s49XA78wuB5uaT1o4nH2SYOrf8J14+aU4VJeZsAOikyB9nidm7lc2d NNuuxc9r0i+W0Ze74H56x5T21QOkXMUkICzIJecezsXaZScPbTagy4BYGO2tjEG2BvJSBS7ojhV0R 0e1k/gF4HySl9izfla6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i1b7n-0006xt-20; Sat, 24 Aug 2019 18:50:55 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i1b6x-00059o-EW; Sat, 24 Aug 2019 18:50:05 +0000 Received: by mail-pg1-x541.google.com with SMTP id p3so7826367pgb.9; Sat, 24 Aug 2019 11:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=59/Yioac1wmSGF4aiy48Eg48b+I3Gv7gnDjIai6g49Y=; b=ipXG6/TXo7XnZaslR75QIXazjXxOUONMAWDmIoQ129EfXrDYNXtxlS0J/PJQn1TcI6 I9aE3mJj890EHfJbVk6Rbh46lWAEMTYNhQXjxQfhYDbeR48aFBfQhj8l7EcTCIosHjYp QXyzQGYwnLMQm7S7syQYzHxkoaaNJ1eA5tosPuG6DmROMVaGjCZalT/l9UrTxO9njdqJ O0gUIbJd0wZQ3qA23u6uSuQ/iGutG9V4p4/qAS/pC9ebgTA6lZA4VUBy9ZPA74pk454z PEqa81NDZ0q7lgRxgHg08yKxA2kca98dT7sq4UEXSBlNuOqdZFqaX0MaZ89UBYW8DV1p iCDg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=59/Yioac1wmSGF4aiy48Eg48b+I3Gv7gnDjIai6g49Y=; b=pmvvaIHdugjGJ+SyhA7txF9Ja1Y4wlHGNNPGmSbxyId31Nut8xIevk7D4Nh3kzWEvp ficu7UgKd+VljuF1xwIuEBHIO3QardTlbHi1CTRdbBrAB6cMYA7dxt/Rb4UoyCCbBhvz OezGwBYlBUFylX5ARFdYox8dzmPwR9iU6vZ8NXcBXjp2eILZQm92AcGP1dHDSKL3/i+H KVxZafh9xqp39CucGzMhhssTFhemcjYUm+SmlbokEP5atBit4tEialh8b+FRI6+XMP3w KGmZyh6Ledcq5MwxllhYFJE+eygRS7/djUrosUleVAwSrbDfaC6yDVz+C8+vIfRSzyNr uPbQ== X-Gm-Message-State: APjAAAX+XYGGdmbdvB6MIIFAHPoSLdabWDN9GM/PUOVm2zxOB4e6guAk 3W/Ri+ciO3DIzNf6Z/xBLrwWRipl X-Google-Smtp-Source: APXvYqxD0b9/MKWjv3XWuEArcK6klsnRM4NKwXYG3QRizaFX2Yjqe7JhKZVz6nOidZWPC/0TWsAlPQ== X-Received: by 2002:a62:5501:: with SMTP id j1mr11680577pfb.166.1566672602535; Sat, 24 Aug 2019 11:50:02 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.111]) by smtp.gmail.com with ESMTPSA id t8sm5519292pji.24.2019.08.24.11.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Aug 2019 11:50:02 -0700 (PDT) From: Anand Moon To: Rob Herring , Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Kevin Hilman Subject: [PATCHv4 3/3] arm64: dts: meson: odroid-c2: Disable usb_otg bus to avoid power failed warning Date: Sat, 24 Aug 2019 18:49:12 +0000 Message-Id: <20190824184912.795-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190824184912.795-1-linux.amoon@gmail.com> References: <20190824184912.795-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190824_115003_563513_39C93F5D X-CRM114-Status: GOOD ( 13.79 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:541 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linux.amoon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org usb_otg bus needs to get initialize from the u-boot to be configured to used as power source to SBC or usb otg port will get configured as host device. Right now this support is missing in the u-boot and phy driver so to avoid power failed warning, we would disable this feature until proper fix is found. [ 2.716048] phy phy-c0000000.phy.0: USB ID detect failed! [ 2.720186] phy phy-c0000000.phy.0: phy poweron failed --> -22 [ 2.726001] ------------[ cut here ]------------ [ 2.730583] WARNING: CPU: 0 PID: 12 at drivers/regulator/core.c:2039 _regulator_put+0x3c/0xe8 [ 2.738983] Modules linked in: [ 2.742005] CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.2.9-1-ARCH #1 [ 2.748643] Hardware name: Hardkernel ODROID-C2 (DT) [ 2.753566] Workqueue: events deferred_probe_work_func [ 2.758649] pstate: 60000005 (nZCv daif -PAN -UAO) [ 2.763394] pc : _regulator_put+0x3c/0xe8 [ 2.767361] lr : _regulator_put+0x3c/0xe8 [ 2.771326] sp : ffff000011aa3a50 [ 2.774604] x29: ffff000011aa3a50 x28: ffff80007ed1b600 [ 2.779865] x27: ffff80007f7036a8 x26: ffff80007f7036a8 [ 2.785126] x25: 0000000000000000 x24: ffff000011a44458 [ 2.790387] x23: ffff000011344218 x22: 0000000000000009 [ 2.795649] x21: ffff000011aa3b68 x20: ffff80007ed1b500 [ 2.800910] x19: ffff80007ed1b500 x18: 0000000000000010 [ 2.806171] x17: 000000005be5943c x16: 00000000f1c73b29 [ 2.811432] x15: ffffffffffffffff x14: ffff0000117396c8 [ 2.816694] x13: ffff000091aa37a7 x12: ffff000011aa37af [ 2.821955] x11: ffff000011763000 x10: ffff000011aa3730 [ 2.827216] x9 : 00000000ffffffd0 x8 : ffff000010871760 [ 2.832477] x7 : 00000000000000d0 x6 : ffff0000119d151b [ 2.837739] x5 : 000000000000000f x4 : 0000000000000000 [ 2.843000] x3 : 0000000000000000 x2 : 38104b2678c20100 [ 2.848261] x1 : 0000000000000000 x0 : 0000000000000024 [ 2.853523] Call trace: [ 2.855940] _regulator_put+0x3c/0xe8 [ 2.859562] regulator_put+0x34/0x48 [ 2.863098] regulator_bulk_free+0x40/0x58 [ 2.867153] devm_regulator_bulk_release+0x24/0x30 [ 2.871896] release_nodes+0x1f0/0x2e0 [ 2.875604] devres_release_all+0x64/0xa4 [ 2.879571] really_probe+0x1c8/0x3e0 [ 2.883194] driver_probe_device+0xe4/0x138 [ 2.887334] __device_attach_driver+0x90/0x110 [ 2.891733] bus_for_each_drv+0x8c/0xd8 [ 2.895527] __device_attach+0xdc/0x160 [ 2.899322] device_initial_probe+0x24/0x30 [ 2.903463] bus_probe_device+0x9c/0xa8 [ 2.907258] deferred_probe_work_func+0xa0/0xf0 [ 2.911745] process_one_work+0x1b4/0x408 [ 2.915711] worker_thread+0x54/0x4b8 [ 2.919334] kthread+0x12c/0x130 [ 2.922526] ret_from_fork+0x10/0x1c [ 2.926060] ---[ end trace 51a68f4c0035d6c0 ]--- [ 2.930691] ------------[ cut here ]------------ [ 2.935242] WARNING: CPU: 0 PID: 12 at drivers/regulator/core.c:2039 _regulator_put+0x3c/0xe8 [ 2.943653] Modules linked in: [ 2.946675] CPU: 0 PID: 12 Comm: kworker/0:1 Tainted: G W 5.2.9-1-ARCH #1 [ 2.954694] Hardware name: Hardkernel ODROID-C2 (DT) [ 2.959613] Workqueue: events deferred_probe_work_func [ 2.964700] pstate: 60000005 (nZCv daif -PAN -UAO) [ 2.969445] pc : _regulator_put+0x3c/0xe8 [ 2.973412] lr : _regulator_put+0x3c/0xe8 [ 2.977377] sp : ffff000011aa3a50 [ 2.980655] x29: ffff000011aa3a50 x28: ffff80007ed1b600 [ 2.985916] x27: ffff80007f7036a8 x26: ffff80007f7036a8 [ 2.991177] x25: 0000000000000000 x24: ffff000011a44458 [ 2.996439] x23: ffff000011344218 x22: 0000000000000009 [ 3.001700] x21: ffff000011aa3b68 x20: ffff80007ed1bd00 [ 3.006961] x19: ffff80007ed1bd00 x18: 0000000000000010 [ 3.012222] x17: 000000005be5943c x16: 00000000f1c73b29 [ 3.017484] x15: ffffffffffffffff x14: ffff0000117396c8 [ 3.022745] x13: ffff000091aa37a7 x12: ffff000011aa37af [ 3.028006] x11: ffff000011763000 x10: ffff000011aa3730 [ 3.033267] x9 : 00000000ffffffd0 x8 : ffff000010871760 [ 3.038528] x7 : 00000000000000fd x6 : ffff0000119d151b [ 3.043790] x5 : 000000000000000f x4 : 0000000000000000 [ 3.049051] x3 : 0000000000000000 x2 : 38104b2678c20100 [ 3.054312] x1 : 0000000000000000 x0 : 0000000000000024 [ 3.059574] Call trace: [ 3.061991] _regulator_put+0x3c/0xe8 [ 3.065613] regulator_put+0x34/0x48 [ 3.069149] regulator_bulk_free+0x40/0x58 [ 3.073203] devm_regulator_bulk_release+0x24/0x30 [ 3.077947] release_nodes+0x1f0/0x2e0 [ 3.081655] devres_release_all+0x64/0xa4 [ 3.085622] really_probe+0x1c8/0x3e0 [ 3.089245] driver_probe_device+0xe4/0x138 [ 3.093385] __device_attach_driver+0x90/0x110 [ 3.097784] bus_for_each_drv+0x8c/0xd8 [ 3.101578] __device_attach+0xdc/0x160 [ 3.105373] device_initial_probe+0x24/0x30 [ 3.109514] bus_probe_device+0x9c/0xa8 [ 3.113309] deferred_probe_work_func+0xa0/0xf0 [ 3.117796] process_one_work+0x1b4/0x408 [ 3.121762] worker_thread+0x54/0x4b8 [ 3.125384] kthread+0x12c/0x130 [ 3.128575] ret_from_fork+0x10/0x1c [ 3.132110] ---[ end trace 51a68f4c0035d6c1 ]--- [ 3.136753] dwc2: probe of c9000000.usb failed with error -22 Fixes: 5a0803bd5ae2 ("ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes") Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Signed-off-by: Anand Moon --- [0] https://patchwork.kernel.org/patch/10757569/ Earlier my approach to initialize the usb0 bus was limited, some more phy tuning is required both at driver and u-boot to get this feature working. So for now just disable this. --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index f3dcabf97c63..792698a60a12 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -312,7 +312,7 @@ }; &usb0_phy { - status = "okay"; + status = "disabled"; phy-supply = <&usb_otg_pwr>; }; @@ -322,7 +322,7 @@ }; &usb0 { - status = "okay"; + status = "disabled"; }; &usb1 {