Commit 80e7f21d authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'amlogic-dt64' of...

Merge tag 'amlogic-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into arm/dt

arm64: dts: Amlogic updates for v5.7
 - sound, bluetooth, thermal updates
 - A1: add secure power domain nodes
 - misc. cleanups

* tag 'amlogic-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic:
  arm64: dts: meson: add thermal zones to meson gx devices
  arm64: dts: meson: khadas-vim3: move model to g12b-khadas-vim3 dtsi
  arm64: dts: meson-g12b: fix N2/VIM3 audio card model names
  arm64: dts: meson-gxbb-vega-s95: fix bluetooth node
  arm64: dts: meson-gxl-s905x-p212: add bluetooth nodes
  arm64: dts: meson-gxbb-odroid-c2: add rc-odroid ir keymap
  arm64: dts: meson: fix gxm-khadas-vim2 wifi
  arm64: dts: meson: sei510: fix sound card codec node
  arm64: dts: meson: s400: fix sound card codec nodes
  arm64: dts: meson: add pdm reset line
  arm64: dts: g12-common: add parkmode_disable_ss_quirk on DWC3 controller
  arm64: dts: amlogic: add rc-videostrong-kii-pro keymap
  arm64: dts: meson: a1: add secure power domain controller

Link: https://lore.kernel.org/r/7hlfo0ugnj.fsf@baylibre.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 8e2d1136 cd13d5f1
...@@ -60,6 +60,12 @@ linux,cma { ...@@ -60,6 +60,12 @@ linux,cma {
sm: secure-monitor { sm: secure-monitor {
compatible = "amlogic,meson-gxbb-sm"; compatible = "amlogic,meson-gxbb-sm";
pwrc: power-controller {
compatible = "amlogic,meson-a1-pwrc";
#power-domain-cells = <1>;
status = "okay";
};
}; };
soc { soc {
......
...@@ -313,15 +313,15 @@ dai-link-6 { ...@@ -313,15 +313,15 @@ dai-link-6 {
dai-tdm-slot-rx-mask-1 = <1 1>; dai-tdm-slot-rx-mask-1 = <1 1>;
mclk-fs = <256>; mclk-fs = <256>;
codec@0 { codec-0 {
sound-dai = <&lineout>; sound-dai = <&lineout>;
}; };
codec@1 { codec-1 {
sound-dai = <&speaker_amp1>; sound-dai = <&speaker_amp1>;
}; };
codec@2 { codec-2 {
sound-dai = <&linein>; sound-dai = <&linein>;
}; };
......
...@@ -2220,6 +2220,7 @@ dwc3: usb@ff500000 { ...@@ -2220,6 +2220,7 @@ dwc3: usb@ff500000 {
dr_mode = "host"; dr_mode = "host";
snps,dis_u2_susphy_quirk; snps,dis_u2_susphy_quirk;
snps,quirk-frame-length-adjustment; snps,quirk-frame-length-adjustment;
snps,parkmode-disable-ss-quirk;
}; };
}; };
......
...@@ -56,6 +56,7 @@ pdm: audio-controller@40000 { ...@@ -56,6 +56,7 @@ pdm: audio-controller@40000 {
<&clkc_audio AUD_CLKID_PDM_DCLK>, <&clkc_audio AUD_CLKID_PDM_DCLK>,
<&clkc_audio AUD_CLKID_PDM_SYSCLK>; <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
clock-names = "pclk", "dclk", "sysclk"; clock-names = "pclk", "dclk", "sysclk";
resets = <&clkc_audio AUD_RESET_PDM>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -269,7 +269,7 @@ dai-link-7 { ...@@ -269,7 +269,7 @@ dai-link-7 {
dai-tdm-slot-tx-mask-3 = <1 1>; dai-tdm-slot-tx-mask-3 = <1 1>;
mclk-fs = <256>; mclk-fs = <256>;
codec@0 { codec {
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
}; };
}; };
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#include <dt-bindings/sound/meson-g12a-tohdmitx.h> #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
/ { / {
model = "Khadas VIM3";
vddcpu_a: regulator-vddcpu-a { vddcpu_a: regulator-vddcpu-a {
/* /*
* MP8756GD Regulator. * MP8756GD Regulator.
...@@ -48,7 +50,7 @@ vddcpu_b: regulator-vddcpu-b { ...@@ -48,7 +50,7 @@ vddcpu_b: regulator-vddcpu-b {
sound { sound {
compatible = "amlogic,axg-sound-card"; compatible = "amlogic,axg-sound-card";
model = "G12A-KHADAS-VIM3"; model = "G12B-KHADAS-VIM3";
audio-aux-devs = <&tdmout_b>; audio-aux-devs = <&tdmout_b>;
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
"TDMOUT_B IN 1", "FRDDR_B OUT 1", "TDMOUT_B IN 1", "FRDDR_B OUT 1",
......
...@@ -208,7 +208,7 @@ hdmi_connector_in: endpoint { ...@@ -208,7 +208,7 @@ hdmi_connector_in: endpoint {
sound { sound {
compatible = "amlogic,axg-sound-card"; compatible = "amlogic,axg-sound-card";
model = "G12A-ODROIDN2"; model = "G12B-ODROID-N2";
audio-aux-devs = <&tdmout_b>; audio-aux-devs = <&tdmout_b>;
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
"TDMOUT_B IN 1", "FRDDR_B OUT 1", "TDMOUT_B IN 1", "FRDDR_B OUT 1",
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/thermal/thermal.h>
/ { / {
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
...@@ -83,6 +84,7 @@ cpu0: cpu@0 { ...@@ -83,6 +84,7 @@ cpu0: cpu@0 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 0>; clocks = <&scpi_dvfs 0>;
#cooling-cells = <2>;
}; };
cpu1: cpu@1 { cpu1: cpu@1 {
...@@ -92,6 +94,7 @@ cpu1: cpu@1 { ...@@ -92,6 +94,7 @@ cpu1: cpu@1 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 0>; clocks = <&scpi_dvfs 0>;
#cooling-cells = <2>;
}; };
cpu2: cpu@2 { cpu2: cpu@2 {
...@@ -101,6 +104,7 @@ cpu2: cpu@2 { ...@@ -101,6 +104,7 @@ cpu2: cpu@2 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 0>; clocks = <&scpi_dvfs 0>;
#cooling-cells = <2>;
}; };
cpu3: cpu@3 { cpu3: cpu@3 {
...@@ -110,6 +114,7 @@ cpu3: cpu@3 { ...@@ -110,6 +114,7 @@ cpu3: cpu@3 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 0>; clocks = <&scpi_dvfs 0>;
#cooling-cells = <2>;
}; };
l2: l2-cache0 { l2: l2-cache0 {
...@@ -117,6 +122,53 @@ l2: l2-cache0 { ...@@ -117,6 +122,53 @@ l2: l2-cache0 {
}; };
}; };
thermal-zones {
cpu-thermal {
polling-delay-passive = <250>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
thermal-sensors = <&scpi_sensors 0>;
trips {
cpu_passive: cpu-passive {
temperature = <80000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
cpu_hot: cpu-hot {
temperature = <90000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "hot";
};
cpu_critical: cpu-critical {
temperature = <110000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
};
cpu_cooling_maps: cooling-maps {
map0 {
trip = <&cpu_passive>;
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
map1 {
trip = <&cpu_hot>;
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
};
arm-pmu { arm-pmu {
compatible = "arm,cortex-a53-pmu"; compatible = "arm,cortex-a53-pmu";
interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
......
...@@ -76,3 +76,7 @@ eth_phy0: ethernet-phy@0 { ...@@ -76,3 +76,7 @@ eth_phy0: ethernet-phy@0 {
}; };
}; };
}; };
&ir {
linux,rc-map-name = "rc-videostrong-kii-pro";
};
...@@ -248,6 +248,7 @@ &ir { ...@@ -248,6 +248,7 @@ &ir {
status = "okay"; status = "okay";
pinctrl-0 = <&remote_input_ao_pins>; pinctrl-0 = <&remote_input_ao_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
linux,rc-map-name = "rc-odroid";
}; };
&gpio_ao { &gpio_ao {
......
...@@ -245,6 +245,9 @@ &uart_A { ...@@ -245,6 +245,9 @@ &uart_A {
bluetooth { bluetooth {
compatible = "brcm,bcm43438-bt"; compatible = "brcm,bcm43438-bt";
shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
max-speed = <2000000>;
clocks = <&wifi32k>;
clock-names = "lpo";
}; };
}; };
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
/ { / {
aliases { aliases {
serial0 = &uart_AO; serial0 = &uart_AO;
serial1 = &uart_A;
ethernet0 = &ethmac; ethernet0 = &ethmac;
}; };
...@@ -180,6 +179,14 @@ &uart_A { ...@@ -180,6 +179,14 @@ &uart_A {
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
pinctrl-names = "default"; pinctrl-names = "default";
uart-has-rtscts; uart-has-rtscts;
bluetooth {
compatible = "brcm,bcm43438-bt";
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
max-speed = <2000000>;
clocks = <&wifi32k>;
clock-names = "lpo";
};
}; };
&uart_AO { &uart_AO {
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/thermal/thermal.h>
#include "meson-gxm.dtsi" #include "meson-gxm.dtsi"
...@@ -100,49 +99,6 @@ sdio_pwrseq: sdio-pwrseq { ...@@ -100,49 +99,6 @@ sdio_pwrseq: sdio-pwrseq {
clock-names = "ext_clock"; clock-names = "ext_clock";
}; };
thermal-zones {
cpu-thermal {
polling-delay-passive = <250>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
thermal-sensors = <&scpi_sensors 0>;
trips {
cpu_alert0: cpu-alert0 {
temperature = <70000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "active";
};
cpu_alert1: cpu-alert1 {
temperature = <80000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
};
cooling-maps {
map0 {
trip = <&cpu_alert0>;
cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
};
map1 {
trip = <&cpu_alert1>;
cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>,
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
};
hdmi_5v: regulator-hdmi-5v { hdmi_5v: regulator-hdmi-5v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
...@@ -198,36 +154,23 @@ &cec_AO { ...@@ -198,36 +154,23 @@ &cec_AO {
hdmi-phandle = <&hdmi_tx>; hdmi-phandle = <&hdmi_tx>;
}; };
&cpu0 {
#cooling-cells = <2>;
};
&cpu1 {
#cooling-cells = <2>;
};
&cpu2 {
#cooling-cells = <2>;
};
&cpu3 { &cpu_cooling_maps {
#cooling-cells = <2>; map0 {
}; cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
};
&cpu4 {
#cooling-cells = <2>;
};
&cpu5 {
#cooling-cells = <2>;
};
&cpu6 {
#cooling-cells = <2>;
};
&cpu7 { map1 {
#cooling-cells = <2>; cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>,
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
}; };
&ethmac { &ethmac {
...@@ -327,7 +270,7 @@ &sd_emmc_a { ...@@ -327,7 +270,7 @@ &sd_emmc_a {
#size-cells = <0>; #size-cells = <0>;
bus-width = <4>; bus-width = <4>;
max-frequency = <50000000>; max-frequency = <60000000>;
non-removable; non-removable;
disable-wp; disable-wp;
......
...@@ -49,6 +49,7 @@ cpu4: cpu@100 { ...@@ -49,6 +49,7 @@ cpu4: cpu@100 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 1>; clocks = <&scpi_dvfs 1>;
#cooling-cells = <2>;
}; };
cpu5: cpu@101 { cpu5: cpu@101 {
...@@ -58,6 +59,7 @@ cpu5: cpu@101 { ...@@ -58,6 +59,7 @@ cpu5: cpu@101 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 1>; clocks = <&scpi_dvfs 1>;
#cooling-cells = <2>;
}; };
cpu6: cpu@102 { cpu6: cpu@102 {
...@@ -67,6 +69,7 @@ cpu6: cpu@102 { ...@@ -67,6 +69,7 @@ cpu6: cpu@102 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 1>; clocks = <&scpi_dvfs 1>;
#cooling-cells = <2>;
}; };
cpu7: cpu@103 { cpu7: cpu@103 {
...@@ -76,6 +79,7 @@ cpu7: cpu@103 { ...@@ -76,6 +79,7 @@ cpu7: cpu@103 {
enable-method = "psci"; enable-method = "psci";
next-level-cache = <&l2>; next-level-cache = <&l2>;
clocks = <&scpi_dvfs 1>; clocks = <&scpi_dvfs 1>;
#cooling-cells = <2>;
}; };
}; };
}; };
...@@ -124,6 +128,30 @@ &clkc_AO { ...@@ -124,6 +128,30 @@ &clkc_AO {
compatible = "amlogic,meson-gxm-aoclkc", "amlogic,meson-gx-aoclkc"; compatible = "amlogic,meson-gxm-aoclkc", "amlogic,meson-gx-aoclkc";
}; };
&cpu_cooling_maps {
map0 {
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
map1 {
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
&saradc { &saradc {
compatible = "amlogic,meson-gxm-saradc", "amlogic,meson-saradc"; compatible = "amlogic,meson-gxm-saradc", "amlogic,meson-saradc";
}; };
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
#include <dt-bindings/gpio/meson-g12a-gpio.h> #include <dt-bindings/gpio/meson-g12a-gpio.h>
/ { / {
model = "Khadas VIM3";
aliases { aliases {
serial0 = &uart_AO; serial0 = &uart_AO;
ethernet0 = &ethmac; ethernet0 = &ethmac;
......
...@@ -448,6 +448,7 @@ pdm: audio-controller@61000 { ...@@ -448,6 +448,7 @@ pdm: audio-controller@61000 {
<&clkc_audio AUD_CLKID_PDM_DCLK>, <&clkc_audio AUD_CLKID_PDM_DCLK>,
<&clkc_audio AUD_CLKID_PDM_SYSCLK>; <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
clock-names = "pclk", "dclk", "sysclk"; clock-names = "pclk", "dclk", "sysclk";
resets = <&clkc_audio AUD_RESET_PDM>;
status = "disabled"; status = "disabled";
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment