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