From patchwork Thu May 25 15:47:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686247 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 3EFFDC77B7A for ; Thu, 25 May 2023 15:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241800AbjEYPrr (ORCPT ); Thu, 25 May 2023 11:47:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241154AbjEYPrq (ORCPT ); Thu, 25 May 2023 11:47:46 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F694195 for ; Thu, 25 May 2023 08:47:44 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3094871953bso1622219f8f.0 for ; Thu, 25 May 2023 08:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685029663; x=1687621663; 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=yQzDeB2LJCPdE4bVwWMc4k2lSAwN81htM+i28rNvOQw=; b=TddeFYuZXpTuvwVOeYzhBVlo9H8BGJvZb9EqxEmSJiiCQk57adWS5pamK4248laKn2 zYvj3YM/6tUvrLhHTxSd7r6aOM84t35B8MXXAYtqiW2xRmC6s3eAIQyvzdzp9fN+9IRu Do4XiVWHXcJoo8bs3+C7e1SgBRU3rBo8+3tfGE7cLMhIMDc6uOuHRn9+Wcgn0UYeoQXH W7BlDYA3wS/AFhHLlFC2UBefU6cKSmGzA755ekag0UYEKlk5iMEBM5hLD5T0XWFrKnNx t+nHlmvlXa4N52RUbao2/3ovC03D02T0Jo5Ts26vAQswHa/5OJ9gmu08pxvrszwPh0Ek 6O0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029663; x=1687621663; 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=yQzDeB2LJCPdE4bVwWMc4k2lSAwN81htM+i28rNvOQw=; b=MZNxUD+71QDg6qXwenJ1bxMxzFlUrLoI4Dgi3mI6urJp2LIe7pEZe2AKxop7o7eLTv jcXHBj8FCz0hqk3AVgE6rgcLMEu6AT4xqUxYQhnGU0zN294CW1qz+MaNsKfjfNdqcl0A vP4mFJ+akwOvR9FYhPB8ZJuhV8DhqDOhsgv9jxMK/KHnZ1IuhNmYrPiazYN6lDGG1fPt Gu3pHNczl3xw5Ql+xWOK/PK/ok67pVocQaBAGGrBhnJY+4JBdFAGd4kuweJKecF6B5Ow OpO4EtWRnWpAYZjiLDfve099OyrL0XzJrcSSaSK8eeze6O0eI80Y0EtN5trvo9y2vyWB hOcg== X-Gm-Message-State: AC+VfDw78RmjTsQvB5LJzXKhwYiTdA/GceTiO7gGdtaimyb/+MMzzlLR A3DekBmG3p+UIXhirY7MYX2EWg== X-Google-Smtp-Source: ACHHUZ59TBUVXLZlCUafrhzicEJd3n6/rfz4bi0CwGrGP9vWkvnMMGTfQwrX2TAgeCEhsWeDhqJfEQ== X-Received: by 2002:a5d:4ac2:0:b0:305:ed26:8576 with SMTP id y2-20020a5d4ac2000000b00305ed268576mr2825579wrs.9.1685029663038; Thu, 25 May 2023 08:47:43 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id b3-20020a5d5503000000b002ca864b807csm2275873wrv.0.2023.05.25.08.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:47:42 -0700 (PDT) From: Neil Armstrong Date: Thu, 25 May 2023 17:47:35 +0200 Subject: [PATCH 1/4] arm64: dts: qcom: pm8550: add PWM controller MIME-Version: 1.0 Message-Id: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-1-4d5d7602f290@linaro.org> References: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@linaro.org> In-Reply-To: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@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, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=820; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=XZDrtkI5nsyDY8glSBffiKfD1QTexpnFBhyAkUyRx8Q=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkb4MbuiHyxJ6G3/LqDSUYx3Ap3a7x45nVDJbCJFKZ pv1gW9mJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZG+DGwAKCRB33NvayMhJ0ad7D/ 98cD9b/q2QZUqK258tcmcsdjj9h5dCynz3YsZaLRdOEQdOsvTRRvsDxR6x2yvULK7OwslhJf3GkORY A0tG1Pm54QcW0tJGbc1hwu8v6ZsSiZh2pkFWr4wRwuCMSqB5X917iHcKTeKpe6GEqXXuxnVXSZWcqh /7ZBJKkKYMM4Xt+Zpz0IDkg2IinW+W4ZDbO5MFiR/vAbD2YoyknlOxrafjeoEZ/a+dJDilE8WNP4mS vqkh7CvTcW0ovhXonHntGfnIUeemVLEFRExvW5RR+RD1Nk9EXWepLGSSTNAxov480viZm/pBCcKqoa EmfEAOF5tweZQoyTtDLFQXYZISOud5odIoaP4Xy5BrrDCYyOh3RPQOozwzhJiQXra+ErWqtMXE1y5L U1SDcEmlUONnxNfnv5MK4NYSI1N0Zs1L9OqnYblBQpAnCvUA19UhVfnMNg+YKwlW4WiCtzprlsR9Bn EniRCNrJBzey8Ow11YUOSBdx3gwpJYGlMAAVUJ0wk1qaB+UTiuoOIuhPTm3Oh4jXnZjccsKnIP39w1 HXP+1V0Tk+I+cxyHR5GoVUZiF3YLv+PYFiGCWrI/MctnSlXuRAVJe5UO9RSnHazYDZDO7609i88LLU A3Hzx/CU/O+zJSGj6AYhh9gKiEnOp2wLGhbdKrq8naP+d52/Ss03u9KBK3qA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the PWM function to the pm8550 dtsi, this is usually used to drive RGB leds on platforms using this PMIC. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/pm8550.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qcom/pm8550.dtsi index 33f357a80636..db3d5c17a77d 100644 --- a/arch/arm64/boot/dts/qcom/pm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550.dtsi @@ -61,5 +61,15 @@ pm8550_flash: led-controller@ee00 { reg = <0xee00>; status = "disabled"; }; + + pm8550_pwm: pwm { + compatible = "qcom,pm8550-pwm", "qcom,pm8350c-pwm"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; }; }; From patchwork Thu May 25 15:47:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686246 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 86B40C7EE39 for ; Thu, 25 May 2023 15:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241117AbjEYPrs (ORCPT ); Thu, 25 May 2023 11:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241739AbjEYPrq (ORCPT ); Thu, 25 May 2023 11:47:46 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E61E199 for ; Thu, 25 May 2023 08:47:45 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-30a892c45c4so1549697f8f.3 for ; Thu, 25 May 2023 08:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685029664; x=1687621664; 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=6W6z3yseUW0ZEUXSC4TnDkmT5+0hex5HR1TgWJvB5Vg=; b=dXc0/xfrpw6K8JIFSoad4GyekZbfACRBdkSEGOM+MP5KMQKFmORNuGRUFQg31Imt0j hFSRDAPE+IngrkaD2GgLt1XuRSV200E/Zob8cYPDZYaXoPUs0Y0uM55PFBjsYoKzx6dD 8AEl6EwbjN0nMKwLlqnFZIJwaTYoEUyG5EnFq2eXmdcGPoXDLVl9xs46X+2aWvLbKUsC ihB7raXKBlLAWfdDFsgQc5i0S5YZDmvBxiC4tB/nloDiu1u4d9Aaz6BbpHMewb8BAB4g qr0AmLajIbQjEKcLJIHGYvqfg1rd+1KmQmSDSKMtXCArM+KF94SoleBpKea7bCeHb7Hu B32A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029664; x=1687621664; 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=6W6z3yseUW0ZEUXSC4TnDkmT5+0hex5HR1TgWJvB5Vg=; b=W10VZzqV3IaJ6q/RJUOzpk2Ri3rKidxJfpPu4NvcH6bMBEn2NdFvPtznr+JmbhBCFJ H25H6TdlZY0vN6ZvgffOpObySCavEsbM1HIWLL81XMMYWYIq/4phk8+LUuFx6rRvA0e8 I35lZmTGlymGEMgVFnyTo/5ZDCoPOcWfKTkxSPNLHFr6A+2ldTHtyGjkGXbDUxbvNuCL PZqbRuG/cAtsuXq+z24nk9Sz1g3XJVr9ShIMJA383BT7B83s2KE5OSOYDvrVgnyxE3MW lq3ZC0+FokGz3X7ocDNjRoyKrR0R9/4Ez8TiGdRs031gTqH2LiqCLwrqqhG1SoPZE1+a mkDA== X-Gm-Message-State: AC+VfDzFOWZPPi+5JM+5ecxN5gxCr3J4+iiB0820U7uljiUnDudVn4/h y1Jo5TfY8R2XMfHBEtdqh6jKt+DiXJjwYgGUrIhGGg== X-Google-Smtp-Source: ACHHUZ79BqD6Z2l7IjTTPg7mydbmaAYbxh1JlyDrA3g7lfkSN0/gJQdmvvl5XF4FnCERQ0VMVi0XuQ== X-Received: by 2002:a05:6000:10cf:b0:309:4f23:e52d with SMTP id b15-20020a05600010cf00b003094f23e52dmr3053481wrx.43.1685029663893; Thu, 25 May 2023 08:47:43 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id b3-20020a5d5503000000b002ca864b807csm2275873wrv.0.2023.05.25.08.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:47:43 -0700 (PDT) From: Neil Armstrong Date: Thu, 25 May 2023 17:47:36 +0200 Subject: [PATCH 2/4] arm64: dts: qcom: sm8550-qrd: add notification RGB LED MIME-Version: 1.0 Message-Id: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-2-4d5d7602f290@linaro.org> References: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@linaro.org> In-Reply-To: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@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, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1094; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=VN0b6yYDeCqIJw88Yxteguvzp1g40067w/aqfqr4Wb4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkb4MbzmE/LZCBiUmXoX5AEsmQgizJBa0B1WTsuR8k zYEusuCJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZG+DGwAKCRB33NvayMhJ0R0ZD/ 9jB3pJtPJzH35clvFkBoH2QptMDQ/E/T2NPHrCT0RAMn0siMkKyovzjCwiYNIQN88j9O6/lK5/65LF /ZE/zItTV4k1Pzcylam3DTsdO6rBn/EFXLTxPCzlLN5W1ri2y1np13V5oeleFX7dJJzjbljmlWhVrj JRpOyvnYH+v7CCQ2/GUv+/L2zpqy0j/VSnz2HDZTFhDRmgmlvbbM9HHA4I147I999FAVdv/1M5yBcf DCGMgXP0uKPbE86g5s9pNn9BscuNXqML79e6sldDhXMetTB08nyHVGwoKy88V7AyWxI9GhullcV1pz h/uUKNeUdDtSINjmuhgKpgFQMwj2azNgCeDsyH1C95Bvb3Ofyc+yyVgtbkyTQlKVnTE4H2h9DGBB69 +PVhCtlxSJo+ci45ST7k8tWTOFEMgHFaUR5WZd9jfShunJcLPA5fTyZuH/exprXXOeBIzPo/Udx8Db mRz1YSJE3+pYcHjAzDdZQu5EzmBqHZTRycAyp22VBU7+OG+vFlUm5weO1UN4Y25qGzl7vyHXvBj8Bj tR+BlWL62Aqy+3byF9Bj5G/romm873gPxTPzfPCSE70Axfhs9IbCTLyYmUzbSf4eujEYjJSTQUWdt5 wSaJn00mI+CGv0O6uipOZnDL/zACQHoY+1u6rwdv3cjcyiL/TcDpYByhjKpg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The QRD features a notification LED connected to the pm8550. Configure the RGB led controlled by the PMIC PWM controller. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index ff61b8b36853..4a8177f99523 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -450,6 +450,33 @@ led-1 { }; }; +&pm8550_pwm { + status = "okay"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; +}; + &pm8550b_eusb2_repeater { vdd18-supply = <&vreg_l15b_1p8>; vdd3-supply = <&vreg_l5b_3p1>; From patchwork Thu May 25 15:47:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 685729 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 2DDF6C77B7A for ; Thu, 25 May 2023 15:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241563AbjEYPru (ORCPT ); Thu, 25 May 2023 11:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241154AbjEYPrr (ORCPT ); Thu, 25 May 2023 11:47:47 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37A0010B for ; Thu, 25 May 2023 08:47:46 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f6dfc4dffaso4331975e9.0 for ; Thu, 25 May 2023 08:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685029664; x=1687621664; 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=i7fskv7wFtJKRdpwuN7WJVfxVhRgocG9sAIRUMAhdUo=; b=QavnK7L1CBahMJ2M/KON2DXzPpSEofUV/dHNQZwrUwyIhvVrZZxcY1ZcXMS8Bjdix9 vj6HOckJuHGufz6o90taIZc5cJjPYubSwWqkPfowgzAEAdOfvuYvC8YjcleY781KZkqf b56+QQMR2hMbcHca/+zm9HRgyCTtM5J3ASArmNLEsnoK2iYS8GFlrRrXC6kJObq5fRUY 9eGidIdiJ/Za8ilVQ2sL1i6jXZVxywyhicmHG+uTvP+7MtYFxIdAe4+f5SJv7Onz5d+G c6j/zrVSFr/b1+iakQSzbAkMd+xidqhpWNdzTQNZNl4sMC82T1+L46yE9xkGTvdALLZY gR0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029664; x=1687621664; 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=i7fskv7wFtJKRdpwuN7WJVfxVhRgocG9sAIRUMAhdUo=; b=jDpbYlBbbaetxhyyr+kX/94amrWq5A/Uwwnb6r0F0WaPzD6r0ZRCNPitYDUGCa9c6n zUrI/7acbHNvHe9waiXAQo0lGdvIandK7v29O6lO49ygLjQ9o4dp9zvVYQflcwT6DFjr FvB/I3Hnn/ZqGl+0BuWdW1BFkHQb56GKRTYHZmcFN6l0BPNVbPNjfiPUSXr+Xeuukn0J 8nAgM2JKWn51ZLkBllkk70FCptGq3nWnQwMSs/cFeSTcy63PubNE9+z6Kzns7cZ3KjuE +zyX2IexPLJ3lea64vLSW4P+vFEKGb7CM2MPTYHtzWauZUD8jmCwKdQ5Ae3sg8RCQTz/ 5fpg== X-Gm-Message-State: AC+VfDxsEirz/J5bRlkYeLoIONtZaerDydNxqjf7fmswnntOA62av5FI tKQ+nreM9StkEI7uWaklPsADbA== X-Google-Smtp-Source: ACHHUZ5QQ/CIvUNIitY8XqYql6TjE61MourwSiwzqhpXG4FY8LC7r8LCN5RpvzDOHM4e+enaH1oPaw== X-Received: by 2002:a1c:7c05:0:b0:3f6:113f:9184 with SMTP id x5-20020a1c7c05000000b003f6113f9184mr3328761wmc.19.1685029664756; Thu, 25 May 2023 08:47:44 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id b3-20020a5d5503000000b002ca864b807csm2275873wrv.0.2023.05.25.08.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:47:44 -0700 (PDT) From: Neil Armstrong Date: Thu, 25 May 2023 17:47:37 +0200 Subject: [PATCH 3/4] arm64: dts: qcom: sm8550: enable PMIC RTC on MTP & QRD boards MIME-Version: 1.0 Message-Id: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-3-4d5d7602f290@linaro.org> References: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@linaro.org> In-Reply-To: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@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, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1117; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=OhvubshaeIwf6V0ll41NcZ9KhvdQx92+w9HwT/05Q/g=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkb4MccE13InYB41STLGWteCWKX4jFswyvN8XIZOYg YsnpvqaJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZG+DHAAKCRB33NvayMhJ0aHHD/ 9pHyU19UckmY9DlqmsYH9ZH1XrZH7TS1a8yKw80oQSIeLkHfX7MsaZbXzIr+y+alm4U9RwcZI7zzO+ FKqK48iPH8UxiiRqifJHvJgXACZ3AsJsiOq8TYs2DHFov233XWOLGCANMzhvk/vHfCzmhQos3jkORa MuzLf2yUmRE0TXTiTcT+23TjmxyhAyNxa1NgHkB7VY8E/UnyMordS7Lmx3zbROYp6UDEwJssttKM6O 1OkNj19wT8p9xHNxm2RtNLO/+u5rC0QyThgKEcobUYbMhwprkjcUjxiZq1FlHSRFxwFV6n08s+ntEi otNT3O8+ilNOfTjbjOaRLaEpzq30reoNj5/nxBPW9mvue7p72hcxqz/o0hzFelPdEKj7elYO6s73Q3 Q8JDhK5nPMq+6/A2qH05gpHauYd+c1UHW2yBh3fyvCH20ZdQHfRUDXdSsh72p7Oyhbh3jtaOJL23I5 oa1MeSAiFBa155dQiWHFHNp0VTNMkD2sYdPPXmiIhnacsS+EhdPCK6pTQFNY7hQeuXDRUBtVQP+rWP aJGIPmCiP7RaEWxG022q/R/kITL/XitxPilkxtLEj/rK4vp3QfEcB68fRidIRDCcdiF/xrmaFqpvJ5 D64VCTmgQO1ljy4Bd4joImfjNdw35u9dlOGZjcyq86bF9pSfGh9I4kHrGRHA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The PMK8550 RTC is functional on the SM8550 MTP & QRD boards, let's enable them. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 4 ++++ arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts index e2b9bb6b1e27..6bf111e655f7 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts @@ -496,6 +496,10 @@ &pm8550b_eusb2_repeater { vdd3-supply = <&vreg_l5b_3p1>; }; +&pmk8550_rtc { + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index 4a8177f99523..b08a8201ad23 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -482,6 +482,10 @@ &pm8550b_eusb2_repeater { vdd3-supply = <&vreg_l5b_3p1>; }; +&pmk8550_rtc { + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; }; From patchwork Thu May 25 15:47:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 686245 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 11E0AC7EE3A for ; Thu, 25 May 2023 15:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233051AbjEYPru (ORCPT ); Thu, 25 May 2023 11:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241495AbjEYPrs (ORCPT ); Thu, 25 May 2023 11:47:48 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D17618D for ; Thu, 25 May 2023 08:47:47 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-30ac4e7f37bso479506f8f.2 for ; Thu, 25 May 2023 08:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685029665; x=1687621665; 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=ybWMPvjAbxDd9m2vKZKs3PZRB9H9wahkXT4YhpmdacM=; b=wTKV2Go+f+i+Mjt9tLkmgVbheb9bl7s5B+NU0V884RUjTJ1Peu8qCewYshoz4bLdeO YAH4u9vIY76b7ACHvViyhuyKafwq4km9pATlhQC7Wy/KRylXi3YTLBQFb08obpDkievz g4aqV5Vo4LMYp73b12lbC3rMg6SPBXuVvvPjMzMmv1cmuWP2e0Ogoe7I3s3D84Ofi7I3 Id0/CAyu/YDljXpJLMd0JQBn5Hl1ZPOs9IXtyUORwV0Typz+eLLnQMSzupcevvB3Tljr CRKn/g41mGhugIuUKHXO2eut8Xq2TKij2+tXMdrZoOo/IqlRI2eZFmAuf3NpK5zsmoTj VyIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029665; x=1687621665; 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=ybWMPvjAbxDd9m2vKZKs3PZRB9H9wahkXT4YhpmdacM=; b=KUsci1eZIwx1U/mxG05H+pHMl1VUhKmUNjwqJaXaSaGdszwOpxQZAEyJ0DqrF/jxJU Ko4pjB2xGTpm7UVkWwnB8Qz+4sSEUZWhDUlkEeSpLFHACdBgYdQp8ihxrtZ/p9RiS1A4 CKsLuUOZe4LNbgMuEUxAhHhp21P8Dr2ju5i7u/iUjhYW1T/Cch7Xe6Qn6KS/sKJv0KkP wvBgpFIMH8Q9dkYExftaMUJZTOXWCxcYuWOYsVQkKSgRl7gjv6iWMqYmDi3NwPsXpT2k zI/ctJLEpmW05GoiYPNByzrTYYGmgp6mAmbB5Grm0phM71TY2jFIp2C3WVXO0L4Hdrth iBAg== X-Gm-Message-State: AC+VfDy9u5NiEpE7rKcUvg4Lr9UFXmhkGgaHVPk2taqhmiww4b2aNGJj LjwHi0ElRdJovk6ZeqQeIAmA8g== X-Google-Smtp-Source: ACHHUZ7ZCJwFJNGBcjmp/qsvw/hxlfVQohGvKbPq7HJoGe6uwtY9e849NyhdSHgLji0XW0cxExFJgw== X-Received: by 2002:adf:f84c:0:b0:306:4550:f651 with SMTP id d12-20020adff84c000000b003064550f651mr2993014wrq.4.1685029665561; Thu, 25 May 2023 08:47:45 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id b3-20020a5d5503000000b002ca864b807csm2275873wrv.0.2023.05.25.08.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:47:45 -0700 (PDT) From: Neil Armstrong Date: Thu, 25 May 2023 17:47:38 +0200 Subject: [PATCH 4/4] arm64: dts: qcom: sm8550-qrd: enable PMIC Volume and Power buttons MIME-Version: 1.0 Message-Id: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-4-4d5d7602f290@linaro.org> References: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@linaro.org> In-Reply-To: <20230525-topic-sm8550-upstream-pm8550-lpg-dt-v1-0-4d5d7602f290@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, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1644; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=CPwrvAAyt2H/9JeM32XZW/DCLHS5cCNgZqPt32wie4c=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkb4McVl877G51/dYVZUu5+kB0HIGxU3xcvMSUXnRk YVdr7ieJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZG+DHAAKCRB33NvayMhJ0b/9EA C5gOeMPObiEOchFROcde0PWpDIzUiz31zaz+XzjLDuNbRyKMC5GgG995WvagBO8Ecx+YVELW+MNz1l joEuSjUD65+dIz3NCsj7FTSjyUxSzL+k1zX2yuVmfMpwuseDwCiHgRo6w4toyYmDEdVOvKlxl39hL+ Dt8yMpr4MIldKMcAKoEctTFfiM4fX6Sdve53AgCT9txIdbVDaIkj9ZSHmna8o1Ewq8lrMr4KyQ4RGu ZVVOQYLbwUyIp9t9ARVyV2I6DQhSh5N74GA/c2JtYEU1XyPeBvxSvVvmKEL2YfTar1IAodB9xJKw9C Q9IrJ2+8o7+hA36JDARzzVZQERFmf/dkVM3thZOGMoTLbp6P10HU/TnRbi3k+fv4c+16wcnX+hPU4S rLdNV2d53DJcgujXG5oiX3mdlUlxn6Z++QP9rznRjS2gdBFEl9KSTtviavYl4eMndGIEBSp++kDeyF RMslZcqDEVtpUAT8FrR4UAM35Oa6e5BJba2k1PdDO+0r2z7jQ5gtIKgiUOJHuwfElJe2GnJuM/vE4x GmTRIBcAl8b1hZmgB4sC4rDE9ZUg0RRcxA7N9YFTOVxULSr1bCWSM22q9Ect9yJ9RPxB+Elttm4NDX yzpXW3VVVUtljXEN/YY33HgKmkNzdKaMx016cffsINRfSlwLlsfJpXrh8VaA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Volume Down & Power buttons are controlled by the PMIC via the PON hardware, and the Volume Up is connected to a PMIC gpio. Enable the necessary hardware and setup the GPIO state for the Volume Up gpio key. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index b08a8201ad23..c354dcc12621 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -28,6 +28,22 @@ chosen { stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&volume_up_n>; + + key-volume-up { + label = "Volume Up"; + linux,code = ; + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + wakeup-source; + }; + }; + pmic-glink { compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink"; #address-cells = <1>; @@ -426,6 +442,16 @@ &pcie0_phy { status = "okay"; }; +&pon_pwrkey { + status = "okay"; +}; + +&pon_resin { + linux,code = ; + + status = "okay"; +}; + &pm8550_flash { status = "okay"; @@ -450,6 +476,16 @@ led-1 { }; }; +&pm8550_gpios { + volume_up_n: volume-up-n-state { + pins = "gpio6"; + function = "normal"; + power-source = <1>; + bias-pull-up; + input-enable; + }; +}; + &pm8550_pwm { status = "okay";