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: 686018 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 9B42AC77B7E for ; Thu, 25 May 2023 15:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241804AbjEYPrr (ORCPT ); Thu, 25 May 2023 11:47:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241339AbjEYPrq (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 90CD6197 for ; Thu, 25 May 2023 08:47:44 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3063433fa66so1609497f8f.3 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=PVd2N6Q5SXDXTKjw2OCNUPFfChBioMVck8nG1yfX9xO+X/9KrmHCX4K81myGy+XrJU n7ZUJGMXpmxVPDZAfs/kdYllxbWeI1ebHhGsPS7B/hSZlEk6wk2CiuKYGHTSwrRV+aHo mO+rHAzuZNAnWR9NUvN7ty4dxlcgYKFul/0yssa4VpK19hxGjTU+OSj2auYcslwq9wkt W1fS3Mg+dx8kuRqoiUhSCuADdsw3m1d++qAxNVVD/z7U9TX5wbywQ9DeUd3GR1OYTrsZ miCsrIqUuQW1kcVEH09s7R1Kaz1BwxvdOPid7T9NEkYCA0PeDcFtZR+PYeY4y7uPzomS Zu7g== X-Gm-Message-State: AC+VfDx/dh1MLBai1dKOa9oOafOc4ku4RKU8tJgh+EuxnBJcf4wZ/kIL cd+12eT+aNnLnIg8IzHvpBl9GEuFwTsQEZ5xP8fbuA== 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: linux-arm-msm@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: 685697 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 7A321C7EE32 for ; Thu, 25 May 2023 15:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241822AbjEYPrs (ORCPT ); Thu, 25 May 2023 11:47:48 -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 S241731AbjEYPrq (ORCPT ); Thu, 25 May 2023 11:47:46 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6198119C for ; Thu, 25 May 2023 08:47:45 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-307d20548adso1559890f8f.0 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=ImjSlyFpvuy4EScWja9hAWCcY5j/nNuDYzVPUjt7hpvkRzNYQ5zIm4CLyz4ZEHsBeT +uFL/E2StZlbb996c/t2kh+rNDFwGkkx+kJiL2UNAu7o5HTmVSQyDuNc9deISSHWf0h5 HVlLvjBR18t1FtnQqynbq/wSjiSMQULrEzCxg5Ve+rAJj50ZVYHTsfqb2bVBmQOkYZLE 18dOPJzgvFgOeFMi61vPcapYvZT82qWhnZ2SxcPtUDRbAOwevLqei3x15OYDqFnlR2iB X33JyhrjiidvNNmQo/BqyU+jBQO24LRvAbal2X0H0refCR+FDbTVFrES0fypZVXRt3fR CtFQ== X-Gm-Message-State: AC+VfDxmdyrmYDMBcluqoAmKz9TtBHoZHS36X0ZuSrW8Rm4N9Xlfmqsg mgmSxcmU4DpjtQwNVe7NX/G4iw== 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: linux-arm-msm@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 Reviewed-by: Konrad Dybcio --- 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: 685696 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 6129FC7EE33 for ; Thu, 25 May 2023 15:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241686AbjEYPrt (ORCPT ); Thu, 25 May 2023 11:47:49 -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 S241808AbjEYPrr (ORCPT ); Thu, 25 May 2023 11:47:47 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 337E0B6 for ; Thu, 25 May 2023 08:47:46 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f6e68cc738so1919105e9.1 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=BX7sDlQNiNfIHYEV+3GmqDk0Gp/X4zQ+uv09dKfDuhHhsdzZKfUMv0eoaObSPCJpl+ ljXwSmX5YZpDy+iYtez6hq5nVHzRTA3amNoV1dULFLJ84HbRpT+LctQU4Zf24YlYaRB8 v+KZn42LmFNPsBqZi4EymT4yN03JUVZTMwHOac4HfpSMFB0g2zSM7bkKWCyoSmChzw+I qxeVcz7VNsjLkCYEKjd7MRX5ZvKj9kMoiBSnL6KitnmZkBDey40Xm4ff8USaRpLXgnq1 TRs1SNw9ylDtJ+ilQ3rHUFQ6a5Qcudznyg34zDD258gts6ic92/bMqLxXboWzwd30b+n kXUQ== X-Gm-Message-State: AC+VfDwUF99SE/CQUjWJ6pvC8vda0S+Di6Hv3qrw16J+j2u1ddEoiBpi TdBm+UhrjIILTAmzVT+Sp4IHoQ== 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: linux-arm-msm@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: 686016 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 4CD67C7EE37 for ; Thu, 25 May 2023 15:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241791AbjEYPru (ORCPT ); Thu, 25 May 2023 11:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233676AbjEYPrs (ORCPT ); Thu, 25 May 2023 11:47:48 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3B7C0 for ; Thu, 25 May 2023 08:47:47 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f42ba32e24so5829125e9.3 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=Xbfn4iuW2DYjnVzm3PQAhpoBodgETiCWrix3FjAGa/HsBrbqvHFUZoryxvn6s7IOv1 8SijlV+rF9lbaZZZfYTOnYLtJ8heFdK/+XhcHj1uSkA8Vjj9fDkxcinQNaHghXyajXZs HA76a5/YP5XLde/fayuZm90A/FFFD9QWzbxuJKSV9CrCox6AYNLAaxowJFWc/2DpDXrm zLAevsVFLRcEkSYm8Vnp7UITdPQE7jyNR2IsxycfZZLiKi+h6XltgXPPXZztBkYj7SXx MuAcGtbx4+Yn2HcRf9DDHlcyrNe7sjeOAW+9ef1xa6y+zK0h2aBI08aXSwVetXrR0hC2 DzbA== X-Gm-Message-State: AC+VfDz0t8gzCdywYWxHzGJuUGFeUMywgS3zgnrf7VhTMXxH586L1f8s GMCdFpZXhcS0sAKEvmzxjyxZpw== 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: linux-arm-msm@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";