2018-02-27 12:30:33 +01:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2017-01-18 11:50:41 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 BayLibre, Inc.
|
|
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2018-03-06 17:19:33 +01:00
|
|
|
#include "meson-gxbb-wetek.dtsi"
|
2017-01-18 11:50:41 +01:00
|
|
|
#include <dt-bindings/input/input.h>
|
2020-12-03 06:00:23 +00:00
|
|
|
#include <dt-bindings/sound/meson-aiu.h>
|
2017-01-18 11:50:41 +01:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "wetek,play2", "amlogic,meson-gxbb";
|
|
|
|
model = "WeTek Play 2";
|
|
|
|
|
2020-12-03 06:00:23 +00:00
|
|
|
spdif_dit: audio-codec-0 {
|
|
|
|
#sound-dai-cells = <0>;
|
|
|
|
compatible = "linux,spdif-dit";
|
|
|
|
sound-name-prefix = "DIT";
|
|
|
|
};
|
|
|
|
|
2017-01-18 11:50:41 +01:00
|
|
|
leds {
|
arm64: dts: meson: fix leds subnodes name
Fix the leds subnode names to match (^led-[0-9a-f]$|led)
It fixes:
meson-g12b-a311d-khadas-vim3.dt.yaml: leds: 'red', 'white' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-g12b-s922x-khadas-vim3.dt.yaml: leds: 'red', 'white' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-g12b-odroid-n2.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-nanopi-k2.dt.yaml: leds: 'stat' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-nexbox-a95x.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-odroidc2.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-vega-s95-pro.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-vega-s95-meta.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-vega-s95-telos.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-wetek-hub.dt.yaml: leds: 'system' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-wetek-play2.dt.yaml: leds: 'ethernet', 'system', 'wifi' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxl-s905x-libretech-cc.dt.yaml: leds: 'blue', 'system' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxl-s905d-libretech-pc.dt.yaml: leds: 'blue', 'green' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxm-rbox-pro.dt.yaml: leds: 'blue', 'red' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxm-s912-libretech-pc.dt.yaml: leds: 'blue', 'green' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-sm1-sei610.dt.yaml: leds: 'bluetooth' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-sm1-khadas-vim3l.dt.yaml: leds: 'red', 'white' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20200326165958.19274-6-narmstrong@baylibre.com
2020-03-26 17:59:58 +01:00
|
|
|
led-wifi {
|
2017-01-18 11:50:41 +01:00
|
|
|
label = "wetek-play:wifi-status";
|
|
|
|
gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
arm64: dts: meson: fix leds subnodes name
Fix the leds subnode names to match (^led-[0-9a-f]$|led)
It fixes:
meson-g12b-a311d-khadas-vim3.dt.yaml: leds: 'red', 'white' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-g12b-s922x-khadas-vim3.dt.yaml: leds: 'red', 'white' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-g12b-odroid-n2.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-nanopi-k2.dt.yaml: leds: 'stat' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-nexbox-a95x.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-odroidc2.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-vega-s95-pro.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-vega-s95-meta.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-vega-s95-telos.dt.yaml: leds: 'blue' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-wetek-hub.dt.yaml: leds: 'system' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxbb-wetek-play2.dt.yaml: leds: 'ethernet', 'system', 'wifi' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxl-s905x-libretech-cc.dt.yaml: leds: 'blue', 'system' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxl-s905d-libretech-pc.dt.yaml: leds: 'blue', 'green' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxm-rbox-pro.dt.yaml: leds: 'blue', 'red' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-gxm-s912-libretech-pc.dt.yaml: leds: 'blue', 'green' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-sm1-sei610.dt.yaml: leds: 'bluetooth' does not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
meson-sm1-khadas-vim3l.dt.yaml: leds: 'red', 'white' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20200326165958.19274-6-narmstrong@baylibre.com
2020-03-26 17:59:58 +01:00
|
|
|
led-ethernet {
|
2017-01-18 11:50:41 +01:00
|
|
|
label = "wetek-play:ethernet-status";
|
|
|
|
gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-keys-polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <100>;
|
|
|
|
|
2022-06-09 13:39:09 +02:00
|
|
|
button {
|
2017-01-18 11:50:41 +01:00
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
2020-12-03 06:00:23 +00:00
|
|
|
|
|
|
|
sound {
|
|
|
|
compatible = "amlogic,gx-sound-card";
|
2021-01-01 06:37:37 +00:00
|
|
|
model = "WETEK-PLAY2";
|
2024-08-28 15:53:56 +02:00
|
|
|
clocks = <&clkc CLKID_MPLL0>,
|
|
|
|
<&clkc CLKID_MPLL1>,
|
|
|
|
<&clkc CLKID_MPLL2>;
|
|
|
|
|
2020-12-03 06:00:23 +00:00
|
|
|
assigned-clocks = <&clkc CLKID_MPLL0>,
|
|
|
|
<&clkc CLKID_MPLL1>,
|
|
|
|
<&clkc CLKID_MPLL2>;
|
|
|
|
assigned-clock-parents = <0>, <0>, <0>;
|
|
|
|
assigned-clock-rates = <294912000>,
|
|
|
|
<270950400>,
|
|
|
|
<393216000>;
|
|
|
|
|
|
|
|
dai-link-0 {
|
|
|
|
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
|
|
|
|
};
|
|
|
|
|
|
|
|
dai-link-1 {
|
|
|
|
sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
|
|
|
|
};
|
|
|
|
|
|
|
|
dai-link-2 {
|
|
|
|
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
|
|
|
|
dai-format = "i2s";
|
|
|
|
mclk-fs = <256>;
|
|
|
|
|
|
|
|
codec-0 {
|
|
|
|
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
dai-link-3 {
|
|
|
|
sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
|
|
|
|
|
|
|
|
codec-0 {
|
|
|
|
sound-dai = <&spdif_dit>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
dai-link-4 {
|
|
|
|
sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
|
|
|
|
|
|
|
|
codec-0 {
|
|
|
|
sound-dai = <&hdmi_tx>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&aiu {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&spdif_out_y_pins>;
|
|
|
|
pinctrl-names = "default";
|
2017-01-18 11:50:41 +01:00
|
|
|
};
|
|
|
|
|
2018-03-06 17:19:33 +01:00
|
|
|
&i2c_A {
|
2017-02-19 22:41:46 +01:00
|
|
|
status = "okay";
|
2018-03-06 17:19:33 +01:00
|
|
|
pinctrl-0 = <&i2c_a_pins>;
|
2017-02-19 22:41:46 +01:00
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2018-03-06 17:19:33 +01:00
|
|
|
&usb1_phy {
|
2017-06-08 17:31:20 +02:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-03-06 17:19:33 +01:00
|
|
|
&usb1 {
|
2017-01-18 11:50:41 +01:00
|
|
|
status = "okay";
|
|
|
|
};
|
2019-08-25 08:01:25 +04:00
|
|
|
|
|
|
|
&ir {
|
|
|
|
linux,rc-map-name = "rc-wetek-play2";
|
|
|
|
};
|