From patchwork Mon Sep 2 05:49:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11125991 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 E077E1395 for ; Mon, 2 Sep 2019 05:50:26 +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 BDB6F21897 for ; Mon, 2 Sep 2019 05:50:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hlZoNg7w"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MAIvwr6/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDB6F21897 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=VXHmlvLaqnZT+W973/LzOEMvjnz9GTb5zTCOfropHEE=; b=hlZoNg7wzspcdA ZBRo/Gudv6AL0f3u5A2HT4zyJ/44Jq65kcfn23i6r89K29g589G3ilByZZP+P2L677+4ApAbIA89S WU3UsHok6UH+ML2qG7yrcLTOUoTfQ2FrA/iIJohRhdgfX2ATlvRLoFF4qGOWF4SbpJlOuRiD4t1Th k4+qCYMXGsXrso/e3DX+uMsTaSdNK2uSn3IjhW30e5ri+bA08WWiLlA5AuyoDi1CBdkWnjr6MxaUV gTcM5eD1aTbvFGtgjdauQ+sAiuBl8MQt03dTjnjCWfdCkwhXtOkknZlCda1Sme+Eh+7xKju1H5weh Dkr8T7ItWyuM5W/Ek3+g==; 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 1i4fEQ-0002nE-8S; Mon, 02 Sep 2019 05:50:26 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i4fDx-0001Ex-DG; Mon, 02 Sep 2019 05:49:58 +0000 Received: by mail-pl1-x644.google.com with SMTP id w11so6187625plp.5; Sun, 01 Sep 2019 22: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=ikV6lemlNYdFpEeGQSYqb+rV/obqc+rmipJrPne+LAs=; b=MAIvwr6/8HrrYhQuIYpsBU0n0QRmouCFyUCeHgTs67GyIPGWan6FxktGY+LZYjzIvu PrwVa318B6qjN5QnsMN0pRREoNTd895ozDy4yXB0TRykCShhlG7ml/M97o3vFnkMHyfC qZigYBE9JwJvzsHoDP6hgvcxSlNKIRfUWz5Isd33sWtUVCNdePIxgSMqXjodFkzk5kdo 94fDNtxSV88R7FTXr4MPwvAPyj2mxMylpSj34ORawW3vXxOMocG5FkKe2DQQSWvvJURU r2B5H7aRmLlE6TmP5yL7arlb9uTThbWFrJNIS7YDwbogQXUKL3Rj6Xj10xRta2FyZ2U0 Ml2w== 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=ikV6lemlNYdFpEeGQSYqb+rV/obqc+rmipJrPne+LAs=; b=fh6FFaKCujpCrR7yE2hYDGdP9mVUbkZdqMfij+BxktpRZAu7pwafuOlJQjnA4sf167 /qekuUBvkSN2YPlL9izHq3YK5c8r3gSqYPEMWfOs+mTEUbpOBdH48Zr7V2pdq2DXbt9o 2TFtMU3799v1cu7i3sK32YpmlH136sj7wFkg9uulyzicygyX+45hAlWyNcAwu+EuVAZb NCnlZhjofJAKmS1FXYb9eaqsZCj6u/6dkcio2KULp4nXb3yh3f5O6vabrwvnPn0Pkiiw dU0eMzFua/CHiy0m29IQ2n6EhGCau6AOQHdXBXmd8ymFPX0eutN+XFOIegPJl34SXho2 zgvg== X-Gm-Message-State: APjAAAVBt//KZGxGJo+RDxg495woTGIiJD3iHgE0V3XvghianKdy3GHr cK4mHoYIEXZM5bBmwnu/Tkg= X-Google-Smtp-Source: APXvYqwmjDYBb+/h+lox38LRXgnKxFGbWgnCBcvK3a32iq8PnRmY1WQ3TIqaar+s+iJEVbDqoBGVeQ== X-Received: by 2002:a17:902:7246:: with SMTP id c6mr339002pll.190.1567403396634; Sun, 01 Sep 2019 22:49:56 -0700 (PDT) Received: from localhost.localdomain ([45.114.62.203]) by smtp.gmail.com with ESMTPSA id 136sm16533912pfz.123.2019.09.01.22.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2019 22:49:56 -0700 (PDT) From: Anand Moon To: Rob Herring , Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Kevin Hilman Subject: [PATCHv4-next 1/3] arm64: dts: meson: odroid-c2: p5v0 is the main 5V power input Date: Mon, 2 Sep 2019 05:49:33 +0000 Message-Id: <20190902054935.4899-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190902054935.4899-1-linux.amoon@gmail.com> References: <20190902054935.4899-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-20190901_224957_643544_29483312 X-CRM114-Status: GOOD ( 10.08 ) 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:644 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linux.amoon[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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, VDDIO_AO3V3, VDD3V3, DDR3_1V5 according to the schematics. Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Acked-by: Martin Blumenstingl Signed-off-by: Anand Moon --- Rebased on linux-next. Added Acked by Martin. Fixed the commit message to add misssing VDDIO_AO3V3 and VDD3V3. --- 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 6039adda12ee..0cb5831d9daf 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 Mon Sep 2 05:49:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11125995 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 0426814F7 for ; Mon, 2 Sep 2019 05:50:48 +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 D4CAB21897 for ; Mon, 2 Sep 2019 05:50:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="liGeVOoO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WMJhAxPo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4CAB21897 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=pOpqj0oP5jJwznb9rfamDhNZjcUHA4AhtpHMRQ7nyJI=; b=liGeVOoOTOcrDW pZqV5Hvo/wWhC6PvkQn+KQCCYUsAWUhVVogdTAyxlLHrkxe+uWrqVACklj45hnzvwrf+BMadqRxPi S6a+oVvfyHQS2ArYBzzEGabedAtNzMCM2pVZezO5vzXBMEowP/eHETW4K+9WgLeSZD08liRhCUTUE VI4xpgWcB+008YnthoZOMBqMX2Wqu1qKdWkzUT8UUsPGLCFVakfLvDjHJoKW+f53KI0//JYrYFbBG gUK1BKsI594TIsr8slu822a6bU15PfaB3ZIsWwtUgW0+dKi12nkvBs3gmV16slxfk5yaHf2Uh09M6 Ak++g15KQ/v7rEMkQ0Dw==; 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 1i4fEl-00033h-5E; Mon, 02 Sep 2019 05:50:47 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i4fE0-0001I8-Tz; Mon, 02 Sep 2019 05:50:02 +0000 Received: by mail-pf1-x443.google.com with SMTP id q5so518132pfg.13; Sun, 01 Sep 2019 22:50:00 -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=bEt/v03msRhcSdb84WAU8NHWudPBzPmtzl8y/Hh3kS4=; b=WMJhAxPoJN8DisxWl5waf30CVRgh8kXpifzL/ZQZvj1CU37xonIlh4EjK8nqXOgdru 4UOSWWA40MXJ7llJBClZ+d/IdMWlXLpjY1Al7ROmfHu+NTQqXcek8AoEPmfUdsSVrX5Q QRLYuwRoHzo8cDyTfn9ojZ5xuOHDrY4pnH8VEA1/lQ0C8xYyuoBNdXLtAY85scCMFfij M53oi19xU0GthorbJYhBabIsArXAA9CQUuftZ+CyfDUEj5GIZx98URVtCXFaepwRgMhA R1LZljKZ//WCeqs575PuMzJaSb5mjzHRtcOo/ZUALQJ24bP/pdqEzsXd1O+eb1/iyBlZ ACdw== 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=bEt/v03msRhcSdb84WAU8NHWudPBzPmtzl8y/Hh3kS4=; b=DcqDhYT+ntgmwRe3u+f7xGRlHJiGJCx/BursCB+xyLofEnHp2yPAiXGjBQm8kG9S1x N9VNj2SuL4SVvGRWjdvom7QdU2t1BLw3X/3YDcL18irz5RG9J3l5F6Zc1U0aI1rK80tZ 0o2TVhF71fmgy1ZtP3M5G21Zb9fZFo9MbbeU5D9MrEf/CXY6VfbRisHeug1xl7AR1JXl +DAg9sUFFZyj6bhmmuKlaNvcqjJbum7COqQJ2/zW1XVNEUHJqY1IIHIUA0QTZ9vh6piQ sAzq0trYXzryq82OkFRRYUqKA1HTWiUIveUkRC9bu3a9wy1BAWwHVyQxynJtrhxt4j0d CCwQ== X-Gm-Message-State: APjAAAU1Gv8/sZbK+/of1NTVcgfrHWIsJO+bYXNHF4KUTDafWfn5c1VA igqJdyNOnzfPfjD4C4sOSsk= X-Google-Smtp-Source: APXvYqxAONevxOs+Hkw8NzwlLEpAGF1KjUE5QTW87zosAlr+KlXZG8qaFyXXXByHEzhUij/y1LvOtQ== X-Received: by 2002:a62:6801:: with SMTP id d1mr31832332pfc.117.1567403400103; Sun, 01 Sep 2019 22:50:00 -0700 (PDT) Received: from localhost.localdomain ([45.114.62.203]) by smtp.gmail.com with ESMTPSA id 136sm16533912pfz.123.2019.09.01.22.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2019 22:49:59 -0700 (PDT) From: Anand Moon To: Rob Herring , Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Kevin Hilman Subject: [PATCHv4-next 2/3] arm64: dts: meson: odroid-c2: Add missing linking regulator to usb bus Date: Mon, 2 Sep 2019 05:49:34 +0000 Message-Id: <20190902054935.4899-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190902054935.4899-1-linux.amoon@gmail.com> References: <20190902054935.4899-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-20190901_225001_229529_7A1D96F2 X-CRM114-Status: GOOD ( 10.65 ) 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:443 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linux.amoon[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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 Acked-by: Martin Blumenstingl Signed-off-by: Anand Moon --- Re-base on linux-next Added Ack from Martin. 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 0cb5831d9daf..d4c8b896dd26 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 Mon Sep 2 05:49:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 11125999 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 10FC31395 for ; Mon, 2 Sep 2019 05:51:07 +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 E196721897 for ; Mon, 2 Sep 2019 05:51:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="liKuDdca"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cialufXN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E196721897 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=rjp8vd5IIGXS4Ru+MiYTznVwcDkPTfflsiPsvh4NHIY=; b=liKuDdcaAt047q hdhB/hGFQZlluP4N3d1LL6iIw59kFfFulIgYJ8pFethSlsDbCWXw2cCdSIbaqsvd/7mzcAGzB2uvN mTKD+rc7IQnzmS+D1tzzW1lfPMgUmswvxHUkclnsHOmyO6NzeBk140XonjfaAxahaCxuUXLMu3Dwa iBVisbZRWx3CO6r+P88LZDgv0fu1mstOlHbE38Nm27HDQHpWx8kC92ypyFPEb2jErf71a2OsaOFKp R9nkOoRVQI3GB9di3OuaEgUXI56zcCV5aNWq205BIVUtWTB01pm+RNacQOAdnYds7qE3x51/Hcc5+ 6XUUyDUJjt3NfGVZ5mBw==; 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 1i4fF4-0003Ja-4b; Mon, 02 Sep 2019 05:51:06 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i4fE4-0001UD-8Z; Mon, 02 Sep 2019 05:50:06 +0000 Received: by mail-pg1-x543.google.com with SMTP id u72so2702844pgb.10; Sun, 01 Sep 2019 22: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=VHR2oUikhGymiq3l3JPn9qwh6SndWvo22AKhZbZsGIM=; b=cialufXNcKV8EuxIGCx/p8H3ino+76F5AJnlHGROi/dnpZo2D7BV37b4WI3I13UnpB anU2jXoBXqv+PT+iBCAyj5Gw150lp/UcP/Ikbf8JxQUK+GSwLFCBqe4ArQoqxtUxZFX6 HSFalxecBr4wGbFmuXPX+guu3BOcQQ5XeSU3PFNrH4Yzg3x5zyRgcuduHnVxdlQq6k9G YmjGxsvVnXprGi3eu/nQNjGccBbDbqAGioWDACwUyZlMNtttZm95y7owZCoJS5R9CDcA E6YtNhuNcTeIsr6fVtntKQ/oNnBhXl9nJeMU/PTeXaJUd7LfcptNVNcwHOyVoTamKCGb jMpg== 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=VHR2oUikhGymiq3l3JPn9qwh6SndWvo22AKhZbZsGIM=; b=LM3ksF4ywOmbeiAOi9saZWGnmoKqUcXACsKuh6mA2DSJdRovp9hLP3+nryDA8X/EH1 vmFrGA+rJJyjcbwYfvy71fkjUyN0zfNu8QIThhddYSmO0BgSweyEr1Rz2ae+Czbg3n6O gJJFdFljcIP15A+LwDGftj9JgN1oeNvgRyEDn+/FFYl6fiHPPUCkhG4qRRg0+O7CiStw 91aqzZ1X28aDlvfPGG2RIOkwk7WPoIDPyer1DITqB9guDClygPyHLvL85Aq9yjI01UeQ v4ha9lXiNeoldTRPyXRNFFcWtgn9TdC01PoKWPb3yJ8Of5k66iyYIZqlFKHVWuxvN8Pt 3Axw== X-Gm-Message-State: APjAAAWjqrnXisij5VkeFS5zqb3O+k+/Nm2jiiCLfyX2kAnwJsqzxOB8 sjNya4OPH6gTAAs2pTQ/NXEDmSLy X-Google-Smtp-Source: APXvYqwmdUXPqi3ELKdd7JJ6ITxSjC1Cb8KnMkJcNc+1LyCD1qxliCCAz2zLAfU5/txxmlOJFyi6Aw== X-Received: by 2002:a62:b412:: with SMTP id h18mr28505359pfn.175.1567403403285; Sun, 01 Sep 2019 22:50:03 -0700 (PDT) Received: from localhost.localdomain ([45.114.62.203]) by smtp.gmail.com with ESMTPSA id 136sm16533912pfz.123.2019.09.01.22.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2019 22:50:02 -0700 (PDT) From: Anand Moon To: Rob Herring , Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Kevin Hilman Subject: [PATCHv4-next 3/3] arm64: dts: meson: odroid-c2: Disable usb_otg bus to avoid power failed warning Date: Mon, 2 Sep 2019 05:49:35 +0000 Message-Id: <20190902054935.4899-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190902054935.4899-1-linux.amoon@gmail.com> References: <20190902054935.4899-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-20190901_225004_471439_B1CD1C43 X-CRM114-Status: GOOD ( 14.44 ) 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:543 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (linux.amoon[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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 Acked-by: Martin Blumenstingl Signed-off-by: Anand Moon --- Rebased on linux-next Added Acked by Martin [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 d4c8b896dd26..3e51f0835c8d 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 {