Skip to content

Commit

Permalink
ARM: dts: sync amlogic AXG/GXL/GXM DT from Linux 5.8-rc1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
superna9999 committed Oct 5, 2020
1 parent 394c6b0 commit 4e7b0a3
Show file tree
Hide file tree
Showing 22 changed files with 358 additions and 82 deletions.
6 changes: 3 additions & 3 deletions arch/arm/dts/meson-axg.dtsi
Expand Up @@ -1735,18 +1735,18 @@
};

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>;
};
Expand Down
78 changes: 75 additions & 3 deletions arch/arm/dts/meson-gx-libretech-pc.dtsi
Expand Up @@ -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 {
Expand All @@ -29,6 +30,13 @@
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";
};
Expand Down Expand Up @@ -96,14 +104,14 @@
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>;
Expand Down Expand Up @@ -175,6 +183,69 @@
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 {
Expand Down Expand Up @@ -360,8 +431,9 @@
status = "okay";
};

&usb0 {
&usb {
status = "okay";
dr_mode = "host";
};

&usb2_phy0 {
Expand Down
23 changes: 18 additions & 5 deletions arch/arm/dts/meson-gx.dtsi
Expand Up @@ -278,6 +278,17 @@
#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>;
Expand Down Expand Up @@ -398,20 +409,20 @@
};

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>;
};
};
Expand Down Expand Up @@ -626,6 +637,8 @@
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 */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/dts/meson-gxbb-nanopi-k2.dts
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/dts/meson-gxbb-odroidc2.dts
Expand Up @@ -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";
Expand Down
23 changes: 23 additions & 0 deletions arch/arm/dts/meson-gxbb.dtsi
Expand Up @@ -60,6 +60,29 @@
};
};

&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";
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/dts/meson-gxl-s805x-libretech-ac-u-boot.dtsi
Expand Up @@ -5,7 +5,3 @@
*/

#include "meson-gxl-u-boot.dtsi"

&dwc2 {
status = "okay";
};
73 changes: 72 additions & 1 deletion arch/arm/dts/meson-gxl-s805x-libretech-ac.dts
Expand Up @@ -8,6 +8,7 @@
/dts-v1/;

#include <dt-bindings/input/input.h>
#include <dt-bindings/sound/meson-aiu.h>

#include "meson-gxl-s905x.dtsi"

Expand Down Expand Up @@ -97,6 +98,15 @@
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";
Expand All @@ -105,6 +115,66 @@
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 {
Expand Down Expand Up @@ -243,6 +313,7 @@
pinctrl-names = "default";
};

&usb0 {
&usb {
status = "okay";
dr_mode = "host";
};
4 changes: 0 additions & 4 deletions arch/arm/dts/meson-gxl-s905d-libretech-pc-u-boot.dtsi
Expand Up @@ -5,7 +5,3 @@
*/

#include "meson-gxl-u-boot.dtsi"

&dwc2 {
status = "okay";
};
4 changes: 0 additions & 4 deletions arch/arm/dts/meson-gxl-s905x-khadas-vim-u-boot.dtsi
Expand Up @@ -5,7 +5,3 @@
*/

#include "meson-gxl-u-boot.dtsi"

&dwc2 {
status = "okay";
};
4 changes: 4 additions & 0 deletions arch/arm/dts/meson-gxl-s905x-khadas-vim.dts
Expand Up @@ -207,3 +207,7 @@
pinctrl-0 = <&uart_ao_b_pins>;
pinctrl-names = "default";
};

&usb {
dr_mode = "peripheral";
};
4 changes: 0 additions & 4 deletions arch/arm/dts/meson-gxl-s905x-libretech-cc-u-boot.dtsi
Expand Up @@ -5,7 +5,3 @@
*/

#include "meson-gxl-u-boot.dtsi"

&dwc2 {
status = "okay";
};

0 comments on commit 4e7b0a3

Please sign in to comment.