| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2019 Mohammad Rasim <[email protected]> |
| 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 |
clocks = <&clkc CLKID_MPLL0>, |
| 49 |
<&clkc CLKID_MPLL1>, |
| 50 |
<&clkc CLKID_MPLL2>; |
| 51 |
|
| 52 |
assigned-clocks = <&clkc CLKID_MPLL0>, |
| 53 |
<&clkc CLKID_MPLL1>, |
| 54 |
<&clkc CLKID_MPLL2>; |
| 55 |
assigned-clock-rates = <294912000>, |
| 56 |
<270950400>, |
| 57 |
<393216000>; |
| 58 |
|
| 59 |
dai-link-0 { |
| 60 |
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; |
| 61 |
}; |
| 62 |
|
| 63 |
dai-link-1 { |
| 64 |
sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; |
| 65 |
}; |
| 66 |
|
| 67 |
dai-link-2 { |
| 68 |
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; |
| 69 |
dai-format = "i2s"; |
| 70 |
mclk-fs = <256>; |
| 71 |
|
| 72 |
codec-0 { |
| 73 |
sound-dai = <&aiu AIU_HDMI CTRL_I2S>; |
| 74 |
}; |
| 75 |
}; |
| 76 |
|
| 77 |
dai-link-3 { |
| 78 |
sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; |
| 79 |
|
| 80 |
codec-0 { |
| 81 |
sound-dai = <&spdif_dit>; |
| 82 |
}; |
| 83 |
}; |
| 84 |
|
| 85 |
dai-link-4 { |
| 86 |
sound-dai = <&aiu AIU_HDMI CTRL_OUT>; |
| 87 |
|
| 88 |
codec-0 { |
| 89 |
sound-dai = <&hdmi_tx>; |
| 90 |
}; |
| 91 |
}; |
| 92 |
}; |
| 93 |
}; |
| 94 |
|
| 95 |
&aiu { |
| 96 |
status = "okay"; |
| 97 |
pinctrl-0 = <&spdif_out_y_pins>; |
| 98 |
pinctrl-names = "default"; |
| 99 |
}; |
| 100 |
|
| 101 |
ðmac { |
| 102 |
status = "okay"; |
| 103 |
pinctrl-0 = <ð_rmii_pins>; |
| 104 |
pinctrl-names = "default"; |
| 105 |
|
| 106 |
phy-handle = <ð_phy0>; |
| 107 |
phy-mode = "rmii"; |
| 108 |
|
| 109 |
mdio { |
| 110 |
compatible = "snps,dwmac-mdio"; |
| 111 |
#address-cells = <1>; |
| 112 |
#size-cells = <0>; |
| 113 |
|
| 114 |
eth_phy0: ethernet-phy@0 { |
| 115 |
/* IC Plus IP101GR (0x02430c54) */ |
| 116 |
reg = <0>; |
| 117 |
reset-assert-us = <10000>; |
| 118 |
reset-deassert-us = <10000>; |
| 119 |
reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; |
| 120 |
}; |
| 121 |
}; |
| 122 |
}; |
| 123 |
|
| 124 |
&ir { |
| 125 |
linux,rc-map-name = "rc-videostrong-kii-pro"; |
| 126 |
}; |
| 127 |
|
| 128 |
&uart_A { |
| 129 |
status = "okay"; |
| 130 |
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; |
| 131 |
pinctrl-names = "default"; |
| 132 |
uart-has-rtscts; |
| 133 |
|
| 134 |
bluetooth { |
| 135 |
compatible = "brcm,bcm4335a0"; |
| 136 |
shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; |
| 137 |
host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>; |
| 138 |
max-speed = <2000000>; |
| 139 |
clocks = <&wifi32k>; |
| 140 |
clock-names = "lpo"; |
| 141 |
}; |
| 142 |
}; |