aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-10-06 14:28:07 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-10-07 16:45:10 +0100
commitf38276c9be5e235cb6fbd222e2d86e108f55eb1e (patch)
treeb91db2cb97a1681ef7edc575731e5cdb0e2e3445 /target/linux/mediatek/dts
parent5d921aa72f329f7ff5d975ad769e0e01bf123b6e (diff)
downloadupstream-f38276c9be5e235cb6fbd222e2d86e108f55eb1e.tar.gz
upstream-f38276c9be5e235cb6fbd222e2d86e108f55eb1e.tar.bz2
upstream-f38276c9be5e235cb6fbd222e2d86e108f55eb1e.zip
mediatek: filogic: enable thermal, I2C and PWM of the BPi-R3
Setup thermal zone, select pins and enabled drivers for I2C (on 26-pin GPIO bank) and PWM (1x fan and 1x GPIO bank). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/dts')
-rw-r--r--target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts31
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
index 218fef5cec..37588e2ac4 100644
--- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
+++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3.dts
@@ -351,6 +351,20 @@
};
};
+ i2c0_pins: i2c0-pins {
+ mux {
+ function = "i2c";
+ groups = "i2c";
+ };
+ };
+
+ pwm_pins: pwm-pins {
+ mux {
+ function = "pwm";
+ groups = "pwm0", "pwm1_0";
+ };
+ };
+
wf_led_pins: wf-led-pins {
mux {
function = "led";
@@ -420,6 +434,23 @@
status = "okay";
};
+&i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins>;
+ status = "okay";
+};
+
+&pwm {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm_pins>;
+ status = "okay";
+};
+
+&fan {
+ pwms = <&pwm 0 500000 0>;
+ status = "okay";
+};
+
&wmac {
mediatek,eeprom-data = <0x86790900 0xc4326 0x60000000 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00