|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/Makefile linux/arch/arm64/boot/dts/rockchip/Makefile
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/Makefile 2023-05-30 16:56:56.010868963 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/Makefile 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/Makefile 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/Makefile 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -7,7 +7,11 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-ev
|
|
|
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
|
|
|
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
|
|
|
|
@ -14,8 +14,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/Makefile linux/arch/arm64/boo
|
|
|
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb
|
|
|
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2s.dtb
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi linux/arch/arm64/boot/dts/rockchip/px30.dtsi
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi 2023-05-30 16:56:56.022869345 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/px30.dtsi 2023-05-30 19:10:46.414821208 +0000
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/px30.dtsi 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -114,12 +114,6 @@
|
|
|
|
|
compatible = "operating-points-v2";
|
|
|
|
|
opp-shared;
|
|
|
|
@ -173,8 +173,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/px30.dtsi linux/arch/arm64/bo
|
|
|
|
|
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
@@ -0,0 +1,57 @@
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts 2023-08-04 18:50:02.589594754 +0000
|
|
|
|
|
@@ -0,0 +1,58 @@
|
|
|
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright (c) 2019 Hardkernel Co., Ltd
|
|
|
|
@ -221,6 +221,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts li
|
|
|
|
|
+ compatible = "elida,kd35t133";
|
|
|
|
|
+ iovcc-supply = <&vcc_lcd>;
|
|
|
|
|
+ vdd-supply = <&vcc_lcd>;
|
|
|
|
|
+ rotation = <270>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+&pwm0 {
|
|
|
|
@ -232,9 +233,9 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dts li
|
|
|
|
|
+ //rockchip,resistor-sense-micro-ohms = <0>;
|
|
|
|
|
+ monitored-battery = <&battery>;
|
|
|
|
|
+};
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351p.dts linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351p.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351p.dts 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351p.dts 2023-08-04 18:29:32.912721771 +0000
|
|
|
|
|
@@ -0,0 +1,57 @@
|
|
|
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
|
+/*
|
|
|
|
@ -279,7 +280,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts li
|
|
|
|
|
+/delete-node/ &vcc_host; /* conflicts with pwm vibration motor */
|
|
|
|
|
+
|
|
|
|
|
+&internal_display {
|
|
|
|
|
+ compatible = "anbernic,rg353p-panel", "newvision,nv3051d";
|
|
|
|
|
+ compatible = "anbernic,rg351v-panel", "newvision,nv3051d";
|
|
|
|
|
+ iovcc-supply = <&vcc_lcd>;
|
|
|
|
|
+ vdd-supply = <&vcc_lcd>;
|
|
|
|
|
+};
|
|
|
|
@ -293,10 +294,99 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts li
|
|
|
|
|
+ rockchip,resistor-sense-micro-ohms = <0>;
|
|
|
|
|
+ monitored-battery = <&battery>;
|
|
|
|
|
+};
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351v.dts 2023-08-04 19:10:59.622486606 +0000
|
|
|
|
|
@@ -0,0 +1,85 @@
|
|
|
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright (c) 2019 Hardkernel Co., Ltd
|
|
|
|
|
+ * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
|
|
|
|
|
+ * Copyright (c) 2022 Maya Matuszczyk <maccraft123mc@gmail.com>
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+/dts-v1/;
|
|
|
|
|
+#include "rk3326-odroid-go.dtsi"
|
|
|
|
|
+
|
|
|
|
|
+/ {
|
|
|
|
|
+ model = "Anbernic RG351V";
|
|
|
|
|
+ compatible = "anbernic,rg351v", "rockchip,rk3326";
|
|
|
|
|
+
|
|
|
|
|
+ gpio-keys-vol {
|
|
|
|
|
+ compatible = "gpio-keys";
|
|
|
|
|
+ autorepeat;
|
|
|
|
|
+ pinctrl-0 = <&btn_pins_vol>;
|
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
|
+
|
|
|
|
|
+ button-vol-down {
|
|
|
|
|
+ gpios = <&gpio2 RK_PA1 GPIO_ACTIVE_LOW>;
|
|
|
|
|
+ label = "VOLUMEDOWN";
|
|
|
|
|
+ linux,code = <KEY_VOLUMEDOWN>;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ button-volume-up {
|
|
|
|
|
+ gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
|
|
|
|
|
+ label = "VOLUMEUP";
|
|
|
|
|
+ linux,code = <KEY_VOLUMEUP>;
|
|
|
|
|
+ };
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ battery: battery {
|
|
|
|
|
+ compatible = "simple-battery";
|
|
|
|
|
+ charge-full-design-microamp-hours = <3500000>;
|
|
|
|
|
+ charge-term-current-microamp = <350000>;
|
|
|
|
|
+ constant-charge-current-max-microamp = <2000000>;
|
|
|
|
|
+ constant-charge-voltage-max-microvolt = <4200000>;
|
|
|
|
|
+ factory-internal-resistance-micro-ohms = <180000>;
|
|
|
|
|
+ voltage-max-design-microvolt = <4100000>;
|
|
|
|
|
+ voltage-min-design-microvolt = <3500000>;
|
|
|
|
|
+
|
|
|
|
|
+ ocv-capacity-celsius = <20>;
|
|
|
|
|
+ ocv-capacity-table-0 = <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
|
|
|
|
|
+ <3888450 80>, <3861850 75>, <3831540 70>, <3799130 65>,
|
|
|
|
|
+ <3768190 60>, <3745650 55>, <3726610 50>, <3711630 45>,
|
|
|
|
|
+ <3696720 40>, <3685660 35>, <3674950 30>, <3663050 25>,
|
|
|
|
|
+ <3649470 20>, <3635260 15>, <3616920 10>, <3592440 5>,
|
|
|
|
|
+ <3574170 0>;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ vibrator {
|
|
|
|
|
+ compatible = "pwm-vibrator";
|
|
|
|
|
+ pwms = <&pwm0 0 1000000 0>;
|
|
|
|
|
+ pwm-names = "enable";
|
|
|
|
|
+ };
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+/delete-node/ &vcc_host; /* conflicts with pwm vibration motor */
|
|
|
|
|
+
|
|
|
|
|
+&internal_display {
|
|
|
|
|
+ compatible = "anbernic,rg351v-panel", "newvision,nv3051d";
|
|
|
|
|
+ iovcc-supply = <&vcc_lcd>;
|
|
|
|
|
+ vdd-supply = <&vcc_lcd>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+&pwm0 {
|
|
|
|
|
+ status = "okay";
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+&rk817_charger {
|
|
|
|
|
+ /* This device does not have a current sense resistor */
|
|
|
|
|
+ rockchip,resistor-sense-micro-ohms = <0>;
|
|
|
|
|
+ monitored-battery = <&battery>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+&pinctrl {
|
|
|
|
|
+ btns {
|
|
|
|
|
+ btn_pins_vol: btn-pins-vol {
|
|
|
|
|
+ rockchip,pins = <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
|
|
|
+ <2 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
|
|
|
+ };
|
|
|
|
|
+ };
|
|
|
|
|
+};
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
@@ -0,0 +1,567 @@
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi 2023-08-04 18:52:52.277556396 +0000
|
|
|
|
|
@@ -0,0 +1,566 @@
|
|
|
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright (c) 2019 Hardkernel Co., Ltd
|
|
|
|
@ -486,7 +576,6 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi linux/a
|
|
|
|
|
+ reg = <0>;
|
|
|
|
|
+ backlight = <&backlight>;
|
|
|
|
|
+ reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
|
|
|
|
|
+ rotation = <270>;
|
|
|
|
|
+
|
|
|
|
|
+ port {
|
|
|
|
|
+ mipi_in_panel: endpoint {
|
|
|
|
@ -866,8 +955,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi linux/a
|
|
|
|
|
+};
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
@@ -0,0 +1,299 @@
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts 2023-08-04 18:51:03.271015664 +0000
|
|
|
|
|
@@ -0,0 +1,300 @@
|
|
|
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright (c) 2019 Hardkernel Co., Ltd
|
|
|
|
@ -1098,6 +1187,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts lin
|
|
|
|
|
+ compatible = "elida,kd35t133";
|
|
|
|
|
+ iovcc-supply = <&vcc_lcd>;
|
|
|
|
|
+ vdd-supply = <&vcc_lcd>;
|
|
|
|
|
+ rotation = <270>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+&rk817 {
|
|
|
|
@ -1168,8 +1258,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts lin
|
|
|
|
|
+ };
|
|
|
|
|
+};
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2023-05-30 16:56:56.022869345 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts 2023-08-04 18:51:46.908034443 +0000
|
|
|
|
|
@@ -2,55 +2,185 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 Hardkernel Co., Ltd
|
|
|
|
@ -1394,7 +1484,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts linux/a
|
|
|
|
|
|
|
|
|
|
battery: battery {
|
|
|
|
|
compatible = "simple-battery";
|
|
|
|
|
@@ -63,606 +193,42 @@
|
|
|
|
|
@@ -63,606 +193,43 @@
|
|
|
|
|
voltage-min-design-microvolt = <3500000>;
|
|
|
|
|
|
|
|
|
|
ocv-capacity-celsius = <20>;
|
|
|
|
@ -1934,6 +2024,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts linux/a
|
|
|
|
|
+ compatible = "elida,kd35t133";
|
|
|
|
|
+ iovcc-supply = <&vcc_lcd>;
|
|
|
|
|
+ vdd-supply = <&vcc_lcd>;
|
|
|
|
|
+ rotation = <270>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
-&uart2 {
|
|
|
|
@ -2028,8 +2119,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts linux/a
|
|
|
|
|
};
|
|
|
|
|
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts
|
|
|
|
|
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 2023-05-30 17:52:01.798714782 +0000
|
|
|
|
|
@@ -0,0 +1,283 @@
|
|
|
|
|
+++ linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts 2023-08-04 18:52:27.908989606 +0000
|
|
|
|
|
@@ -0,0 +1,284 @@
|
|
|
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright (c) 2019 Hardkernel Co., Ltd
|
|
|
|
@ -2279,6 +2370,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts linux/a
|
|
|
|
|
+ reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
+ IOVCC-supply = <&vcc_lcd>;
|
|
|
|
|
+ VCC-supply = <&vcc_lcd>;
|
|
|
|
|
+ rotation = <270>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+&rk817_charger {
|
|
|
|
@ -2314,8 +2406,8 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts linux/a
|
|
|
|
|
+ };
|
|
|
|
|
+};
|
|
|
|
|
diff -rupN linux.orig/drivers/devfreq/Kconfig linux/drivers/devfreq/Kconfig
|
|
|
|
|
--- linux.orig/drivers/devfreq/Kconfig 2023-05-30 16:57:00.495011796 +0000
|
|
|
|
|
+++ linux/drivers/devfreq/Kconfig 2023-05-30 17:52:02.026721867 +0000
|
|
|
|
|
--- linux.orig/drivers/devfreq/Kconfig 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/devfreq/Kconfig 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -142,6 +142,12 @@ config ARM_RK3399_DMC_DEVFREQ
|
|
|
|
|
It sets the frequency for the memory controller and reads the usage counts
|
|
|
|
|
from hardware.
|
|
|
|
@ -2330,8 +2422,8 @@ diff -rupN linux.orig/drivers/devfreq/Kconfig linux/drivers/devfreq/Kconfig
|
|
|
|
|
tristate "sun8i/sun50i MBUS DEVFREQ Driver"
|
|
|
|
|
depends on ARCH_SUNXI || COMPILE_TEST
|
|
|
|
|
diff -rupN linux.orig/drivers/devfreq/Makefile linux/drivers/devfreq/Makefile
|
|
|
|
|
--- linux.orig/drivers/devfreq/Makefile 2023-05-30 16:57:00.495011796 +0000
|
|
|
|
|
+++ linux/drivers/devfreq/Makefile 2023-05-30 17:52:02.030721991 +0000
|
|
|
|
|
--- linux.orig/drivers/devfreq/Makefile 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/devfreq/Makefile 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -13,6 +13,7 @@ obj-$(CONFIG_ARM_IMX_BUS_DEVFREQ) += imx
|
|
|
|
|
obj-$(CONFIG_ARM_IMX8M_DDRC_DEVFREQ) += imx8m-ddrc.o
|
|
|
|
|
obj-$(CONFIG_ARM_MEDIATEK_CCI_DEVFREQ) += mtk-cci-devfreq.o
|
|
|
|
@ -2342,7 +2434,7 @@ diff -rupN linux.orig/drivers/devfreq/Makefile linux/drivers/devfreq/Makefile
|
|
|
|
|
|
|
|
|
|
diff -rupN linux.orig/drivers/devfreq/rockchip_bus.c linux/drivers/devfreq/rockchip_bus.c
|
|
|
|
|
--- linux.orig/drivers/devfreq/rockchip_bus.c 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/drivers/devfreq/rockchip_bus.c 2023-05-30 17:52:02.030721991 +0000
|
|
|
|
|
+++ linux/drivers/devfreq/rockchip_bus.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -0,0 +1,258 @@
|
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
+/*
|
|
|
|
@ -2603,8 +2695,8 @@ diff -rupN linux.orig/drivers/devfreq/rockchip_bus.c linux/drivers/devfreq/rockc
|
|
|
|
|
+MODULE_AUTHOR("Tony Xie <tony.xie@rock-chips.com>");
|
|
|
|
|
+MODULE_DESCRIPTION("rockchip busfreq driver with devfreq framework");
|
|
|
|
|
diff -rupN linux.orig/drivers/gpu/drm/panel/Kconfig linux/drivers/gpu/drm/panel/Kconfig
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/Kconfig 2023-05-30 16:57:09.483298097 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/Kconfig 2023-05-30 17:52:02.306730568 +0000
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/Kconfig 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/Kconfig 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -296,6 +296,15 @@ config DRM_PANEL_NEC_NL8048HL11
|
|
|
|
|
panel (found on the Zoom2/3/3630 SDP boards). To compile this driver
|
|
|
|
|
as a module, choose M here.
|
|
|
|
@ -2622,8 +2714,8 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/Kconfig linux/drivers/gpu/drm/panel/
|
|
|
|
|
tristate "NewVision NV3052C RGB/SPI panel"
|
|
|
|
|
depends on OF && SPI
|
|
|
|
|
diff -rupN linux.orig/drivers/gpu/drm/panel/Makefile linux/drivers/gpu/drm/panel/Makefile
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/Makefile 2023-05-30 16:57:09.483298097 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/Makefile 2023-05-30 17:52:02.306730568 +0000
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/Makefile 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/Makefile 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -27,6 +27,7 @@ obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1
|
|
|
|
|
obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o
|
|
|
|
|
obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o
|
|
|
|
@ -2633,8 +2725,8 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/Makefile linux/drivers/gpu/drm/panel
|
|
|
|
|
obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.o
|
|
|
|
|
obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35560) += panel-novatek-nt35560.o
|
|
|
|
|
diff -rupN linux.orig/drivers/gpu/drm/panel/panel-elida-kd35t133.c linux/drivers/gpu/drm/panel/panel-elida-kd35t133.c
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/panel-elida-kd35t133.c 2023-05-30 16:57:09.503298734 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/panel-elida-kd35t133.c 2023-05-30 17:52:02.310730693 +0000
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/panel-elida-kd35t133.c 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/panel-elida-kd35t133.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -51,14 +51,6 @@ static inline struct kd35t133 *panel_to_
|
|
|
|
|
return container_of(panel, struct kd35t133, panel);
|
|
|
|
|
}
|
|
|
|
@ -2697,8 +2789,8 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/panel-elida-kd35t133.c linux/drivers
|
|
|
|
|
dev_dbg(dev, "Panel init sequence done\n");
|
|
|
|
|
diff -rupN linux.orig/drivers/gpu/drm/panel/panel-newvision-nv3051d.c linux/drivers/gpu/drm/panel/panel-newvision-nv3051d.c
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/panel-newvision-nv3051d.c 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/panel-newvision-nv3051d.c 2023-05-30 17:52:02.310730693 +0000
|
|
|
|
|
@@ -0,0 +1,504 @@
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/panel-newvision-nv3051d.c 2023-08-04 17:00:13.826040316 +0000
|
|
|
|
|
@@ -0,0 +1,518 @@
|
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
+/*
|
|
|
|
|
+ * NV3051D MIPI-DSI panel driver for Anbernic RG353x
|
|
|
|
@ -2729,6 +2821,7 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/panel-newvision-nv3051d.c linux/driv
|
|
|
|
|
+ unsigned int num_modes;
|
|
|
|
|
+ u16 width_mm, height_mm;
|
|
|
|
|
+ u32 bus_flags;
|
|
|
|
|
+ unsigned long mode_flags;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+struct panel_nv3051d {
|
|
|
|
@ -3086,8 +3179,7 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/panel-newvision-nv3051d.c linux/driv
|
|
|
|
|
+
|
|
|
|
|
+ dsi->lanes = 4;
|
|
|
|
|
+ dsi->format = MIPI_DSI_FMT_RGB888;
|
|
|
|
|
+ dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
|
|
|
|
+ MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET;
|
|
|
|
|
+ dsi->mode_flags = ctx->panel_info->mode_flags;
|
|
|
|
|
+
|
|
|
|
|
+ drm_panel_init(&ctx->panel, &dsi->dev, &panel_nv3051d_funcs,
|
|
|
|
|
+ DRM_MODE_CONNECTOR_DSI);
|
|
|
|
@ -3181,10 +3273,24 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/panel-newvision-nv3051d.c linux/driv
|
|
|
|
|
+ .width_mm = 70,
|
|
|
|
|
+ .height_mm = 57,
|
|
|
|
|
+ .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
|
|
|
|
|
+ .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
|
|
|
|
+ MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+static const struct nv3051d_panel_info nv3051d_rg351v_info = {
|
|
|
|
|
+ .display_modes = nv3051d_rgxx3_modes,
|
|
|
|
|
+ .num_modes = ARRAY_SIZE(nv3051d_rgxx3_modes),
|
|
|
|
|
+ .width_mm = 70,
|
|
|
|
|
+ .height_mm = 57,
|
|
|
|
|
+ .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
|
|
|
|
|
+ .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
|
|
|
|
+ MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET |
|
|
|
|
|
+ MIPI_DSI_CLOCK_NON_CONTINUOUS,
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+static const struct of_device_id newvision_nv3051d_of_match[] = {
|
|
|
|
|
+ { .compatible = "newvision,nv3051d", .data = &nv3051d_rgxx3_info },
|
|
|
|
|
+ { .compatible = "anbernic,rg351v-panel", .data = &nv3051d_rg351v_info },
|
|
|
|
|
+ { /* sentinel */ }
|
|
|
|
|
+};
|
|
|
|
|
+MODULE_DEVICE_TABLE(of, newvision_nv3051d_of_match);
|
|
|
|
@ -3204,8 +3310,8 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/panel-newvision-nv3051d.c linux/driv
|
|
|
|
|
+MODULE_DESCRIPTION("DRM driver for Newvision NV3051D based MIPI DSI panels");
|
|
|
|
|
+MODULE_LICENSE("GPL");
|
|
|
|
|
diff -rupN linux.orig/drivers/gpu/drm/panel/panel-sitronix-st7701.c linux/drivers/gpu/drm/panel/panel-sitronix-st7701.c
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/panel-sitronix-st7701.c 2023-05-30 16:57:09.583301282 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/panel-sitronix-st7701.c 2023-05-30 17:52:02.306730568 +0000
|
|
|
|
|
--- linux.orig/drivers/gpu/drm/panel/panel-sitronix-st7701.c 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/gpu/drm/panel/panel-sitronix-st7701.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -19,6 +19,9 @@
|
|
|
|
|
|
|
|
|
|
/* Command2 BKx selection command */
|
|
|
|
@ -3521,8 +3627,8 @@ diff -rupN linux.orig/drivers/gpu/drm/panel/panel-sitronix-st7701.c linux/driver
|
|
|
|
|
{ }
|
|
|
|
|
};
|
|
|
|
|
diff -rupN linux.orig/drivers/input/Kconfig linux/drivers/input/Kconfig
|
|
|
|
|
--- linux.orig/drivers/input/Kconfig 2023-05-30 16:57:14.555459659 +0000
|
|
|
|
|
+++ linux/drivers/input/Kconfig 2023-05-30 17:52:02.366732433 +0000
|
|
|
|
|
--- linux.orig/drivers/input/Kconfig 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/Kconfig 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -51,6 +51,19 @@ config INPUT_FF_MEMLESS
|
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
|
|
|
module will be called ff-memless.
|
|
|
|
@ -3544,8 +3650,8 @@ diff -rupN linux.orig/drivers/input/Kconfig linux/drivers/input/Kconfig
|
|
|
|
|
tristate "Sparse keymap support library"
|
|
|
|
|
help
|
|
|
|
|
diff -rupN linux.orig/drivers/input/Makefile linux/drivers/input/Makefile
|
|
|
|
|
--- linux.orig/drivers/input/Makefile 2023-05-30 16:57:14.559459786 +0000
|
|
|
|
|
+++ linux/drivers/input/Makefile 2023-05-30 17:52:02.366732433 +0000
|
|
|
|
|
--- linux.orig/drivers/input/Makefile 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/Makefile 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -10,6 +10,7 @@ input-core-y := input.o input-compat.o i
|
|
|
|
|
input-core-y += touchscreen.o
|
|
|
|
|
|
|
|
|
@ -3556,7 +3662,7 @@ diff -rupN linux.orig/drivers/input/Makefile linux/drivers/input/Makefile
|
|
|
|
|
obj-$(CONFIG_INPUT_VIVALDIFMAP) += vivaldi-fmap.o
|
|
|
|
|
diff -rupN linux.orig/drivers/input/input-polldev.c linux/drivers/input/input-polldev.c
|
|
|
|
|
--- linux.orig/drivers/input/input-polldev.c 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/input-polldev.c 2023-05-30 17:52:02.374732681 +0000
|
|
|
|
|
+++ linux/drivers/input/input-polldev.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -0,0 +1,362 @@
|
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
+/*
|
|
|
|
@ -3921,8 +4027,8 @@ diff -rupN linux.orig/drivers/input/input-polldev.c linux/drivers/input/input-po
|
|
|
|
|
+}
|
|
|
|
|
+EXPORT_SYMBOL(input_unregister_polled_device);
|
|
|
|
|
diff -rupN linux.orig/drivers/input/joystick/Kconfig linux/drivers/input/joystick/Kconfig
|
|
|
|
|
--- linux.orig/drivers/input/joystick/Kconfig 2023-05-30 16:57:14.575460296 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/Kconfig 2023-05-30 17:52:02.366732433 +0000
|
|
|
|
|
--- linux.orig/drivers/input/joystick/Kconfig 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/Kconfig 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -400,6 +400,21 @@ config JOYSTICK_N64
|
|
|
|
|
Say Y here if you want enable support for the four
|
|
|
|
|
built-in controller ports on the Nintendo 64 console.
|
|
|
|
@ -3946,8 +4052,8 @@ diff -rupN linux.orig/drivers/input/joystick/Kconfig linux/drivers/input/joystic
|
|
|
|
|
tristate "Raspberry Pi Sense HAT joystick"
|
|
|
|
|
depends on INPUT && I2C
|
|
|
|
|
diff -rupN linux.orig/drivers/input/joystick/Makefile linux/drivers/input/joystick/Makefile
|
|
|
|
|
--- linux.orig/drivers/input/joystick/Makefile 2023-05-30 16:57:14.575460296 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/Makefile 2023-05-30 17:52:02.366732433 +0000
|
|
|
|
|
--- linux.orig/drivers/input/joystick/Makefile 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/Makefile 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -25,6 +25,9 @@ obj-$(CONFIG_JOYSTICK_JOYDUMP) += joydu
|
|
|
|
|
obj-$(CONFIG_JOYSTICK_MAGELLAN) += magellan.o
|
|
|
|
|
obj-$(CONFIG_JOYSTICK_MAPLE) += maplecontrol.o
|
|
|
|
@ -3960,7 +4066,7 @@ diff -rupN linux.orig/drivers/input/joystick/Makefile linux/drivers/input/joysti
|
|
|
|
|
obj-$(CONFIG_JOYSTICK_QWIIC) += qwiic-joystick.o
|
|
|
|
|
diff -rupN linux.orig/drivers/input/joystick/odroidgo2-joypad.c linux/drivers/input/joystick/odroidgo2-joypad.c
|
|
|
|
|
--- linux.orig/drivers/input/joystick/odroidgo2-joypad.c 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/odroidgo2-joypad.c 2023-05-30 17:52:02.370732557 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/odroidgo2-joypad.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -0,0 +1,878 @@
|
|
|
|
|
+/*
|
|
|
|
|
+ * SARADC joystick & GPIO Button driver for Linux(Hardkernel ODROIDGO2-Advance)
|
|
|
|
@ -4842,7 +4948,7 @@ diff -rupN linux.orig/drivers/input/joystick/odroidgo2-joypad.c linux/drivers/in
|
|
|
|
|
+/*----------------------------------------------------------------------------*/
|
|
|
|
|
diff -rupN linux.orig/drivers/input/joystick/odroidgo2-v11-joypad.c linux/drivers/input/joystick/odroidgo2-v11-joypad.c
|
|
|
|
|
--- linux.orig/drivers/input/joystick/odroidgo2-v11-joypad.c 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/odroidgo2-v11-joypad.c 2023-05-30 17:52:02.370732557 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/odroidgo2-v11-joypad.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -0,0 +1,878 @@
|
|
|
|
|
+/*
|
|
|
|
|
+ * SARADC joystick & GPIO Button driver for Linux(Hardkernel ODROIDGO2-Advance)
|
|
|
|
@ -5724,7 +5830,7 @@ diff -rupN linux.orig/drivers/input/joystick/odroidgo2-v11-joypad.c linux/driver
|
|
|
|
|
+/*----------------------------------------------------------------------------*/
|
|
|
|
|
diff -rupN linux.orig/drivers/input/joystick/odroidgo3-joypad.c linux/drivers/input/joystick/odroidgo3-joypad.c
|
|
|
|
|
--- linux.orig/drivers/input/joystick/odroidgo3-joypad.c 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/odroidgo3-joypad.c 2023-05-30 17:52:02.370732557 +0000
|
|
|
|
|
+++ linux/drivers/input/joystick/odroidgo3-joypad.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -0,0 +1,1086 @@
|
|
|
|
|
+/*
|
|
|
|
|
+ * SARADC joystick & GPIO Button driver for Linux(Hardkernel ODROIDGO2-Advance)
|
|
|
|
@ -6813,8 +6919,8 @@ diff -rupN linux.orig/drivers/input/joystick/odroidgo3-joypad.c linux/drivers/in
|
|
|
|
|
+
|
|
|
|
|
+/*----------------------------------------------------------------------------*/
|
|
|
|
|
diff -rupN linux.orig/drivers/power/supply/rk817_charger.c linux/drivers/power/supply/rk817_charger.c
|
|
|
|
|
--- linux.orig/drivers/power/supply/rk817_charger.c 2023-05-30 16:57:27.007856300 +0000
|
|
|
|
|
+++ linux/drivers/power/supply/rk817_charger.c 2023-05-30 17:52:02.642741010 +0000
|
|
|
|
|
--- linux.orig/drivers/power/supply/rk817_charger.c 2023-08-03 08:24:19.000000000 +0000
|
|
|
|
|
+++ linux/drivers/power/supply/rk817_charger.c 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -679,7 +679,7 @@ static enum power_supply_usb_type rk817_
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -6826,7 +6932,7 @@ diff -rupN linux.orig/drivers/power/supply/rk817_charger.c linux/drivers/power/s
|
|
|
|
|
.num_properties = ARRAY_SIZE(rk817_bat_props),
|
|
|
|
|
diff -rupN linux.orig/include/linux/input-polldev.h linux/include/linux/input-polldev.h
|
|
|
|
|
--- linux.orig/include/linux/input-polldev.h 1970-01-01 00:00:00.000000000 +0000
|
|
|
|
|
+++ linux/include/linux/input-polldev.h 2023-05-30 17:52:02.878748343 +0000
|
|
|
|
|
+++ linux/include/linux/input-polldev.h 2023-08-04 16:55:20.877879413 +0000
|
|
|
|
|
@@ -0,0 +1,58 @@
|
|
|
|
|
+/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
+#ifndef _INPUT_POLLDEV_H
|
|
|
|
|