Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp928204rwn; Thu, 8 Sep 2022 10:38:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Sva863oe1b+ZB9n5An73w4l8dUyYiBaMZjMimMnY6my2qlD4m4WuWRuud6eAnO4kwMMUg X-Received: by 2002:a17:90b:17ce:b0:1fb:3b43:f6f8 with SMTP id me14-20020a17090b17ce00b001fb3b43f6f8mr5466429pjb.76.1662658714428; Thu, 08 Sep 2022 10:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662658714; cv=none; d=google.com; s=arc-20160816; b=nlJENarDl9cn7LPsiC2cJxmfs5YJTeZuxrOfakll7XpBH3gOZrW3bSGgGh0hkH1xXt Z4XlMRJNs/MXGTWCwj4InMtAh76unEww4sxzoc+NwvKKDRVqOspVr98l7MF/b80V2/a5 KLl3phastyA8w1Bok0EGNsbR/KY3NXRGYzF74d5728GlRjwxDAzEjdwSCny80ftU/9Hr DvrC2v60z6jZEyGULRux7sK8MKSsqZn6kXQABoUFn2QICOpJ9yXvjK7yc/2U+KAOPCJi kfc8ZcWVZ/aoBE9YKC+vJpldFRcmQG+8S1m9idQ2PL+KopqXqM626v3odgdSmNy13twh eJvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nkcNh7k32e9rmFUZ8U0gyDoAHZ0+KNpS49Bv3ZYgwjw=; b=ns2N7UD7s5PmecdmMWY8/WJzoPMG5cxfxJI4FJTyqrzihEvagk9eo2yoK/2JCRvgG/ F0xKhvpHoQbKQYdh1/ehOss502suGraBn0FNJJdujlYZ/tgpp8sTiEzLq8X8nA4OS8sj gvX2VbDiX6MNiPDWUFZ08Us7bfYfG1xt1lU1EPP2RyKq2X4V70f8yAmGtZ6q8Q3yNw8o QPn2tnFmFlm7e0JoCK9a9dqJ/DMv5mCMDsQIYCeqoxnZXlwvQXOTWbst9cwNQzLtVAaC DnBmypkAhj/LDeShO89NdsJU9gzoxNhgVM9/SONO8D4U0cMy8CDVeuQcdhJDl1zMR4ZY +lpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="W4yZZ88/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a170902ce8200b00175284c8e9dsi13990276plg.199.2022.09.08.10.38.23; Thu, 08 Sep 2022 10:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="W4yZZ88/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231773AbiIHRMJ (ORCPT + 99 others); Thu, 8 Sep 2022 13:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231752AbiIHRME (ORCPT ); Thu, 8 Sep 2022 13:12:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC1913F87; Thu, 8 Sep 2022 10:12:03 -0700 (PDT) Received: from notapiano.myfiosgateway.com (unknown [70.107.189.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id A9D7D6601FAB; Thu, 8 Sep 2022 18:12:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1662657122; bh=rOUGO4cGjU8jRBffaVEnBvlEo3ADSgzcmPqVWtblivg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W4yZZ88/tyH+Mtz54J7dUPKtAaHu9sulHCvGhJW0XceEyf8xM1bOtseUPo5hgcJH7 c9D+t/8/oXiBbUIKijjlEigm9H47MnfqvDaxSD/qGlTVe4rrGitDjT6a7OPx6NfmRI wGusqe9oxSjjCkXqhrpMSX0ePdYMSMYhD7LaY5FobGoFrjzLqscx/nJ8Z2wK2Qyyuf I5F9lkBDNROwsJLXm5zWVH4HW/Vtb60zHdchwPRT/rf1LIOd+RSyUKcZmT8PxcgOCQ 0P/AM0UQhCDovEesQEDKNiiwIVN7IqgcUCTWdj1vt6mLj2E/2ftgECTPO8kLtT/ful tPd0UqN3wFyVg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: Chen-Yu Tsai , AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , 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 2/3] arm64: dts: mediatek: asurada: Add display backlight Date: Thu, 8 Sep 2022 13:11:52 -0400 Message-Id: <20220908171153.670762-3-nfraprado@collabora.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220908171153.670762-1-nfraprado@collabora.com> References: <20220908171153.670762-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the display backlight for the Asurada platform. It relies on the display PWM controller, so also enable and configure this component. Signed-off-by: NĂ­colas F. R. A. Prado --- .../boot/dts/mediatek/mt8192-asurada.dtsi | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 1d99e470ea1a..33ef55b6dbe1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -23,6 +23,16 @@ memory@40000000 { reg = <0 0x40000000 0 0x80000000>; }; + backlight_lcd0: backlight-lcd0 { + compatible = "pwm-backlight"; + pwms = <&pwm0 0 500000>; + power-supply = <&ppvar_sys>; + enable-gpios = <&pio 152 0>; + brightness-levels = <0 1023>; + num-interpolated-steps = <1023>; + default-brightness-level = <576>; + }; + pp1000_dpbrdg: regulator-1v0-dpbrdg { compatible = "regulator-fixed"; regulator-name = "pp1000_dpbrdg"; @@ -840,6 +850,17 @@ pins-pcie-en-pp3300-wlan { }; }; + pwm0_pins: pwm0-default-pins { + pins-pwm { + pinmux = ; + }; + + pins-inhibit { + pinmux = ; + output-high; + }; + }; + scp_pins: scp-pins { pins-vreq-vao { pinmux = ; @@ -901,6 +922,13 @@ &pmic { interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>; }; +&pwm0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins>; +}; + &scp { status = "okay"; -- 2.37.3