From patchwork Thu Jun 29 21:00:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 697754 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 A0B6DC001B0 for ; Thu, 29 Jun 2023 21:02:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjF2VBh (ORCPT ); Thu, 29 Jun 2023 17:01:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbjF2VBH (ORCPT ); Thu, 29 Jun 2023 17:01:07 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679212D4A for ; Thu, 29 Jun 2023 14:01:04 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbc0981755so9298125e9.1 for ; Thu, 29 Jun 2023 14:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688072463; x=1690664463; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NBj+rJH2j5vVoNfRRhDYszSDOPJsaOPVyB8jxg7+kWM=; b=Xa+jZMRUqdMvima7ecc5Cp6++AjMIPXlD3xpw0JVmm4tc52sMny1+00VxtOtlc5cZR QnVH3kOw/ys6bYbrwPu3rFlvvibvVDXodArU5okBcxJ4Tq26MleGoTd6Mof0gMgDRnT+ KrPoixw7ewfB9twBrPWFYAp7/KsJdPV7goadnkbKRoGy3Is21hM7RcaAFtlHkZac9nS0 BX/ReOHqvhcYLQI+iRx460uP6RZEZrSm0Wsd+L/IRC0ybLKFlr0eAKDGR6KDySVdpsTO QuXylq8zweOYgrrh6L3uxoGdE9jiqjm+V/EuMP1rbIiF2RZsPl2Sv1eirk4vgqLasmmN m3PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688072463; x=1690664463; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NBj+rJH2j5vVoNfRRhDYszSDOPJsaOPVyB8jxg7+kWM=; b=hjjbV5oaCflvATVBHT0iYQPGlXhybJ+ko8K1RT1rCT8fSKc6fTqrLDZg9Q46hy+wCF Qa0VuZWcD3pP985frIGDqjojfrTLRnj0QNlktVmLR56Hf48PDMVRmxjCVajVfChj5dXx FcSshtdbZgU2pRAlPnC9qkFFJB4pvZavKa7D8snl6W6WJl9kjEj6NVAQ14qrofgS7kW1 gkf5D5/sDh60awJSiZnFUKrtWFTkY7LH2S+VMlFid3Cv1hzInUm0wabJxOYclUW73Dpg nSFxb4PbmqU7uF10asfl3xDpEHjxdX10bw3MPrP+p4anZnug7ZIgHKy99+Cs9m/sySU7 JpeA== X-Gm-Message-State: AC+VfDwGIXJZ89WZg2qo8Lq2xTO6H0u2YV+2lrDFDjTxp9sNnR+tw5Hc JhXxBXO1C+iwmoFaZ0CLN+Hj1A== X-Google-Smtp-Source: ACHHUZ7dXQTFOtiNw0Z88mb81Q81IxPrHY2cqINAThtL9rYgPjBsxOL4gIjfRejOzZckkt1YJzv8Eg== X-Received: by 2002:a1c:4b05:0:b0:3fa:96ad:5d2e with SMTP id y5-20020a1c4b05000000b003fa96ad5d2emr356472wma.19.1688072462791; Thu, 29 Jun 2023 14:01:02 -0700 (PDT) Received: from lion.localdomain (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b00313e4d02be8sm15745722wrs.55.2023.06.29.14.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 14:01:02 -0700 (PDT) From: Caleb Connolly Date: Thu, 29 Jun 2023 22:00:53 +0100 Subject: [PATCH v2 1/3] arm64: dts: qcom: c630: add panel bridge 1p2 regulator MIME-Version: 1.0 Message-Id: <20230627-c630-uart-and-1p2-reg-v2-1-496b581935c1@linaro.org> References: <20230627-c630-uart-and-1p2-reg-v2-0-496b581935c1@linaro.org> In-Reply-To: <20230627-c630-uart-and-1p2-reg-v2-0-496b581935c1@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=1858; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=L2itCOUfvSzeXSASQubMcjpUvnUlL8UMtdvpzAwhCKM=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBknfEMJxqxd24gGIVNHXSSY3H2LmK0s0cNftoX1 L/C5SKUyAiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZJ3xDAAKCRAFgzErGV9k tu64D/0XmgmNjI40YvCMuw+w5Cc+zpXx1VymQQXb/vjlmJQXzKNWlzjh8MII3e3BShGXQdf0KCw 71BuCQiecPNudev6Hru2zh+2Ov5edxd5X6q8VB2p5rF3uFQ54W9ltW/e4Wc68JAH6IfVTISo+mo 1hKgKPe+bvUymey19Py/pGP9d58Vsqo/lC7Ae6PXzxSWRQt9dI1NUTjPjYybsqJrl39m3ep+4r5 9ViBNMecK3G0U0TzU4bY2japo2+gbMt4zOj293sJlrCwhXp1gn2QDLTE5ozFrBPW5igsjDJ+7Wv Ic5hhIoLjFM5AOMK05cfsU9A+KH2aGpZ7NGyNT8yPGL2sFa2fMxoLHUT1P5d9eIDxg9cL+7aW16 3FG3zrfy7UqEqFCXQb3ZE+kMurFysmn0ugrBVQfbFJQgjgQtvilyUQ9gkqmIQxVlTesF+HfNT1K EB3DGnFXf9WKpH8t+KYPM9gs7XsEsubbVPJKQ1NwNLuW85pkE8V1H94LCNNYIl6P8IG8qDmemkd 2VwhL8mdRlU/iKY43bymD6X0qy7Y+IRsQSnNaPlCuE2ugrXm61w00asX1T1RtaQvF9HNo2/42Hj JRF86v6I5W3xkB5QO1nkMRxD9YTRnGcUkyfqupWR5TDPDdSQdNfgh5zTyjDwp3isLOXfx+dAVfb G7/aoqfeidt1y5Q== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The VCC and VCCA supplies of the DSI<->eDP bridge are derived from vreg_l2a_1p2 and controlled by a GPIO on the PMIC. Add the regulator here so Linux can control it. Signed-off-by: Caleb Connolly --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index 22a7d997cdb0..86030771d685 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -80,6 +80,22 @@ adsp_mem: memory@8c600000 { }; }; + sw_edp_1p2: edp-1p2-regulator { + compatible = "regulator-fixed"; + regulator-name = "sw_edp_1p2"; + + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + + pinctrl-0 = <&sw_edp_1p2_en>; + pinctrl-names = "default"; + + gpio = <&pm8998_gpios 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + + vin-supply = <&vreg_l2a_1p2>; + }; + sn65dsi86_refclk: sn65dsi86-refclk { compatible = "fixed-clock"; #clock-cells = <0>; @@ -425,6 +441,8 @@ sn65dsi86: bridge@2c { enable-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + vcca-supply = <&sw_edp_1p2>; + vcc-supply = <&sw_edp_1p2>; vpll-supply = <&vreg_l14a_1p88>; vccio-supply = <&vreg_l14a_1p88>; @@ -500,6 +518,16 @@ &mss_pil { firmware-name = "qcom/sdm850/LENOVO/81JL/qcdsp1v2850.mbn", "qcom/sdm850/LENOVO/81JL/qcdsp2850.mbn"; }; +&pm8998_gpios { + /* This pin is pulled down by a fixed resistor */ + sw_edp_1p2_en: pm8998-gpio9-state { + pins = "gpio9"; + function = "normal"; + bias-disable; + qcom,drive-strength = <0>; + }; +}; + &qup_i2c10_default { drive-strength = <2>; bias-disable; From patchwork Thu Jun 29 21:00:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 697753 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 CAB53C001DE for ; Thu, 29 Jun 2023 21:02:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbjF2VBi (ORCPT ); Thu, 29 Jun 2023 17:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbjF2VBK (ORCPT ); Thu, 29 Jun 2023 17:01:10 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31AAA30F6 for ; Thu, 29 Jun 2023 14:01:05 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fbc656873eso304545e9.1 for ; Thu, 29 Jun 2023 14:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688072463; x=1690664463; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cjHhF2rrsZNLShU/mSU0cZTHMuU3jpyC2KnZR0yY3DA=; b=pPO6mhmQouergRaAyRprTFR0yKk3fI4V8QD3oYV+T7A9qnjaYvRpsvIKIBVEYHrDKA C9B/SyLxol9j2S3JXh2p8pstnyEUiI9r6lJ63/ZQ/Cev0vhHCzElvrmhBgIMx5u8+OYR dvsNG6q/K33VYRxF97bTB2niOWHFS8dePTaA2vu6s46l4DcrTvYHeoIKQ6QZvkwPX2lZ GhZITxe7FEZht6zgbMZzRY8hVmFd2v2wluamy8J5tmVvwx696nHKQMMxZzARll8ToGTo gGNh9i3v8wfXi8OuVpu3SY1fxjLMHZ+Z5gsHom8WKgbjfNbaBjycz3XakHQS3ltYNkFr 0z4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688072463; x=1690664463; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cjHhF2rrsZNLShU/mSU0cZTHMuU3jpyC2KnZR0yY3DA=; b=BQAYxEcxUgeRT7tfVUwAc9VeNXmvFY19HcucKggBJ5mSE/CsTi4jeFbwvQDGaJPlDc 2twLVhmISZjD/HYN4mURmtUjUlEmegjORLHyzWDgnulor9GG5aSLg32LMAO3SWj+U1it X6bofz811+QcO51FJHR4uRoKiEPT9Ld1GdXqkihqWKx7JfWlooawhrvOFUa8CdHBLktR E4bi3nekN/9/DVIxttVd4YmTrErrNmij5gGFfhEU25F1fqEeP1FumbA1v2MWDxQKgRDR MTtYXbXltJFx9IJJF2Xz3D9GqcUYLa3ZfJUDv7Xqtduw0WiAVK5YLA2wsLWIQOFXNqjV EOpw== X-Gm-Message-State: AC+VfDzveA8OIL7H7pZQYeRwDaQzzizrjlmRbF0HNMHVy/N/jmeRsi1B BEaUpWD52S+taejgLPH027uErw== X-Google-Smtp-Source: ACHHUZ5qV4hXWMeESfmnswW5f7tPeqyfZeqh3oZCxb/LLSC7PYWLzHRVV0uQ/wfg21ucQHEaYlTqEQ== X-Received: by 2002:a7b:c392:0:b0:3fa:8519:d323 with SMTP id s18-20020a7bc392000000b003fa8519d323mr455869wmj.5.1688072463707; Thu, 29 Jun 2023 14:01:03 -0700 (PDT) Received: from lion.localdomain (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b00313e4d02be8sm15745722wrs.55.2023.06.29.14.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 14:01:03 -0700 (PDT) From: Caleb Connolly Date: Thu, 29 Jun 2023 22:00:54 +0100 Subject: [PATCH v2 2/3] arm64: dts: qcom: c630: add debug uart MIME-Version: 1.0 Message-Id: <20230627-c630-uart-and-1p2-reg-v2-2-496b581935c1@linaro.org> References: <20230627-c630-uart-and-1p2-reg-v2-0-496b581935c1@linaro.org> In-Reply-To: <20230627-c630-uart-and-1p2-reg-v2-0-496b581935c1@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=843; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=lxcaNLhwHIb1Kd7dpGNsFfI0jp3FCFDVL+rVEqBfZ+o=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBknfEMbjz8QrivAmZHC6iPNemCLEsRKJzvcacAF lEWfsJU1imJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZJ3xDAAKCRAFgzErGV9k totkD/46W0wYE1Jowpo/a1h6eTH7zYFNlp3hT7k2EoGKxbpORTrHcTFyCCjO9m8bRHmGV38wi4n OHSZtQQNdMyEeb0lE1wkxHGPuMWqvCjmu32vsk0sahBKwWCp/46sFpNFETZG3KDVr5eQmCHownu 1rjPHdIG0DsFBQ29x8O8GLcWX7zSc3KzpNITRy+yoGBhDoOEwM8Y7zTgJFWV1+0LZJfr9xaFy75 P66KFQddkRVLKDNOENTcdbKvyoDna3Cr0LvrfNQ/Em8h/fONjzz3m5ghslFzOfKCVHFPvKb/C3u m7ORvAzrd5NcbDRPbSZTLU3RAJLNwWQcT10gaGxayT1BG/U3v6xKYKTNa6WtknU+WlyV81vjHaf n3f5szH7gk9887McbCaAldxnkZuSbTela/qyl8TKyza65zg8lTMz+Xn3vr9FxEkMuS4QD/loWJk ULHyn06IpcIsxI5npdZe9r0QzrxrSIv4yawe4+0dmzN9BykY8wMT6zSz/RqWQQFOPWD0jnvVQYh LKGJ2MzUlnya9khgQ7VbuyLQ3xdMeqOoTepEMJxtI9d4M64jOrdP2h6Pl5Wy/DIq8ZjH1ZsgZ8T sPSnXNf5oQY0J/DC2im01YXUzrv58cbTS/gqIyQojKXlAsmTCmLf8zbKZ5bbzsXylHDU7x9B6MP fJ6dBEbryGh4TEg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The c630 exposes its debug UART via a connector on the PCB, enable it. Reviewed-by: Konrad Dybcio Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index 86030771d685..141457ddad6b 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -33,6 +33,7 @@ / { chassis-type = "convertible"; aliases { + serial0 = &uart9; hsuart0 = &uart6; }; @@ -706,6 +707,10 @@ bluetooth { }; }; +&uart9 { + status = "okay"; +}; + &ufs_mem_hc { status = "okay";