aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tmn505@gmail.com>2022-06-07 15:58:26 +0200
committerChristian Lamparter <chunkeey@gmail.com>2022-06-24 17:09:53 +0200
commit4cca0947fff08716eb2190795d94072e3126f86b (patch)
tree96e5125c3f1916238aff32eef6ff51e470ccdc41 /target/linux/ath79/dts
parentf614332197b7b09d21007af59a31920198cd4885 (diff)
downloadupstream-4cca0947fff08716eb2190795d94072e3126f86b.tar.gz
upstream-4cca0947fff08716eb2190795d94072e3126f86b.tar.bz2
upstream-4cca0947fff08716eb2190795d94072e3126f86b.zip
ath79: jj76pf2: enable TCN75 sensor
This SBC has Microchip TCN75 sensor, wich measures ambient temperature. Specify it in dts to allow readout by applications using kernel hwmon API. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts b/target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
index 4ee99432d4..8e861bad48 100644
--- a/target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
+++ b/target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts
@@ -32,6 +32,19 @@
clock-frequency = <40000000>;
};
+ i2c {
+ compatible = "i2c-gpio";
+ sda-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+ scl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sensor@48 {
+ compatible = "microchip,tcn75";
+ reg = <0x48>;
+ };
+ };
+
leds {
compatible = "gpio-leds";