// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) #include "../../../arm64/boot/dts/qcom/Fritz_Box_HW277.dts" / { model = "AVM FRITZ!Box 6860 5G"; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "277"; subrevision = "2"; }; spi_gpio: spi-gpio { compatible = "spi-gpio"; status = "okay"; pinctrl-0 = <&bb_spi_pins>; pinctrl-names = "default"; #address-cells = <1>; #size-cells = <0>; gpio-sck = <&tlmm 13 GPIO_ACTIVE_HIGH>; gpio-mosi = <&tlmm 37 GPIO_ACTIVE_HIGH>; num-chipselects = <0>; avm-hui-lc882x@0 { compatible = "avm,hui-generic-lc882x"; spi-max-frequency = <400000>; reg = <0>; box-power { brightness-range = <25>, <127>; index = <4>; dimmable; }; box-wlan-connect { brightness-range = <25>, <127>; index = <3>; dimmable; }; rssi1 { brightness-range = <25>, <127>; index = <2>; led-type = "lte-rssi_6860"; dimmable; location = <3>; }; rssi2 { brightness-range = <25>, <127>; index = <1>; led-type = "lte-rssi_6860"; dimmable; location = <4>; }; rssi3 { brightness-range = <25>, <127>; index = <0>; led-type = "lte-rssi_6860"; dimmable; location = <5>; }; }; }; wwan { pinctrl-names = "default"; compatible = "avm,wwan", "avm,gpio-aggregator"; gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>, <&tlmm 1 GPIO_ACTIVE_HIGH>, <&tlmm 39 GPIO_ACTIVE_HIGH>, <&tlmm 10 GPIO_ACTIVE_HIGH>; gpio-line-names = "wwan_reset", "wwan_disable", "wwan_power", "wwan_vctrl"; }; avm-hui { compatible = "avm,hui"; pinctrl-names = "default"; status = "ok"; // The LED on this HWSubRev has a // special byteorder for the colors. // So we have to swap the byteorder here. colors { // r b g normal = <0x40>, <0x00>, <0x8C>; warn = <0x8C>, <0x00>, <0x46>; error = <0x8C>, <0x00>, <0x00>; info = <0x8C>, <0x8C>, <0x8C>; blue = <0x96>, <0xFF>, <0x96>; yellow = <0xEB>, <0x34>, <0xEB>; }; box-connect { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 46 GPIO_ACTIVE_LOW>; }; }; pmuv8: pmu { compatible = "arm,cortex-a7-pmu"; }; i2c@0 { status="okay"; compatible = "i2c-gpio"; gpios = <&tlmm 45 GPIO_ACTIVE_HIGH &tlmm 36 GPIO_ACTIVE_HIGH>; i2c-gpio,delay-us = <5>; /* ~100 kHz */ #address-cells = <1>; #size-cells = <0>; sht40_0: sht4x@44 { compatible = "sensirion,sht4x"; reg = <0x44>; }; ina236@40 { pinctrl-0 = <&ina2xx_alert_pin>; pinctrl-names = "default"; compatible = "ti,ina236"; reg = <0x40>; shunt-resistor = <15000>; alert-type = <12>; /* bus undervoltage */ alert-limit = <8000>; /* 8V */ interrupts-extended = <&tlmm 1 IRQ_TYPE_EDGE_FALLING>; interrupt-names = "alert"; }; }; }; &tlmm { /* ina2xx alert pin */ ina2xx_alert_pin: ina2xx-alert-pin { pins = "gpio1"; drive-strength = <8>; bias-disable; }; };