Message ID | 20230206184744.1.I784f4b3d7e4a06edafff4a3129f52e749889bc05@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2607541wrn; Mon, 6 Feb 2023 18:51:27 -0800 (PST) X-Google-Smtp-Source: AK7set8AQ3vP6uzHzlwWeQj/jF0KsnF+VZnMf4OIMqfOTRAre/2LD5bDF8ivnZ2gcvF8lQ8Ug7xz X-Received: by 2002:a05:6a20:3d86:b0:bf:6e94:3721 with SMTP id s6-20020a056a203d8600b000bf6e943721mr2098675pzi.26.1675738287063; Mon, 06 Feb 2023 18:51:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675738287; cv=none; d=google.com; s=arc-20160816; b=X6PVv90il5I5z3ToIZtYkUaFOgIVH3/6P8f70my9wnapfA8oCGRyQcvdb0lOQr3Zor 12tfL5jNWdmYyc8YqTuTBPFzdZbND9qzQehXky3ZH/gA4z/IbZho10PDT9SgfYFrjj91 c7A4G2OGKI8S3G0bka1j0wr//eXkTkRXw7VRax7RcPwnoPFUCsQ6bABnsve8sXrW1MoT FJCPeTW7ZUq/paMIJIwzDsQ1prlbps28N64EGGhLz4TlJf3jpARtmwYsYxioRpWX6pTn yDoDolMkVC03+n/NnxxVo6PhETMnXF76Bxy4oClY5pDPHlEAxxZIco1AU1QXTDHRDzUP 9rnA== 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=FtYd96w13o2OREzHMRA9bmLEb9XbyiE/swWiI2WGNPk=; b=uXd+iB/vRAqniEWi7FImWBy7b0xBI9xTJh4w0y6MsivVn4YEj2h127Qm8vGJ/Mt3Em T7Kx8qAj2wBaAg2d4B6BuuvScTPOmD+CGQkFzwJy9qgm79aJ6QOtvtP/00W9SNyMD/Ne XjZnQwu0fUJXwIkeKwUoQ8C+vebnm6xgwM1triK8p7h3oZUX4gBEuYHlzyxHVM407ZKI CUT3z3QDfMW2imTG0TsGDZbvHSIYqegzSpopHZrofuZVDATdLOXNMe11Eet/3di8ms1J cIDHd6i8Kk/FIiiz8RukyssnH27w/5UQKXNe/ZBoSd+eFMUTP52OfjEqbEjB+CAbFMRB fyeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=alBdbTs4; 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 f68-20020a625147000000b00590021d0b97si12347917pfb.104.2023.02.06.18.51.14; Mon, 06 Feb 2023 18:51:27 -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=alBdbTs4; 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 S229969AbjBGCtH (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Mon, 6 Feb 2023 21:49:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbjBGCtB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Feb 2023 21:49:01 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41B5036681 for <linux-kernel@vger.kernel.org>; Mon, 6 Feb 2023 18:48:48 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id mi9so13568286pjb.4 for <linux-kernel@vger.kernel.org>; Mon, 06 Feb 2023 18:48:48 -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=FtYd96w13o2OREzHMRA9bmLEb9XbyiE/swWiI2WGNPk=; b=alBdbTs4aYTpqvsvp5qXhFdhnTI2epGijKZElaHhBcVXZvnCcyMKZgCAcxYLjgqh87 oQNA7vnnvFTkbN1ys+txiF+FEZ2cDXgAK6tqUBRrNy8loJXv7iETNjXb/20vr5U+waJY cHQyz7Lsrf1udFnBDmpP5HMe1t8mqJNef+3Xc= 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=FtYd96w13o2OREzHMRA9bmLEb9XbyiE/swWiI2WGNPk=; b=UrUvrj07GpZxaNmJMHCur71R2fWE+LAtv9cAxzRy8pSp8lOw+9rbVyjqSkgc6HrQON lcs8qK8txyvgH9+ovjcuSMfH5S1L7iVvInhNzST38+FGdYgI4JoAJmTtIp7Hfr9HvWCO 5mOs+CtLKTxfRR/9FCKny8Knj13d8heKG6fq/H22LHIY+QcX0EcKSVTHm9ROTEkTl01C 8YsiJu3rbsdP5OtpIFO8Qb5/ZSSZBip+3xhYt07BoNXWP3S72G2/NACL/MBDEqNfh+xq tlgqwEJ4kzgJnZ7FxsQHf9MO1Qz760eoa5RaMnuUEsh0dsi8FD+W1fT2l9VAChD3M0mp rSPA== X-Gm-Message-State: AO0yUKWgIne1y5ckS6tU/DRnm7Glh4Mz2tzRmG8eoEg7z/LLiUcVW3J9 tcSn+HL7mL7asidPx4ZQTMGhjg== X-Received: by 2002:a05:6a21:6713:b0:bf:1769:347f with SMTP id wh19-20020a056a21671300b000bf1769347fmr1304873pzb.47.1675738127561; Mon, 06 Feb 2023 18:48:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 18:48:47 -0800 (PST) From: Douglas Anderson <dianders@chromium.org> To: Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Jiri Kosina <jikos@kernel.org>, Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dmitry Torokhov <dmitry.torokhov@gmail.com>, devicetree@vger.kernel.org, Stephen Kitt <steve@sk2.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Douglas Anderson <dianders@chromium.org>, Andy Gross <agross@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] arm64: dts: qcom: sc7280: On QCard, regulator L3C should be 1.8V Date: Mon, 6 Feb 2023 18:48:10 -0800 Message-Id: <20230206184744.1.I784f4b3d7e4a06edafff4a3129f52e749889bc05@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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757138950104219560?= X-GMAIL-MSGID: =?utf-8?q?1757138950104219560?= |
Series |
arm: qcom: Fix touchscreen voltage for sc7280-herobrine boards
|
|
Commit Message
Doug Anderson
Feb. 7, 2023, 2:48 a.m. UTC
On the first sc7280 QCards the L3C rail was never really used for
anything. Stuffing options on the QCard meant that the QCard itself
didn't use this rail for anything. This rail did get sent to the
mainboard, but no existing mainboards ever did anything with it other
that route it to a testpoint.
On later sc7280 QCards, the L3C rail was repurposed. Instead of being
a (nominally) 3.3V rail, it was decided to make it a 1.8V rail. It is
now provided to the display connector (which might route it to the
touchscreen) and also used to power some buffers relating to
touchscreen IO. This rail is getting the additional tag "ts_avccio",
though some places still refer to it as "vreg_l3c_3p0" despite the
fact that the name now specifies the wrong voltage.
Since it never hurts for this rail to be 1.8V (even on old QCards /
old boards), let's just change it to 1.8V across the board and add the
extra "ts_avccio" moniker as a label in the device tree.
Future patches will start using this rail in their touchscreens.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Comments
On Mon, Feb 06, 2023 at 06:48:10PM -0800, Douglas Anderson wrote: > On the first sc7280 QCards the L3C rail was never really used for > anything. Stuffing options on the QCard meant that the QCard itself > didn't use this rail for anything. This rail did get sent to the > mainboard, but no existing mainboards ever did anything with it other > that route it to a testpoint. nit: s/that/than/ no need to re-spin just for that > On later sc7280 QCards, the L3C rail was repurposed. Instead of being > a (nominally) 3.3V rail, it was decided to make it a 1.8V rail. It is > now provided to the display connector (which might route it to the > touchscreen) and also used to power some buffers relating to > touchscreen IO. This rail is getting the additional tag "ts_avccio", > though some places still refer to it as "vreg_l3c_3p0" despite the > fact that the name now specifies the wrong voltage. > > Since it never hurts for this rail to be 1.8V (even on old QCards / > old boards), let's just change it to 1.8V across the board and add the > extra "ts_avccio" moniker as a label in the device tree. > > Future patches will start using this rail in their touchscreens. > > Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
diff --git a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi index df49564ae6dc..50d963957303 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi @@ -230,9 +230,15 @@ vreg_l2c_1p8: ldo2 { regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; }; + /* + * The initial design of this regulator was to use it as 3.3V, + * but due to later changes in design it was changed to 1.8V. + * The original name is kept due to same schematic. + */ + ts_avccio: vreg_l3c_3p0: ldo3 { - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <3540000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; };