Merge tag 'amlogic-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman...
authorArnd Bergmann <arnd@arndb.de>
Wed, 25 Mar 2020 21:03:01 +0000 (22:03 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 25 Mar 2020 21:03:27 +0000 (22:03 +0100)
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.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
16 files changed:
arch/arm64/boot/dts/amlogic/meson-a1.dtsi
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
arch/arm64/boot/dts/amlogic/meson-g12.dtsi
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts
arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
arch/arm64/boot/dts/amlogic/meson-gx.dtsi
arch/arm64/boot/dts/amlogic/meson-gxbb-kii-pro.dts
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
arch/arm64/boot/dts/amlogic/meson-gxm.dtsi
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
arch/arm64/boot/dts/amlogic/meson-sm1.dtsi

index 4dec518c4dded9f9002b7ea4adeef49f276d9130..755b4ad1518467247894b7890a25f11f41db3049 100644 (file)
 
        sm: secure-monitor {
                compatible = "amlogic,meson-gxbb-sm";
+
+               pwrc: power-controller {
+                       compatible = "amlogic,meson-a1-pwrc";
+                       #power-domain-cells = <1>;
+                       status = "okay";
+               };
        };
 
        soc {
index 4cd2d595182282bffd73670110fa8e895a65fe41..cb1360ae1211e27b7783eac19ad00244f121e12f 100644 (file)
                        dai-tdm-slot-rx-mask-1 = <1 1>;
                        mclk-fs = <256>;
 
-                       codec@0 {
+                       codec-0 {
                                sound-dai = <&lineout>;
                        };
 
-                       codec@1 {
+                       codec-1 {
                                sound-dai = <&speaker_amp1>;
                        };
 
-                       codec@2 {
+                       codec-2 {
                                sound-dai = <&linein>;
                        };
 
index abe04f4ad7d873ba95f41e3b2e7b2b767f65aab9..87b9a47a51b92e3b0cf92a42159002ed9388b659 100644 (file)
                                dr_mode = "host";
                                snps,dis_u2_susphy_quirk;
                                snps,quirk-frame-length-adjustment;
+                               snps,parkmode-disable-ss-quirk;
                        };
                };
 
index 03054c478896c27a2301bd5d03f7a054c657b286..55d39020ec72f5ad28dcdd5c9de243d9024eaccc 100644 (file)
@@ -56,6 +56,7 @@
                         <&clkc_audio AUD_CLKID_PDM_DCLK>,
                         <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
                clock-names = "pclk", "dclk", "sysclk";
+               resets = <&clkc_audio AUD_RESET_PDM>;
                status = "disabled";
        };
 
index 2ac9e3a43b966a43e296b4504d2078f3807627ab..168f460e11fadbc1a990debc6056a84d60e1f000 100644 (file)
                        dai-tdm-slot-tx-mask-3 = <1 1>;
                        mclk-fs = <256>;
 
-                       codec@0 {
+                       codec {
                                sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
                        };
                };
index 554863429aa6d5d3687283b349b0c571dbe0388c..c33e85fbdaba1f1de25c7335a61970e0d44c8677 100644 (file)
@@ -8,6 +8,8 @@
 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
 
 / {
+       model = "Khadas VIM3";
+
        vddcpu_a: regulator-vddcpu-a {
                /*
                 * MP8756GD Regulator.
@@ -48,7 +50,7 @@
 
        sound {
                compatible = "amlogic,axg-sound-card";
-               model = "G12A-KHADAS-VIM3";
+               model = "G12B-KHADAS-VIM3";
                audio-aux-devs = <&tdmout_b>;
                audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
                                "TDMOUT_B IN 1", "FRDDR_B OUT 1",
index 0e54c1dc2842b2a85486d348d5d84dc5948e1828..8830d38448854896604c3eed50eeb3894f157963 100644 (file)
 
        sound {
                compatible = "amlogic,axg-sound-card";
-               model = "G12A-ODROIDN2";
+               model = "G12B-ODROID-N2";
                audio-aux-devs = <&tdmout_b>;
                audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
                                "TDMOUT_B IN 1", "FRDDR_B OUT 1",
index 40db06e28b662f85e1d20c12fd1fe52f7ad85680..03f79fe045b7f191216af87249b6a4aea2353379 100644 (file)
@@ -12,6 +12,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/thermal/thermal.h>
 
 / {
        interrupt-parent = <&gic>;
@@ -83,6 +84,7 @@
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 0>;
+                       #cooling-cells = <2>;
                };
 
                cpu1: cpu@1 {
@@ -92,6 +94,7 @@
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 0>;
+                       #cooling-cells = <2>;
                };
 
                cpu2: cpu@2 {
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 0>;
+                       #cooling-cells = <2>;
                };
 
                cpu3: cpu@3 {
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 0>;
+                       #cooling-cells = <2>;
                };
 
                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 {
                compatible = "arm,cortex-a53-pmu";
                interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
index 2f1f829450a293368262ca9aed51411e3ce5c66e..6c9cc45fb417e9a63e6f3cbda4aa938ddd6e34c5 100644 (file)
@@ -76,3 +76,7 @@
                };
        };
 };
+
+&ir {
+       linux,rc-map-name = "rc-videostrong-kii-pro";
+};
index 6ded279c40c86f42e5d42d26c536d424849ce1a3..b46ef985bb4449aaea2a63aa835cf81d7965e5f5 100644 (file)
        status = "okay";
        pinctrl-0 = <&remote_input_ao_pins>;
        pinctrl-names = "default";
+       linux,rc-map-name = "rc-odroid";
 };
 
 &gpio_ao {
index 5eab3dfdbd55adc612005fd254af4b27d17e11e8..45cb83625951a97f6de3b4b9d050dd74893b7bf3 100644 (file)
        bluetooth {
                compatible = "brcm,bcm43438-bt";
                shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
+               max-speed = <2000000>;
+               clocks = <&wifi32k>;
+               clock-names = "lpo";
        };
 };
 
index 43eb7d149e3647b1590f5c11f29676813591bbd8..6ac678f88bd89c1b349424146f1d9efd4830a231 100644 (file)
@@ -15,7 +15,6 @@
 / {
        aliases {
                serial0 = &uart_AO;
-               serial1 = &uart_A;
                ethernet0 = &ethmac;
        };
 
        pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
        pinctrl-names = "default";
        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 {
index f82f25c1a5f97be47d4593be9850ac0c5c7f0f32..27eeab71ec772e74f47d499b4762d1bdb9292028 100644 (file)
@@ -8,7 +8,6 @@
 /dts-v1/;
 
 #include <dt-bindings/input/input.h>
-#include <dt-bindings/thermal/thermal.h>
 
 #include "meson-gxm.dtsi"
 
                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 {
                compatible = "regulator-fixed";
 
        hdmi-phandle = <&hdmi_tx>;
 };
 
-&cpu0 {
-       #cooling-cells = <2>;
-};
-
-&cpu1 {
-       #cooling-cells = <2>;
-};
-
-&cpu2 {
-       #cooling-cells = <2>;
-};
 
-&cpu3 {
-       #cooling-cells = <2>;
-};
-
-&cpu4 {
-       #cooling-cells = <2>;
-};
-
-&cpu5 {
-       #cooling-cells = <2>;
-};
-
-&cpu6 {
-       #cooling-cells = <2>;
-};
+&cpu_cooling_maps {
+       map0 {
+               cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>;
+       };
 
-&cpu7 {
-       #cooling-cells = <2>;
+       map1 {
+               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 {
        #size-cells = <0>;
 
        bus-width = <4>;
-       max-frequency = <50000000>;
+       max-frequency = <60000000>;
 
        non-removable;
        disable-wp;
index 5ff64a0d2dcf8aeecd677b8215738184e5fe2348..b6f89f108e2829ec94e734eff0f130c74f2d2d68 100644 (file)
@@ -49,6 +49,7 @@
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 1>;
+                       #cooling-cells = <2>;
                };
 
                cpu5: cpu@101 {
@@ -58,6 +59,7 @@
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 1>;
+                       #cooling-cells = <2>;
                };
 
                cpu6: cpu@102 {
@@ -67,6 +69,7 @@
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 1>;
+                       #cooling-cells = <2>;
                };
 
                cpu7: cpu@103 {
@@ -76,6 +79,7 @@
                        enable-method = "psci";
                        next-level-cache = <&l2>;
                        clocks = <&scpi_dvfs 1>;
+                       #cooling-cells = <2>;
                };
        };
 };
        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 {
        compatible = "amlogic,meson-gxm-saradc", "amlogic,meson-saradc";
 };
index 90815fa25ec645486e2f05654e00ffa5595c9f74..0ef60c7151cb45eedbd9d65241ef60b69079de2a 100644 (file)
@@ -9,8 +9,6 @@
 #include <dt-bindings/gpio/meson-g12a-gpio.h>
 
 / {
-       model = "Khadas VIM3";
-
        aliases {
                serial0 = &uart_AO;
                ethernet0 = &ethmac;
index d847a3fcbc85764222915bac1cbc9372e03f1539..d4ec735fb1a5cadeac0488c5b4b0e51289a7c7c4 100644 (file)
                         <&clkc_audio AUD_CLKID_PDM_DCLK>,
                         <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
                clock-names = "pclk", "dclk", "sysclk";
+               resets = <&clkc_audio AUD_RESET_PDM>;
                status = "disabled";
        };
 };