Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2126829ybc; Wed, 13 Nov 2019 09:21:38 -0800 (PST) X-Google-Smtp-Source: APXvYqywIBnxb6Lz9pfj64DAgTcUiG4fYDXHM7LDtYQpYo7Yf/Oixb3os4UYdzIpKAS/EpJ0U4ez X-Received: by 2002:aa7:d0c4:: with SMTP id u4mr4915825edo.8.1573665698291; Wed, 13 Nov 2019 09:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573665698; cv=none; d=google.com; s=arc-20160816; b=S0LEDpcPPlxpZoD0IvyseNhsrSmMMi2KxqM9iZ3iiZwylPkrZxA0901emYqemLCGyS E3wY9iJcwRFN51KdR2uspQWcNSYd2ng3dlaQNXtx7nBSvpFv6XTc2t4+AK0mr9yw1wjq fC6Jgza86yhZt0OxwmCQdMXoswQIvw2Vj792d0kdxOkLST6HPAiNCLuWFu2q9sopMiHP yDsJ8zrFODIOXmGW+D0qub+d3+6YTEmQn+6k2OBKeS+owwwoDArkcUlffooePPP+6FJr qbXmrio8HQjVauLYwMlyxfa3HC/2Eh8CL2cW5zAsNWqsCwlWsRRdclG9wyru+9Bpnanf 9IyQ== 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=bBWxzsZRUXKbQzzivFjemLaJtwPKdmL9lKnNHf/rwAM=; b=IdQCJunB9joEp44ndKPkcmWWOzLvj6gSrQUYjqIidQenUAOtY8qrCFO41fnqQMBFhQ JezFpJTvQtcJVEx6XnzvBkSQdXNW9ucTTGdsbG9PUC0U+X56M8i030V6QVVoDGfF5rtA FuSQ2VfkeFGH1HM9/oEbWGCWALyRv35Ena6BhDuk0zrUdaImwaoRSh0R1LoRFxSTcXD+ Ix2WWot4phbhJ3aaZRb/rXX2cqfUjxYdxD7ThaI0KLP7c3N/6BD/b39J+uRBxCIxgV94 CgqCwP9fDSx7KpQh7ApeQfS7dMk5EV5FZxZGG/gttjeC5qXPi4BAyM3oND5zlo6uGr7K c4cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=N89l11Bm; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si2025351edq.208.2019.11.13.09.21.13; Wed, 13 Nov 2019 09:21:38 -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=@chromium.org header.s=google header.b=N89l11Bm; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbfKMRBe (ORCPT + 99 others); Wed, 13 Nov 2019 12:01:34 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:38472 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbfKMRBe (ORCPT ); Wed, 13 Nov 2019 12:01:34 -0500 Received: by mail-il1-f196.google.com with SMTP id u17so2448178ilq.5 for ; Wed, 13 Nov 2019 09:01:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bBWxzsZRUXKbQzzivFjemLaJtwPKdmL9lKnNHf/rwAM=; b=N89l11BmZ7KDAZGxB47EC1AYg6Yxy1wBxilJdrAUL+wf60hooxylxjDXwTs3ZVa8fV IOzY9jFb4SoA5B5B7Qk2dV9Etb0EBG2TyXo3kUXsOy96E/uTaBK4m8IcyQUhs07AZbRX J5TON/jLYKd7nEgPCtKqNRlZagzwmWje7FBDE= 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=bBWxzsZRUXKbQzzivFjemLaJtwPKdmL9lKnNHf/rwAM=; b=g9HzNWYoPo6GdIoJEV1pg8lUSWrfxDrMYab2B1W8XaNCp5/V6PGt/L4AvogZo32uGm mEuuS/WlZdt7FCUR/f7XEjybhPIIE3VEXb88bKRYMiaeee95+B5soW/Z5MaiyT1fMn9S g73qQF8hhMiVoko610lkiRS/CtovH8KdQh0r1CGVAC9WU7y8dFjlpk8AvWwnSbpJtAZo ecXDog8ZbzUW4vX0kKeBTYazrIPkXBE+YZ6XaLUFikOhg2VWjNDQWpjqh6miYCzTBK/S RKiiPVmF+fBW/aM1xHDeo13V1WmjaPSdAXF5erLPum0sGjisW/qFcjiqXKdXFxZaLdlv CTZQ== X-Gm-Message-State: APjAAAVsDhKyyx3jnt3qhRPf9Ysgs7gUD9x/LxBULA6dnVb2edorc7Q8 3wh4rrZ3Tzvn4TJIaV52DUwGrL0/dpc= X-Received: by 2002:a05:6e02:68c:: with SMTP id o12mr5468508ils.223.1573664493212; Wed, 13 Nov 2019 09:01:33 -0800 (PST) Received: from mail-io1-f46.google.com (mail-io1-f46.google.com. [209.85.166.46]) by smtp.gmail.com with ESMTPSA id v13sm365203ili.65.2019.11.13.09.01.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Nov 2019 09:01:32 -0800 (PST) Received: by mail-io1-f46.google.com with SMTP id c11so3319014iom.10 for ; Wed, 13 Nov 2019 09:01:31 -0800 (PST) X-Received: by 2002:a5d:8953:: with SMTP id b19mr4637156iot.168.1573664490254; Wed, 13 Nov 2019 09:01:30 -0800 (PST) MIME-Version: 1.0 References: <20191111005158.25070-1-kever.yang@rock-chips.com> <20191111005158.25070-3-kever.yang@rock-chips.com> In-Reply-To: <20191111005158.25070-3-kever.yang@rock-chips.com> From: Doug Anderson Date: Wed, 13 Nov 2019 09:01:16 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: rk3399: Add init voltage for vdd_log To: Kever Yang Cc: =?UTF-8?Q?Heiko_St=C3=BCbner?= , "open list:ARM/Rockchip SoC..." , Elaine Zhang , Peter Robinson , Akash Gajjar , Alexis Ballier , =?UTF-8?Q?Andrius_=C5=A0tikonas?= , Andy Yan , Ezequiel Garcia , Hugh Cole-Baker , Katsuhiro Suzuki , Mark Rutland , Nick Xie , Oskari Lemmela , Pragnesh Patel , Rob Herring , Robin Murphy , Soeren Moch , Vicente Bergas , Vivek Unune , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , LKML 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, On Sun, Nov 10, 2019 at 4:52 PM Kever Yang wrote: > > Since there is no devfreq used for vdd_log, so the vdd_log(pwm regulator) > will be 'enable' with the dts node at a default PWM state with high or low > output. Both too high or too low for vdd_log is not good for the board, > add init voltage for driver to make the regulator get into a know output. > > Note that this will be used by U-Boot for init voltage output, and this > is very important for it may get system hang somewhere during system > boot up with regulator enable and without this init value. I'm a tad bit confused here. When U-Boot boots the kernel, how is the PWM configured? I remember folks going through a lot of work to make sure that we could actually _read_ the PWM state that the bootloader gave us and report it as the initial voltage. If the kernel ends up needing to configure the PWM regulator's period for some reason, I remember it would actually pick something close. Is that not working for you? For instance, on rk3288-veyron when I boot up mainline (no devfreq on rk3288-veyron on mainline) the vdd_logic reports 1.2 volts because it read what the bootloader left it as. ...are you saying that U-Boot doesn't configure the PWM and you're trying to fix it up in the kernel? -Doug -Doug