Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp500040lqd; Wed, 24 Apr 2024 08:31:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjn+tQrAf+WfHfkJ/RNlL99FWdJVp9bT9gPf1SEaHRiIn6x+BPkBeHJej6jE9W/e0a87fNy+4wKfImSSDWmf+zJL+R/27b1mr3LG5rmQ== X-Google-Smtp-Source: AGHT+IEkfcTsn+cz0w59YNhJlRRPgpvOGoMgTRZ99lWjdQ4J9RdTXJ56W0lQ2aw4hZRJHfoEMk5y X-Received: by 2002:a17:902:f551:b0:1e0:2995:c330 with SMTP id h17-20020a170902f55100b001e02995c330mr3271108plf.63.1713972696417; Wed, 24 Apr 2024 08:31:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713972696; cv=pass; d=google.com; s=arc-20160816; b=TmYDU483WaRKz4VhG8lwONsuCiNFe991HbTCk7+/h8GNO0sTd55R+8PqVWixGdFjt3 rnyBU3fBHkYQIWXP0jD0GrBo75oNAaz9wPiPSSdMYPNNnVgK5i/YIpVz9rzXSarTxmAD Gvf0EyBkaKVy9disUsJ8evYVfKcrkfYTeyZ/jAFeR9UbcdgYn1E7O/eLHtRsF0rbi1CT bw2CAQPXnul1tsbifBAhiMSq8L0pEzY3Hl3W6RnFPFHeIFAMZrEXVLDWNugESjV+YYPB uaJFFAc1xa5FHxVMSmO4ZDtXzg/z4xLW/8+h+x30OjbJtu0+WmUGbEklojLJtcRkPWsv 9jKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=1moBh8FhDxepwSFojoMMgeepYbXZMcUE+ZMIMnoVGfE=; fh=meHr/5oKY4VHNYLqa0RyVLGL1IQmE1+CHjblGeDyUS0=; b=srgnZerZ2MHuNe2EbkUtNA1t9NB4NW76A4ENQm6R94KCNC2BBll/fPfkmZJiclVicb H+5JkATaXYtKWiNjEFhSNu1At3WY0//00ZRiVEwI3DwvW8ZF4gwCgq4KwEZ7vQNrEltb WyNDU5KwbzyBGOrBAEYwNtgX8TLO/TsELIdo1LkY8bjw2/AQM3/otiHC52J25LWftNm9 K6fUNBhBcpR/cGxFUaDWE83aQ+g+ZS4ng3bvpWjSIXirKt3P0EG1LszMeIAWTzb6GcEe CkBMFdNUrIjhAyQy6DGynIHDXEHwAaPpH4slp136GRMLMXqH8x6qLuUZfiDsTw4C87Um x6fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GYPoWxwf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s4-20020a170902ea0400b001e2a5e9e7d2si8452068plg.3.2024.04.24.08.31.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 08:31:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GYPoWxwf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157197-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C7382289B4F for ; Wed, 24 Apr 2024 15:31:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3265416D4E7; Wed, 24 Apr 2024 15:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GYPoWxwf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5C9416079C; Wed, 24 Apr 2024 15:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972571; cv=none; b=cn6g6fFTwh0sBwqlVRouKWQod4kg1MkbhrSpSqr78tONXf9lSOwv7wP/hhzZ1UxYrFE8GDr99l2dp1pZ2I6IJzEgRc4kZHfda0kygC8eM7hggduwreLg/2AumhVlx35TWQxaUDXvbFuXf+jiKGIEMWYVzKVcllPTy7/KmqNW23g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972571; c=relaxed/simple; bh=MGDeJja2K+2Fy6iZ3UVl+kKOjkN4yNTXYCSocCHEyOQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uMsOdIXy6YWYbnZQj/dFFlq7TwIl6k20Jg0Q+eFtUKyk9NL/5ED/1inkGGg7Djruv/4MrIpiu3XfUUzimyUCrbCqYnVGMMvaa5joJHgAtPLUaFO3Kdl1Syg7inaN5brJjMwpEwlrpXDkSSMy2YbWeTPkvJrBLN9hCInPdhJeBP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GYPoWxwf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 67AD8C4AF17; Wed, 24 Apr 2024 15:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713972570; bh=MGDeJja2K+2Fy6iZ3UVl+kKOjkN4yNTXYCSocCHEyOQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=GYPoWxwfjWjBIZqzfXah+R1y39jKPnpmgHVSmpHgQifk+qjwnYgCpBFPlPGt2nvTZ yOP8czmAe6Ekh9WqewODZb1M6L4f+kw5gmp0iyzj2H1AXA51HXvZEGiLGLPN2xtj4p h30KMOmlSSPNj9+OGxCkneF0aVrSbrCax2cuHfMlwbidwwoifu6NZeg9hUAP7eZhnA u8DHvPSf2/ahiIkwK+avKByRKRa+3sQwBiF9EaIrX+eqOfavFVtZ50VnIgHs3L9QM6 2lqXRQCjM1YFG822lBgQ/IOoavFcEhLNNCTXp1HtMwPH65235fe1ExwnsCCQX5RqHU al3ziHloshvWg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E454C19F4F; Wed, 24 Apr 2024 15:29:30 +0000 (UTC) From: Xilin Wu via B4 Relay Date: Wed, 24 Apr 2024 23:29:10 +0800 Subject: [PATCH 05/10] arm64: dts: qcom: pmk8550: Add PWM controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240424-ayn-odin2-initial-v1-5-e0aa05c991fd@gmail.com> References: <20240424-ayn-odin2-initial-v1-0-e0aa05c991fd@gmail.com> In-Reply-To: <20240424-ayn-odin2-initial-v1-0-e0aa05c991fd@gmail.com> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Junhao Xie , Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Bjorn Andersson , Konrad Dybcio , Tengfei Fan , Molly Sophia , Junhao Xie Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Xilin Wu X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713972563; l=805; i=wuxilin123@gmail.com; s=20240424; h=from:subject:message-id; bh=UJJkbMFALeVJntjJ0F6Zy3BxeVdQ8NMCNMFJYC7Boyk=; b=CxOiSooLXVMHGp39j8/B3jelCeqziYdEj46802PdgC+psrDtPoDZNIW6D7J2ub0wVyd5OYEUV APrmVMQwclPD0ASCtCxD40Y4LrcBZeQAkA1iUSRraJ92DVQL/c3QGGk X-Developer-Key: i=wuxilin123@gmail.com; a=ed25519; pk=vPnxeJnlD/PfEbyQPZzaay5ezxI/lMrke7qXy31lSM8= X-Endpoint-Received: by B4 Relay for wuxilin123@gmail.com/20240424 with auth_id=157 X-Original-From: Xilin Wu Reply-To: wuxilin123@gmail.com From: Xilin Wu Add the PWM function to the pmk8550 dtsi, which is usually used to control PWM backlight on platforms using this PMIC. Signed-off-by: Xilin Wu --- arch/arm64/boot/dts/qcom/pmk8550.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmk8550.dtsi b/arch/arm64/boot/dts/qcom/pmk8550.dtsi index c7ac9b2eaacf..8d43fbb85263 100644 --- a/arch/arm64/boot/dts/qcom/pmk8550.dtsi +++ b/arch/arm64/boot/dts/qcom/pmk8550.dtsi @@ -73,5 +73,15 @@ pmk8550_gpios: gpio@8800 { interrupt-controller; #interrupt-cells = <2>; }; + + pmk8550_pwm: pwm { + compatible = "qcom,pmk8550-pwm"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; }; }; -- 2.44.0