From patchwork Tue Apr 11 13:49:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 81973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2598476vqo; Tue, 11 Apr 2023 07:03:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bT8FakZo/RFnU3DmBhCVquuEhd768V6xqKMxs3qipS9Q1/lW7eC6xtExS+anmE4ljkMZ17 X-Received: by 2002:a17:906:4698:b0:94a:4c55:c07c with SMTP id a24-20020a170906469800b0094a4c55c07cmr10948420ejr.64.1681221783012; Tue, 11 Apr 2023 07:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221782; cv=none; d=google.com; s=arc-20160816; b=NtBnAV+945rpayp6hK8jYQ8IpxABtTYq2xaeuyszfPaxQYzjY6uehEjILtvxdL1w53 jv7VJS/ymDQxNbwXtB7SpNzfi+Jk8jHye8hYUHeoZxFA2e/gS1dRzumi64q4iRLQ+ULe nViIkDdqJMX0wRWhzqkZQBfHnZJzZT+CItY9E1usZWfeIilJ2eQ4SqBoJJ30pAuVUQba eRrkJ1K8O+0mName2NPhoF45YTSHmPK9W7Or9e6FeEedusIe1miS4rIiTj66OMaSOnTZ bpDW5T7AdRND5SOcPkvtkoM3IUOv3DrJvwUIV9/PPSJHpCSwWPZGYwN3xLsdapuas+NP SQ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nqqJwELWN/hOjlu4C15VTf6hm+l2eGEBIz6GNcstEPs=; b=Ymn62gYRYZn5hwrcg1U01/rS7/DCXwxMkIbX9+JgR7RHkGQLQ0AvlshzZz24As107l BGKQOqXdQDLLrMCwEanbJNwp0ekbHVyTBaIXXmw/HasCL60GxM9W8QrvZerx9qDoZCgW CbzYUOm06nonXr2ZHAsBELxYgCH0W0iuvYeD1sTMyHcx1o0cGdeCU+8W9+jCXqWwCiq4 /BAbnA80s5tUq78t/EzafnHa5nnLljTZX1UNVvvZUIywL4lzoCkUsaAYm04yRnv2uMqW D4nyYteosTmK/3TAOtV6wG0ys9aRUtljQEi63wMdvBf/sbGda9LvIXIVxXYS4mrCLJC2 S2Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DNV7MqW3; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf9-20020a1709077f0900b0091fca6007bbsi2905248ejc.488.2023.04.11.07.02.37; Tue, 11 Apr 2023 07:03:02 -0700 (PDT) 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=@linaro.org header.s=google header.b=DNV7MqW3; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbjDKNt0 (ORCPT + 99 others); Tue, 11 Apr 2023 09:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbjDKNtW (ORCPT ); Tue, 11 Apr 2023 09:49:22 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F9710C3 for ; Tue, 11 Apr 2023 06:49:21 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id z8so12308473lfb.12 for ; Tue, 11 Apr 2023 06:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220960; 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=nqqJwELWN/hOjlu4C15VTf6hm+l2eGEBIz6GNcstEPs=; b=DNV7MqW3fFKZlLv+rkJpU8edIPWDasEBRKp2Vmx8zYdpfwkastWtpOmJbr64NBG5Cr nZkjyC5FiYOibGBXPuTG0F1lDfV7e+o4l+Q3tm49CibfoVLecHUGCjKAVbGHmaWRukxw FGKylUbmK6+GMx9osc2IEHUILhDeG6fIjJ9M4nccTxtGxVpto2HmjJrg96gL6p9qEqyD UlbqnQomu36w33WDLBQCyBRID8VYKtHbFCCBO62lIgVnXGGHPx38YE1ASUh5yXrpZcEb NbvqSwtbV+0/OAlyYAMccw6R6eqfZBv0oxYDQ6xr4FE2pdg3oy2dUwEPgkBmthZ7Mz6C FJXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220960; 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=nqqJwELWN/hOjlu4C15VTf6hm+l2eGEBIz6GNcstEPs=; b=OEF17DRiD4bY1RXYfIWZQFG122futT+00GpSC3YMmx2up/iRrF1/MV+HedwHOEb4EF Q1wmq6AdwkFVzpAsG2B/t3D9Y2C+w1+25SF9088IlAPtFqr+nlzufJwYRstAQaFw6szO RfYuJNCW8/J7pwytUJiRTgLquMnhqQx05WTgJTeGH9Ypm/QfAEdBJ5JdRmtiZDC4pvkv JS3c67K8yRUNHdwEmj/ZKUHlycczVKYZBfsSCf146D3DJPR4UNVa4ihGV/BaTfxu5rp6 Ur3JD4edgNkmoCJxKzKua3SFTsCS+d1uFfv+07wxirg4RrbQhQWszCfhNmirGtqe2kUj kVSA== X-Gm-Message-State: AAQBX9dNNVV8S2DL6uyq5bWwX5O7HkBn+pNbuksqQjNoaO0Om0lXrhs9 dRF4JWduflB3ZAB/iFYCdupZNw== X-Received: by 2002:ac2:428c:0:b0:4e8:61d2:72ee with SMTP id m12-20020ac2428c000000b004e861d272eemr4388495lfh.5.1681220960045; Tue, 11 Apr 2023 06:49:20 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id y9-20020ac255a9000000b004eb2d6160a4sm2563707lfg.32.2023.04.11.06.49.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:49:19 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 15:49:15 +0200 Subject: [PATCH 1/4] arm64: dts: qcom: sm8150-kumano: Add GPIO line names for PMIC GPIOs MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v1-1-f1852c2a2378@linaro.org> References: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski 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=1681220957; l=1914; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=vhljNcoTVkBBoXt4/XMAQL+2xQrVuzZ9DHcx/LIdZ+o=; b=cqUwvMqNsJt/c29SYpKHkQvIviO8e6Ruj2D3FKl1UnVXOb7LgSTvsFOZ8F7A+kylm9NQDu0kpJef 5lm2SZxtB2KOPmq9JioZ76doM2/qYf0Gr72xOqSWsfclpYzTpakI X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762888812368043372?= X-GMAIL-MSGID: =?utf-8?q?1762888812368043372?= 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 Griffin and Bahamut device trees to better document the hardware. They are the same on both devices! Very nice! Signed-off-by: Konrad Dybcio --- .../boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index 47e2430991ca..6753c65d75bc 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -456,6 +456,17 @@ &i2c10 { }; &pm8150_gpios { + gpio-line-names = "VOL_DOWN_N", /* GPIO_1 */ + "", + "NC", + "NC", + "", + "NC", + "SUPWC_PWR_EN", + "", + "NC", + "NC"; /* GPIO_10 */ + vol_down_n: vol-down-n-state { pins = "gpio1"; function = "normal"; @@ -466,6 +477,19 @@ vol_down_n: vol-down-n-state { }; &pm8150b_gpios { + gpio-line-names = "SNAPSHOT_N", /* GPIO_1 */ + "FOCUS_N", + "NC", + "NC", + "RF_LCD_ID_EN", + "NC", + "TS_VDDH_EN", + "LCD_ID", + "", + "NC", /* GPIO_10 */ + "NC", + "RF_ID"; + snapshot_n: snapshot-n-state { pins = "gpio1"; function = "normal"; @@ -483,6 +507,21 @@ focus_n: focus-n-state { }; }; +&pm8150l_gpios { + gpio-line-names = "TS_VDDIO_EN", /* GPIO_1 */ + "NC", + "MAIN_CAM_PWR_VMDR_EN", + "NC", + "", + "NC", + "NC", + "FP_LDO_EN", + "NC", + "NC", /* GPIO_10 */ + "NC", + "NC"; +}; + &pon_pwrkey { status = "okay"; }; From patchwork Tue Apr 11 13:49:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 81981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2602903vqo; Tue, 11 Apr 2023 07:07:38 -0700 (PDT) X-Google-Smtp-Source: AKy350ZwrC41dXXck2E2x0xTKTYXu9+I14x8gxbRfHmaoCDvswiTXLCqM7HoxRK2O0P0M70BhRMR X-Received: by 2002:a17:906:2a48:b0:93b:1c78:5796 with SMTP id k8-20020a1709062a4800b0093b1c785796mr9482398eje.43.1681222058291; Tue, 11 Apr 2023 07:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681222058; cv=none; d=google.com; s=arc-20160816; b=TdZhYB6B7dS7FZyKE/rdJaOHLHwFsRxjoaXC+xuvfCTf6n6cCHPnUdVDgkOuL2ELQc iIwtd2RMdrUxNyw2TcsFcBoTHVcsfQn9k0VqNEM8cjnl/jRAkeAvOJ53eYcJXA+JmA2c 1PoihVSdURqoIOiGeDjuIz0GGSVRaBmOvuYhzgj9UiwSyW6KixRMrH+bHEljSwK6+Prf zTIK4VNmMJS27yewVpxH6WjigoMUQsq0gzmJff/hm6+nR+nUVnkPAIY06Y2yk9xtthxn Z6YnO9b4iZgsGSvxkueNwNy1TrjuX1ED1M00PMYfVhYo4K9I4yGPgyS0YjdkMBRaZl2x CEVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=IAFw3fMJjti2alnnAGY+IeTKktvF3qFkCOaKWG5QWSY=; b=M+B9eBK05GS97bEmooC5j4frOUn3WIdVWBU5aotTDrphPQVHyjoEN8HcGIKDfRlrI5 3QkeBj9SlPnIkrDuGcfamBbSV42cmgb+TlgjXCFnt570gmYBgZpSyrCWZCnzNr3nRf4T q4uMfRzrWnWQWkil+Y2qlB5XIsuhurxTeq/PxPjDldhamI4Nhwv1fRPk8ltwt3DMyQJm Xh8TLhIBufs11M9121WNQWlb1LY/hMdNlFRzZe0sNUIo2RBI9Z6IxiHrquus7rkitt38 fr44wazRKEdyssuDd4WQOl5ZwooEHKF4wUc7I5kcxatAOa5D5TYW+qX1dJ14Qa9Al62+ /XDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRa7CazX; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020aa7d901000000b00504a265fea1si5552273edr.450.2023.04.11.07.07.13; Tue, 11 Apr 2023 07:07:38 -0700 (PDT) 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=@linaro.org header.s=google header.b=WRa7CazX; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjDKNt3 (ORCPT + 99 others); Tue, 11 Apr 2023 09:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjDKNtY (ORCPT ); Tue, 11 Apr 2023 09:49:24 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E319C196 for ; Tue, 11 Apr 2023 06:49:22 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id e11so10439699lfc.10 for ; Tue, 11 Apr 2023 06:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220961; 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=IAFw3fMJjti2alnnAGY+IeTKktvF3qFkCOaKWG5QWSY=; b=WRa7CazXjjJEJXl876blpsDg5LqH8uSiuxVf2N3NUjmI8lIG3dSZwuOIKbsXp5xaky kKyLaTN3L1LfnsPyOF9j+J8RizCg8taElaPZ9+w+IFgLiWbPrR9XU/JT9t+ZhHC0DIGu WgMAGuKdVLnHKsdMD4MRWS9WS4T/dovhKsFopFMsIDhfJhL9RsPnpq4P3fEEnE0OyK8b Er2uBmFau5l9CYi9qqjv+HMH66+voGE4/GkQxTx1DLzqQ0PbEyH5U+pUexr0WskB3Pnt f/ygwD5XZsQFn5Q+kilSAFpZpqRBhvZFcpi0gb1JsINAvrCM6fNDwkjlpTfcacCGfg6y 1fTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220961; 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=IAFw3fMJjti2alnnAGY+IeTKktvF3qFkCOaKWG5QWSY=; b=1x0ADv0kxaIvV502ikhQbYs7wLRqTezjAHgLEHxn1+NwZ0dmyTqCe0qagqXOTpkbRt VrKnUoWO/xd7izOWLhqA0M3BD0YjLtyhX+WkC2J4X28W/OgyYoWmfFXnqXdy5Jf+OF++ oyRbc1XfETDN465ENXDGDpcMUYOQ7WMEbu03qe/8qPoeTJOuf+RAvYhAKAcN4m/MFR41 Iw2hM7CbpWjrhIwQmPyFTpmLmujpkTjnWdniYNlue4qUDmPGUVHgjEDFEw+zhSbPgCEi sFaLsSKk7xP9+EAg4RDfzyIhtNrs6D0DMuz4rkVMaVnKQwA8aMnhmUdb4iBACjytGYJH N/sA== X-Gm-Message-State: AAQBX9cCrxEG3LgOPrHHRvaEi5clEw+z86gUu6+dpbjWnUlu6DJS0XTk 5snUKYD1MuBChz0cLPfbrvXGURJ5kmq1RGBanns= X-Received: by 2002:ac2:4890:0:b0:4e9:8016:bfcc with SMTP id x16-20020ac24890000000b004e98016bfccmr2778559lfc.30.1681220961198; Tue, 11 Apr 2023 06:49:21 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id y9-20020ac255a9000000b004eb2d6160a4sm2563707lfg.32.2023.04.11.06.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:49:20 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 15:49:16 +0200 Subject: [PATCH 2/4] arm64: dts: qcom: sm8150-kumano: Add GPIO line names for TLMM MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v1-2-f1852c2a2378@linaro.org> References: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski 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=1681220957; l=4866; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ya68rGYBf4fVp2YMimU7MDqmgtfsOC1t4pU81IxkjEQ=; b=spVA1wPmMxRJpi+tkk9mbJiznGcQzcy9f6rtKcKuIUg+GPz5ZaaZBzBo5sI3qYmAOpBHw+R0PiCQ 9/P6/4UADYj6jg2uxywK6xVPSrA1xLrHK/6OanxeCAb+Y4unqHMq X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UPPERCASE_50_75 autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762889100774327440?= X-GMAIL-MSGID: =?utf-8?q?1762889100774327440?= 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 common DTSI to better document the hardware. The pin assignment for TLMM is identical on both devices. Great job! Signed-off-by: Konrad Dybcio --- .../boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 175 +++++++++++++++++++++ 1 file changed, 175 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index 6753c65d75bc..d1a3ab836019 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -541,6 +541,181 @@ &qupv3_id_1 { &tlmm { gpio-reserved-ranges = <126 4>; + gpio-line-names = "NFC_ESE_SPI_MISO", /* GPIO_0 */ + "NFC_ESE_SPI_MOSI", + "NFC_ESE_SPI_SCLK", + "NFC_ESE_SPI_CS_N", + "NC", + "NC", + "DISP_RESET_N", + "DEBUG_GPIO0", + "MDP_VSYNC_P", + "TS_I2C_SDA", + "TS_I2C_SCL", /* GPIO_10 */ + "CAM_SOF", + "CAM2_RST_N", + "CAM_MCLK0", + "CAM_MCLK1", + "CAM_MCLK2", + "CAM_MCLK3", + "CCI_I2C_SDA0", + "CCI_I2C_SCL0", + "CCI_I2C_SDA1", + "CCI_I2C_SCL1", /* GPIO_20 */ + "NC", + "MAIN_CAM_PWR_EN", + "CAM3_RST_N", + "NC", + "CHAT_CAM_PWR_EN", + "NC", + "NC", + "CAM0_RST_N", + "RGBC_IR_PWR_EN", + "CAM1_RST_N", /* GPIO_30 */ + "CCI_I2C_SDA2", + "CCI_I2C_SCL2", + "CCI_I2C_SDA3", + "CCI_I2C_SCL3", + "NC", + "DEBUG_GPIO1", + "RGBC_IR_INT", + "USB_CC_DIR", + "NC", + "NC", /* GPIO_40 */ + "NFC_EN", + "NFC_ESE_PWR_REQ", + "BT_HCI_UART_CTS_N", + "BT_HCI_UART_RFR_N", + "BT_HCI_UART_TXD", + "BT_HCI_UART_RXD", + "NFC_IRQ", + "NFC_DWL_REQ", + "UIM2_DETECT_EN", + "WLAN_SW_CTRL", /* GPIO_50 */ + "APPS_I2C_SDA", + "APPS_I2C_SCL", + "NC", + "TS_RESET_N", + "NC", + "NC", + "NC", + "NC", + "HW_ID_0", + "NC", /* GPIO_60 */ + "QLINK_REQUEST", + "QLINK_ENABLE", + "WMSS_RESET_N", + "SDM_GRFC_8", + "WDOG_DISABLE", + "NC", + "NC", + "PA_INDICATOR_OR", + "MSS_LTE_COXM_TXD", + "MSS_LTE_COXM_RXD", /* GPIO_70 */ + "SDM_RFFE0_DATA", + "SDM_RFFE0_CLK", + "SDM_RFFE1_DATA", + "SDM_RFFE1_CLK", + "SDM_RFFE2_DATA", + "SDM_RFFE2_CLK", + "SDM_RFFE3_DATA", + "SDM_RFFE3_CLK", + "SUB_CAM_PWR_EN", + "FP_RESET_N", /* GPIO_80 */ + "NC", + "NC", + "NC", + "NC", + "DEBUG_UART_TX", + "DEBUG_UART_RX", + "DVDT_WRT_DET_AND", + "NC", + "NC", + "NC", /* GPIO_90 */ + "NC", + "NC", + "NC", + "NC", + "UDON_SWITCH_SEL", + "SD_CARD_DET_N", + "NC", + "CAMSENSOR_I2C_SDA", + "CAMSENSOR_I2C_SCL", + "USB_AUDIO_EN1", /* GPIO_100 */ + "DISP_ERR_FG", + "NC", + "NC", + "NC", + "UIM2_DATA", + "UIM2_CLK", + "UIM2_RESET", + "UIM2_DET", + "UIM1_DATA", + "UIM1_CLK", /* GPIO_110 */ + "UIM1_RESET", + "UIM1_PRESENT", + "NFC_CLK_REQ", + "SW_SERVICE", + "NC", + "RF_ID_EXTENSION", + "ALS_PROX_INT_N", + "FP_INT", + "DVDT_WRT_DET_OR", + "BAROMETER_INT", /* GPIO_120 */ + "ACC_COVER_OPEN", + "TS_INT_N", + "CODEC_INT1_N", + "CODEC_INT2_N", + "TX_GTR_THRES_IN", + "FP_SPI_MISO", + "FP_SPI_MOSI", + "FP_SPI_SCLK", + "FP_SPI_CS_N", + "NC", /* GPIO_130 */ + "DVDT_ENABLE", + "ACCEL_INT", + "NC", + "MAG_INT_N", + "NC", + "FORCED_USB_BOOT", + "NC", + "NC", + "HW_ID_1", + "NC", /* GPIO_140 */ + "NC", + "NC", + "CODEC_RST_N", + "CDC_SPI_MISO", + "CDC_SPI_MOSI", + "CDC_SPI_SCLK", + "CDC_SPI_CS_N", + "NC", + "LPASS_SLIMBUS_CLK", + "LPASS_SLIMBUS_DATA0", /* GPIO_150 */ + "LPASS_SLIMBUS_DATA1", + "USB_AUDIO_EN2", + "BT_FM_SLIMBUS_DATA", + "BT_FM_SLIMBUS_CLK", + "COMPASS_I2C_SDA", + "COMPASS_I2C_SCL", + "SSC_SPI_1_MISO", + "SSC_SPI_1_MOSI", + "SSC_SPI_1_CLK", + "SSC_SPI_1_CS_N", /* GPIO_160 */ + "SSC_SENSOR_I2C_SDA", + "SSC_SENSOR_I2C_SCL", + "NC", + "NC", + "NC", + "NC", + "SSC_UART_1_TX", + "SSC_UART_1_RX", + "WL_CMD_CLK_CHAIN0", + "WL_CMD_DATA_CHAIN0", /* GPIO_170 */ + "WL_CMD_CLK_CHAIN1", + "WL_CMD_DATA_CHAIN1", + "WL_BT_COEX_CLK", + "WL_BT_COEX_DATA"; }; &uart2 { From patchwork Tue Apr 11 13:49:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 81969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2591453vqo; Tue, 11 Apr 2023 06:53:12 -0700 (PDT) X-Google-Smtp-Source: AKy350buFFcG7DoU+Vw0KyQQMV4ajVDd6w9QOms7TdMCF/LJxI/W4bz470WTqCrxcxWznZt2y+8L X-Received: by 2002:a17:906:c4e:b0:930:8590:95ef with SMTP id t14-20020a1709060c4e00b00930859095efmr10186423ejf.18.1681221191929; Tue, 11 Apr 2023 06:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221191; cv=none; d=google.com; s=arc-20160816; b=m+z8NcYcQWZHbg144UuG5S5uCnDCPOWGSS9kkXJsIk9ivDSUjueqxT727FA9tXZM/5 QQlWiKL5ymr01SnhXcISw/OZ/CFHZT6/+4IKQRSmMtbR1tJN8Oy48lJNhgLtY3iNRGsn PXh7B4iBep4YXV9eiVKjb7KEPeS7CZLBXHXz6b9Jtl+nRqTZpLfvlkIO3ICr3NnzovCS +Cgx6SAaMr+zk/QIh5DfWulRLdmgPIeQ50ngfsT+BEWvNfTILPPjsulqLrzaTSho3rry 4ArdlEbHKbGcBal73wnuV6GdC82ueocJHJDn0xCJI80ZWsMk4r/GC98Dr5U8T5IWEAKG E/zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=mj8ur59QbPiShKYjIzqXNIIKKVvhR7cR6mtjrYfL6LA=; b=kBE13/IzoOtUTOMxqNZQdKliE1QSBjW3Ma9cZ2o26nNPVmpGVyEz+kwGOcIPlMID9Z npyYZE9VH3IMfSU1AJx2rhnHMIH9ozF6CgPn/LwtWkjGEBCr2AVd37pWwCfhLApVvdx8 imDQaVLhEMWBANlqKJYMsnnRpBVAqfkKFhBf3KU4o48K8aIwJ+nx4W4hrvZP3hIxg4/P R1NVKtkOmGMYHvV0hZ8DDMY2w3YSDXvzxQgP7ogqyuFW8QWIavvHaRQmOznp7UxpBkvJ sbVX6lgcU1mNtlLFaCZsBjOb46rmVQce5KofUN2cufKR4HhVEi3m1SjeDxB7VrFBRhN/ tNlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZuNq/wx7"; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc20-20020a1709071c1400b0094a9ec8c8b4si4705642ejc.80.2023.04.11.06.52.46; Tue, 11 Apr 2023 06:53:11 -0700 (PDT) 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=@linaro.org header.s=google header.b="ZuNq/wx7"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbjDKNtc (ORCPT + 99 others); Tue, 11 Apr 2023 09:49:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbjDKNtZ (ORCPT ); Tue, 11 Apr 2023 09:49:25 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B4FE48 for ; Tue, 11 Apr 2023 06:49:23 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id z26so10378264lfj.11 for ; Tue, 11 Apr 2023 06:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220962; 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=mj8ur59QbPiShKYjIzqXNIIKKVvhR7cR6mtjrYfL6LA=; b=ZuNq/wx7JgknFqATrbdzhtaGggW3L6wfnYBqKPa7wJfvhXHHvFooSfClMbyGqf3ny+ Ic27mTkDGMbgS14Qll/yiEbz9cP+ME8GDlcT7Xh0IGLXvpToIhW4+VdwWacVB8QQVifU 2v97vWs//jcg9b6MnXLA6NrSjxC3iUkvQlXnM8ZLSq3VVJ8s0qRV7l0+qNLdKah8dWRU 5xTrFa4gaWiFCINzJioTy0+KgKqyezE33uiHnXXxrYQiPN106cJEcbYgqOopQwBjlIGI lbwcpnRIjv4Bxja1ac2P7vlgAmow7Mgt8bctoZsV9H+YP1NwXsCJoeVYU3FNqrye/bJW 9a/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220962; 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=mj8ur59QbPiShKYjIzqXNIIKKVvhR7cR6mtjrYfL6LA=; b=FXmMzRrG8hYrTnKt78tcg+bcXCLBUFPbP+AYPOEBwckQaYtSz6ju8uJxRCC8JokDQA FUB5Mp50dzValrirAE4/nkpdkVTupnhaCBTy94ojDbiaXhHayiKnVko3bTxi/p2MToJ1 xHYlpV+P7EvDqLAkxr/uwrF+V2Gy9XKNv+yre0ppH/HZULdS+s030LFwwJeGbAUH1LT8 77oht6cY+YHbi8cfAXVZvR8a/TCjm10Xwmx4sOKXeCnoGigxuzvUKok8f7kLDZszJzpd gLJDAS0z5iVfzvCyx7Ifs2d+oR7Ud66P8U1dw3BZCAruv6htdJVBdS473vrJ/ymVlwMd hOjQ== X-Gm-Message-State: AAQBX9dOvn963LBQEC55RfUWS4lHcwOP1sKT8pMiQhM9Ia9Ef42zPkYX PPE1us/1nWAPU8bDqeMWhNIj8nREewXQJuvfMWw= X-Received: by 2002:a05:6512:6c8:b0:4eb:2b62:134f with SMTP id u8-20020a05651206c800b004eb2b62134fmr3739385lff.16.1681220962309; Tue, 11 Apr 2023 06:49:22 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id y9-20020ac255a9000000b004eb2d6160a4sm2563707lfg.32.2023.04.11.06.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:49:22 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 15:49:17 +0200 Subject: [PATCH 3/4] arm64: dts: qcom: sm8150-kumano: Set up camera fixed regulators MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v1-3-f1852c2a2378@linaro.org> References: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski 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=1681220957; l=3997; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=oVP7cBYQoOfROeLA/luuEMF40U5syFytYO2xaUCTnJ0=; b=pUQoVLDlZ6TXRgSv2Eqw6JOGG2yyO0INxHGwTEusIq5EfYsc+smOStt6PlNlX2dgUrxVhWk07czy wEcRHeW7BEUTpm+g5JFcfavyNxFkEcaew6qlNvyTzpPeO4+NdC8+ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762888192816455608?= X-GMAIL-MSGID: =?utf-8?q?1762888192816455608?= Sony - as per usual - used a whole bunch of GPIO-gated fixed voltage regulators for camera sensors on Kumano. Describe them and the corresponding pins. Signed-off-by: Konrad Dybcio --- .../boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 111 +++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index d1a3ab836019..5fa0a83a4b2c 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include #include "sm8150.dtsi" #include "pm8150.dtsi" @@ -81,6 +82,66 @@ key-vol-down { }; }; + cam0_vdig_vreg: cam0-vdig-regulator { + compatible = "regulator-fixed"; + regulator-name = "camera0_vdig_vreg"; + gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&main_cam_pwr_en>; + pinctrl-names = "default"; + }; + + cam1_vdig_vreg: cam1-vdig-regulator { + compatible = "regulator-fixed"; + regulator-name = "camera1_vdig_vreg"; + gpio = <&tlmm 79 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&sub_cam_pwr_en>; + pinctrl-names = "default"; + }; + + cam2_vdig_vreg: cam2-vdig-regulator { + compatible = "regulator-fixed"; + regulator-name = "camera2_vdig_vreg"; + gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&chat_cam_pwr_en>; + pinctrl-names = "default"; + }; + + cam3_vdig_vreg: cam3-vdig-regulator { + compatible = "regulator-fixed"; + regulator-name = "camera3_vdig_vreg"; + gpio = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&supwc_pwr_en>; + pinctrl-names = "default"; + }; + + cam_vmdr_vreg: cam-vmdr-regulator { + compatible = "regulator-fixed"; + regulator-name = "camera_vmdr_vreg"; + gpio = <&pm8150l_gpios 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&main_cam_pwr_vmdr_en>; + pinctrl-names = "default"; + }; + + rgbcir_vreg: rgbcir-regulator { + compatible = "regulator-fixed"; + regulator-name = "rgbcir_vreg"; + gpio = <&tlmm 29 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&rgbc_ir_pwr_en>; + pinctrl-names = "default"; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -474,6 +535,15 @@ vol_down_n: vol-down-n-state { bias-pull-up; input-enable; }; + + supwc_pwr_en: supwc-pwr-en-state { + pins = "gpio7"; + function = "normal"; + qcom,drive-strength = <1>; + power-source = <1>; + drive-push-pull; + output-low; + }; }; &pm8150b_gpios { @@ -520,6 +590,15 @@ &pm8150l_gpios { "NC", /* GPIO_10 */ "NC", "NC"; + + main_cam_pwr_vmdr_en: main-cam-pwr-vmdr-en-state { + pins = "gpio3"; + function = "normal"; + qcom,drive-strength = ; + power-source = <0>; + drive-push-pull; + output-low; + }; }; &pon_pwrkey { @@ -716,6 +795,38 @@ &tlmm { "WL_CMD_DATA_CHAIN1", "WL_BT_COEX_CLK", "WL_BT_COEX_DATA"; + + main_cam_pwr_en: main-cam-pwr-en-state { + pins = "gpio22"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + chat_cam_pwr_en: chat-cam-pwr-en-state { + pins = "gpio25"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + rgbc_ir_pwr_en: rgbc-ir-pwr-en-state { + pins = "gpio29"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + sub_cam_pwr_en: sub-cam-pwr-en-state { + pins = "gpio79"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; }; &uart2 { From patchwork Tue Apr 11 13:49:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 81968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2590143vqo; Tue, 11 Apr 2023 06:51:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZO6Bf4haQ8FR9InMuLHRPqgQDot2CO3NmWaEn96GtbRTQZJz7FoRsKPJxLIGLp6ZlwuYcW X-Received: by 2002:aa7:c48b:0:b0:504:b177:3ef3 with SMTP id m11-20020aa7c48b000000b00504b1773ef3mr4683841edq.3.1681221059911; Tue, 11 Apr 2023 06:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221059; cv=none; d=google.com; s=arc-20160816; b=LwAWL6XzyZSZ40QDRdKMcx/iITpLbjqgvmz934kTH4QtuTHGlBsEn64R7fmb6QV9Bk C4IxUMujE9JFDtcfjwFFUB19n5GSb09Q9cX5yeeAy2HOsid5y/WCMWNazAsAxQtmiwjy pBXwQ0yi67adedX8fIDoaY0gdEgq4fWe8RjWYFkXta6ybwJ4+fJ3EjGgjJYmeDI+y0LG Ts/5TfxMhL/en2qps03Yeo1wwsK2/ujDs2d5yeeEFlQsrF99IbwtvzcrZmefJOnqFTNX AWTWSRpPN7kJPfw8TlNraJDWjvD8UoemW/LASw3IrTH9Q1GUP9rQhgbZFwQiGkL2IYPt 4y/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=uHtWgJFHIhaJVA6LiMJBMJU0hICshc5Lm8ByCpWkf/w=; b=KUuwFgp2lGzQdE/KN+pQeZOc8VaB5L/PdCCYwikGUyoseCKIkTcAwXuD1q4whxQXUM iK4mgNH0dqcgRE/ngyyu9qG7jGtgEGEb02ye7+kDlknprcB9hrckgQVR+/bTEHYrX6D2 d3FWNPP5ok3J8TZRR8jibFTlLG8g8C9nMrXFC4twej8vyn8WXd4ncffFxm+WxbQRTD1i IlhCBvGiqn1m7JXbrc7/hvNdOVh6wKkOWkTgkJya+50NHQIgvqMs0h5H7aKJ0e5t0hNb TAMR9O+ATM5IQxZbvck7yALbB68Ys1ZHPRliyVTdWaYUU3jxxl50bolcWBugy4hwhcFt irnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KTJSSGL0; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020aa7d751000000b005048c666818si163797eds.118.2023.04.11.06.50.32; Tue, 11 Apr 2023 06:50:59 -0700 (PDT) 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=@linaro.org header.s=google header.b=KTJSSGL0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230501AbjDKNtf (ORCPT + 99 others); Tue, 11 Apr 2023 09:49:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230461AbjDKNt0 (ORCPT ); Tue, 11 Apr 2023 09:49:26 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1368A1FEB for ; Tue, 11 Apr 2023 06:49:24 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id t14so10361248lft.7 for ; Tue, 11 Apr 2023 06:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220963; 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=uHtWgJFHIhaJVA6LiMJBMJU0hICshc5Lm8ByCpWkf/w=; b=KTJSSGL0yuAsLkW0Ws8NUpXCYKloY0mQEaB9RREuwahxQ72lqe2vz2ZgsA4rN2PDCi U3EdyCjvIApkBpmw/N6jiPlbQN3vlPbj+cOHBWRLwDfVTlaMIgCQzT02Ou23ulJ/E2s6 WCEhVNbO/4n6xEE5D+PtHlCaVwkiErKQ/HfTs6F0ze/tpwzQG6jXG4cW40WDxQmKgMWK 4g+kt8TpB45+HnkbMBLolAp3n3GNlVI5tvYdx8XIpMG3tCu2pcUP/87UTnZK7EEun+Ck UUvcofYFie8GlkisWxghfczBwgxtSK4xr+55NCftBZ/vPt33SQ3Jh/0FqqVcA42J5wxB mV6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220963; 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=uHtWgJFHIhaJVA6LiMJBMJU0hICshc5Lm8ByCpWkf/w=; b=UkcG3fCQt+FpPOgcgQQuR/YUjieKKp0SevYgEd6Mb6IFUYGBFYnaY6la6tVicGrT5W +a/OrloTkbdGJcEZ2K+KlmYjceaxT3Kb+4W/oJODeQEZCLQnOu9wAXJNd9JaVljzxlpq jnCVg16Xfl7LrM2TmNV4A0SzR1H5onasnbt2yBej68g4QbQ0tjaTtNItk6/MdtmqDnXV gRg2yWGZ1BMwzxdy3tV5qlrldxob7G7K1Xvr1/zAowYXUiUsnuSR66bm3SE9B13G8inq eqz1BXTuf79XOmO7ZT/SYSyTrbQ4YbBp8lP7DS2bUPsdCP2sfs57o0wXcqF5s5DsWq/8 x0vg== X-Gm-Message-State: AAQBX9ehVFJpR00KcR0KTNiUbo0+sMg7p6g4DTLmClpZRTeV/zVYClA9 SeXN4BwsgD4qjawUNYfIzoWR3g== X-Received: by 2002:ac2:4c81:0:b0:4e9:6097:add3 with SMTP id d1-20020ac24c81000000b004e96097add3mr4731332lfl.61.1681220963648; Tue, 11 Apr 2023 06:49:23 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id y9-20020ac255a9000000b004eb2d6160a4sm2563707lfg.32.2023.04.11.06.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:49:23 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 15:49:18 +0200 Subject: [PATCH 4/4] arm64: dts: qcom: sm8150-kumano: Enable SDHCI2 MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v1-4-f1852c2a2378@linaro.org> References: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v1-0-f1852c2a2378@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681220957; l=921; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gxjJ6YGpLan1OIOLNTh/xyzJg8bMee6dGyJiV+tpg98=; b=rqX9idewh+MKrObT4whA4e2QmK0L5hgfn542WlrlHCE88WamDPMQBItmcIGikS3F7gpmkSdLyX50 oVjpPCV7A6mwC5Lc5Ol9Mj6CSzoRXfRHakxaTIelrmZ2GCNGbOuo X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762888054056833974?= X-GMAIL-MSGID: =?utf-8?q?1762888054056833974?= From: Konrad Dybcio Set up and enable SDHCI2 to enable the microSD slot on Kumano devices. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index 5fa0a83a4b2c..9dca22cf3eb6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -618,6 +618,17 @@ &qupv3_id_1 { status = "okay"; }; +&sdhc_2 { + vmmc-supply = <&vreg_l9c_2p9>; + vqmmc-supply = <&vreg_l6c_2p9>; + cd-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + bus-width = <4>; + no-sdio; + no-emmc; + + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <126 4>; gpio-line-names = "NFC_ESE_SPI_MISO", /* GPIO_0 */