1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 BayLibre, SAS 4 * Author: Neil Armstrong <narmstrong@baylibre. 5 * Copyright (c) 2019 Christian Hewitt <christi 6 */ 7 8 /dts-v1/; 9 10 #include "meson-g12b-w400.dtsi" 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/sound/meson-g12a-tohdmit 13 14 / { 15 compatible = "azw,gsking-x", "amlogic, 16 model = "Beelink GS-King X"; 17 18 aliases { 19 rtc0 = &rtc; 20 rtc1 = &vrtc; 21 }; 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 { 32 compatible = "gpio-keys-polled 33 poll-interval = <100>; 34 35 power-button { 36 label = "power"; 37 linux,code = <KEY_POWE 38 gpios = <&gpio_ao GPIO 39 }; 40 }; 41 42 sound { 43 compatible = "amlogic,axg-soun 44 model = "GSKING-X"; 45 audio-aux-devs = <&tdmout_a>; 46 audio-routing = "TDMOUT_A IN 0 47 "TDMOUT_A IN 1 48 "TDMOUT_A IN 2 49 "TDM_A Playbac 50 51 clocks = <&clkc CLKID_MPLL2>, 52 <&clkc CLKID_MPLL0>, 53 <&clkc CLKID_MPLL1>; 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 = <&frddr_a> 65 }; 66 67 dai-link-1 { 68 sound-dai = <&frddr_b> 69 }; 70 71 dai-link-2 { 72 sound-dai = <&frddr_c> 73 }; 74 75 /* 8ch hdmi interface */ 76 dai-link-3 { 77 sound-dai = <&tdmif_a> 78 dai-format = "i2s"; 79 dai-tdm-slot-tx-mask-0 80 dai-tdm-slot-tx-mask-1 81 dai-tdm-slot-tx-mask-2 82 dai-tdm-slot-tx-mask-3 83 mclk-fs = <256>; 84 85 codec { 86 sound-dai = <& 87 }; 88 }; 89 90 dai-link-4 { 91 sound-dai = <&tohdmitx 92 93 codec { 94 sound-dai = <& 95 }; 96 }; 97 }; 98 }; 99 100 &arb { 101 status = "okay"; 102 }; 103 104 &clkc_audio { 105 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 }; 124 125 &frddr_a { 126 status = "okay"; 127 }; 128 129 &frddr_b { 130 status = "okay"; 131 }; 132 133 &frddr_c { 134 status = "okay"; 135 }; 136 137 &i2c3 { 138 status = "okay"; 139 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3 140 pinctrl-names = "default"; 141 142 rtc: rtc@51 { 143 compatible = "nxp,pcf8563"; 144 reg = <0x51>; 145 wakeup-source; 146 }; 147 }; 148 149 &tdmif_a { 150 status = "okay"; 151 }; 152 153 &tdmout_a { 154 status = "okay"; 155 }; 156 157 &tohdmitx { 158 status = "okay"; 159 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.