// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) #include "../../../arm64/boot/dts/qcom/Fritz_Box_HW265.dts" / { model = "AVM FRITZ! Smart Home Gateway 1"; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "265"; subrevision = "0"; }; avm-hui { compatible = "avm,hui"; pinctrl-0 = <&avm_led_pins>; fsg-connect-rgy { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>, /* connect r */ <&tlmm 17 GPIO_ACTIVE_HIGH>, /* connect g */ <&tlmm 18 GPIO_ACTIVE_HIGH>; /* connect y */ colors { normal = <0x00>, <0xFF>, <0x00>; warn = <0x00>, <0x00>, <0xFF>; error = <0xFF>, <0x00>, <0x00>; }; }; zigbee { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>, /* zigbee r */ <&tlmm 39 GPIO_ACTIVE_HIGH>; /* zigbee g */ colors { normal = <0x00>, <0xFF>, <0x00>; error = <0xFF>, <0x00>, <0x00>; }; }; fsg-wlan { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>, /* wlan r */ <&tlmm 44 GPIO_ACTIVE_HIGH>; /* wlan g */ colors { normal = <0x00>, <0xFF>, <0x00>; error = <0xFF>, <0x00>, <0x00>; }; }; fsg-dect { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>, /* dect r */ <&tlmm 37 GPIO_ACTIVE_HIGH>; /* dect g */ colors { normal = <0x00>, <0xFF>, <0x00>; error = <0xFF>, <0x00>, <0x00>; }; }; fsg-connect { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 16 GPIO_ACTIVE_LOW>; }; }; pmuv8: pmu { compatible = "arm,cortex-a7-pmu"; }; avm-lrwpan { compatible = "avm,lrwpan", "avm,gpio-aggregator"; pinctrl-0 = <&avm_lrwpan_pins>; pinctrl-names = "default"; gpios = <&tlmm 43 GPIO_ACTIVE_LOW>, <&tlmm 2 GPIO_ACTIVE_HIGH>, <&tlmm 42 GPIO_ACTIVE_HIGH>, <&tlmm 40 GPIO_ACTIVE_LOW>; gpio-line-names = "lrwpan-reset-lowactive", "lrwpan-swdio", "lrwpan-swclk", "lrwpan-bootloader-lowactive"; }; }; &tlmm { avm_led_pins: avm_led_pins { mux { pins = "gpio16", "gpio17", "gpio18", "gpio19", "gpio36", "gpio37", "gpio38", "gpio39", "gpio44", "gpio46"; function = "gpio"; drive-strength = <2>; bias-pull-up; }; }; avm_lrwpan_pins: avm_lrwpan_pins { reset_lowactive_pin { pins = "gpio43"; function = "gpio"; drive-strength = <2>; output-low; }; swd_pins { pins = "gpio2", "gpio42"; function = "gpio"; drive-strength = <2>; bias-disable; }; bootloader_lowactive_pin { pins = "gpio40"; function = "gpio"; drive-strength = <2>; output-low; }; }; };