]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: sync amlogic AXG/GXL/GXM DT from Linux 5.8-rc1
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 10 Sep 2020 08:48:12 +0000 (10:48 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 5 Oct 2020 15:59:45 +0000 (17:59 +0200)
This imports the AXG, GXL & GXM SoC and boards DT changes from the Linux
commit b3a9e3b9622a ("Linux 5.8-rc1").

This change also removes GXL & GXM u-boot.dtsi hacks for USB gadget.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
22 files changed:
arch/arm/dts/meson-axg.dtsi
arch/arm/dts/meson-gx-libretech-pc.dtsi
arch/arm/dts/meson-gx.dtsi
arch/arm/dts/meson-gxbb-nanopi-k2.dts
arch/arm/dts/meson-gxbb-odroidc2.dts
arch/arm/dts/meson-gxbb.dtsi
arch/arm/dts/meson-gxl-s805x-libretech-ac-u-boot.dtsi
arch/arm/dts/meson-gxl-s805x-libretech-ac.dts
arch/arm/dts/meson-gxl-s905d-libretech-pc-u-boot.dtsi
arch/arm/dts/meson-gxl-s905x-khadas-vim-u-boot.dtsi
arch/arm/dts/meson-gxl-s905x-khadas-vim.dts
arch/arm/dts/meson-gxl-s905x-libretech-cc-u-boot.dtsi
arch/arm/dts/meson-gxl-s905x-libretech-cc.dts
arch/arm/dts/meson-gxl-s905x-p212.dtsi
arch/arm/dts/meson-gxl-u-boot.dtsi
arch/arm/dts/meson-gxl.dtsi
arch/arm/dts/meson-gxm-khadas-vim2-u-boot.dtsi
arch/arm/dts/meson-gxm-khadas-vim2.dts
arch/arm/dts/meson-gxm-s912-libretech-pc-u-boot.dtsi
arch/arm/dts/meson-gxm.dtsi
include/dt-bindings/reset/amlogic,meson-gxbb-reset.h
include/dt-bindings/sound/meson-aiu.h [new file with mode: 0644]

index aace3d32a3df233277eda6bed15e96d56abc2cde..8e6281c685fad7017f1da324ea844bdea0fe0564 100644 (file)
                };
 
                sram: sram@fffc0000 {
-                       compatible = "amlogic,meson-axg-sram", "mmio-sram";
+                       compatible = "mmio-sram";
                        reg = <0x0 0xfffc0000 0x0 0x20000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 0x0 0xfffc0000 0x20000>;
 
-                       cpu_scp_lpri: scp-shmem@13000 {
+                       cpu_scp_lpri: scp-sram@13000 {
                                compatible = "amlogic,meson-axg-scp-shmem";
                                reg = <0x13000 0x400>;
                        };
 
-                       cpu_scp_hpri: scp-shmem@13400 {
+                       cpu_scp_hpri: scp-sram@13400 {
                                compatible = "amlogic,meson-axg-scp-shmem";
                                reg = <0x13400 0x400>;
                        };
index 248b018c83d575e85a1f6318492ea50850220e55..c2480bab8d3374f13a90368d9671044d0da1d229 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/leds/common.h>
+#include <dt-bindings/sound/meson-aiu.h>
 
 / {
        adc-keys {
                spi0 = &spifc;
        };
 
+       dio2133: analog-amplifier {
+               compatible = "simple-audio-amplifier";
+               sound-name-prefix = "AU2";
+               VCC-supply = <&vcc5v>;
+               enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
+       };
+
        chosen {
                stdout-path = "serial0:115200n8";
        };
        leds {
                compatible = "gpio-leds";
 
-               green {
+               led-green {
                        color = <LED_COLOR_ID_GREEN>;
                        function = LED_FUNCTION_DISK_ACTIVITY;
                        gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "disk-activity";
                };
 
-               blue {
+               led-blue {
                        color = <LED_COLOR_ID_BLUE>;
                        function = LED_FUNCTION_STATUS;
                        gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
                regulator-settling-time-up-us = <200>;
                regulator-settling-time-down-us = <50000>;
        };
+
+       sound {
+               compatible = "amlogic,gx-sound-card";
+               model = "GXL-LIBRETECH-S9XX-PC";
+               audio-aux-devs = <&dio2133>;
+               audio-widgets = "Speaker", "7J4-14 LEFT",
+                               "Speaker", "7J4-11 RIGHT";
+               audio-routing = "AU2 INL", "ACODEC LOLN",
+                               "AU2 INR", "ACODEC LORN",
+                               "7J4-14 LEFT", "AU2 OUTL",
+                               "7J4-11 RIGHT", "AU2 OUTR";
+               assigned-clocks = <&clkc CLKID_MPLL0>,
+                                 <&clkc CLKID_MPLL1>,
+                                 <&clkc CLKID_MPLL2>;
+               assigned-clock-parents = <0>, <0>, <0>;
+               assigned-clock-rates = <294912000>,
+                                      <270950400>,
+                                      <393216000>;
+               status = "okay";
+
+               dai-link-0 {
+                       sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
+               };
+
+               dai-link-1 {
+                       sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
+                       dai-format = "i2s";
+                       mclk-fs = <256>;
+
+                       codec-0 {
+                               sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
+                       };
+
+                       codec-1 {
+                               sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
+                       };
+               };
+
+               dai-link-2 {
+                       sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
+
+                       codec-0 {
+                               sound-dai = <&hdmi_tx>;
+                       };
+               };
+
+               dai-link-3 {
+                       sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
+
+                       codec-0 {
+                               sound-dai = <&acodec>;
+                       };
+               };
+       };
+};
+
+&acodec {
+       AVDD-supply = <&vddio_ao18>;
+       status = "okay";
+};
+
+&aiu {
+       status = "okay";
 };
 
 &cec_AO {
        status = "okay";
 };
 
-&usb0 {
+&usb {
        status = "okay";
+       dr_mode = "host";
 };
 
 &usb2_phy0 {
index 03f79fe045b7f191216af87249b6a4aea2353379..ba63c36b22e0fa74237d4011740c520f067f67d4 100644 (file)
                                #reset-cells = <1>;
                        };
 
+                       aiu: audio-controller@5400 {
+                               compatible = "amlogic,aiu";
+                               #sound-dai-cells = <2>;
+                               sound-name-prefix = "AIU";
+                               reg = <0x0 0x5400 0x0 0x2ac>;
+                               interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
+                                            <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
+                               interrupt-names = "i2s", "spdif";
+                               status = "disabled";
+                       };
+
                        uart_A: serial@84c0 {
                                compatible = "amlogic,meson-gx-uart";
                                reg = <0x0 0x84c0 0x0 0x18>;
                };
 
                sram: sram@c8000000 {
-                       compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram";
+                       compatible = "mmio-sram";
                        reg = <0x0 0xc8000000 0x0 0x14000>;
 
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 0x0 0xc8000000 0x14000>;
 
-                       cpu_scp_lpri: scp-shmem@0 {
-                               compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
+                       cpu_scp_lpri: scp-sram@0 {
+                               compatible = "amlogic,meson-gxbb-scp-shmem";
                                reg = <0x13000 0x400>;
                        };
 
-                       cpu_scp_hpri: scp-shmem@200 {
-                               compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
+                       cpu_scp_hpri: scp-sram@200 {
+                               compatible = "amlogic,meson-gxbb-scp-shmem";
                                reg = <0x13400 0x400>;
                        };
                };
                        interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       #sound-dai-cells = <0>;
+                       sound-name-prefix = "HDMITX";
                        status = "disabled";
 
                        /* VPU VENC Input */
index d6ca684e0e616bc1d2a63df5fe5505f9fab46c2c..7be3e354093bfad3f8ac298889379ce32d072810 100644 (file)
@@ -29,7 +29,7 @@
        leds {
                compatible = "gpio-leds";
 
-               stat {
+               led-stat {
                        label = "nanopi-k2:blue:stat";
                        gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
index b46ef985bb4449aaea2a63aa835cf81d7965e5f5..70fcfb7b0683d43a9397301eb4403a155066b826 100644 (file)
@@ -49,7 +49,7 @@
 
        leds {
                compatible = "gpio-leds";
-               blue {
+               led-blue {
                        label = "c2:blue:alive";
                        gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
index 0cb40326b0d3fc9251c5ba0c14914dacf277fbf5..234490d3ee683a520e0d7c795e09f8bed9d1ba6c 100644 (file)
        };
 };
 
+&aiu {
+       compatible = "amlogic,aiu-gxbb", "amlogic,aiu";
+       clocks = <&clkc CLKID_AIU_GLUE>,
+                <&clkc CLKID_I2S_OUT>,
+                <&clkc CLKID_AOCLK_GATE>,
+                <&clkc CLKID_CTS_AMCLK>,
+                <&clkc CLKID_MIXER_IFACE>,
+                <&clkc CLKID_IEC958>,
+                <&clkc CLKID_IEC958_GATE>,
+                <&clkc CLKID_CTS_MCLK_I958>,
+                <&clkc CLKID_CTS_I958>;
+       clock-names = "pclk",
+                     "i2s_pclk",
+                     "i2s_aoclk",
+                     "i2s_mclk",
+                     "i2s_mixer",
+                     "spdif_pclk",
+                     "spdif_aoclk",
+                     "spdif_mclk",
+                     "spdif_mclk_sel";
+       resets = <&reset RESET_AIU>;
+};
+
 &aobus {
        pinctrl_aobus: pinctrl@14 {
                compatible = "amlogic,meson-gxbb-aobus-pinctrl";
index 474a3e160447a7daa8e61246ff1e74c3c87b6fee..39270ea71c8b1b8b293090a525a6c07b07461e8a 100644 (file)
@@ -5,7 +5,3 @@
  */
 
 #include "meson-gxl-u-boot.dtsi"
-
-&dwc2 {
-       status = "okay";
-};
index 4d5949496596697a5d2aa1d21b8aa4106d866b88..6a226faab18338f69c77c2470221454383eaf91f 100644 (file)
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/sound/meson-aiu.h>
 
 #include "meson-gxl-s905x.dtsi"
 
                regulator-always-on;
        };
 
+       vddio_ao18: regulator-vddio_ao18 {
+               compatible = "regulator-fixed";
+               regulator-name = "VDDIO_AO18";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               vin-supply = <&vcc_3v3>;
+               regulator-always-on;
+       };
+
        vddio_boot: regulator-vddio_boot {
                compatible = "regulator-fixed";
                regulator-name = "VDDIO_BOOT";
                vin-supply = <&vcc_3v3>;
                regulator-always-on;
        };
+
+       sound {
+               compatible = "amlogic,gx-sound-card";
+               model = "GXL-LIBRETECH-S805X-AC";
+               audio-widgets = "Speaker", "9J5-3 LEFT",
+                               "Speaker", "9J5-2 RIGHT";
+               audio-routing = "9J5-3 LEFT", "ACODEC LOLN",
+                               "9J5-2 RIGHT", "ACODEC LORN";
+               assigned-clocks = <&clkc CLKID_MPLL0>,
+                                 <&clkc CLKID_MPLL1>,
+                                 <&clkc CLKID_MPLL2>;
+               assigned-clock-parents = <0>, <0>, <0>;
+               assigned-clock-rates = <294912000>,
+                                      <270950400>,
+                                      <393216000>;
+               status = "okay";
+
+               dai-link-0 {
+                       sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
+               };
+
+               dai-link-1 {
+                       sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
+                       dai-format = "i2s";
+                       mclk-fs = <256>;
+
+                       codec-0 {
+                               sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
+                       };
+
+                       codec-1 {
+                               sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
+                       };
+               };
+
+               dai-link-2 {
+                       sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
+
+                       codec-0 {
+                               sound-dai = <&hdmi_tx>;
+                       };
+               };
+
+               dai-link-3 {
+                       sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
+
+                       codec-0 {
+                               sound-dai = <&acodec>;
+                       };
+               };
+       };
+};
+
+&acodec {
+       AVDD-supply = <&vddio_ao18>;
+       status = "okay";
+};
+
+&aiu {
+       status = "okay";
 };
 
 &cec_AO {
        pinctrl-names = "default";
 };
 
-&usb0 {
+&usb {
        status = "okay";
+       dr_mode = "host";
 };
index 474a3e160447a7daa8e61246ff1e74c3c87b6fee..39270ea71c8b1b8b293090a525a6c07b07461e8a 100644 (file)
@@ -5,7 +5,3 @@
  */
 
 #include "meson-gxl-u-boot.dtsi"
-
-&dwc2 {
-       status = "okay";
-};
index 474a3e160447a7daa8e61246ff1e74c3c87b6fee..39270ea71c8b1b8b293090a525a6c07b07461e8a 100644 (file)
@@ -5,7 +5,3 @@
  */
 
 #include "meson-gxl-u-boot.dtsi"
-
-&dwc2 {
-       status = "okay";
-};
index 440bc23c734268cd4638fb33ee063c748f51c487..8bcdffdf55d084d1e7bb7c86b60995e167f79e59 100644 (file)
        pinctrl-0 = <&uart_ao_b_pins>;
        pinctrl-names = "default";
 };
+
+&usb {
+       dr_mode = "peripheral";
+};
index 474a3e160447a7daa8e61246ff1e74c3c87b6fee..39270ea71c8b1b8b293090a525a6c07b07461e8a 100644 (file)
@@ -5,7 +5,3 @@
  */
 
 #include "meson-gxl-u-boot.dtsi"
-
-&dwc2 {
-       status = "okay";
-};
index e8348b2728db576cf8260b9fcc1c171d6f48f409..5ae7bb6209cbef94ae32d80b3050df96b1b32591 100644 (file)
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/sound/meson-aiu.h>
 
 #include "meson-gxl-s905x.dtsi"
 
                ethernet0 = &ethmac;
        };
 
+       dio2133: analog-amplifier {
+               compatible = "simple-audio-amplifier";
+               sound-name-prefix = "AU2";
+               VCC-supply = <&hdmi_5v>;
+               enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
+       };
+
        chosen {
                stdout-path = "serial0:115200n8";
        };
        leds {
                compatible = "gpio-leds";
 
-               system {
+               led-system {
                        label = "librecomputer:system-status";
                        gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                        panic-indicator;
                };
 
-               blue {
+               led-blue {
                        label = "librecomputer:blue";
                        gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                regulator-max-microvolt = <1800000>;
                vin-supply = <&vcc_3v3>;
        };
+
+       sound {
+               compatible = "amlogic,gx-sound-card";
+               model = "GXL-LIBRETECH-S905X-CC";
+               audio-aux-devs = <&dio2133>;
+               audio-widgets = "Line", "Lineout";
+               audio-routing = "AU2 INL", "ACODEC LOLN",
+                               "AU2 INR", "ACODEC LORN",
+                               "Lineout", "AU2 OUTL",
+                               "Lineout", "AU2 OUTR";
+               assigned-clocks = <&clkc CLKID_MPLL0>,
+                                 <&clkc CLKID_MPLL1>,
+                                 <&clkc CLKID_MPLL2>;
+               assigned-clock-parents = <0>, <0>, <0>;
+               assigned-clock-rates = <294912000>,
+                                      <270950400>,
+                                      <393216000>;
+               status = "okay";
+
+               dai-link-0 {
+                       sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
+               };
+
+               dai-link-1 {
+                       sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
+                       dai-format = "i2s";
+                       mclk-fs = <256>;
+
+                       codec-0 {
+                               sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
+                       };
+
+                       codec-1 {
+                               sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
+                       };
+               };
+
+               dai-link-2 {
+                       sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
+
+                       codec-0 {
+                               sound-dai = <&hdmi_tx>;
+                       };
+               };
+
+               dai-link-3 {
+                       sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
+
+                       codec-0 {
+                               sound-dai = <&acodec>;
+                       };
+               };
+       };
+};
+
+&acodec {
+       AVDD-supply = <&vddio_ao18>;
+       status = "okay";
+};
+
+&aiu {
+       status = "okay";
 };
 
 &cec_AO {
        pinctrl-names = "default";
 };
 
-&usb0 {
+&usb {
        status = "okay";
+       dr_mode = "host";
 };
 
 &usb2_phy0 {
index 6ac678f88bd89c1b349424146f1d9efd4830a231..05cb2f5e5c36280dda87cd79f2757c0c311f9276 100644 (file)
        pinctrl-names = "default";
 };
 
-&usb0 {
+&usb {
        status = "okay";
+       dr_mode = "host";
 };
 
 &usb2_phy0 {
index 9e88afd30eb3bf48ed1093fe0e40106bafe13e18..c35158d7e9ee15be16cda93572e296e4e0e46eac 100644 (file)
@@ -5,19 +5,3 @@
  */
 
 #include "meson-gx-u-boot.dtsi"
-
-&usb0 {
-       dwc2: usb@c9100000 {
-               compatible = "snps,dwc2";
-               reg = <0x0 0xc9100000 0x0 0x40000>;
-               interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
-               clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
-               clock-names = "ddr";
-               phys = <&usb3_phy>, <&usb2_phy1>;
-               dr_mode = "peripheral";
-               g-rx-fifo-size = <192>;
-               g-np-tx-fifo-size = <128>;
-               g-tx-fifo-size = <128 128 16 16 16>;
-               status = "disabled";
-       };
-};
index 259d8639939059fd1e6bd3ca1e7563caec4c0c21..fc59c8534c0f7dcaad2c8f4ca1d4b4b16c695636 100644 (file)
        compatible = "amlogic,meson-gxl";
 
        soc {
-               usb0: usb@c9000000 {
-                       status = "disabled";
-                       compatible = "amlogic,meson-gxl-dwc3";
+               usb: usb@d0078080 {
+                       compatible = "amlogic,meson-gxl-usb-ctrl";
+                       reg = <0x0 0xd0078080 0x0 0x20>;
+                       interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
                        #address-cells = <2>;
                        #size-cells = <2>;
                        ranges;
 
-                       clocks = <&clkc CLKID_USB>;
-                       clock-names = "usb_general";
+                       clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>;
+                       clock-names = "usb_ctrl", "ddr";
                        resets = <&reset RESET_USB_OTG>;
-                       reset-names = "usb_otg";
 
-                       dwc3: dwc3@c9000000 {
+                       dr_mode = "otg";
+
+                       phys = <&usb2_phy0>, <&usb2_phy1>;
+                       phy-names = "usb2-phy0", "usb2-phy1";
+
+                       dwc2: usb@c9100000 {
+                               compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
+                               reg = <0x0 0xc9100000 0x0 0x40000>;
+                               interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&clkc CLKID_USB1>;
+                               clock-names = "otg";
+                               phys = <&usb2_phy1>;
+                               dr_mode = "peripheral";
+                               g-rx-fifo-size = <192>;
+                               g-np-tx-fifo-size = <128>;
+                               g-tx-fifo-size = <128 128 16 16 16>;
+                       };
+
+                       dwc3: usb@c9000000 {
                                compatible = "snps,dwc3";
                                reg = <0x0 0xc9000000 0x0 0x100000>;
                                interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
                                maximum-speed = "high-speed";
                                snps,dis_u2_susphy_quirk;
-                               phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>;
                        };
                };
 
+               acodec: audio-controller@c8832000 {
+                       compatible = "amlogic,t9015";
+                       reg = <0x0 0xc8832000 0x0 0x14>;
+                       #sound-dai-cells = <0>;
+                       sound-name-prefix = "ACODEC";
+                       clocks = <&clkc CLKID_ACODEC>;
+                       clock-names = "pclk";
+                       resets = <&reset RESET_ACODEC>;
+                       status = "disabled";
+               };
+
                crypto: crypto@c883e000 {
                        compatible = "amlogic,gxl-crypto";
                        reg = <0x0 0xc883e000 0x0 0x36>;
        };
 };
 
+&aiu {
+       compatible = "amlogic,aiu-gxl", "amlogic,aiu";
+       clocks = <&clkc CLKID_AIU_GLUE>,
+                <&clkc CLKID_I2S_OUT>,
+                <&clkc CLKID_AOCLK_GATE>,
+                <&clkc CLKID_CTS_AMCLK>,
+                <&clkc CLKID_MIXER_IFACE>,
+                <&clkc CLKID_IEC958>,
+                <&clkc CLKID_IEC958_GATE>,
+                <&clkc CLKID_CTS_MCLK_I958>,
+                <&clkc CLKID_CTS_I958>;
+       clock-names = "pclk",
+                     "i2s_pclk",
+                     "i2s_aoclk",
+                     "i2s_mclk",
+                     "i2s_mixer",
+                     "spdif_pclk",
+                     "spdif_aoclk",
+                     "spdif_mclk",
+                     "spdif_mclk_sel";
+       resets = <&reset RESET_AIU>;
+};
+
 &apb {
        usb2_phy0: phy@78000 {
                compatible = "amlogic,meson-gxl-usb2-phy";
                reset-names = "phy";
                status = "okay";
        };
-
-       usb3_phy: phy@78080 {
-               compatible = "amlogic,meson-gxl-usb3-phy";
-               #phy-cells = <0>;
-               reg = <0x0 0x78080 0x0 0x20>;
-               interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
-               clocks = <&clkc CLKID_USB>, <&clkc_AO CLKID_AO_CEC_32K>;
-               clock-names = "phy", "peripheral";
-               resets = <&reset RESET_USB_OTG>, <&reset RESET_USB_OTG>;
-               reset-names = "phy", "peripheral";
-               status = "okay";
-       };
 };
 
 &efuse {
index 7aecf2696bd4cd2fc07da98553c371f9c3cc15a3..c1763336cf0e6d25e9e99d36c443a8d552e49335 100644 (file)
        };
 };
 
-&dwc2 {
-       status = "okay";
-};
-
 &sd_emmc_c {
        status = "okay";
        pinctrl-0 = <&emmc_pins>;
index 27eeab71ec772e74f47d499b4762d1bdb9292028..bff8ec2c1c70ce1d13367533c8390ed3c13c99c3 100644 (file)
        vref-supply = <&vddio_ao18>;
 };
 
-&usb0 {
+&usb {
        status = "okay";
+       dr_mode = "peripheral";
 };
index 474a3e160447a7daa8e61246ff1e74c3c87b6fee..39270ea71c8b1b8b293090a525a6c07b07461e8a 100644 (file)
@@ -5,7 +5,3 @@
  */
 
 #include "meson-gxl-u-boot.dtsi"
-
-&dwc2 {
-       status = "okay";
-};
index b6f89f108e2829ec94e734eff0f130c74f2d2d68..40e3e123e05b5dd7b01fe61930401e7e490e21ed 100644 (file)
        compatible = "amlogic,meson-gxm-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
 };
 
-&dwc3 {
-       phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>;
+&usb {
+       compatible = "amlogic,meson-gxm-usb-ctrl";
+
+       phy-names = "usb2-phy0", "usb2-phy1", "usb2-phy2";
+       phys = <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>;
 };
 
 &vdec {
index ea5058618863f23f120a849c1bb333040e48acd4..883bfd3bcbadc6d0c472aee21c2739026abf2ba1 100644 (file)
@@ -69,7 +69,7 @@
 #define RESET_SYS_CPU_L2               58
 #define RESET_SYS_CPU_P                        59
 #define RESET_SYS_CPU_MBIST            60
-/*                                     61      */
+#define RESET_ACODEC                   61
 /*                                     62      */
 /*                                     63      */
 /*     RESET2                                  */
diff --git a/include/dt-bindings/sound/meson-aiu.h b/include/dt-bindings/sound/meson-aiu.h
new file mode 100644 (file)
index 0000000..1051b8a
--- /dev/null
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __DT_MESON_AIU_H
+#define __DT_MESON_AIU_H
+
+#define AIU_CPU                        0
+#define AIU_HDMI               1
+#define AIU_ACODEC             2
+
+#define CPU_I2S_FIFO           0
+#define CPU_SPDIF_FIFO         1
+#define CPU_I2S_ENCODER                2
+#define CPU_SPDIF_ENCODER      3
+
+#define CTRL_I2S               0
+#define CTRL_PCM               1
+#define CTRL_OUT               2
+
+#endif /* __DT_MESON_AIU_H */