From patchwork Mon Sep 9 11:14:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13797135 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2C25ECE57A for ; Mon, 9 Sep 2024 14:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=BqZogNJeZuPzleV3WMM0JnDOxG BdMESxgOpn4vayO0dofGwTNy2diOKe9jYwu/L9dfT8tDGKtwz8Pnl6ay2cV35v0Wdk/ysaAWYbcZd gg1NEqHwgtyP9lDcLx42/zWdSQ1NLq1LVPs/XjdYK8m9vPFmZ+8zdWT+sQKS0uPhMhfZC3z2PCnkI UfAKWj0f5fdhWMuaN2kNFT6d3vNlxHLl1OdJynsqFYyGtnNvRnv45VLFBn6DX22fzHYlVr+Ak9TtD qH/7dX2JTOPmDUPDt8CyAM1h+ZM38yqnSG2aebmaHgIc9Sen8/tbf4I4+1d/6Awwif75cHQtNIX3/ nppYijJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewI-00000002B4a-1heq; Mon, 09 Sep 2024 14:00:22 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPM-00000001dJJ-222V for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:13 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-205909afad3so41104545ad.2 for ; Mon, 09 Sep 2024 04:18:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880691; x=1726485491; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=JNVXSCTmx3q7DsEZbs2Y0KM+18PLSrQ76QzUzZUvz8skCT87onf9pGahvm9QqNNYhM k6d6ouhv/9lPl4yc5AVS4gFNOm8NwDgB26vwDBNwGJ8KjyEeXxOG/3TjW4ibfVXTs84P IluMumfJjTPkg2/NPbcj7EX4tbzlcohZbN4zQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880691; x=1726485491; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=vlO0a+X8V+tJ+2M75XBK4KXlUrDVrgrw5/ZwOYpQXJ6rIom6/Ad11JAED9yC9iNx3a LtU6KXUwfZD/S1nHCxw1XM8RmwIoiHhCxeWhlt5q96pjmihHXqcXK+mKAH/JXqABruus f8k+SwDEAcFYpkPzRhrUlPGl0G5Up7AarrE9PCLhIWycTTISHQPl1IY7p2SkLZamgmv/ K3fvzo1cPZK9CcBC4eAg1s0E4T5zdthDlK0n27OVoOrcc94RpYBc97nIMK9Tfr+X3IUM 9vE63dsG25kwW3jBCKUEcd1tu6P2DR2CrDWN0vNus1wD6zmA1UQmw0FSfxUeZg/Oi4B6 bAyw== X-Forwarded-Encrypted: i=1; AJvYcCUzW9QUkfzpcV+sCXF1BFP353rBCJqGnzKXCf5p1XyNSUaGwSmqhWtY7aBdfzhBipVZle8uMjIc2vRz5eNPckE6@lists.infradead.org X-Gm-Message-State: AOJu0Ywrgwtvsm/i8PQbA6mU1UUvdJunCiIJ6ifx6d8s+d7cV6kqU5TV 9mZisQa50jBR7ea+/+LCSVjDROOLoaqmBFsfR8fHZoXP3s/7d6Ld0naig8eRZg== X-Google-Smtp-Source: AGHT+IHyDTzsdvKTYHYCRsjLXJj55VMYefAZZ1kao3wEu5P8Vpo/msMT/FaZZWK8Pig44zwKxNmXAQ== X-Received: by 2002:a17:903:244d:b0:203:a20d:5857 with SMTP id d9443c01a7336-2070a3c3a13mr73134925ad.5.1725880691452; Mon, 09 Sep 2024 04:18:11 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:10 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 09/13] arm64: dts: mediatek: mt8188: Add PWM nodes for display backlight Date: Mon, 9 Sep 2024 19:14:22 +0800 Message-ID: <20240909111535.528624-10-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041812_606153_51F859D9 X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add two hardware PWM nodes for display backlight usage on MT8188 SoC, and mark them as disabled by default. Boards can enable the necessary PWM node as needed. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 7e3a90c1a173..4593bc1fb5b7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1425,6 +1425,28 @@ lvts_ap: thermal-sensor@1100b000 { #thermal-sensor-cells = <1>; }; + disp_pwm0: pwm@1100e000 { + compatible = "mediatek,mt8188-disp-pwm", "mediatek,mt8183-disp-pwm"; + reg = <0 0x1100e000 0 0x1000>; + clocks = <&topckgen CLK_TOP_DISP_PWM0>, + <&infracfg_ao CLK_INFRA_AO_DISP_PWM>; + clock-names = "main", "mm"; + interrupts = ; + #pwm-cells = <2>; + status = "disabled"; + }; + + disp_pwm1: pwm@1100f000 { + compatible = "mediatek,mt8188-disp-pwm", "mediatek,mt8183-disp-pwm"; + reg = <0 0x1100f000 0 0x1000>; + clocks = <&topckgen CLK_TOP_DISP_PWM1>, + <&infracfg_ao CLK_INFRA_AO_DISP_PWM1>; + clock-names = "main", "mm"; + interrupts = ; + #pwm-cells = <2>; + status = "disabled"; + }; + spi1: spi@11010000 { compatible = "mediatek,mt8188-spi-ipm", "mediatek,spi-ipm"; #address-cells = <1>;