// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) #include "../../../arm64/boot/dts/qcom/Fritz_Box_HW278.dts" / { model = "AVM FRITZ!Box 7530 AX TypB"; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "278"; subrevision = "4"; }; avm_gpio_74hc595: avm-gpio-74hc595 { compatible = "avm,74hc595"; gpio-controller; #gpio-cells = <2>; shcp-gpios = <&tlmm 46 GPIO_ACTIVE_LOW>; ds-gpios = <&tlmm 18 GPIO_ACTIVE_LOW>; stcp-gpios = <&tlmm 40 GPIO_ACTIVE_LOW>; num-registers = <1>; }; avm-hui { compatible = "avm,hui"; pinctrl-0 = <&avm_led_pins>; pinctrl-names = "default"; status = "ok"; dim_leds: dim-leds { brightness-range = <0>, <255>; compatible = "avm,hui-generic-led-pwm"; led-type = "always-on"; /* GPIO 10 is channel 0 */ pwms = <&pwm 0 100000 0>; dimmable; }; box-power@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&avm_gpio_74hc595 5 GPIO_ACTIVE_LOW>; location = <1>; }; box-wlan@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&avm_gpio_74hc595 4 GPIO_ACTIVE_LOW>; location = <2>; }; box-fon-dect@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&avm_gpio_74hc595 3 GPIO_ACTIVE_LOW>; location = <3>; }; connect@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&avm_gpio_74hc595 2 GPIO_ACTIVE_LOW>; location = <4>; }; box_info: info { compatible = "avm,hui-generic-led-gpio"; gpios = <&avm_gpio_74hc595 0 GPIO_ACTIVE_LOW>, <&avm_gpio_74hc595 1 GPIO_ACTIVE_LOW>; location = <5>; colors { normal = <0x00>, <0xFF>, <0x00>; error = <0xFF>, <0x00>, <0x00>; }; }; box-wlan@1 { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 13 GPIO_ACTIVE_LOW>; }; box-fon@1 { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 17 GPIO_ACTIVE_LOW>; }; box-connect@1 { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>; }; }; pmuv8: pmu { compatible = "arm,cortex-a7-pmu"; }; }; &tlmm { pwm_pins: pwm_pinmux { mux_1 { pins = "gpio10"; function = "pwm0"; drive-strength = <16>; }; }; avm_led_pins: avm_led_pins { mux { pins = "gpio18", "gpio40", "gpio46"; function = "gpio"; drive-strength = <2>; bias-pull-up; }; }; }; &mdio1 { /delete-property/ avm,speed_div; }; &pwm { pinctrl-0 = <&pwm_pins>; pinctrl-names = "default"; used-pwm-indices = <1>, <0>, <0>, <0>; status = "ok"; #pwm-cells = <3>; }; &pcie_x2 { perst-gpio = <&tlmm 0 GPIO_ACTIVE_LOW>; }; &wifi0 { qcom,board_id = <0x24>; }; &dp1 { devname = "eth0"; }; &virt_dp1 { devname = "eth1"; }; &virt_dp2 { devname = "eth2"; }; &virt_dp3 { devname = "eth3"; };