/* Copyright (c) 2015, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ #include "../../../arm64/boot/dts/qcom/Fritz_Box_HW270.dts" #include "../../../../include/linux/avm_hw_config_def.h" / { model = "AVM FRITZ!Repeater 3000 AX"; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "270"; subrevision = "0"; }; avm_gpio { compatible = "avm,avm_gpio_generic"; }; avm-hui { compatible = "avm,hui"; pinctrl-0 = <&avm_button_pins>; pinctrl-names = "default"; status = "ok"; // The LED on this HWSubRev has a // special byteorder for the colors. // There are blue and green swapped, // so we have to swap the byteorder here. colors { // r b g normal = <0x07>, <0x00>, <0x0B>; warn = <0x0F>, <0x00>, <0x05>; error = <0x16>, <0x00>, <0x00>; }; repeater-connect { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 27 GPIO_ACTIVE_LOW>; }; }; pmuv8: pmu { compatible = "arm,cortex-a7-pmu"; }; }; &spi_2 { /* BLSP1 QUP2 */ pinctrl-0 = <&blsp2_spi1_pins>; pinctrl-names = "default"; cs-select = <0>; status = "ok"; avm-hui-lc882x@0 { compatible = "avm,hui-generic-lc882x"; spi-max-frequency = <400000>; reg = <0>; repeater-one-fr3000 { brightness-range = <25>, <127>; index = <1>; dimmable; }; repeater-rssi-color { brightness-range = <25>, <127>; index = <0>; dimmable; }; }; };