arm64: dts: allwinner: a64-amarula-relic: Add STLM75 sensor
Subsystems (2)
PATCH 1/1 arm64: dts: allwinner: a64-amarula-relic: Add STLM75 sensor
Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog.
Add support for it.
---
Note: the respective driver change is already in mainline
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2e9a41bbc1079776dabe42ed8113b086b99ae56c
.../dts/allwinner/sun50i-a64-amarula-relic.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +15 -0
@@ -34,6 +34,21 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + temp@48 { + compatible = "st,stlm75"; + reg = <0x48>; + }; +}; + +&i2c0_pins { + bias-pull-up; +}; + &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>;
Signature · 1 line
2.18.0.321.gffc6fa0e3
Quoted 18 lines · Jagan Teki
Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Note: the respective driver change is already in mainline
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2e9a41bbc1079776dabe42ed8113b086b99ae56c.../dts/allwinner/sun50i-a64-amarula-relic.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +0
-0
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 42
Quoted 9 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +6
-0@@ -34,6 +34,21 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + temp@48 {
That would be sensor@48
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 43
Quoted 1 line
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +1
-0+ compatible = "st,stlm75";
That compatible isn't documented.
The rest looks good, thanks!
Maxime
Signature · 3 lines
Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 32 lines · Maxime Ripard
Quoted 18 lines · Jagan Teki
Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Note: the respective driver change is already in mainline
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2e9a41bbc1079776dabe42ed8113b086b99ae56c.../dts/allwinner/sun50i-a64-amarula-relic.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +0
-0arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 42
Quoted 9 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +6
-0@@ -34,6 +34,21 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + temp@48 {That would be sensor@48
Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 43
Quoted 1 line
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +1
-0+ compatible = "st,stlm75";That compatible isn't documented.
True, but none of the compatible strings used on the driver doesn't documented in binding instead there are documented in Documentation/hwmon/lm75.
Don't know the exact reason, do we need to document this in binding as well?
Quoted 33 lines · Jagan Teki
Quoted 32 lines · Maxime Ripard
Quoted 18 lines · Jagan Teki
Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Note: the respective driver change is already in mainline
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2e9a41bbc1079776dabe42ed8113b086b99ae56c.../dts/allwinner/sun50i-a64-amarula-relic.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +0
-0arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 42
Quoted 9 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +6
-0@@ -34,6 +34,21 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + temp@48 {That would be sensor@48
Quoted 7 lines
Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts line 43
Quoted 1 line
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +1
-0+ compatible = "st,stlm75";That compatible isn't documented.
True, but none of the compatible strings used on the driver doesn't documented in binding instead there are documented in
Documentation/hwmon/lm75.
It doesn't look like a DT binding documentation.
Quoted 2 lines
Don't know the exact reason, do we need to document this in binding as well?
Yep
Maxime
Signature · 3 lines
Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com