Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8114181ybn; Tue, 1 Oct 2019 03:29:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxskGEsjzBKs11Cm+8X8E0sM3MxD7J+8uu1gnsws/ynbALCTOB3IeW7+r2RB/pIiMppFKxF X-Received: by 2002:a05:6402:35b:: with SMTP id r27mr24371563edw.140.1569925789662; Tue, 01 Oct 2019 03:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569925789; cv=none; d=google.com; s=arc-20160816; b=wn1ugWNFNGvZSATH+UnDHbx15i6eiDINjyC62O66u7X7F6vhRDWgiVuF8YqwIZzzck yIvMym69FHCQG1xkUcj0FiYSeixUOKJTtix9xZVrnPwTSU9ODLKeVuzrX4kbZhpiLDvb hb7gl4Vz4OEfIeEhrU7YagsHXNth1TXGGhFR/4dHAaixn07RrrEFmCuaFQdGfoOQZ305 psnwIWpgpngr4Kx68MX1CtzF+O64w2MinJcP14rsCU2KH3fwrurU5zITSULm2HDoOo0R juXgPsPoDqd/qT35TkzQTDCcLKEdctTGIs5Rb2AxPbFEk0ZjIi1R7wki/eAqXV4hYug+ yxKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7dJvQt2XADSP58gshAp3mouDAHa/fpvN+3lt4rGrgN0=; b=GOzpIJQNV3Z1W7Kja3B0JF6rosMcW7hJ3Cx/trgAdUDKiYsjJxud0KLo8gyOCXKNSB 3sYAGcZN+qfX5x1VoVnUqoHbkCIpBvXFkjjdr5PYtSBev4GjstHmASsZigK9NBaxdZ1V 6aldJKCO0IGBmiqMwp7DjW6BlYZENB8Z9d8L51EvzyuigCIrsZLwyVkX6kfANqgRfWN+ zXqAILHip1J5nNuYJuzO3VgXrHCwBaDLr4U2p+Axn2ZnBvoYlqCH9daCxJUXlVjhYvK+ EO6y0VRCujI0O0r/eIyYux24MTIqyLIM6aswRQtzDKpT7yD4Ut7XHZpwXdqUxMSmzSzj 88kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="MW/6KBSt"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c48si8729985edc.169.2019.10.01.03.29.25; Tue, 01 Oct 2019 03:29:49 -0700 (PDT) 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=@amarulasolutions.com header.s=google header.b="MW/6KBSt"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730667AbfJAK01 (ORCPT + 99 others); Tue, 1 Oct 2019 06:26:27 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:43165 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730596AbfJAK00 (ORCPT ); Tue, 1 Oct 2019 06:26:26 -0400 Received: by mail-io1-f68.google.com with SMTP id v2so46407372iob.10 for ; Tue, 01 Oct 2019 03:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7dJvQt2XADSP58gshAp3mouDAHa/fpvN+3lt4rGrgN0=; b=MW/6KBStB07v5dXk4ZigslPFPugYyqpQ/ScdkbBrgCiKH3o4AbFDQ1qwAd32i3L1Ut qcFaTGc/lhLrM65+N2L6mT4GH2quV73dZ3OW0f6J3hfFwX4x/zkGKr+2BK03MWo28DBy KNoWV2aGvRV8NEKSqzFK7sgsmnnNqr38yDafY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7dJvQt2XADSP58gshAp3mouDAHa/fpvN+3lt4rGrgN0=; b=Cn578em20bHTtSxqdlteLe9DEB80qBnoAj9w+GVCAFwhpSBhHLawoihg9t+xo2Oxvk L0leSoIfX/7n5N7tEt38u905v7wZ//mUr2vv+9QWlUSyDFJF+KS2VipaqpaKws0LcGYU 410wtrE465/qSa7AlLq12f6XkAoVQLWHKOx4/Nz1fq/FpbEPG5BxpDcJqzRypaMUY+Ri 5KqsoEUaFN+j3oIvSlSzJzoCwu7rwcjBtXSWHfEwsVxIHi6Ouaqfw69/bqiakG4PRXak TRI1sVfn4GNAn4vG8/68sULy6oiM2o4ocdDZZ5JhsJALAUVIXkFDAlZKj4eOUXLYlAT7 eWuw== X-Gm-Message-State: APjAAAVX3kxliCG7plR9Dn+OuwBXt0zW5QjvxV0PTBcpQtr60eybQwGg CiBBG1AMf8/vtfBBTHkakoYdlCfsEOw0d0lPJwGAWg== X-Received: by 2002:a5d:89da:: with SMTP id a26mr23534629iot.61.1569925585423; Tue, 01 Oct 2019 03:26:25 -0700 (PDT) MIME-Version: 1.0 References: <20190919052822.10403-1-jagan@amarulasolutions.com> <20190919052822.10403-2-jagan@amarulasolutions.com> <6797961.eJj5WIFbM9@phil> In-Reply-To: <6797961.eJj5WIFbM9@phil> From: Jagan Teki Date: Tue, 1 Oct 2019 15:56:14 +0530 Message-ID: Subject: Re: [PATCH 1/6] arm64: dts: rockchip: Fix rk3399-roc-pc pwm2 pin To: Heiko Stuebner Cc: Levin Du , Akash Gajjar , Rob Herring , Mark Rutland , Da Xue , devicetree , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , linux-kernel , linux-amarula Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, On Mon, Sep 30, 2019 at 2:51 AM Heiko Stuebner wrote: > > Hi Jagan, > > Am Donnerstag, 19. September 2019, 07:28:17 CEST schrieb Jagan Teki: > > 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. > > This looks highly dubious on first glance. The pwm subsystem nor > the Rockchip pwm driver do not do any pinctrl handling. > > So I don't really see where that "active" pinctrl state is supposed > to come from. > > Comparing with the pwm driver in the vendor tree I see that there > is such a state defined there. But that code there also looks strange > as that driver never again leaves this active state after entering it. > > Also for example all the Gru devices run with quite a number of pwm- > regulators without needing additional fiddling with the pwm itself, so > I don't really see why that should be different here. I deed, I was supposed to think the same. but the vendor kernel dts from firefly do follow the pwm2 pinctrl [1]. I wouldn't find any information other than this vensor information, ie one of the reason I have marked "Levin Du" who initially supported this board. One, think I have seen was this pinctrl active fixed the boot hang. any inputs from would be very helpful. Levin Du, any inputs? [1] https://github.com/FireflyTeam/kernel/blob/stable-4.4-rk3399-linux/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi#L1184