/* 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_HW271.dts" #include "../../../../include/linux/avm_hw_config_def.h" / { model = "AVM FRITZ!Box 7510"; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "271"; subrevision = "0"; }; avm-dectstub-uart { compatible = "avm,dectstub_uart"; /* ttyMSM1 */ line = <1>; }; avm_gpio { compatible = "avm,avm_gpio_generic"; gpio_avm_dect_reset { value = <15>; param = ; }; gpio_avm_dect_rd { value = <12>; param = ; }; gpio_avm_pcmlink_fsc { value = <29>; param = ; function = ; }; gpio_avm_pcmlink_fsc_2 { value = <25>; param = ; function = ; }; gpio_avm_pcmlink_dcl { value = <28>; param = ; function = ; }; gpio_avm_pcmlink_dcl_2 { value = <24>; param = ; function = ; }; gpio_avm_pcmlink_di { value = <26>; param = ; function = ; }; gpio_avm_pcmlink_do { value = <30>; param = ; function = ; }; gpio_avm_pcmlink_mcl { value = <27>; param = ; function = ; }; gpio_avm_pcmlink_mcl_2 { value = <23>; param = ; function = ; }; gpio_avm_usb_power_enable { value = <18>; param = ; }; }; /* start of pcmlink */ soc { lpass: lpass@0xA000000{ status = "ok"; }; pcm: pcm@0xA3C0000 { capture_memory = "ddr"; playback_memory = "ddr"; status = "disabled"; }; pcm_avm: pcm_avm@0xA3C0000 { status = "ok"; }; pcm_lb: pcm_lb@0 { status = "ok"; }; }; /* end of pcmlink */ avm-hui { compatible = "avm,hui"; pinctrl-0 = <&avm_led_pins>; pinctrl-names = "default"; status = "ok"; dim_leds: dim-leds { brightness-range = <0>, <180>; compatible = "avm,hui-generic-led-pwm"; led-type = "always-on"; /* GPIO 2 is channel 22*/ pwms = <&pwm 2 100000 0>; dimmable; }; box-power@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>; location = <1>; }; box-wlan@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; location = <2>; }; box-fon@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>; location = <3>; }; connect@0 { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>; location = <4>; }; box_info: info { compatible = "avm,hui-generic-led-gpio"; gpios = <&tlmm 13 GPIO_ACTIVE_HIGH>, <&tlmm 10 GPIO_ACTIVE_HIGH>; location = <5>; colors { normal = <0x00>, <0xFF>, <0x00>; error = <0xFF>, <0x00>, <0x00>; }; }; box-wlan@1 { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 17 GPIO_ACTIVE_LOW>; }; box-fon@1 { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 19 GPIO_ACTIVE_LOW>; }; box-connect@1 { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 16 GPIO_ACTIVE_LOW>; }; }; pmuv8: pmu { compatible = "arm,cortex-a7-pmu"; }; };