[PATCH] arm64: dts: rockchip: Add a few aliases to the PineTab2 dtsi

Dragan Simic dsimic at manjaro.org
Thu Sep 5 04:32:19 PDT 2024


Sprinkle a few commonly used aliases onto the PineTab2 dtsi file, to improve
its readability a bit, to make it easier to refer to the actual nodes later,
if needed, and to add a bit more detail to some of the labels.

No functional changes are introduced, which was validated by decompiling and
comparing all affected board dtb files before and after these changes.  When
compared with the decompiled original dtb files, some of the phandles in the
updated dtb files have different values, and the updated dtb files contain
some additional phandles and additional symbols that come from the introduced
aliases, but they still effectively remain the same as the originals.

Suggested-by: Diederik de Haas <didi.debian at cknow.org>
Signed-off-by: Dragan Simic <dsimic at manjaro.org>
---

Notes:
    This patch wasn't tested on a PineTab2 before it was submitted to the
    mailing list, because I don't have that device, but Diederik has already
    agreed to test this patch on his PineTab2 and provide feedback.

 arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi
index db40281eafbe..04d98715ae6e 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi
@@ -41,7 +41,7 @@ button-vol-down {
 		};
 	};
 
-	backlight: backlight {
+	backlight: backlight-dsi {
 		compatible = "pwm-backlight";
 		pwms = <&pwm4 0 25000 0>;
 		brightness-levels = <20 220>;
@@ -551,20 +551,20 @@ regulator-state-mem {
 			};
 		};
 
-		charger {
+		rk817_charger: charger {
 			monitored-battery = <&battery>;
 			rockchip,resistor-sense-micro-ohms = <10000>;
 			rockchip,sleep-enter-current-microamp = <300000>;
 			rockchip,sleep-filter-current-microamp = <100000>;
 		};
 	};
 };
 
 &i2c1 {
 	clock-frequency = <400000>;
 	status = "okay";
 
-	touchscreen at 5d {
+	touchscreen: touchscreen at 5d {
 		compatible = "goodix,gt911";
 		reg = <0x5d>;
 		interrupt-parent = <&gpio0>;
@@ -583,13 +583,13 @@ &i2c2 {
 	pinctrl-0 = <&i2c2m1_xfer>;
 	status = "okay";
 
-	vcm at c {
+	vcm: vcm at c {
 		compatible = "dongwoon,dw9714";
 		reg = <0x0c>;
 		vcc-supply = <&vcc1v8_dvp>;
 	};
 
-	camera at 36 {
+	camerab: camera at 36 {
 		compatible = "ovti,ov5648";
 		reg = <0x36>;
 		pinctrl-names = "default";
@@ -619,7 +619,7 @@ &i2c5 {
 	clock-frequency = <400000>;
 	status = "okay";
 
-	accelerometer at 18 {
+	accelerometer: accelerometer at 18 {
 		compatible = "silan,sc7a20";
 		reg = <0x18>;
 		interrupt-parent = <&gpio3>;



More information about the Linux-rockchip mailing list