1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2019 BayLibre, SAS 3 * Copyright (c) 2019 BayLibre, SAS 4 * Author: Neil Armstrong <narmstrong@baylibre. 4 * Author: Neil Armstrong <narmstrong@baylibre.com> 5 * Copyright (c) 2019 Christian Hewitt <christi 5 * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com> 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 9 10 #include "meson-g12b-w400.dtsi" 10 #include "meson-g12b-w400.dtsi" 11 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/sound/meson-g12a-tohdmit 12 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 13 13 14 / { 14 / { 15 compatible = "azw,gsking-x", "amlogic, 15 compatible = "azw,gsking-x", "amlogic,s922x", "amlogic,g12b"; 16 model = "Beelink GS-King X"; 16 model = "Beelink GS-King X"; 17 17 18 aliases { 18 aliases { 19 rtc0 = &rtc; 19 rtc0 = &rtc; 20 rtc1 = &vrtc; 20 rtc1 = &vrtc; 21 }; 21 }; 22 22 23 gpio_fan: gpio-fan { << 24 compatible = "gpio-fan"; << 25 gpios = <&gpio GPIOH_5 GPIO_AC << 26 /* Using Dummy Speed */ << 27 gpio-fan,speed-map = <0 0>, <1 << 28 #cooling-cells = <2>; << 29 }; << 30 << 31 gpio-keys-polled { 23 gpio-keys-polled { 32 compatible = "gpio-keys-polled 24 compatible = "gpio-keys-polled"; >> 25 #address-cells = <1>; >> 26 #size-cells = <0>; 33 poll-interval = <100>; 27 poll-interval = <100>; 34 28 35 power-button { 29 power-button { 36 label = "power"; 30 label = "power"; 37 linux,code = <KEY_POWE 31 linux,code = <KEY_POWER>; 38 gpios = <&gpio_ao GPIO 32 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; 39 }; 33 }; 40 }; 34 }; 41 35 42 sound { 36 sound { 43 compatible = "amlogic,axg-soun 37 compatible = "amlogic,axg-sound-card"; 44 model = "GSKING-X"; 38 model = "GSKING-X"; 45 audio-aux-devs = <&tdmout_a>; 39 audio-aux-devs = <&tdmout_a>; 46 audio-routing = "TDMOUT_A IN 0 40 audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 1", 47 "TDMOUT_A IN 1 41 "TDMOUT_A IN 1", "FRDDR_B OUT 1", 48 "TDMOUT_A IN 2 42 "TDMOUT_A IN 2", "FRDDR_C OUT 1", 49 "TDM_A Playbac 43 "TDM_A Playback", "TDMOUT_A OUT"; 50 44 51 clocks = <&clkc CLKID_MPLL2>, << 52 <&clkc CLKID_MPLL0>, << 53 <&clkc CLKID_MPLL1>; << 54 << 55 assigned-clocks = <&clkc CLKID 45 assigned-clocks = <&clkc CLKID_MPLL2>, 56 <&clkc CLKID 46 <&clkc CLKID_MPLL0>, 57 <&clkc CLKID 47 <&clkc CLKID_MPLL1>; 58 assigned-clock-parents = <0>, 48 assigned-clock-parents = <0>, <0>, <0>; 59 assigned-clock-rates = <294912 49 assigned-clock-rates = <294912000>, 60 <270950 50 <270950400>, 61 <393216 51 <393216000>; >> 52 status = "okay"; 62 53 63 dai-link-0 { 54 dai-link-0 { 64 sound-dai = <&frddr_a> 55 sound-dai = <&frddr_a>; 65 }; 56 }; 66 57 67 dai-link-1 { 58 dai-link-1 { 68 sound-dai = <&frddr_b> 59 sound-dai = <&frddr_b>; 69 }; 60 }; 70 61 71 dai-link-2 { 62 dai-link-2 { 72 sound-dai = <&frddr_c> 63 sound-dai = <&frddr_c>; 73 }; 64 }; 74 65 75 /* 8ch hdmi interface */ 66 /* 8ch hdmi interface */ 76 dai-link-3 { 67 dai-link-3 { 77 sound-dai = <&tdmif_a> 68 sound-dai = <&tdmif_a>; 78 dai-format = "i2s"; 69 dai-format = "i2s"; 79 dai-tdm-slot-tx-mask-0 70 dai-tdm-slot-tx-mask-0 = <1 1>; 80 dai-tdm-slot-tx-mask-1 71 dai-tdm-slot-tx-mask-1 = <1 1>; 81 dai-tdm-slot-tx-mask-2 72 dai-tdm-slot-tx-mask-2 = <1 1>; 82 dai-tdm-slot-tx-mask-3 73 dai-tdm-slot-tx-mask-3 = <1 1>; 83 mclk-fs = <256>; 74 mclk-fs = <256>; 84 75 85 codec { 76 codec { 86 sound-dai = <& 77 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>; 87 }; 78 }; 88 }; 79 }; 89 80 90 dai-link-4 { 81 dai-link-4 { 91 sound-dai = <&tohdmitx 82 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 92 83 93 codec { 84 codec { 94 sound-dai = <& 85 sound-dai = <&hdmi_tx>; 95 }; 86 }; 96 }; 87 }; 97 }; 88 }; 98 }; 89 }; 99 90 100 &arb { 91 &arb { 101 status = "okay"; 92 status = "okay"; 102 }; 93 }; 103 94 104 &clkc_audio { 95 &clkc_audio { 105 status = "okay"; 96 status = "okay"; 106 }; << 107 << 108 &cpu_thermal { << 109 trips { << 110 cpu_active: cpu-active { << 111 temperature = <70000>; << 112 hysteresis = <2000>; / << 113 type = "active"; << 114 }; << 115 }; << 116 << 117 cooling-maps { << 118 map { << 119 trip = <&cpu_active>; << 120 cooling-device = <&gpi << 121 }; << 122 }; << 123 }; 97 }; 124 98 125 &frddr_a { 99 &frddr_a { 126 status = "okay"; 100 status = "okay"; 127 }; 101 }; 128 102 129 &frddr_b { 103 &frddr_b { 130 status = "okay"; 104 status = "okay"; 131 }; 105 }; 132 106 133 &frddr_c { 107 &frddr_c { 134 status = "okay"; 108 status = "okay"; 135 }; 109 }; 136 110 137 &i2c3 { 111 &i2c3 { 138 status = "okay"; 112 status = "okay"; 139 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3 113 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; 140 pinctrl-names = "default"; 114 pinctrl-names = "default"; 141 115 142 rtc: rtc@51 { 116 rtc: rtc@51 { 143 compatible = "nxp,pcf8563"; 117 compatible = "nxp,pcf8563"; 144 reg = <0x51>; 118 reg = <0x51>; 145 wakeup-source; 119 wakeup-source; 146 }; 120 }; 147 }; 121 }; 148 122 149 &tdmif_a { 123 &tdmif_a { 150 status = "okay"; 124 status = "okay"; 151 }; 125 }; 152 126 153 &tdmout_a { 127 &tdmout_a { 154 status = "okay"; 128 status = "okay"; 155 }; 129 }; 156 130 157 &tohdmitx { 131 &tohdmitx { 158 status = "okay"; 132 status = "okay"; 159 }; 133 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.