From patchwork Wed Sep 11 10:51:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800234 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 42B46EE4991 for ; Wed, 11 Sep 2024 11:05:49 +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=VjEfjad5gaHh9yR5Z7gt+sOiMhf7ln7vUbnINutcJ9U=; b=VGZeIN6MjvfqynLOwwfpClIuS5 Fa6zR4w6nL4+2d75yJ1FRU1raCNrOmSqcreU7DWSCnZ3b+z+yGHWIYcW4HrxWxnPSIoXNq1Ws5YVO oUM6eYzvrEm5l6B8V48PyZRa4j9y/6jMlgqyhT42cVyeYlXQPe5lE6fn/Y9roS62a3f51yecfxfVu 5sHxJtN2Ss/bwDRLYQ6CGFqgYIJXPbgrYSvRkFK2ZwyZdpHyciGBOuDfVBCDBNbpWTDrTjTRM/QlS zs+dcKhRb9u8fN9Zkqjfj+XFVJXYncg5UQ3QYfqmdlldP//PVTrxwPVXSjEZ3FqwkxqCp08aiSbV8 PgjaWWSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soLAI-00000009Dsd-1jI3; Wed, 11 Sep 2024 11:05:38 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxN-00000009Awi-24qr for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 10:52:18 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1fee6435a34so16300035ad.0 for ; Wed, 11 Sep 2024 03:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051936; x=1726656736; 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=VjEfjad5gaHh9yR5Z7gt+sOiMhf7ln7vUbnINutcJ9U=; b=fLefkuBAvHDaMZ36Cr68RFMPIsgUVmPHZjq8J9/4Y+fjwol2tFKcNRgGer5BQfILGr ZzYfBLJXnTMhwgSklUh7Z91rTsmpSHxQNrYID5NylOW0HXtZHK0Gidoxi72x6XKC5Lwu R3ZNcSblmgw1EednO1acb1mWlqvZu5amrjGxE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051936; x=1726656736; 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=VjEfjad5gaHh9yR5Z7gt+sOiMhf7ln7vUbnINutcJ9U=; b=DhQxohvngb8kY9RdPZINgZEGw6okGHev5b49txaOvE6oTP/jzL6et4V14IfN+O5O2V J1gc7/rBnnqYqH27qUZpPMsiQnz/XVDPUYD2b3tnug7S4KRsojKVwa9EPb+iF9KgOHsf dcb8+Ryzbu5zNotJyhhqaLojjsocxDO27rx9ejPk3yyrbrctRaVb7lf1GSxUa2+R9pzs MqhaYnyonxAjZHbpKgtG0UpYwrpFk8ON1pRSyb6JSpuyOBWLkoDZI7u0yP/5Jk9xRYfh ggUmCj+5N332Aerc57Eiq5RdMjcO9Wb5tJdEFDaXCQYKXmqJs3KXaD49+xC1GV4L/npb J3xw== X-Forwarded-Encrypted: i=1; AJvYcCUTWNejRIhUDq4MBSH+BwnhG+kB4JemddYuE2Ky2TBRJkYC/uQ/S+VPYs//C9dy5E4CpFa4IK7EwDMpqU+KR0N9@lists.infradead.org X-Gm-Message-State: AOJu0YzgTS5OrzgEcy8emiINAad01/om9FcECMAisFMqwGKxl/xu7TQ7 W0GXRlvK8vzL+ocwsll9h1V2UVsLUzFveAhmpB5JA/kC1fpecv13EyCWp6Q0Gg== X-Google-Smtp-Source: AGHT+IHlInOKvp4aF9oOmTvOITgeWKC+0zEZ++z77fG527ltX5qYlsAvDX/ku3VjlZ9QpmIaMIkPLQ== X-Received: by 2002:a17:902:d2d1:b0:205:4531:54d with SMTP id d9443c01a7336-207521bbe0fmr39165075ad.30.1726051936144; Wed, 11 Sep 2024 03:52:16 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:15 -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 v2 5/8] arm64: dts: mediatek: mt8188: Add PWM nodes for display backlight Date: Wed, 11 Sep 2024 18:51:10 +0800 Message-ID: <20240911105131.4094027-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_035217_589052_E38DF3EB X-CRM114-Status: GOOD ( 10.47 ) 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 Reviewed-by: AngeloGioacchino Del Regno --- (no changes since v1) 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 f746b89c1ec6..61530f8c5599 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1418,6 +1418,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>;