1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 Mohammad Rasim <mohammad.rasim96@gmail.com> 4 */ 5 6 /dts-v1/; 7 8 #include "meson-gxbb-p20x.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/sound/meson-aiu.h> 13 14 / { 15 compatible = "videostrong,kii-pro", "amlogic,meson-gxbb"; 16 model = "Videostrong KII Pro"; 17 18 spdif_dit: audio-codec-0 { 19 #sound-dai-cells = <0>; 20 compatible = "linux,spdif-dit"; 21 sound-name-prefix = "DIT"; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 led { 27 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>; 28 color = <LED_COLOR_ID_RED>; 29 function = LED_FUNCTION_STATUS; 30 default-state = "off"; 31 }; 32 }; 33 34 gpio-keys-polled { 35 compatible = "gpio-keys-polled"; 36 poll-interval = <20>; 37 38 button-reset { 39 label = "reset"; 40 linux,code = <KEY_POWER>; 41 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; 42 }; 43 }; 44 45 sound { 46 compatible = "amlogic,gx-sound-card"; 47 model = "KII-PRO"; 48 assigned-clocks = <&clkc CLKID_MPLL0>, 49 <&clkc CLKID_MPLL1>, 50 <&clkc CLKID_MPLL2>; 51 assigned-clock-parents = <0>, <0>, <0>; 52 assigned-clock-rates = <294912000>, 53 <270950400>, 54 <393216000>; 55 56 dai-link-0 { 57 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; 58 }; 59 60 dai-link-1 { 61 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; 62 }; 63 64 dai-link-2 { 65 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; 66 dai-format = "i2s"; 67 mclk-fs = <256>; 68 69 codec-0 { 70 sound-dai = <&aiu AIU_HDMI CTRL_I2S>; 71 }; 72 }; 73 74 dai-link-3 { 75 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; 76 77 codec-0 { 78 sound-dai = <&spdif_dit>; 79 }; 80 }; 81 82 dai-link-4 { 83 sound-dai = <&aiu AIU_HDMI CTRL_OUT>; 84 85 codec-0 { 86 sound-dai = <&hdmi_tx>; 87 }; 88 }; 89 }; 90 }; 91 92 &aiu { 93 status = "okay"; 94 pinctrl-0 = <&spdif_out_y_pins>; 95 pinctrl-names = "default"; 96 }; 97 98 ðmac { 99 status = "okay"; 100 pinctrl-0 = <ð_rmii_pins>; 101 pinctrl-names = "default"; 102 103 phy-handle = <ð_phy0>; 104 phy-mode = "rmii"; 105 106 mdio { 107 compatible = "snps,dwmac-mdio"; 108 #address-cells = <1>; 109 #size-cells = <0>; 110 111 eth_phy0: ethernet-phy@0 { 112 /* IC Plus IP101GR (0x02430c54) */ 113 reg = <0>; 114 reset-assert-us = <10000>; 115 reset-deassert-us = <10000>; 116 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; 117 }; 118 }; 119 }; 120 121 &ir { 122 linux,rc-map-name = "rc-videostrong-kii-pro"; 123 }; 124 125 &uart_A { 126 status = "okay"; 127 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 128 pinctrl-names = "default"; 129 uart-has-rtscts; 130 131 bluetooth { 132 compatible = "brcm,bcm4335a0"; 133 shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; 134 host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>; 135 max-speed = <2000000>; 136 clocks = <&wifi32k>; 137 clock-names = "lpo"; 138 }; 139 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.