From mboxrd@z Thu Jan 1 00:00:00 1970 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 7413BEE49A5 for ; Thu, 24 Aug 2023 09:59:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240592AbjHXJ7U (ORCPT ); Thu, 24 Aug 2023 05:59:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240776AbjHXJ7D (ORCPT ); Thu, 24 Aug 2023 05:59:03 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B7F51995 for ; Thu, 24 Aug 2023 02:59:00 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2bcb50e194dso73559581fa.3 for ; Thu, 24 Aug 2023 02:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692871139; x=1693475939; 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=Xhj9qr6wA2akPHSa65YNjD4meHDS+0P1VytRfMyGc3Q=; b=pS6a55YmSTdQr/nJwGAN3HkdEcEkliowOt0rA6ZMXL3YTIVKl4wRlQK1VoNWwp5bXh KJV6I2vw0xxVGBSl97GJxfvvWiQUL9jlIFCq4yn7IbJHVU4Ls9RjP/ICn8fVkQDyQmrG QJqwcWeStGC+7qvfzzZqo/yFWOxOP34+nXn+rqeIzVesgMEtEYLsFUoN09WRsCgWxOQ4 EYVBr5rGIKTJgq8y4YoK+3J0ZJrLDXHUv9l/2r67Vc2p0ykVLgW+gjDPaffNQmMlGX8i R2l+3nlXv/6WS6UdHzQFudQfgg4mQObjNyqodRRFcDYrz5BAefbl6uxX900R6oWyF4ZU xvNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692871139; x=1693475939; 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=Xhj9qr6wA2akPHSa65YNjD4meHDS+0P1VytRfMyGc3Q=; b=K9x6Y0g2HxSe/oYU/mAcoFJT7/kN2vx3jnx2dWfWDsCSs2ecIjVuml+KieeKNsrKxO l1wsJjVKmbgEwuoR0bN3WLpNe+gHRMbVhqC9SRL9l2Dp8Sh8sgAgNQJ2ne7Va0UEVBZF JVCBPHj9XYFU1bH50Sxx7wsjKTKcvVIs3yFZgYmZFqRWcXO2x7w/2KKb4NsOwi5BfkSD yGEfL0ImeZ5QGo/A53Np+D/8dTDvhn3+oJybQ8UMBpZn5Jvz1rApcY0RRN2fQ8rB0lQc Fd/dQbPscJ2gb9Yn/MlaDdYqPePEwD2SkL/yXRSaPrLgevtgqylq6fC0DY+SUp/d1rj3 gscw== X-Gm-Message-State: AOJu0YzPuvnCKMqJQpPOvwsXrh3G4DsEOImME+sJA3p9WLL8x7ZgdgSC A+fcMF2+T0txSGJMOMoXTkU0uA== X-Google-Smtp-Source: AGHT+IEbJilHQNSoGAbtW7OY7i9wd48GrUOBtKvw0bkpQWCfxlXjJ9qcrnXW6Vzdj/l1VWLWJEYTdw== X-Received: by 2002:a05:6512:10d6:b0:4fd:c715:5667 with SMTP id k22-20020a05651210d600b004fdc7155667mr12192159lfg.20.1692871138915; Thu, 24 Aug 2023 02:58:58 -0700 (PDT) Received: from [10.167.154.1] ([2a00:f41:4882:ba34:4490:938b:eab4:c5ef]) by smtp.gmail.com with ESMTPSA id y2-20020a197502000000b0050096712dc8sm712301lfe.277.2023.08.24.02.58.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 02:58:58 -0700 (PDT) From: Konrad Dybcio Date: Thu, 24 Aug 2023 11:58:53 +0200 Subject: [PATCH 2/3] arm64: dts: qcom: sdm845-tama: Add GPIO line names for PMIC GPIOs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230824-topic-tama_gpio-v1-2-014e9d198dce@linaro.org> References: <20230824-topic-tama_gpio-v1-0-014e9d198dce@linaro.org> In-Reply-To: <20230824-topic-tama_gpio-v1-0-014e9d198dce@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1692871134; l=4220; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=RfJk4m3j691N0aXP/c3pg1WYO/bCOpFVFAp7DphEu+4=; b=WygaPyy/GgDc3QXvnbLlYxW0h4M/YAcU/rISt0tpP6UFZ7sDwM0MoxUwMzqHZHhbnekRiF9ZM Jrj2t/7uP+uBFYv2pVX1ks+uKzErG3JUcwivkzNgzG4GkYV4UUoAEdO X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Akari, Apollo & Akatsuki DTS-es to better document the hardware. pm8005 and pm8998 config is common for all three boards. Apollo has VIB_LDO_EN (replacing NC) on PMI8998_GPIO_5 Akari and Akatsuki have WLC_EN_N (replacing NC) on PMI8998_GPIO_8 Akari additionally has RSVD(WLC_EN_N) (replacing) on PMI8998_GPIO_11 which sounds a bit like a forgot-to-update-documentation, but maybe it differs between SKUs.. Time will tell, when we get to enabling the wireless charger. Signed-off-by: Konrad Dybcio --- .../dts/qcom/sdm845-sony-xperia-tama-akari.dts | 17 +++++++++++ .../dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts | 17 +++++++++++ .../dts/qcom/sdm845-sony-xperia-tama-apollo.dts | 17 +++++++++++ .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 34 ++++++++++++++++++++++ 4 files changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts index d2cb6478a8c0..6e65909ab582 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts @@ -16,6 +16,23 @@ &panel { compatible = "sony,td4353-jdi-tama"; }; +&pmi8998_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "NC", + "", + "NC", + "NC", + "", + "WLC_EN_N", + "NC", + "NC", /* GPIO_10 */ + "RSVD(WLC_EN_N)", + "CAM_IO_EN", + "", + "NC"; +}; + &tlmm { gpio-line-names = "NC", /* GPIO_0 */ "NC", diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts index a91712f6af28..82e59e453354 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts @@ -44,6 +44,23 @@ &panel { /delete-property/ touch-reset-gpios; }; +&pmi8998_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "NC", + "", + "NC", + "NC", + "", + "WLC_EN_N", + "NC", + "NC", /* GPIO_10 */ + "NC", + "CAM_IO_EN", + "", + "NC"; +}; + &pmi8998_wled { status = "disabled"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts index 52bd83d1febf..dc15ab1a2716 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts @@ -18,6 +18,23 @@ &panel { width-mm = <56>; }; +&pmi8998_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "NC", + "", + "VIB_LDO_EN", + "NC", + "", + "NC", + "NC", + "NC", /* GPIO_10 */ + "NC", + "CAM_IO_EN", + "", + "NC"; +}; + &tlmm { gpio-line-names = "NC", /* GPIO_0 */ "NC", diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi index 7ee61b20452e..430857233967 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi @@ -524,7 +524,41 @@ &mdss_dsi0_phy { status = "okay"; }; +&pm8005_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "NC", + "", + ""; +}; + &pm8998_gpios { + gpio-line-names = "NC", /* GPIO_1 */ + "FOCUS_N", + "", + "NC", + "VOL_DOWN_N", + "VOL_UP_N", + "SNAPSHOT_N", + "NC", + "FLASH_THERM", + "NC", /* GPIO_10 */ + "LCD_ID", + "RF_ID", + "NC", + "NC", + "NC", + "NC", + "NC", + "NC", + "NC", + "", /* GPIO_20 */ + "NFC_CLK_REQ", + "", + "", + "", + "", + ""; + focus_n: focus-n-state { pins = "gpio2"; function = PMIC_GPIO_FUNC_NORMAL; -- 2.42.0