1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2024 Christian Hewitt <christi 3 * Copyright (c) 2024 Christian Hewitt <christianshewitt@gmail.com> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "meson-gxl-s905x-p212.dtsi" 8 #include "meson-gxl-s905x-p212.dtsi" 9 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/sound/meson-aiu.h> 11 #include <dt-bindings/sound/meson-aiu.h> 12 12 13 / { 13 / { 14 compatible = "osmc,vero4k", "amlogic,s 14 compatible = "osmc,vero4k", "amlogic,s905x", "amlogic,meson-gxl"; 15 model = "OSMC Vero 4K"; 15 model = "OSMC Vero 4K"; 16 16 17 reserved-memory { 17 reserved-memory { 18 /* 32 MiB reserved for ARM Tru 18 /* 32 MiB reserved for ARM Trusted Firmware (BL32) */ 19 secmon_reserved_bl32: secmon@5 19 secmon_reserved_bl32: secmon@5300000 { 20 reg = <0x0 0x05300000 20 reg = <0x0 0x05300000 0x0 0x2000000>; 21 no-map; 21 no-map; 22 }; 22 }; 23 }; 23 }; 24 24 25 gpio-keys-polled { 25 gpio-keys-polled { 26 compatible = "gpio-keys-polled 26 compatible = "gpio-keys-polled"; 27 poll-interval = <20>; 27 poll-interval = <20>; 28 28 29 button { 29 button { 30 label = "power"; 30 label = "power"; 31 linux,code = <KEY_POWE 31 linux,code = <KEY_POWER>; 32 gpios = <&gpio_ao GPIO 32 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; 33 }; 33 }; 34 }; 34 }; 35 35 36 leds { 36 leds { 37 compatible = "gpio-leds"; 37 compatible = "gpio-leds"; 38 38 39 led-standby { 39 led-standby { 40 color = <LED_COLOR_ID_ 40 color = <LED_COLOR_ID_RED>; 41 function = LED_FUNCTIO 41 function = LED_FUNCTION_POWER; 42 gpios = <&gpio GPIODV_ 42 gpios = <&gpio GPIODV_24 GPIO_ACTIVE_LOW>; 43 default-state = "off"; 43 default-state = "off"; 44 panic-indicator; 44 panic-indicator; 45 }; 45 }; 46 }; 46 }; 47 47 48 dio2133: analog-amplifier { 48 dio2133: analog-amplifier { 49 compatible = "simple-audio-amp 49 compatible = "simple-audio-amplifier"; 50 sound-name-prefix = "AU2"; 50 sound-name-prefix = "AU2"; 51 VCC-supply = <&hdmi_5v>; 51 VCC-supply = <&hdmi_5v>; 52 enable-gpios = <&gpio GPIOH_5 52 enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; 53 }; 53 }; 54 54 55 spdif_dit: audio-codec-0 { 55 spdif_dit: audio-codec-0 { 56 #sound-dai-cells = <0>; 56 #sound-dai-cells = <0>; 57 compatible = "linux,spdif-dit" 57 compatible = "linux,spdif-dit"; 58 sound-name-prefix = "DIT"; 58 sound-name-prefix = "DIT"; 59 }; 59 }; 60 60 61 cvbs-connector { 61 cvbs-connector { 62 compatible = "composite-video- 62 compatible = "composite-video-connector"; 63 63 64 port { 64 port { 65 cvbs_connector_in: end 65 cvbs_connector_in: endpoint { 66 remote-endpoin 66 remote-endpoint = <&cvbs_vdac_out>; 67 }; 67 }; 68 }; 68 }; 69 }; 69 }; 70 70 71 hdmi-connector { 71 hdmi-connector { 72 compatible = "hdmi-connector"; 72 compatible = "hdmi-connector"; 73 type = "a"; 73 type = "a"; 74 74 75 port { 75 port { 76 hdmi_connector_in: end 76 hdmi_connector_in: endpoint { 77 remote-endpoin 77 remote-endpoint = <&hdmi_tx_tmds_out>; 78 }; 78 }; 79 }; 79 }; 80 }; 80 }; 81 81 82 sound { 82 sound { 83 compatible = "amlogic,gx-sound 83 compatible = "amlogic,gx-sound-card"; 84 model = "VERO4K"; 84 model = "VERO4K"; 85 audio-aux-devs = <&dio2133>; 85 audio-aux-devs = <&dio2133>; 86 audio-widgets = "Line", "Lineo 86 audio-widgets = "Line", "Lineout"; 87 audio-routing = "AU2 INL", "AC 87 audio-routing = "AU2 INL", "ACODEC LOLP", 88 "AU2 INR", "AC 88 "AU2 INR", "ACODEC LORP", 89 "AU2 INL", "AC 89 "AU2 INL", "ACODEC LOLN", 90 "AU2 INR", "AC 90 "AU2 INR", "ACODEC LORN", 91 "Lineout", "AU 91 "Lineout", "AU2 OUTL", 92 "Lineout", "AU 92 "Lineout", "AU2 OUTR"; 93 << 94 clocks = <&clkc CLKID_MPLL0>, << 95 <&clkc CLKID_MPLL1>, << 96 <&clkc CLKID_MPLL2>; << 97 << 98 assigned-clocks = <&clkc CLKID 93 assigned-clocks = <&clkc CLKID_MPLL0>, 99 <&clkc CLKID 94 <&clkc CLKID_MPLL1>, 100 <&clkc CLKID 95 <&clkc CLKID_MPLL2>; 101 assigned-clock-parents = <0>, 96 assigned-clock-parents = <0>, <0>, <0>; 102 assigned-clock-rates = <294912 97 assigned-clock-rates = <294912000>, 103 <270950 98 <270950400>, 104 <393216 99 <393216000>; 105 100 106 dai-link-0 { 101 dai-link-0 { 107 sound-dai = <&aiu AIU_ 102 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; 108 }; 103 }; 109 104 110 dai-link-1 { 105 dai-link-1 { 111 sound-dai = <&aiu AIU_ 106 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; 112 }; 107 }; 113 108 114 dai-link-2 { 109 dai-link-2 { 115 sound-dai = <&aiu AIU_ 110 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; 116 dai-format = "i2s"; 111 dai-format = "i2s"; 117 mclk-fs = <256>; 112 mclk-fs = <256>; 118 113 119 codec-0 { 114 codec-0 { 120 sound-dai = <& 115 sound-dai = <&aiu AIU_HDMI CTRL_I2S>; 121 }; 116 }; 122 117 123 codec-1 { 118 codec-1 { 124 sound-dai = <& 119 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>; 125 }; 120 }; 126 }; 121 }; 127 122 128 dai-link-3 { 123 dai-link-3 { 129 sound-dai = <&aiu AIU_ 124 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; 130 125 131 codec-0 { 126 codec-0 { 132 sound-dai = <& 127 sound-dai = <&spdif_dit>; 133 }; 128 }; 134 }; 129 }; 135 130 136 dai-link-4 { 131 dai-link-4 { 137 sound-dai = <&aiu AIU_ 132 sound-dai = <&aiu AIU_HDMI CTRL_OUT>; 138 133 139 codec-0 { 134 codec-0 { 140 sound-dai = <& 135 sound-dai = <&hdmi_tx>; 141 }; 136 }; 142 }; 137 }; 143 138 144 dai-link-5 { 139 dai-link-5 { 145 sound-dai = <&aiu AIU_ 140 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>; 146 141 147 codec-0 { 142 codec-0 { 148 sound-dai = <& 143 sound-dai = <&acodec>; 149 }; 144 }; 150 }; 145 }; 151 }; 146 }; 152 }; 147 }; 153 148 154 &acodec { 149 &acodec { 155 AVDD-supply = <&vddio_ao18>; 150 AVDD-supply = <&vddio_ao18>; 156 status = "okay"; 151 status = "okay"; 157 }; 152 }; 158 153 159 &aiu { 154 &aiu { 160 status = "okay"; 155 status = "okay"; 161 pinctrl-0 = <&spdif_out_h_pins>; 156 pinctrl-0 = <&spdif_out_h_pins>; 162 pinctrl-names = "default"; 157 pinctrl-names = "default"; 163 }; 158 }; 164 159 165 &cec_AO { 160 &cec_AO { 166 status = "okay"; 161 status = "okay"; 167 pinctrl-0 = <&ao_cec_pins>; 162 pinctrl-0 = <&ao_cec_pins>; 168 pinctrl-names = "default"; 163 pinctrl-names = "default"; 169 hdmi-phandle = <&hdmi_tx>; 164 hdmi-phandle = <&hdmi_tx>; 170 }; 165 }; 171 166 172 &cvbs_vdac_port { 167 &cvbs_vdac_port { 173 cvbs_vdac_out: endpoint { 168 cvbs_vdac_out: endpoint { 174 remote-endpoint = <&cvbs_conne 169 remote-endpoint = <&cvbs_connector_in>; 175 }; 170 }; 176 }; 171 }; 177 172 178 ðmac { 173 ðmac { 179 phy-mode = "rmii"; 174 phy-mode = "rmii"; 180 phy-handle = <&internal_phy>; 175 phy-handle = <&internal_phy>; 181 }; 176 }; 182 177 183 &hdmi_tx { 178 &hdmi_tx { 184 status = "okay"; 179 status = "okay"; 185 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i 180 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 186 pinctrl-names = "default"; 181 pinctrl-names = "default"; 187 hdmi-supply = <&hdmi_5v>; 182 hdmi-supply = <&hdmi_5v>; 188 }; 183 }; 189 184 190 &hdmi_tx_tmds_port { 185 &hdmi_tx_tmds_port { 191 hdmi_tx_tmds_out: endpoint { 186 hdmi_tx_tmds_out: endpoint { 192 remote-endpoint = <&hdmi_conne 187 remote-endpoint = <&hdmi_connector_in>; 193 }; 188 }; 194 }; 189 }; 195 190 196 &internal_phy { 191 &internal_phy { 197 pinctrl-0 = <ð_link_led_pins>, <&et 192 pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>; 198 pinctrl-names = "default"; 193 pinctrl-names = "default"; 199 }; 194 }; 200 195 201 /* This UART is brought out to the DB9 connect 196 /* This UART is brought out to the DB9 connector */ 202 &uart_AO { 197 &uart_AO { 203 status = "okay"; 198 status = "okay"; 204 }; 199 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.