From patchwork Thu Sep 19 05:28:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 843 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D707D3F08B for ; Thu, 19 Sep 2019 07:28:48 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id m25sf1445241pfa.23 for ; Wed, 18 Sep 2019 22:28:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568870927; cv=pass; d=google.com; s=arc-20160816; b=vWyCGGU7ASuXBYlmcHvZnonu7l52lwksLJ31eg8CVgvwJAggSe6hENPvQ045EmlmUz tDRZZGUFnN3QhKVSYyr7c6rDXjZi/upaYhFsuLWot8qgIFjzjhMVwWWE9dAyUD9s7IWg 3r+zBzsWsfaZ/Uo3MTtVFdAPxIayyci+N/9B832JGdkhFojqlpV2uEw757U+//hNXw/I HoamiKfWYUM5RS0mRZyqdU8JWibSpiES6AMbegFMvwofS6SeqNAdJVVWa2UxpXVodhos mbrH9U1PitLXxUjTVPdzOdh7Eshg0DLQ9VCe9FLPsjPAzdx6udlVbC8pL5++SQ/VaKoI tLpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=M8zNk+AH6Wk3/wg5U5DLsW26VLLq8obikRSzR8e2/bc=; b=rth1CrPevPMw+4BRNnJMvK7eOizRc8+nsG4HuzcbY2ybqBHX0S2WXGcwitz7O1o1v1 SigIlJLoI1olSNoYdyhm0kDjuY+c2vyLqkvF8wuvzJKk6dKPltGGuf+gbQjf4WjVtula G3sE7Ngh5AvMs2kKCBUX6Xev7QxTH0xkAbYRhWqZkRZBxqjFw4N4BqnmmPhL7S0kvy1H g6IBSRMfZ4zqi+dwwgGxZg4gMINihXnhgO7p0m3NLVSl2kZcqDEUqflhm+Ega0P/4//+ EwAXNoGdT/WDadLM5OcJT2g07PXXdsqu0nFtzjzZk28WPj4PlGWE2YMFzBMm6WeIuCAb S53Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CVrhIqzE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=M8zNk+AH6Wk3/wg5U5DLsW26VLLq8obikRSzR8e2/bc=; b=jE6VM+GXG0vUIzzaiSII1ROEfMbvIbI3w+AqLu9ARbxmmQK6/pF7SAMZzWUgjE3HPw 9I6sxL5m3d5Lt7lunWpn4CBrIAGtx+kNdnPpR3C4iy2KYZmsAsFHT2xXWe+urdsgvh0x N63F4sTlMIJIsgR2ELD+tcvx2cGRdbP0pd5LM= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=M8zNk+AH6Wk3/wg5U5DLsW26VLLq8obikRSzR8e2/bc=; b=XkUtxdx9t0kw4k/KcVzzpjoIrFwauf4p8UA5Ii57j/mNIGjNY09GNQDfJLS9IQRBRA QMB0RXSA21hJwRswuQ3//XEuP0AP2+Ql+kxSVd5rLcXz8gYdTEMNEGXzoJMHZggoyCjG M2yMaQwOMeaFe8LTVsrpyQC2SyFByk6rFbBhTWn/PvKcbOhjoLxcn2z5DhTvc+1Oxw/i 0Er5pFkb+zKRL8msqhohP2MDcceb5W9LL39AllxD1JWF2N+t1ak6zoJpHC+m/3MlCUst jds4waeI8iHa2Z0yFfKgjR6+kE7VLbwej8fYByi9BxdC0RBRiH1z6Q94/h+u0X4CcKbx wckw== X-Gm-Message-State: APjAAAWyRLausJfDukIZKtF67hWMTyTnNMuNTfMhl1wUFWfFzj3JkJ+m JDxFwiHNm+zI2hrC9wwnaDnqwTlt X-Google-Smtp-Source: APXvYqxNE4EBfKugXh3tYMxyFDnO9HmsoVSKT/71qak1kDNdvAfmFs+0O4gtvPJz/9QfNowmZcZlCQ== X-Received: by 2002:aa7:8b09:: with SMTP id f9mr8336892pfd.23.1568870927431; Wed, 18 Sep 2019 22:28:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:6506:: with SMTP id i6ls626958pjj.1.canary-gmail; Wed, 18 Sep 2019 22:28:47 -0700 (PDT) X-Received: by 2002:a17:902:36a:: with SMTP id 97mr8123451pld.61.1568870927082; Wed, 18 Sep 2019 22:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568870927; cv=none; d=google.com; s=arc-20160816; b=LiWJzSjRW0qAoZVA8KV0noopnVjRUPAXfqd01T0Le5GI8teEc+qax+y2841iN73pwo E/EjNzy4nigyyLejQJNXgsmxOdFojtPED6VbHIgDPkc5koF1dKrfLsKkYin/21ZySpNP AvNOFA4ed4tInlFPwtumnXpZ55P0n18sVFu4nG1fgmyrj6SDI5SGiVSbiVCPXc4ItK12 JZw2ErUA7YlDVR+HxkdYJ5rzKknWS/uCD0XGuxB4vJjNzq7fO/Iqwd88vXxGRoh5BotN gvzuTKkhNrrnSZZwyZU98GXEH+ZEjRQ8M49F2Pa5ox83zanmy0ekjtKcGFqlYfKJWc5f YyrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XPWIJYAR47Worstin6zW+dVRix1pyzYI/7tlhqwLmcw=; b=w3JXsypq64ntbatbSp4WZ8QExJoxZ+RNJoSgAmJzwmHHqavljRMaZ/Q9huuK65U5kS 5UW4L+JyjzYGAeQ+FMGzxbaCRgn6bKhNRhMhE5vZObxnMrDnnAfr7stADUU1KJzbvrjZ ZWRqcutXsg0Mzrp0BVUkx+FDU3/L3C4JyiGu9DbMpnp2V9yBLuehVEMgO4I39MVFB1iV sApf/1H6Vc7tuONmjskfj917Fmv6nhDQpkCJQkI3RmHEBHiY/0LuqjTqClXtXg7QgjSd Gk6+LsTNG/C+WSwJT575m6DqtgI/WMb66IaIR7KdA44A+L8ROLN8Vf2eWkDVER05Hbat gXSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CVrhIqzE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w18sor6739119pge.65.2019.09.18.22.28.47 for (Google Transport Security); Wed, 18 Sep 2019 22:28:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:5fcf:: with SMTP id t198mr7340060pgb.270.1568870926501; Wed, 18 Sep 2019 22:28:46 -0700 (PDT) Received: from localhost.localdomain ([49.206.200.127]) by smtp.gmail.com with ESMTPSA id z20sm5051930pjn.12.2019.09.18.22.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 22:28:46 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Levin Du , Akash Gajjar , Rob Herring , Mark Rutland Cc: Da Xue , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/6] arm64: dts: rockchip: Fix rk3399-roc-pc pwm2 pin Date: Thu, 19 Sep 2019 10:58:17 +0530 Message-Id: <20190919052822.10403-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190919052822.10403-1-jagan@amarulasolutions.com> References: <20190919052822.10403-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CVrhIqzE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ROC-PC is not able to boot linux console if PWM2_d is unattached to any pinctrl logic. To be precise the linux boot hang with last logs as, ... ..... [ 0.003367] Console: colour dummy device 80x25 [ 0.003788] printk: console [tty0] enabled [ 0.004178] printk: bootconsole [uart8250] disabled In ROC-PC the PWM2_d pin is connected to LOG_DVS_PWM of VDD_LOG. So, for normal working operations this needs to active and pull-down. This patch fix, by attaching pinctrl active and pull-down the pwm2. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts index 19f7732d728c..c53f3d571620 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts @@ -548,6 +548,8 @@ }; &pwm2 { + pinctrl-names = "active"; + pinctrl-0 = <&pwm2_pin_pull_down>; status = "okay"; };