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