]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Adapt to differences between Orange Pi 5 Max and Ultra
authorJimmy Hon <honyuenkwun@gmail.com>
Sat, 22 Feb 2025 19:33:28 +0000 (13:33 -0600)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 27 Feb 2025 13:36:06 +0000 (14:36 +0100)
The Orange Pi 5 Plus and Orange Pi 5 Max have 2SK3018s attached to the
PWM LEDs. The Orange Pi 5 Ultra does not, and thus needs the PWM
polarity inverted.

Also remove the model/compatible from the dtsi. It should be at the
board level only.

Fixes: c600d252dc52 ("arm64: dts: rockchip: Add Orange Pi 5 Max board")
Signed-off-by: Jimmy Hon <honyuenkwun@gmail.com>
Link: https://lore.kernel.org/r/20250222193332.1761-2-honyuenkwun@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-compact.dtsi
arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts

index 87090cb98020b9c427cec53d8c93faab8f48766e..6e4dcd8fff268632a86fd53af6921108cdf45db2 100644 (file)
@@ -7,9 +7,6 @@
 #include "rk3588-orangepi-5.dtsi"
 
 / {
-       model = "Xunlong Orange Pi 5 Max";
-       compatible = "xunlong,orangepi-5-max", "rockchip,rk3588";
-
        vcc5v0_usb30_otg: vcc5v0-usb30-otg-regulator {
                compatible = "regulator-fixed";
                enable-active-high;
 
 &led_blue_pwm {
        /* PWM_LED1 */
-       pwms = <&pwm4 0 25000 0>;
        status = "okay";
 };
 
-&led_green_pwm {
-       /* PWM_LED2 */
-       pwms = <&pwm5 0 25000 0>;
-};
-
 /* phy2 */
 &pcie2x1l1 {
        reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
index 26421ca7843b65be57b4c1491c3c3bf066ead332..be8cc96b530819b2607402eac3938a84b5669882 100644 (file)
        status = "okay";
 };
 
+&led_blue_pwm {
+       pwms = <&pwm4 0 25000 0>;
+};
+
+&led_green_pwm {
+       pwms = <&pwm5 0 25000 0>;
+};
+
 &pinctrl {
 
        usb {