From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97BE62E92D1 for ; Mon, 20 Oct 2025 08:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760950263; cv=none; b=dbKZkWE9LKT7pU0ex2N3ScM2DhTFobKAJEP9qKmFAyd/xnQsbD6/NoU1SZQ+v92rBkeYOC8I0zoI5/gokDfqlgOlhMWXJ1vvoggtRidJDGs7lFUFBy/Wvo5ZihfPLhHpr8Pkng9qKEpAjvA+jtHSDRaDhvSIbeGJ2+iPhUt3R34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760950263; c=relaxed/simple; bh=mkvZFRcpCPts9hzzqprApnyLhy/tAQUrmcPdgUB3zj4=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=Ty+iJnKsTL5AxBGKqOwy6VPKcJ01uSDbjVRXVlW0zgr634IC5bVLbiq8YtiC5vLRxA3oCbf0NI1oQxPJ+V9hBowjtuNB4uBQhSOdXSBy7cfO4PJ8YFfE3DclpKIKx8sz2y+xYqXBBXEGfxSU9T8BZaRQ8tG2dDCvjVlYRdr0Dkk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PcQTBcr9; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PcQTBcr9" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-42706c3b7cfso1229298f8f.2 for ; Mon, 20 Oct 2025 01:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760950260; x=1761555060; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=2yGmBP/PkMxgu2wwxaNLMOWwQSg0wFQ20D8HmohcvME=; b=PcQTBcr9UwDPggCx/W0mJRfdBQShLH5w5rI0+yAb/J6tYH4OEgpWOOyNsH61aSD5Z+ Vp0AZ17/kRulZs3GlNTinLideC9aCUpqRY/QUOb/MoP516m68vojQgbL3AUrcW2Ll4fB UvAV34C54F5aBNolExOVnDybIoOHLjKRaC9NHDt4xNEd5gYQ4CTrlpZbK5bajx7ZF5tJ KFPEUwb1n0rKONFh6vxBY84yd1hweZGOeP5axbcEdUi1VNreGBLQjVwZ+0Jt8jzqU1NH i9j4kLx72f4DhkuZrI+/FQJo2aF+Xm6I9u8jF70vitRqZrlixpdCW4ASXjWGrHyAqigk qXNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760950260; x=1761555060; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2yGmBP/PkMxgu2wwxaNLMOWwQSg0wFQ20D8HmohcvME=; b=C2hUVmGmxErV6cfTuruFydbE96IyT/iy4bDKC/gE0ekB6GcQUpvivEe0Y4HIWybil6 05GcMlfg/JZk6reJQnXJv8PqnCmQkWD0wJt+rXVegrwnc0aLsaPBat+o7wfOkiTux3IT k4Y75dG1AnADF+Mmyh2zPisewbmmfPgxVQn6BIFXGMKZiCLVHCTXq297Cu1HKVJUC9LA W5E6UtbOzjaMgJ6HTx0C4O+a1pnbbeqMj8BT7yqNKf82JKJa7oHVq9rWB4sd25qPFFm2 XvjIXQ7vA05OktSQMXXntrxUv4iedYr6iDb3ff8jz6lE5YqDzdyW+WrGRLW1HUtmQZQl naJg== X-Forwarded-Encrypted: i=1; AJvYcCWkP2Jn9YH7VFLgJli3erXAHuOaK+eCUARpd7j0LTZYFO2UkCnFujfD+bpFyOFe3cRuKAxEFReT/vbz@vger.kernel.org X-Gm-Message-State: AOJu0YzVZJwhhyZtVNqquSJ09niYudpmpz74UZUXbxFIKu+qU6Cvbd7S p9+cYUgsKXYsbOgGU9IhYoCCwe3YafvJwucLt1tPVIQe8aBOdjCH3YBT X-Gm-Gg: ASbGncsDCyG9bL1UHC2XiqnU6OcC54T4TlOKqvoNZMtO5Q2/vgSh/+T+Gia8Gk2sihW Y7F5L+rQWEN6G6KMBaE2QZk5ddEBxOlY6LCd+lzq1EDRRA73F0OrE1WBRXS747mOarQODmOyJ6N KzpOKyWqbKbDG8YWmabiDIZBcOct09jeD3qyHm8/rQY3FFURXS+KgGQyDHtvv6XNS6WcEjseddm k0ZzyISaVwBOss5Pjeqn9flafv3xH2D0Ni0xSDbZc0ONh/oSnkXgAM1e0XrIMlCK8ncVNhexkY3 2LtgxpA1RX7Qev1b2S+LYFkqvnLBd8xQVU6qEriMxBowFu4d2BvPlR6kd9u0xc0o+HWShhCTeYa JyJa8jS0sft0EvIPs73cx10J8liw70LMDZdyphrPU5hvLaZXhzf3BY2ilTK/yxgoKdmODMmhRnE 64W28+5OTAPion/uZ1E3EXWGNzf1L00012urk38OWffIQTA8z0qw== X-Google-Smtp-Source: AGHT+IEZuzT5Fi6RwZkG3ZCBMeU/nFGgDtAhgLPA7LKZMuxVJQUCCBR14TWol1dcQMMPKI5tWNEmrQ== X-Received: by 2002:a05:6000:1848:b0:428:4354:aa27 with SMTP id ffacd0b85a97d-4284354abc4mr2871879f8f.46.1760950259658; Mon, 20 Oct 2025 01:50:59 -0700 (PDT) Received: from ?IPV6:2001:8f8:183b:9829:50b9:dafe:ddca:3ba4? ([2001:8f8:183b:9829:50b9:dafe:ddca:3ba4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4710f29b559sm104370685e9.8.2025.10.20.01.50.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Oct 2025 01:50:59 -0700 (PDT) Message-ID: <748fd61a-31fb-436f-b028-b47807a4860c@gmail.com> Date: Mon, 20 Oct 2025 12:50:58 +0400 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Alexey Charkov Subject: Re: [PATCH] arm64: dts: rockchip: Add DSI LCD display on rk3576-evb1 To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20250925-rk3576-evb1-dsi-v1-1-c76fc3740abc@gmail.com> <5143458.iZASKD2KPV@phil> Content-Language: en-US In-Reply-To: <5143458.iZASKD2KPV@phil> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On Mon, Oct 20, 2025 at 12:31 PM Heiko Stuebner wrote: > > Am Montag, 20. Oktober 2025, 10:19:51 Mitteleuropäische Sommerzeit schrieb Alexey Charkov: > > On Thu, Sep 25, 2025 at 12:38 AM Alexey Charkov wrote: > > > > > > Add support for the Rockchip W552793DBA-V10 LCD+touchscreen assembly which > > > comes physically attached to Rockchip RK3576 EVB1 boards. > > > > > > The display part is driven by the on-chip MIPI DSI controller, and the > > > touchscreen is connected over I2C. > > > > > > Signed-off-by: Alexey Charkov > > > --- > > > Note that backlight support is left out for now, as it depends on PWM > > > support [0] which has not yet been merged. > > > > > > A workaround is simply `gpioset -c 0 13=1` to set the respective GPIO > > > pin high and thus to light up the display unconditionally. > > > > > > [0] https://lore.kernel.org/lkml/20250602-rk3576-pwm-v2-0-a6434b0ce60c@collabora.com/ > > > --- > > > arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts | 89 ++++++++++++++++++++++++ > > > 1 file changed, 89 insertions(+) > > > > Hi Heiko, > > > > Any thoughts about this one? Can we perhaps get it merged for -next? > > Does the gpio-backlight work on that device? > That would make the gpioset hack unnecessary. I've got a local patch using pwm-gpio and pwm-backlight as a stop-gap solution, but I don't think it's worth merging upstream, because the backlight is supposed to be driven by the hardware PWM on the same pin (not bit-banging the GPIO line). After all, Nicolas has been working on adding a proper hardware PWM driver for RK3576. The display itself works without PWM support, and so does the touchscreen. My temp patch goes like this: --- arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts index f20cd6f2c079..5c27fff03569 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dts @@ -58,6 +58,14 @@ button-vol-up { }; }; + backlight: backlight { + compatible = "pwm-backlight"; + brightness-levels = <20 220>; + default-brightness-level = <100>; + num-interpolated-steps = <200>; + pwms = <&lcd_bl_pwm 0 25000 0>; + }; + hdmi-con { compatible = "hdmi-connector"; type = "a"; @@ -78,6 +86,12 @@ work_led: led-0 { }; }; + lcd_bl_pwm: pwm { + #pwm-cells = <3>; + compatible = "pwm-gpio"; + gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; + }; + vbus5v0_typec: regulator-vbus5v0-typec { compatible = "regulator-fixed"; regulator-name = "vbus5v0_typec"; @@ -277,6 +291,7 @@ panel@0 { compatible = "wanchanglong,w552793baa", "raydium,rm67200"; reg = <0>; + backlight = <&backlight>; iovcc-supply = <&vcc3v3_lcd_n>; reset-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_LOW>; vdd-supply = <&vcc3v3_lcd_n>; -- Best regards, Alexey