From patchwork Fri Nov 18 15:20:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 626179 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 65236C433FE for ; Fri, 18 Nov 2022 15:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242257AbiKRPUl (ORCPT ); Fri, 18 Nov 2022 10:20:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242249AbiKRPUj (ORCPT ); Fri, 18 Nov 2022 10:20:39 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E647B2CE1D for ; Fri, 18 Nov 2022 07:20:37 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id l12so8694371lfp.6 for ; Fri, 18 Nov 2022 07:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.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=Kb/6Z6Nz1gnb2z7GznvPxvyQcocsubtScHtnufLzpH8=; b=IHUJ4ViWC3qk37qn4GHyU/n75i6gHrjzDdr27nQHRmtg8yU0ept4ffxn0ShutbkedG X74NoeRHZy6eQCVmdZaI9ExK+lFrtN/K1DRB6pTQkNJpdBsxFhlmNduBJJsIFf2OfBMF qOEhH7Yi6iO+kU7ynIF8gxPqfgblX95IgJsb8RhfhkeHvZDiCwN7Jy/GuAzZ6PDiC1Td do5gR14EgDv7tcxzIEMAnAp/sXFuAZAAUKIYkvvXP8Uo/juNRUD1WhsZPNmPyGh/P14p 90GvG4by3mFnrwHesXMPMtNyuxSkX4h+y/fH+P/q/K5SA13yLtUa3iCJV2gzvxFUPHAJ hEnQ== 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=Kb/6Z6Nz1gnb2z7GznvPxvyQcocsubtScHtnufLzpH8=; b=zsKggkeP4zn6+CFDmSz413VcfuDJmOF7oKLHDDwaGnkAIqhV/8q3UluVM8hvNsbBn9 1iF7QUsseils1S70saCf0JfIhzahiwwEpsBO9hYqJh9GaVpP5nictUtzmYE2WKCXjK4O Ba965ihzvIdS+XOaWj9XrqKJjyyWU21EPo2z1PYhyh2dzzt0lQIfyBpGvr7UXoN/TC9K A5GpfLOdB6VHsoEsToKvEA+joeZtgZplBM+hD33UP59hed2KtL8nb3glmlHF3kUAoIJK 3VP9Q1UTBdpdRLtv2Mx1dBXGeaqKchvavQs76qijUW+CuO73UL+k7+tIm86TY0dyTWPN vaGg== X-Gm-Message-State: ANoB5plY4op3fwP/Yk6Kkh+zXiua4UCE1RUmVPpmh8Mg4OJrhIVd6Azw pXswkVNC66Nok41Oo95k9LgO3S1ZPfqZ1N88 X-Google-Smtp-Source: AA0mqf4OcdskkBwdfhW7fzDIEeecphOYfbsANRyvspW90OYHyg0Y408+8wUWBURzNqtp+MYhtMy7xQ== X-Received: by 2002:ac2:5de7:0:b0:4af:f58e:a7a0 with SMTP id z7-20020ac25de7000000b004aff58ea7a0mr2457830lfq.507.1668784835927; Fri, 18 Nov 2022 07:20:35 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id 12-20020ac25f0c000000b004948ddb4e4dsm690597lfq.301.2022.11.18.07.20.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Nov 2022 07:20:35 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8350-sagami: Add GPIO line names for PMIC GPIOs Date: Fri, 18 Nov 2022 16:20:28 +0100 Message-Id: <20221118152028.59312-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20221118152028.59312-1-konrad.dybcio@linaro.org> References: <20221118152028.59312-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Sony ever so graciously provides GPIO line names in their downstream kernel (though sometimes they are not 100% accurate and you can judge that by simply looking at them and with what drivers they are used). Add these to the PDX213&214 DTSIs to better document the hardware. Diff between 223 and 224: pm8350b < gpio-line-names = "NC", /* GPIO_1 */ > gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */ < "NC", > "CAM_PWR_LD_EN", pm8350c < "NC", > "WLC_TXPWR_EN", Which is due to different camera power wiring on 213 and lack of an additional SLG51000 PMIC on 214. Signed-off-by: Konrad Dybcio --- .../qcom/sm8350-sony-xperia-sagami-pdx214.dts | 23 +++++++++++++++++++ .../qcom/sm8350-sony-xperia-sagami-pdx215.dts | 21 +++++++++++++++++ .../dts/qcom/sm8350-sony-xperia-sagami.dtsi | 20 ++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx214.dts b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx214.dts index cc650508dc2d..e6824c8c2774 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx214.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx214.dts @@ -17,3 +17,26 @@ &framebuffer { height = <2520>; stride = <(1080 * 4)>; }; + +&pm8350b_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "NC", + "NC", + "SNAPSHOT_N", + "NC", + "NC", + "FOCUS_N"; +}; + +&pm8350c_gpios { + gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */ + "FL_STROBE_TRIG_TELE", + "NC", + "NC", + "NC", + "RGBC_IR_PWR_EN", + "NC", + "NC", + "WIDEC_PWR_EN"; +}; diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts index d4afaa393c9a..c6f402c3ef35 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts @@ -68,6 +68,15 @@ slg51000_a_ldo7: ldo7 { }; &pm8350b_gpios { + gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */ + "NC", + "NC", + "NC", + "SNAPSHOT_N", + "CAM_PWR_LD_EN", + "NC", + "FOCUS_N"; + cam_pwr_a_cs: cam-pwr-a-cs-state { pins = "gpio1"; function = "normal"; @@ -78,6 +87,18 @@ cam_pwr_a_cs: cam-pwr-a-cs-state { }; }; +&pm8350c_gpios { + gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */ + "FL_STROBE_TRIG_TELE", + "NC", + "WLC_TXPWR_EN", + "NC", + "RGBC_IR_PWR_EN", + "NC", + "NC", + "WIDEC_PWR_EN"; +}; + &tlmm { gpio-line-names = "APPS_I2C_0_SDA", /* GPIO_0 */ "APPS_I2C_0_SCL", diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi index 8f32b2799bcb..d73e1f3fa501 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi @@ -534,6 +534,26 @@ &mpss { firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn"; }; +&pm8350_gpios { + gpio-line-names = "ASSIGN1_THERM", /* GPIO_1 */ + "LCD_ID", + "SDR_MMW_THERM", + "RF_ID", + "NC", + "FP_LDO_EN", + "SP_ARI_PWR_ALARM", + "NC", + "G_ASSIST_N", + "PM8350_OPTION"; /* GPIO_10 */ +}; + +&pmk8350_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "VOL_DOWN_N", + "PMK8350_OPTION"; +}; + &pmk8350_rtc { status = "okay"; };