From patchwork Tue Feb 7 02:48:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 53608 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2607089wrn; Mon, 6 Feb 2023 18:50:09 -0800 (PST) X-Google-Smtp-Source: AK7set8SxNqgYp0PSTf6v2iYxp6M0nRbSRvGUBo75dS47/VtPPjPG4DiTjQJ65o08IAZuZpkKC3Y X-Received: by 2002:aa7:94ad:0:b0:592:543e:85e0 with SMTP id a13-20020aa794ad000000b00592543e85e0mr1466237pfl.23.1675738209372; Mon, 06 Feb 2023 18:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675738209; cv=none; d=google.com; s=arc-20160816; b=rf7lM3EAwU9cLcvA4rWCb1i6gJgSC0KCMgQ2cd6wB8OfZg4R9rDwX2RkLXXadGujhp uymOHOwilhM56H3KYTJig54QHjGxNmtyQuSTMIabVcZIg5HcF0lasIceEs93qzp6gFVZ aM2v6nzJvy7/nCvWRqz0AYvrqv60TnGvxVzIe7k3sWCw1uhJ/5H6umXKpr9fIlsd9/D9 kOJ4m4+5PyAE32OhxgRi1EPbry4CAinOR7XsMQ/c3AJSL7hczux5r2Zf7MaJHVPs/f9T fv+wt44/7CSQ2pLPW/CU9I1v4xH7ht2g2XKjH+bQwxsbHUe+Dup7cIVUEAEZXMxQqwwP pI6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sR7ruv35Qv2TJdi+hb5jSOiaV9SREkd+tD+3wSx+p6o=; b=04aTtUOXLp1qU/7XnFnfLIhsIF+Wh6iWl6ZZPQY2YQm4nIQW+/ZhpomJU/bGnfiljR xcTJmOZOWIPV0beKGRPyfl3Hv6z7cM1nwgtlYtNDhUZ+PBOZbjmb6iis+mMcmq/rSLWH aZb531sAzOZ5XjFMkB7C7e6uOlnjha5jm2gUAGLGtFbnsaXTx4m2T/7gQzZTm8pcdI76 4JBKaDuA3dcFVvwK83l2Eoy+GArYj/AavKOuUokVWMnxeE/o2DOLUuClKwFImA85ANIl RpPJmWQmWQ/SH8MoFpdnnIF5guLnFyx8KqBmWX+5PANtemGd1At+j3hbsU0bDltk11kr vYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="I/dDS/7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a621a11000000b00591b0cab4f0si14133104pfa.0.2023.02.06.18.49.56; Mon, 06 Feb 2023 18:50:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="I/dDS/7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229879AbjBGCtO (ORCPT + 99 others); Mon, 6 Feb 2023 21:49:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbjBGCtG (ORCPT ); Mon, 6 Feb 2023 21:49:06 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F7736696 for ; Mon, 6 Feb 2023 18:48:49 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id f16-20020a17090a9b1000b0023058bbd7b2so12795104pjp.0 for ; Mon, 06 Feb 2023 18:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sR7ruv35Qv2TJdi+hb5jSOiaV9SREkd+tD+3wSx+p6o=; b=I/dDS/7/aq/F71hBSixMoQhmOnHuXMaj4Gu8pVRWSBCxP77H7aRnbunjchMAzDsu3H EK+oxIIDoDiFMjNzXc4aFvzy8BYeVkCpbanOwknlhoqlocl3kud9TOo7xSVpU8An8MO1 /OhgsooZYMUfIRWnZJZYprfyXICN5kGFzree8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sR7ruv35Qv2TJdi+hb5jSOiaV9SREkd+tD+3wSx+p6o=; b=Snvkryn/Tb7JC2f4Fg2njlUCi6hMEL1g4m0on5xNLt84eC8s+ndnCs6C0GaP917Bae +mfsbeCqwZMpG0fKgPTSySAqOWaKqrH/FaE9dEl3sLhvCXI65/HnYFtPSr/NOPkT/qxl BIca1NpcRu8zi17VhKEJnKA7uHhnE12ftAe4gBqTyC+UU46lGs+5Az5+HeNQ2Iro4v8X TCk8XFBbkveCxcR8o9ZcBAPYh0LKtPHWjJsejU/82ji1CiEzvMJnk+RNrVkfiJ28ti0O QKQO4dQMtwYdKVYrAbGD3duxNXKOoQY+Nx3/KKdG7X2ZgmE3MKIjas5adeog0GKHwRK9 gouA== X-Gm-Message-State: AO0yUKW/d0wZTy0zvZfI5L0lailwOWKa/G1LJ7jXo3em9lEqGPhAYr1L XlZHiUHgAL2lkQ8DL4ghSO0ZnQ== X-Received: by 2002:a05:6a21:3386:b0:be:bea0:7137 with SMTP id yy6-20020a056a21338600b000bebea07137mr2236057pzb.5.1675738129232; Mon, 06 Feb 2023 18:48:49 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:29fb:a635:f0df:f45a]) by smtp.gmail.com with ESMTPSA id s17-20020a63a311000000b0045dc85c4a5fsm6882430pge.44.2023.02.06.18.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 18:48:48 -0800 (PST) From: Douglas Anderson To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dmitry Torokhov , devicetree@vger.kernel.org, Stephen Kitt , Konrad Dybcio , Douglas Anderson , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 2/7] arm64: dts: qcom: sc7280: Add 3ms ramp to herobrine's pp3300_left_in_mlb Date: Mon, 6 Feb 2023 18:48:11 -0800 Message-Id: <20230206184744.2.I13814cefc5ab3e0a39ebd09f052e3fd25d4e8f1d@changeid> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230207024816.525938-1-dianders@chromium.org> References: <20230207024816.525938-1-dianders@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757138868767690117?= X-GMAIL-MSGID: =?utf-8?q?1757138868767690117?= The "pp3300_left_in_mlb" rail on herobrine eventually connects up to "vreg_edp_3p3" on the qcard. On several herobrine designs this rail has been measured to need more than 1ms to turn on. While technically a herobrine derivative (defined as anyone including the "herobrine.dtsi") could change the board to make the rail rise faster or slower, the fact that two boards (evoker and villager) both measured it as taking more than 1ms implies that it's probably going to be the norm. Thus, let's add a "regulator-enable-ramp-delay" straight into the herobrine.dtsi to handle this. If a particular derivative board needs a faster or slower one then they can override it, though that feels unlikely. While we measured something a bit over 1ms, we'll choose 3ms to give us a tiny bit of margin. This isn't a rail that turns off and on all the time anyway and 3ms is nothing compared to the total amount of time to power on a panel. Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi index 27f479ff9d80..ded36b5d28c7 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -108,6 +108,8 @@ pp3300_left_in_mlb: pp3300-left-in-mlb-regulator { pinctrl-names = "default"; pinctrl-0 = <&en_pp3300_dx_edp>; + regulator-enable-ramp-delay = <3000>; + vin-supply = <&pp3300_z1>; };