From patchwork Wed Sep 11 14:33:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800753 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 E89A3EE49BD for ; Wed, 11 Sep 2024 14:52:03 +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=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=4+xTzoxxNI5H2aMjQEw9mPB/G5 TwIzG8EExCd9GvNY2R+zorVJ+3imaUGTfZBZA7pq/Fyceg8FAYsP4hRzAina8f/B7o9kKV6HZhFMr yoFyW5f2yY6gqpmmMZnAyrCrWQHMnlTQFJnf6SgdUzimexmsHJK2pG4Di0x/P1BgQAadTk1dZeubt DwsUGxS7SsYvjKa+jhiEkcJafTJc1rCsfjiSPhhlvaJZKDeAqru6widvmYnIArPJWmc8PK2vegdPX l7lobccWiScldeaNKB0kmkSMejRNULGfkXxC2+IeeU3mY0h500FO8LquWo7N0auC9B01oWi0tsVZ6 o9bswWMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOhG-0000000A1JP-2yJG; Wed, 11 Sep 2024 14:51:54 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORH-00000009wAM-0gtK for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:24 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-27806115eafso3290767fac.3 for ; Wed, 11 Sep 2024 07:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065322; x=1726670122; 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=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=gvfFu3LHeCcq7VCRrctyO+fZzGaR1jJ8U+xs/3hEl7ABfuAWChDH8s7l+UslvRBib8 6HJqyG3rn8N5lr4KTBodrcmJY+5MVKi0Qv1VdQ4BURlp39hco1V0qesNnpmoEaIN7IBV tzfCs5e8qQBdT2R57WcOS9gNYWMb+ev9vOG5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065322; x=1726670122; 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=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=bgoDsCVJIAIIYfVnt5BSCJNwoWe0KEWWOD+IwYGavQUFxQ87iLAYpfwWLplg1RXgeM RpvspvDnSgQ2fghioxyuNEacggjudZ8L+IkZEWyRKFqXQkBmchHtLl+NOXwzZyYAKYuQ n8mQ6GxZUkvy81lnCdkL/V5OFp6NDpY9KoKiCZvVu8AdvdbEMz7b3p890+u3KwCAW1bE CHICupgbxO2q1L1B9NQyRHaWJg5LGAPMjvBFXv5LZiMtPL03DWu4iCgfWHYQqt1G/kep uGLHsJ1h2ez/bPdBUOGGdhnTWI/OigHiBV4lpRrPzOTWKHCj2yjrcEmcwEdPTy8QrNBb EcOA== X-Forwarded-Encrypted: i=1; AJvYcCVMQzZgRUjOY3+IkqdjuQgdb5fnzde+7JE+4DBrSbB6e8zpCm2bk1aSghJisaFgtFP9crTk70pgKIDSqDAhW1jb@lists.infradead.org X-Gm-Message-State: AOJu0YwLZq7Qmi27fmqLIqCXjWWOjInrQ2FVgBViHYWMWQCe1OzPj/sV ZSFJAMF20MiH6LwmYp21sl6LhsQyjoFwLjq85HbKjFAjVDfUElc/Lms7IBCv7Q== X-Google-Smtp-Source: AGHT+IHDFd+1Qao0x/djh7BnAl9fxiCea616EBUFpEIvtWPidor0dGilr+S0MNN3z9ITAlHbdxzKew== X-Received: by 2002:a05:6870:b28c:b0:278:1c68:9c0b with SMTP id 586e51a60fabf-27b9db07830mr10994291fac.22.1726065321905; Wed, 11 Sep 2024 07:35:21 -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-7db1fbb5901sm46620a12.24.2024.09.11.07.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:21 -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 v3 5/8] arm64: dts: mediatek: mt8188: Add PWM nodes for display backlight Date: Wed, 11 Sep 2024 22:33:58 +0800 Message-ID: <20240911143429.850071-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-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_073523_238963_928ED158 X-CRM114-Status: GOOD ( 10.46 ) 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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (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>;