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