Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: allwinner: pinephone: Use generic sensor node names

Instead of duplicating part of the compatible string in the node name,
use generic names as recommended by (and listed in) section 2.2.2 of the
Devicetree Specification.

Suggested-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20201106032055.51530-1-samuel@sholland.org

authored by

Samuel Holland and committed by
Maxime Ripard
030eea2a da42b98d

+3 -3
+3 -3
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
··· 161 161 status = "okay"; 162 162 163 163 /* Magnetometer */ 164 - lis3mdl: lis3mdl@1e { 164 + lis3mdl: magnetometer@1e { 165 165 compatible = "st,lis3mdl-magn"; 166 166 reg = <0x1e>; 167 167 vdd-supply = <&reg_dldo1>; ··· 169 169 }; 170 170 171 171 /* Light/proximity sensor */ 172 - stk3311@48 { 172 + light-sensor@48 { 173 173 compatible = "sensortek,stk3311"; 174 174 reg = <0x48>; 175 175 interrupt-parent = <&pio>; ··· 179 179 }; 180 180 181 181 /* Accelerometer/gyroscope */ 182 - mpu6050@68 { 182 + accelerometer@68 { 183 183 compatible = "invensense,mpu6050"; 184 184 reg = <0x68>; 185 185 interrupt-parent = <&pio>;