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"; + }; }; };