Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36DF6C636D6 for ; Tue, 7 Feb 2023 02:49:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbjBGCtF (ORCPT ); Mon, 6 Feb 2023 21:49:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjBGCsz (ORCPT ); Mon, 6 Feb 2023 21:48:55 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7341436463 for ; Mon, 6 Feb 2023 18:48:46 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id e19so6339074plc.9 for ; Mon, 06 Feb 2023 18:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wLClDN2mw8UPzR2Mt0bhcLHPl8f4SmjcZHaBzl3SwMQ=; b=W0W7US80iiNOz0nxN4KOFrjFuNsG9BK93IQfqi2yAaf/IQw25EYxXvAAzjrbpsTx1Z Qqf1SoXTX2tzuE1q7Az7/AWdpnqzb9oDfsoOgiqLT+owtX39aZRghRJwUwspUZN55btY HZwkoAUfUXOwX5ujJDuSyOQvp1N8iqD5ojSAo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wLClDN2mw8UPzR2Mt0bhcLHPl8f4SmjcZHaBzl3SwMQ=; b=4E/XSGVNCDoQoJzqnBSAdPF811JJ+AFxFMWn18WdML9I2/odtnmzBjhuAOVGCRT2BU aUE8w/OCcfYfunD310Ek9Rj2Q8SZOLxUt2L648RJJ6O5foeCoCeQlUC29KonAvlTwYM6 qiHEvsLB0cGGV2BkH3HGviPDxEz+ZXwEOvPYFuosWc8a6YBrlAqE11aDuo3/vUSDTGgp cHznn7E4SXreu897QS2gpMYwq/PPYsuS3hZQlo/AamHF8lMw4Oh0AwpyJFpYw/4rHnlo OhPq90jTIMNE3UfWGp54rts8VAyWTaUUx8c1aEEsYTlh9R0BwSwiHREdxLsiveUjQv8F iBvw== X-Gm-Message-State: AO0yUKUmlG7UhQsc8xFbbrp30ZOKP0SNU5r8UubnYDlq8CaP7EwQFECS EFV1hlKITXDQ0hSjGieHh0eurQ== X-Google-Smtp-Source: AK7set8CMMbpCNH76H+LBfbAD2TNUn+FqqoBLyDbtbOyIt4X4bKv2DEMb7QFDIt2d709r5a3n8UZ+Q== X-Received: by 2002:a17:90b:2251:b0:230:c57b:7c24 with SMTP id hk17-20020a17090b225100b00230c57b7c24mr2034728pjb.26.1675738125883; Mon, 06 Feb 2023 18:48:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 18:48:45 -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 0/7] arm: qcom: Fix touchscreen voltage for sc7280-herobrine boards Date: Mon, 6 Feb 2023 18:48:09 -0800 Message-Id: <20230207024816.525938-1-dianders@chromium.org> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Trying to figure out how to talk to the touchscreen properly on sc7280-herobrine boards was a long and difficult process. Many Engineering hours were spent deciding how exactly one should talk over i2c to a peripheral. In the end, a solution has been found and this patch series attempts to implement it in a way that will work for all herobrine-based boards. Validation of this code has actually been done on sc7280-herobrine-villager. Those patches are device-tree only and are placed first. They shouldn't be super controversial, I hope. In order to make this work, we also need to support sc7280-herobrine-evoker. For evoker, things are a bit tricker, though (I think) the solution we ended up with is not terrible. See the "Goodix" bindings patch for the full details. Unfortunately, I haven't tested the final version of these patches on evoker hardware. Thus those patches are at the end of the series and marked as such. It still wouldn't hurt to land them, if people are OK with it, since nobody in the wild has this hardware and and the evoker-specific parts of the patch are very easy to validate. Douglas Anderson (7): arm64: dts: qcom: sc7280: On QCard, regulator L3C should be 1.8V arm64: dts: qcom: sc7280: Add 3ms ramp to herobrine's pp3300_left_in_mlb arm64: dts: qcom: sc7280: Hook up the touchscreen IO rail on villager HID: i2c-hid: goodix: Stop tying the reset line to the regulator dt-bindings: HID: i2c-hid: goodix: Add mainboard-vddio-supply HID: i2c-hid: goodix: Add mainboard-vddio-supply arm64: dts: qcom: sc7280: Hook up the touchscreen IO rail on evoker .../bindings/input/goodix,gt7375p.yaml | 7 ++ .../dts/qcom/sc7280-herobrine-evoker.dtsi | 1 + .../dts/qcom/sc7280-herobrine-villager.dtsi | 1 + .../arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 + arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 10 +- drivers/hid/i2c-hid/i2c-hid-of-goodix.c | 98 +++++-------------- 6 files changed, 42 insertions(+), 77 deletions(-) -- 2.39.1.519.gcb327c4b5f-goog