From patchwork Tue Apr 11 18:14:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 82137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2769921vqo; Tue, 11 Apr 2023 11:20:59 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9VDp9nq/ifx8hCpH3DNmgvGdhnPgtzdvIXFr2qEzaPEylQZ5eblz6J+IBEb0zIXm9n2FU X-Received: by 2002:aa7:cd69:0:b0:504:a317:b9de with SMTP id ca9-20020aa7cd69000000b00504a317b9demr3335591edb.28.1681237259606; Tue, 11 Apr 2023 11:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681237259; cv=none; d=google.com; s=arc-20160816; b=JJkSuvZpeWmFxa+eZ16b5wfh7NdfA8AYnvfYypFphMm9c4L9v3xJs+AF/9seYTsMRi c8tz1Jrd8edMi6LlpEUW5t8xovEXXHBACKcQSJoAiejT9zagqpx2fSSeQPJKpbX1k9z8 s5+lqn903MxBNmwW6xHaaBwI6Oa+58VO/k5tRt3xQP/sZ/EsvYJ/aDWeqmv5BdaoASEV vFLKr61cD3i2OjpUvx9KRZbBiFZb37kO9TQTLnvIl1de1UeFiqL2vF6guSLSinm3pzpP NNGDXnLcHu7MMyfCMJg3IyorVN+reZgr8t7EkRaOx3l3uwMGcKHfaSwva/IacjuTRG4J B/nQ== 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=IIRODtxam33zYj3wyVcL0d8DyzauEjcciIEdHOhSl3Fm/8NwiSAFJ15mPT2BjiQSDD xhRXsulgoTeHFImi3q51lu+fOKbt8emo89l27Xd+W/qNTIphO37tDtNx4OWZS3mtJfYF jSJ2gpnsH23h1eSLTbSSV0MBamdpUgxt4hAK2eiL1OrUXAKgB4Gi0gBJnjEL1+ewF3Zr 6WZDnYnzdeBRAOJz7GDaGkCPZ/tDfU2iIEsF8sLjFXWa/3+jwseA/vFOk4TJq2q2wjDv 0oA9LuUt2CGKBJeMdnIaIYaHhsKjj11JrKErUOwQXGDkVjPbB2uxx2Bw/DgQf5bSVBdD SIWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="K4/nRHo7"; 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 b13-20020aa7cd0d000000b0050497afb3b4si2754613edw.258.2023.04.11.11.20.34; Tue, 11 Apr 2023 11:20: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="K4/nRHo7"; 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 S229712AbjDKSO6 (ORCPT + 99 others); Tue, 11 Apr 2023 14:14:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbjDKSOt (ORCPT ); Tue, 11 Apr 2023 14:14:49 -0400 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 75B32173D for ; Tue, 11 Apr 2023 11:14:48 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id e11so11485206lfc.10 for ; Tue, 11 Apr 2023 11:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681236886; x=1683828886; 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=K4/nRHo7yRVICWQe0XOmu/tHCVYqh+WIEW8SSj+/yDC6zQohYU95hKB7WQloIk4zTF I4oIjPTAQnHkQXeGZHm7zd6gM6RHRvr6ecNgh/E4XABk7fOU4v64H+WuWoVXMhPUR63d oseOFtHD+7sCkVm0UiOBJuQs60ZxKm92ahpE2Ksil90vNKQh1SFHMuhlw6GIHZR1vZCb A8FJodz+b6x7gIASQO1Rh8CSAsptUDdnWRov3a6lLEx9ghbeG8S0+LsBO/Kp8BhqXr0m lUXUPrcQMRoaJGjjH2s9tMT64gSjBFcKhj1WtvcanyAyFuV3omDpKFJrWZKuLdGVTiUH OO0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681236886; x=1683828886; 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=ytTqAyFG0Q6eiQnT2qX5nxQxr9m55754ESh1Y7iz9510rWoVXosidMwhPno7bo7p5T YtsKE1eXA796Sf7c/NkjcE+aA/bNEHs2mTzrsrUJjwKLI9WzMVeNY7X2FuhThfXT9hSP IlgAU196ZqtRFEiB13NqNByes6T90Sj95/bN0hZnIkv1xZDumuy279NWuJkw39X9W0zl oVeObYZJgieLRXjfTYGuK0D6Rt94b6EA+rIO8hyXm+wxPvlBJlM2nue1I2QgYQ/6uHG/ WnYdhMkPQ5eVgCkJXF8iORDROyoFlF+IDKaC2mx6jXMCoZQgN9FAzH6OCQDMaxOJRalu tr1Q== X-Gm-Message-State: AAQBX9flDD+WWK6adVhlI671tU7n8AtF8G+Lc+pPjKrp9pTMTDTt+g6x R6y7GzyvJKBZ+/xCxWCfBaNFvA== X-Received: by 2002:ac2:430c:0:b0:4ec:8816:f4fc with SMTP id l12-20020ac2430c000000b004ec8816f4fcmr1844175lfh.6.1681236886736; Tue, 11 Apr 2023 11:14:46 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id u25-20020ac243d9000000b004da8168eba2sm2593868lfl.237.2023.04.11.11.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 11:14:46 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 20:14:41 +0200 Subject: [PATCH v2 1/4] arm64: dts: qcom: sm8150-kumano: Add GPIO line names for PMIC GPIOs MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v2-1-0ca7fa521b86@linaro.org> References: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@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=1681236884; l=1914; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=vhljNcoTVkBBoXt4/XMAQL+2xQrVuzZ9DHcx/LIdZ+o=; b=iMKCwt7JcDcjABvyC8m0M5OTEfSMbHwmL6AY4n954o15jrxLolhjCiTp1sQ4O6a2Uui/xySHMZPI V0eLhcutCN61TR6fOAYkbdPe5Eiw4mAt00vGX3cTOCg+NTc35lmH 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?1762905040593843863?= X-GMAIL-MSGID: =?utf-8?q?1762905040593843863?= 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 18:14:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 82138 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2770036vqo; Tue, 11 Apr 2023 11:21:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Zj/Q/wvYIgzWiXksmVH43HqUI8p0zIhyXkDiwb4e4LTqBPiN+ecaYAWOy7vBqPqbwNULrp X-Received: by 2002:aa7:cd69:0:b0:504:a317:b9de with SMTP id ca9-20020aa7cd69000000b00504a317b9demr3336020edb.28.1681237271440; Tue, 11 Apr 2023 11:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681237271; cv=none; d=google.com; s=arc-20160816; b=e53zGBV/l1aFlbCk0VTBc0iRloiRbxFGXWaFUD+MIVOPqycjyvZDX+krn0uRpnBX0B 2JSOVA0s2lCtaRFs5FQIjhTp88OFqMh3z8WWhCA1npcu7d2egPVX4qxT1RAq1rPyF/sX 4/e3385DX9UsnvAnJ0ai0ks41JeRx403RSg0aWKWUx4fwTsCUWprV+nPmq3HQjxtEPHP rshoWCvO1FwCMJoejtPn6+Fvv34lWy3Lg0OeBnffeVPqtbZo09B2wsIfoJ4todKiFo/2 TcuTt7wMP5nZYTsG5ILS303541NzUjtR8H0/snFPPpDQXSoVRj9qpO7VGm7SSqfVDn7Y c1qQ== 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=cNQG6Mtl4WGw3B5hyZvEajCFQcMZ6jDcRfTaTQ4wUCWlkPJpACBUDGYZmR7fLXRuXp zcyUxGkzefGqg0Z4on3muwWtKXHjIdH3RXBzGyadiNKAka62esWfUL8KxyBk0LVNG86O e2kWx3tgseTmlp93yDax+loY8TkI0fABXWKsprNakVPtWDYkmSiW/Pm/lRtRTK890bxi x7K2YcJ8ufzs+9eELpcpdjNsOY8USHHd4DJlPIFNTOL2FG4fFpnSkRriU7tgBrzuUXZ+ hU+aTZF9kO7UMk5o57POa9EKIuUcjPJ59WNM7Kr7upNrsGy0HNyPMWruii1lgvgx1hBa BF2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Yswc/IHC"; 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 l4-20020a056402344400b00504b7237096si697246edc.81.2023.04.11.11.20.47; Tue, 11 Apr 2023 11:21: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="Yswc/IHC"; 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 S230289AbjDKSPE (ORCPT + 99 others); Tue, 11 Apr 2023 14:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbjDKSOv (ORCPT ); Tue, 11 Apr 2023 14:14:51 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D2FE5A for ; Tue, 11 Apr 2023 11:14:49 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id t20so11513489lfd.5 for ; Tue, 11 Apr 2023 11:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681236888; 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=Yswc/IHCubTP0CsltoJiXaszgZRI0RYaEZHke4WZj3gxUKLWci7OiHYytCMbOuVGjS K90rM8wNY6cAVtWxuhRWb4M0bxXfKzvRP88tIC0EpFnEkeTrqoYMR4U2p95iMJEmKuju 6qzwmYIpoORRObkDsgowiapiq8o6Mtg+x/Pnc55T5IiWOBv4tH0tV8Q+wZTnDHeQM8Mv XUWEgPdETvvhgA8tDOykLf7zS0sC8Aq4Wop8Gjt4Jbar7v/Wbi/VRVHYjAkWtTAwR1T1 EDaWTlLKTQRdzTdbBCVkCeeD3iG+TPsvnbzlAZxSSP6e4rqSIaqA56nGH5UbesP2dwOP AFWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681236888; 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=dXKLuhbCLl9pnhxzArFHXiVEaBijZrbxBujj2yVncP/O7eizps52CMwLkJXIAG1P2Y aku+oq/XkOAzBb+r2iJ7PwQ4bUAev5/eTb2Q4JTLKgB9JOeKtWrDAB7Q4+nBNrBl/YpO ixDksjqlLUWzuUGlx1OvbYv1Vzx/wa7hYk157DDrtU/K1d9K7VXuGoNn20+OiKQkn4dK F51tpXXKroJTlTyvn3F/ABe/cVkwX1jxj/zHsZl4X4dMkG3w0AI/KGhOVdCd2jp4LutY BOxIg1gu45WIDKv+lOyhge7KVcNdxGozNbn5xtfDXJHY0X9vy/2sxE0g+CeDHsJyNDXV QjVQ== X-Gm-Message-State: AAQBX9fI1jA3NIeLEumFwsVAGpWS9vDFCJGcop8Ib2KoD3UHxnfUoueC w9G4WvhpBuWrRTkyE9/dMvlQuw== X-Received: by 2002:ac2:446b:0:b0:4e8:5392:492c with SMTP id y11-20020ac2446b000000b004e85392492cmr2834579lfl.43.1681236888236; Tue, 11 Apr 2023 11:14:48 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id u25-20020ac243d9000000b004da8168eba2sm2593868lfl.237.2023.04.11.11.14.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 11:14:47 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 20:14:42 +0200 Subject: [PATCH v2 2/4] arm64: dts: qcom: sm8150-kumano: Add GPIO line names for TLMM MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v2-2-0ca7fa521b86@linaro.org> References: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@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=1681236884; l=4866; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ya68rGYBf4fVp2YMimU7MDqmgtfsOC1t4pU81IxkjEQ=; b=pGlj6Yxi0zGhIdo1d6MsF467jCC8QIwthQ5drGmEJgys5D/DrE9/BgBNCxtBwDb4vWUfF+YvhCK8 tSuD8JLMCnFqaAAiTtBMn3pNntsuohvA2suWbt6iUHCXFleQxrZb 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?1762905053092040963?= X-GMAIL-MSGID: =?utf-8?q?1762905053092040963?= 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 18:14:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 82140 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2777764vqo; Tue, 11 Apr 2023 11:35:21 -0700 (PDT) X-Google-Smtp-Source: AKy350aIyk4g+LgbRkRNodtBJNk98Tn70q50AMnB2AWAEYGpyRuCgtCf+EKZY2kRUQUZr3xZV3dS X-Received: by 2002:a17:906:348c:b0:94a:845c:3528 with SMTP id g12-20020a170906348c00b0094a845c3528mr3489562ejb.45.1681238120951; Tue, 11 Apr 2023 11:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681238120; cv=none; d=google.com; s=arc-20160816; b=EInF/C4sft3dEqRN225OC0BNx0hGNFM493vwjuI6VAbvkqxxvtdK2hw+Uf7mtStJnS 2L3luDxZWoxrJJoZNAVhGW+arfaGFPKMgCsA3/CrobPBYrkabgAjX1NQQdBNqZa9YqRe Wwedtr63wARh2alDCCCKQ48wIxURuZecnvASBbxSuehs6Q83XXVKgiJC2u+5L4R48gW8 ymhoVrrQuh+Dyn6+6SzlHiSu2eujqR9+ZvRdR5/PIIoUeC7Iq7Y3G5v7kvbO2Pcl8Msp g3gv2GUA4vDD3XDIh4CtRYY8pt5gre2Rvn026tXG24jdZc36AHWsO9OMDzZuxo9xnD0k H4zA== 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=j8YA0Knj+iRSv6lIV53CgVChHg21pEgDWQtJQQbMyVQ=; b=riSbaII+MGY6/kJQBRhFUcAqseqcKO2JA7hLOONGiJHdHbHd51xBGZFJ+vrBkWXPKX 29YIEnMWQgaXBOEe9Xm359AFtk4mMRiYDe3tMjzQYtkLiyACrrR2qBVTwTIxCIhEGV89 Lk3bLPx2dX0iPNZDz0IavqvjpnpW6ehyvOcRSv1lGqfTBDbcJckCuN9p1IAoLQs8B+Ja 4fZujbUIsXOg4uEOh9OHvAAGq1m+z9m8Dyg+HRNHB9WCytmc69B5cXoSeH2FQQxp/ogg sC7qdcXqf4T/BPta0Z2Q7l+Z01m/nmslReLuxBtp/1eR4Q/Y8fnINxjxGmDO3ocIl+rh Ex2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cSHSoWKf; 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 cb2-20020a170906a44200b0094596ff820dsi2143941ejb.1025.2023.04.11.11.34.54; Tue, 11 Apr 2023 11:35:20 -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=cSHSoWKf; 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 S230227AbjDKSPB (ORCPT + 99 others); Tue, 11 Apr 2023 14:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbjDKSOv (ORCPT ); Tue, 11 Apr 2023 14:14:51 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF8CDE59 for ; Tue, 11 Apr 2023 11:14:49 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id g19so54539639lfr.9 for ; Tue, 11 Apr 2023 11:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681236889; x=1683828889; 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=j8YA0Knj+iRSv6lIV53CgVChHg21pEgDWQtJQQbMyVQ=; b=cSHSoWKfd4X9dGuPyJGR0qg9Ewo4ZC5AFVzw3aZw7kJonr4H1Ei6NGZ1xbXrugQr5A loieAKeXMuS0JwoIVwSsaW5k0fNQ8xsj5yD7yJy6RpYEkC/pOY2MK36FR+9gGYMO4DAZ LRBZzI2u4/c5NphaztRdttbiAlxC5QwYkI3Ci3lnH6h+f8lFv6Je0HSd0RRnlGn8cNN3 cfJ1LaC+ODpdm/SS3un+FjMtDuSx7IlqSsaf6BeMUYjgwiQr0yD82muMXVhwvJ+HaOeH +TzF6E42oeGEzRsUG6xa006QqS3X7xpr5MEKaCTqPjTRjYSH1YcQq8HfJB2ixHZTtkkS 8joA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681236889; x=1683828889; 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=j8YA0Knj+iRSv6lIV53CgVChHg21pEgDWQtJQQbMyVQ=; b=6KZU4yNppSp89gE7tkNL5aGXKWMk+/FHabAqD2dIsFevXLsV1wbxcEX7LRepxfFHVX /aLcGuvV5zONy2ggFyaGrHDrQFIU9EgiAYBkZxw3tHZUf0SH/pLk1h0J7u532JLEqcdJ ajZeRxb77c5pkg6eOiY+Dg3OzyGmfBKGPQxyCZliywwik92Yn2P6rFvZmiqu9mENm6bx W6OpdxfDuTkl1QpUubCpMaWk281vcNZpI2/bgp2qJ+16prDX1Ys+PVHSArUJhD9WWhXQ cwcp8cEyEpRZarDDUVK7FsoGVbvTRiwzWpPaPdOULjhQYa+z0QacDdKnL/SXgilbkKxQ ET0w== X-Gm-Message-State: AAQBX9chR5SSwugZjiRlnlWybP7/dShekOXPtQsRrVKLEljd44uO1IE1 lwTLmTaKm4glwWwnANsFVZuOyh/JU0srIHXa06o= X-Received: by 2002:a19:ad01:0:b0:4de:3f1e:cdc4 with SMTP id t1-20020a19ad01000000b004de3f1ecdc4mr916349lfc.13.1681236889354; Tue, 11 Apr 2023 11:14:49 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id u25-20020ac243d9000000b004da8168eba2sm2593868lfl.237.2023.04.11.11.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 11:14:49 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 20:14:43 +0200 Subject: [PATCH v2 3/4] arm64: dts: qcom: sm8150-kumano: Set up camera fixed regulators MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v2-3-0ca7fa521b86@linaro.org> References: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@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=1681236884; l=3979; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=4Qcy6oAyM8zPF8mK5eHRI95hbEBvPmEJg9jGJaCAKqc=; b=nQoemCIsDwBjMjcWSS4hIbHig03q/Kwg6GLttifVvrJgVmM7T5hCT9H2gxdaxVxFqqbdU2JZ3iIk TSgIXwMQDQ2nQdvy0oUKB6VctPq5rvcRSqT1TfLZcbkdwHsogE5d 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?1762905943571904820?= X-GMAIL-MSGID: =?utf-8?q?1762905943571904820?= 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 | 110 +++++++++++++++++++++ 1 file changed, 110 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..ad402f3a90c3 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,37 @@ &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; + }; }; &uart2 { From patchwork Tue Apr 11 18:14:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 82139 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2770072vqo; Tue, 11 Apr 2023 11:21:16 -0700 (PDT) X-Google-Smtp-Source: AKy350b2iwJkSwLVGrXGY1ojXBKJ06+T/d1EgzkTeLFF4HbkbTjC7eVXDCyDqS0Kw6MGDPKMtarm X-Received: by 2002:a17:907:76f4:b0:94a:89d0:3ee with SMTP id kg20-20020a17090776f400b0094a89d003eemr6487700ejc.23.1681237276166; Tue, 11 Apr 2023 11:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681237276; cv=none; d=google.com; s=arc-20160816; b=gImf7AE4jsZTKJUSvgORT68wzqMPFmtE2iuxWTHwtcoWI3ahwou/QLFlbWwiIHZWPz UuepyP+DFewSlmK/soYO+ODn95gjlqk5ntpW/6c2hwYplN+LbEPCEXYav63gmKQm8Equ wpvZoBjSonncmKtoJt1FtXDmQeUKR7OeI9bUlGSh2EOnLYIxJ28Apa9c7D1LmnHmWJGF VTKzDwOoWgV4FJfSHpN+91HtAaAg4YhLLAs9QIMbyU+o/848QQqUHeBA6gkIceSgO7Qc 27QH2xFCYdpKFzLOmaWvpXS63kneWvaiYJOFTbQP+RwSJyXe08BKXeo+30cGOit69EW/ W7sQ== 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=iiD5eh4wW3G4xesVrmVIbN3es5cwbzUIQVn3CFJaryg=; b=CPRNaJYEMjxuWZHBNISuzvz6GMxgXqskJSGldHwo83MNF+78vwiHqH0ZXNUq8Mlv4w P6OFYWUc2Msb5v65HyMIt+5kEi46X78ViyIgY2Y5UtFZesYn7C6K4zz/hUbt9y0O9/X2 MgqOjgdcs6vVK5oVcDDfaw80GzEpZX4DCCYjD7jgergitQgIe2e2eBL62HJM9GUcb1KM mQZ2fDL0+ATpG8rrM/Ulra3OHJpIWU7tHKKQ+ERp5iepygFEOoR3toaR04Cw6yS2/RDh vdXOFBZyxCYiW41I6DcJv1YKKcjI98n1avncHQTvCZpA+hCNJih7VJrjU8P49arJMkgf 9xmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LRGK7y0F; 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 z4-20020a50eb44000000b00504882a026fsi9007367edp.78.2023.04.11.11.20.51; Tue, 11 Apr 2023 11:21:16 -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=LRGK7y0F; 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 S230024AbjDKSPH (ORCPT + 99 others); Tue, 11 Apr 2023 14:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjDKSOx (ORCPT ); Tue, 11 Apr 2023 14:14:53 -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 5449A5263 for ; Tue, 11 Apr 2023 11:14:52 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id z26so11428440lfj.11 for ; Tue, 11 Apr 2023 11:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681236890; 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=iiD5eh4wW3G4xesVrmVIbN3es5cwbzUIQVn3CFJaryg=; b=LRGK7y0F5/e3SImvRYMWSSK5wtxTPvMA1Xq8596BNYhMhhbOy4pmgCdku9jVxpsAhz iSk7BVIx/Lo+ipjb4Z2RdEW3p4p+xrRPeIFEd634KKDhpoYFyNL+6ab+qVbqzwrq7ZP3 3kOFRdRaB/cUxftgiewlrPsrXrzV536j19E6YJ+Jx/dtRwIovbTstp1jfxj4aaD9JE6F gM5eZALaxgcB1pkhDV0IsKfl4u/bMyt75oHfwpP6E1CIyx/m5QYPN1CaVuJDfDGJ7MJS WUhstDFoQHCDvIExGE83oNzjGNXBq9NsavyQTOuBJdmOumNvCn8Xc9o0lE7t0dWqatdV SpNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681236890; 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=iiD5eh4wW3G4xesVrmVIbN3es5cwbzUIQVn3CFJaryg=; b=KyJDrjfsih4yPfjQHOFw2xNprznFP56mn/Wc5i/X9MuidqCgyHqhbEFiPXQimyJzIy 0q/TuyJuSp1AY0m+tRWRKXLLT2u5SBZtbhdijdm3WT9ZgRocr7cu+Wmx2ySh2Q8cr0zQ 0IuUgX++0Z13GV3KoxmIDQka0R3Tf4mxCrHzcnac5K8SRcbp8BsW09KP9Qdj2q6EW8A1 HEGwNHwUiO96vSkNlpP0w/UN2Gtlh3mYZ85ZliIItcwTaXeE8i2qeigViFILN7Kri78Y smwoW6ecohjHwGaP3rmwPgODh7ybgFpHNHeh7azHm+Q4Mp/NoueqQi+RtUs3TI9cR3Xq 0RZw== X-Gm-Message-State: AAQBX9dTJWsgIgJn+SquNMJjRjmy6Bn8rN7ElKu/jdsKlI+45WnIoT+2 jjK5ugBrsj5o4Vx+dHYgPmZV2w== X-Received: by 2002:ac2:4a6e:0:b0:4ec:6b89:b0d0 with SMTP id q14-20020ac24a6e000000b004ec6b89b0d0mr3549383lfp.39.1681236890507; Tue, 11 Apr 2023 11:14:50 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id u25-20020ac243d9000000b004da8168eba2sm2593868lfl.237.2023.04.11.11.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 11:14:50 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 20:14:44 +0200 Subject: [PATCH v2 4/4] arm64: dts: qcom: sm8150-kumano: Enable SDHCI2 MIME-Version: 1.0 Message-Id: <20230315-topic-kumano_dts0-v2-4-0ca7fa521b86@linaro.org> References: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@linaro.org> In-Reply-To: <20230315-topic-kumano_dts0-v2-0-0ca7fa521b86@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=1681236884; l=920; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=SO4t4Kju7o37n3l63qOGDo0eIPu0YPJW7B1qvj76FR0=; b=5ZSmLHpJ4XWnnfMy2+W+URDdep4E80Nrph0gOs9dyDRoJbcICMmNyB1POJmvEUHbjMeggCYW+qT5 Uyn3DtyjAcpTJs2nfxo+ou4LoLvejWZUXUjQul7ewnVGMAYd8h4L 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?1762905057989221900?= X-GMAIL-MSGID: =?utf-8?q?1762905057989221900?= From: Konrad Dybcio Set up and enable SDHCI2 to enable the microSD slot on Kumano devices. Signed-off-by: Konrad Dybcio Reviewed-by: Marijn Suijten --- 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 ad402f3a90c3..baafea53770b 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-mmc; + + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <126 4>; gpio-line-names = "NFC_ESE_SPI_MISO", /* GPIO_0 */