ARM: dts: Fix undocumented LM75 compatible nodes

"lm75" without any vendor is undocumented. It works with the Linux
kernel since the I2C subsystem will do matches of the compatible string
without a vendor prefix to the i2c_device_id and/or driver name.

Mostly replace "lm75" with "national,lm75" as that's the original part
vendor and the compatible which matches what "lm75" matched with. In a
couple of cases the node name or compatible gives a clue to the actual
part and vendor and a more specific compatible can be used. In these
cases, it does change the variant the kernel picks.

"nct75" is an OnSemi part which is compatible with TI TMP75C based on
a comparison of the OnSemi NCT75 datasheet and configuration the Linux
driver uses. Adding an OnSemi compatible would be an ABI change.

"nxp,lm75" is most likely an NXP part. Alexander Stein says the i.MX53
boards are a NXP LM75A as well. NXP makes a LM75A and LM75B. Both are
11-bit resolution and 100ms sample time. The "national,lm75a" is
9-bit, so "national,lm75b" is the closest match for both NXP variants.

While we're here, fix the node names to use the generic name
"temperature-sensor".

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com> # am335x-nano.dts
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com> # imx53-mba53.dts, imx53-tqma53.dtsi
Link: https://lore.kernel.org/r/20240816164717.1585629-1-robh@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Rob Herring 2024-08-16 10:47:14 -06:00 committed by Arnd Bergmann
parent 828b70ea7f
commit ef1e32cb63
No known key found for this signature in database
GPG Key ID: 60AB47FFC9095227
11 changed files with 36 additions and 36 deletions

View File

@ -201,7 +201,7 @@ eeprom@54 {
&i2c12 {
status = "okay";
temperature-sensor@4f {
compatible = "lm75";
compatible = "national,lm75";
reg = <0x4f>;
};
};

View File

@ -130,8 +130,8 @@ gpio: pca9557@1f {
#gpio-cells = <2>;
};
temp: lm75@48 {
compatible = "lm75";
temp: temperature-sensor@48 {
compatible = "national,lm75";
reg = <0x48>;
};

View File

@ -423,14 +423,14 @@ &i2c0 {
status = "okay";
/* U26 temperature sensor placed near SoC */
temp1: nct75@4c {
compatible = "lm75";
temp1: temperature-sensor@4c {
compatible = "ti,tmp75c";
reg = <0x4c>;
};
/* U27 temperature sensor placed near RTC battery */
temp2: nct75@4d {
compatible = "lm75";
temp2: temperature-sensor@4d {
compatible = "ti,tmp75c";
reg = <0x4d>;
};

View File

@ -531,8 +531,8 @@ i2c@4 {
reg = <4>;
// INLET1_T
lm75@5c {
compatible = "ti,lm75";
temperature-sensor@5c {
compatible = "national,lm75";
reg = <0x5c>;
};
};
@ -543,8 +543,8 @@ i2c@5 {
reg = <5>;
// OUTLET1_T
lm75@5c {
compatible = "ti,lm75";
temperature-sensor@5c {
compatible = "national,lm75";
reg = <0x5c>;
};
};
@ -555,8 +555,8 @@ i2c@6 {
reg = <6>;
// OUTLET2_T
lm75@5c {
compatible = "ti,lm75";
temperature-sensor@5c {
compatible = "national,lm75";
reg = <0x5c>;
};
};
@ -567,8 +567,8 @@ i2c@7 {
reg = <7>;
// OUTLET3_T
lm75@5c {
compatible = "ti,lm75";
temperature-sensor@5c {
compatible = "national,lm75";
reg = <0x5c>;
};
};
@ -697,8 +697,8 @@ i2c@3 {
reg = <3>;
// M2_ZONE_T
lm75@28 {
compatible = "ti,lm75";
temperature-sensor@28 {
compatible = "national,lm75";
reg = <0x28>;
};
};
@ -709,8 +709,8 @@ i2c@4 {
reg = <4>;
// BATT_ZONE_T
lm75@29 {
compatible = "ti,lm75";
temperature-sensor@29 {
compatible = "national,lm75";
reg = <0x29>;
};
};
@ -721,8 +721,8 @@ i2c@5 {
reg = <5>;
// NBM1_ZONE_T
lm75@28 {
compatible = "ti,lm75";
temperature-sensor@28 {
compatible = "national,lm75";
reg = <0x28>;
};
};
@ -732,8 +732,8 @@ i2c@6 {
reg = <6>;
// NBM2_ZONE_T
lm75@29 {
compatible = "ti,lm75";
temperature-sensor@29 {
compatible = "national,lm75";
reg = <0x29>;
};
};

View File

@ -198,7 +198,7 @@ &i2c0 {
clock-frequency = <100000>;
status = "okay";
lm75@48 {
compatible = "lm75";
compatible = "national,lm75";
reg = <0x48>;
status = "okay";
};
@ -208,8 +208,8 @@ lm75@48 {
&i2c1 {
clock-frequency = <100000>;
status = "okay";
lm75@48 {
compatible = "lm75";
temperature-sensor@48 {
compatible = "national,lm75";
reg = <0x48>;
status = "okay";
};

View File

@ -175,8 +175,8 @@ expander: pca9554@20 {
gpio-controller;
};
sensor2: lm75@49 {
compatible = "lm75";
sensor2: temperature-sensor@49 {
compatible = "national,lm75b";
reg = <0x49>;
};
};

View File

@ -254,8 +254,8 @@ pmic: mc34708@8 {
interrupts = <6 4>; /* PATA_DATA6, active high */
};
sensor1: lm75@48 {
compatible = "lm75";
sensor1: temperature-sensor@48 {
compatible = "national,lm75b";
reg = <0x48>;
};

View File

@ -482,8 +482,8 @@ mma7455@1d {
reg = <0x1d>;
};
lm75@48 {
compatible = "nxp,lm75";
temperature-sensor@48 {
compatible = "national,lm75b";
reg = <0x48>;
};

View File

@ -511,7 +511,7 @@ &i2c1 {
clock-frequency = <400000>;
sensor@49 {
compatible = "lm75";
compatible = "national,lm75";
reg = <0x49>;
};

View File

@ -231,7 +231,7 @@ tps: tps@24 {
};
temperature-sensor@48 {
compatible = "lm75";
compatible = "national,lm75";
reg = <0x48>;
};

View File

@ -97,9 +97,9 @@ &i2c0 {
status = "okay";
clock-frequency = <400000>;
stlm75@49 {
temperature-sensor@49 {
status = "okay";
compatible = "lm75";
compatible = "st,stlm75";
reg = <0x49>;
};