Skip to content

Commit

Permalink
Merge pull request radxa-pkg#291 from Ken-Vamrs/main
Browse files Browse the repository at this point in the history
update rk3588-pwm1-m2 compatible and rock 5b+ display brightness-levels
  • Loading branch information
RadxaYuntian authored Apr 10, 2024
2 parents 888dc08 + 9fe0b55 commit bbab7c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-pwm1-m2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable PWM1-M2";
compatible = "radxa,rock-5a", "radxa,rock-5b-plus", "radxa,rock-5c";
compatible = "radxa,rock-5a", "radxa,rock-5c";
category = "misc";
exclusive = "GPIO1_A3";
description = "Enable PWM1-M2.\nOn Radxa ROCK 5A this is pin 24.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/pwm/pwm.h>

/ {
metadata {
Expand Down Expand Up @@ -35,7 +36,7 @@
dsi1_backlight: dsi1-backlight {
status = "okay";
compatible = "pwm-backlight";
pwms = <&pwm2 0 25000 0>;
pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>;
brightness-levels = <
0 20 20 21 21 22 22 23
23 24 24 25 25 26 26 27
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/pwm/pwm.h>

/ {
metadata {
Expand Down Expand Up @@ -33,7 +34,7 @@
dsi1_backlight: dsi1-backlight {
status = "okay";
compatible = "pwm-backlight";
pwms = <&pwm2 0 25000 0>;
pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>;
brightness-levels = <
0 20 20 21 21 22 22 23
23 24 24 25 25 26 26 27
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/pwm/pwm.h>

/ {
metadata {
Expand Down Expand Up @@ -33,7 +34,7 @@
dsi1_backlight: dsi1-backlight {
status = "okay";
compatible = "pwm-backlight";
pwms = <&pwm2 0 25000 0>;
pwms = <&pwm2 0 25000 PWM_POLARITY_INVERTED>;
brightness-levels = <
0 20 20 21 21 22 22 23
23 24 24 25 25 26 26 27
Expand Down

0 comments on commit bbab7c9

Please sign in to comment.