1db353fa9SMohammad Rasim// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2db353fa9SMohammad Rasim/* 3db353fa9SMohammad Rasim * Copyright (c) 2019 Mohammad Rasim <mohammad.rasim96@gmail.com> 4db353fa9SMohammad Rasim */ 5db353fa9SMohammad Rasim 6db353fa9SMohammad Rasim/dts-v1/; 7db353fa9SMohammad Rasim 8db353fa9SMohammad Rasim#include "meson-gxbb-p20x.dtsi" 9db353fa9SMohammad Rasim#include <dt-bindings/gpio/gpio.h> 10db353fa9SMohammad Rasim#include <dt-bindings/input/input.h> 11db353fa9SMohammad Rasim#include <dt-bindings/leds/common.h> 12914a3aa6SChristian Hewitt#include <dt-bindings/sound/meson-aiu.h> 13815ad625SChristian Hewitt 14db353fa9SMohammad Rasim/ { 15d120b5f9SNeil Armstrong compatible = "videostrong,kii-pro", "amlogic,meson-gxbb"; 16db353fa9SMohammad Rasim model = "Videostrong KII Pro"; 17db353fa9SMohammad Rasim 18914a3aa6SChristian Hewitt spdif_dit: audio-codec-0 { 19914a3aa6SChristian Hewitt #sound-dai-cells = <0>; 20914a3aa6SChristian Hewitt compatible = "linux,spdif-dit"; 21914a3aa6SChristian Hewitt sound-name-prefix = "DIT"; 22914a3aa6SChristian Hewitt }; 23914a3aa6SChristian Hewitt 24db353fa9SMohammad Rasim leds { 25db353fa9SMohammad Rasim compatible = "gpio-leds"; 26afdef3b1SNeil Armstrong led { 27db353fa9SMohammad Rasim gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>; 28db353fa9SMohammad Rasim color = <LED_COLOR_ID_RED>; 29db353fa9SMohammad Rasim function = LED_FUNCTION_STATUS; 30815ad625SChristian Hewitt default-state = "off"; 31db353fa9SMohammad Rasim }; 32db353fa9SMohammad Rasim }; 33db353fa9SMohammad Rasim 34db353fa9SMohammad Rasim gpio-keys-polled { 35db353fa9SMohammad Rasim compatible = "gpio-keys-polled"; 36db353fa9SMohammad Rasim poll-interval = <20>; 37db353fa9SMohammad Rasim 38db353fa9SMohammad Rasim button-reset { 39db353fa9SMohammad Rasim label = "reset"; 40db353fa9SMohammad Rasim linux,code = <KEY_POWER>; 41db353fa9SMohammad Rasim gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; 42db353fa9SMohammad Rasim }; 43db353fa9SMohammad Rasim }; 44914a3aa6SChristian Hewitt 45914a3aa6SChristian Hewitt sound { 46914a3aa6SChristian Hewitt compatible = "amlogic,gx-sound-card"; 47914a3aa6SChristian Hewitt model = "KII-PRO"; 48*9b5d2511SNeil Armstrong clocks = <&clkc CLKID_MPLL0>, 49*9b5d2511SNeil Armstrong <&clkc CLKID_MPLL1>, 50*9b5d2511SNeil Armstrong <&clkc CLKID_MPLL2>; 51*9b5d2511SNeil Armstrong 52914a3aa6SChristian Hewitt assigned-clocks = <&clkc CLKID_MPLL0>, 53914a3aa6SChristian Hewitt <&clkc CLKID_MPLL1>, 54914a3aa6SChristian Hewitt <&clkc CLKID_MPLL2>; 55914a3aa6SChristian Hewitt assigned-clock-parents = <0>, <0>, <0>; 56914a3aa6SChristian Hewitt assigned-clock-rates = <294912000>, 57914a3aa6SChristian Hewitt <270950400>, 58914a3aa6SChristian Hewitt <393216000>; 59914a3aa6SChristian Hewitt 60914a3aa6SChristian Hewitt dai-link-0 { 61914a3aa6SChristian Hewitt sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; 62914a3aa6SChristian Hewitt }; 63914a3aa6SChristian Hewitt 64914a3aa6SChristian Hewitt dai-link-1 { 65914a3aa6SChristian Hewitt sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; 66914a3aa6SChristian Hewitt }; 67914a3aa6SChristian Hewitt 68914a3aa6SChristian Hewitt dai-link-2 { 69914a3aa6SChristian Hewitt sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; 70914a3aa6SChristian Hewitt dai-format = "i2s"; 71914a3aa6SChristian Hewitt mclk-fs = <256>; 72914a3aa6SChristian Hewitt 73914a3aa6SChristian Hewitt codec-0 { 74914a3aa6SChristian Hewitt sound-dai = <&aiu AIU_HDMI CTRL_I2S>; 75914a3aa6SChristian Hewitt }; 76914a3aa6SChristian Hewitt }; 77914a3aa6SChristian Hewitt 78914a3aa6SChristian Hewitt dai-link-3 { 79914a3aa6SChristian Hewitt sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; 80914a3aa6SChristian Hewitt 81914a3aa6SChristian Hewitt codec-0 { 82914a3aa6SChristian Hewitt sound-dai = <&spdif_dit>; 83914a3aa6SChristian Hewitt }; 84914a3aa6SChristian Hewitt }; 85914a3aa6SChristian Hewitt 86914a3aa6SChristian Hewitt dai-link-4 { 87914a3aa6SChristian Hewitt sound-dai = <&aiu AIU_HDMI CTRL_OUT>; 88914a3aa6SChristian Hewitt 89914a3aa6SChristian Hewitt codec-0 { 90914a3aa6SChristian Hewitt sound-dai = <&hdmi_tx>; 91914a3aa6SChristian Hewitt }; 92914a3aa6SChristian Hewitt }; 93914a3aa6SChristian Hewitt }; 94914a3aa6SChristian Hewitt}; 95914a3aa6SChristian Hewitt 96914a3aa6SChristian Hewitt&aiu { 97914a3aa6SChristian Hewitt status = "okay"; 98914a3aa6SChristian Hewitt pinctrl-0 = <&spdif_out_y_pins>; 99914a3aa6SChristian Hewitt pinctrl-names = "default"; 100db353fa9SMohammad Rasim}; 101db353fa9SMohammad Rasim 102db353fa9SMohammad Rasimðmac { 103db353fa9SMohammad Rasim status = "okay"; 104db353fa9SMohammad Rasim pinctrl-0 = <ð_rmii_pins>; 105db353fa9SMohammad Rasim pinctrl-names = "default"; 106db353fa9SMohammad Rasim 107db353fa9SMohammad Rasim phy-handle = <ð_phy0>; 108db353fa9SMohammad Rasim phy-mode = "rmii"; 109db353fa9SMohammad Rasim 110db353fa9SMohammad Rasim mdio { 111db353fa9SMohammad Rasim compatible = "snps,dwmac-mdio"; 112db353fa9SMohammad Rasim #address-cells = <1>; 113db353fa9SMohammad Rasim #size-cells = <0>; 114db353fa9SMohammad Rasim 115db353fa9SMohammad Rasim eth_phy0: ethernet-phy@0 { 116db353fa9SMohammad Rasim /* IC Plus IP101GR (0x02430c54) */ 117db353fa9SMohammad Rasim reg = <0>; 118db353fa9SMohammad Rasim reset-assert-us = <10000>; 119db353fa9SMohammad Rasim reset-deassert-us = <10000>; 120db353fa9SMohammad Rasim reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; 121db353fa9SMohammad Rasim }; 122db353fa9SMohammad Rasim }; 123db353fa9SMohammad Rasim}; 124806d0616SMohammad Rasim 125806d0616SMohammad Rasim&ir { 126806d0616SMohammad Rasim linux,rc-map-name = "rc-videostrong-kii-pro"; 127806d0616SMohammad Rasim}; 128815ad625SChristian Hewitt 129815ad625SChristian Hewitt&uart_A { 130815ad625SChristian Hewitt status = "okay"; 131815ad625SChristian Hewitt pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 132815ad625SChristian Hewitt pinctrl-names = "default"; 133815ad625SChristian Hewitt uart-has-rtscts; 134815ad625SChristian Hewitt 135815ad625SChristian Hewitt bluetooth { 136815ad625SChristian Hewitt compatible = "brcm,bcm4335a0"; 137dae485f5SChristian Hewitt shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; 138dae485f5SChristian Hewitt host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>; 139dae485f5SChristian Hewitt max-speed = <2000000>; 140dae485f5SChristian Hewitt clocks = <&wifi32k>; 141dae485f5SChristian Hewitt clock-names = "lpo"; 142815ad625SChristian Hewitt }; 143815ad625SChristian Hewitt}; 144