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