1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2016 BayLibre, Inc. 3 * Copyright (c) 2016 BayLibre, Inc. 4 * Author: Neil Armstrong <narmstrong@baylibre. 4 * Author: Neil Armstrong <narmstrong@baylibre.com> 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include "meson-gxbb-wetek.dtsi" 9 #include "meson-gxbb-wetek.dtsi" 10 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/sound/meson-aiu.h> 11 #include <dt-bindings/sound/meson-aiu.h> 12 12 13 / { 13 / { 14 compatible = "wetek,play2", "amlogic,m 14 compatible = "wetek,play2", "amlogic,meson-gxbb"; 15 model = "WeTek Play 2"; 15 model = "WeTek Play 2"; 16 16 17 spdif_dit: audio-codec-0 { 17 spdif_dit: audio-codec-0 { 18 #sound-dai-cells = <0>; 18 #sound-dai-cells = <0>; 19 compatible = "linux,spdif-dit" 19 compatible = "linux,spdif-dit"; >> 20 status = "okay"; 20 sound-name-prefix = "DIT"; 21 sound-name-prefix = "DIT"; 21 }; 22 }; 22 23 23 leds { 24 leds { 24 led-wifi { 25 led-wifi { 25 label = "wetek-play:wi 26 label = "wetek-play:wifi-status"; 26 gpios = <&gpio GPIODV_ 27 gpios = <&gpio GPIODV_26 GPIO_ACTIVE_HIGH>; 27 default-state = "off"; 28 default-state = "off"; 28 }; 29 }; 29 30 30 led-ethernet { 31 led-ethernet { 31 label = "wetek-play:et 32 label = "wetek-play:ethernet-status"; 32 gpios = <&gpio GPIODV_ 33 gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>; 33 default-state = "off"; 34 default-state = "off"; 34 }; 35 }; 35 }; 36 }; 36 37 37 gpio-keys-polled { 38 gpio-keys-polled { 38 compatible = "gpio-keys-polled 39 compatible = "gpio-keys-polled"; >> 40 #address-cells = <1>; >> 41 #size-cells = <0>; 39 poll-interval = <100>; 42 poll-interval = <100>; 40 43 41 button { !! 44 button@0 { 42 label = "reset"; 45 label = "reset"; 43 linux,code = <KEY_REST 46 linux,code = <KEY_RESTART>; 44 gpios = <&gpio_ao GPIO 47 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>; 45 }; 48 }; 46 }; 49 }; 47 50 48 sound { 51 sound { 49 compatible = "amlogic,gx-sound 52 compatible = "amlogic,gx-sound-card"; 50 model = "WETEK-PLAY2"; !! 53 model = "GXBB-WETEK-PLAY2"; 51 clocks = <&clkc CLKID_MPLL0>, << 52 <&clkc CLKID_MPLL1>, << 53 <&clkc CLKID_MPLL2>; << 54 << 55 assigned-clocks = <&clkc CLKID 54 assigned-clocks = <&clkc CLKID_MPLL0>, 56 <&clkc CLKID 55 <&clkc CLKID_MPLL1>, 57 <&clkc CLKID 56 <&clkc CLKID_MPLL2>; 58 assigned-clock-parents = <0>, 57 assigned-clock-parents = <0>, <0>, <0>; 59 assigned-clock-rates = <294912 58 assigned-clock-rates = <294912000>, 60 <270950 59 <270950400>, 61 <393216 60 <393216000>; >> 61 status = "okay"; 62 62 63 dai-link-0 { 63 dai-link-0 { 64 sound-dai = <&aiu AIU_ 64 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; 65 }; 65 }; 66 66 67 dai-link-1 { 67 dai-link-1 { 68 sound-dai = <&aiu AIU_ 68 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; 69 }; 69 }; 70 70 71 dai-link-2 { 71 dai-link-2 { 72 sound-dai = <&aiu AIU_ 72 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; 73 dai-format = "i2s"; 73 dai-format = "i2s"; 74 mclk-fs = <256>; 74 mclk-fs = <256>; 75 75 76 codec-0 { 76 codec-0 { 77 sound-dai = <& 77 sound-dai = <&aiu AIU_HDMI CTRL_I2S>; 78 }; 78 }; 79 }; 79 }; 80 80 81 dai-link-3 { 81 dai-link-3 { 82 sound-dai = <&aiu AIU_ 82 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; 83 83 84 codec-0 { 84 codec-0 { 85 sound-dai = <& 85 sound-dai = <&spdif_dit>; 86 }; 86 }; 87 }; 87 }; 88 88 89 dai-link-4 { 89 dai-link-4 { 90 sound-dai = <&aiu AIU_ 90 sound-dai = <&aiu AIU_HDMI CTRL_OUT>; 91 91 92 codec-0 { 92 codec-0 { 93 sound-dai = <& 93 sound-dai = <&hdmi_tx>; 94 }; 94 }; 95 }; 95 }; 96 }; 96 }; 97 }; 97 }; 98 98 99 &aiu { 99 &aiu { 100 status = "okay"; 100 status = "okay"; 101 pinctrl-0 = <&spdif_out_y_pins>; 101 pinctrl-0 = <&spdif_out_y_pins>; 102 pinctrl-names = "default"; 102 pinctrl-names = "default"; 103 }; 103 }; 104 104 105 &i2c_A { 105 &i2c_A { 106 status = "okay"; 106 status = "okay"; 107 pinctrl-0 = <&i2c_a_pins>; 107 pinctrl-0 = <&i2c_a_pins>; 108 pinctrl-names = "default"; 108 pinctrl-names = "default"; 109 }; 109 }; 110 110 111 &usb1_phy { 111 &usb1_phy { 112 status = "okay"; 112 status = "okay"; 113 }; 113 }; 114 114 115 &usb1 { 115 &usb1 { 116 status = "okay"; 116 status = "okay"; 117 }; 117 }; 118 118 119 &ir { 119 &ir { 120 linux,rc-map-name = "rc-wetek-play2"; 120 linux,rc-map-name = "rc-wetek-play2"; 121 }; 121 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.