Unverified Commit 1c8e994f authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

Merge tag 'amlogic-arm64-dt-for-v5.17' of...

Merge tag 'amlogic-arm64-dt-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into arm/dt

Amlogic ARM64 DT changes for v5.17:
- Add missing cec nodes for Odroid-C4 & HC4
- Fix thermal-zones indent for G12/SM1 SoCs dtsi
- Fix GPU OPP table node name for G12/SM1 SoCs dtsi
- Fix SPI NOR Flash node name for Odroid-N2/N2+
- Fixes for GXBB Wetek boards:
 - Fix HDMI supply
 - Add missing gpio bindings include
 - Switch to new LED bindings
- P241 additions:
 - Add VCC 5v regulator
 - Add sound nodes

* tag 'amlogic-arm64-dt-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux:
  arm64: dts: meson: p241: add sound support
  arm64: dts: meson: p241: add vcc_5v regulator
  arm64: dts: meson-gxbb-wetek: use updated LED bindings
  arm64: dts: meson-gxbb-wetek: fix missing GPIO binding
  arm64: dts: meson-gxbb-wetek: fix HDMI in early boot
  arm64: dts: amlogic: Fix SPI NOR flash node name for ODROID N2/N2+
  arm64: dts: amlogic: meson-g12: Fix GPU operating point table node name
  arm64: dts: amlogic: meson-g12: Fix thermal-zones indent
  arm64: dts: meson-sm1-odroid: add cec nodes

Link: https://lore.kernel.org/r/f47b9b95-6cde-d2f8-eb36-78777d449920@baylibre.com


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents f3141df0 0a62b3cc
Loading
Loading
Loading
Loading
+56 −56
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ efuse: efuse {
		secure-monitor = <&sm>;
	};

	gpu_opp_table: gpu-opp-table {
	gpu_opp_table: opp-table-gpu {
		compatible = "operating-points-v2";

		opp-124999998 {
@@ -159,61 +159,6 @@ &clkc CLKID_PCIE_COMB
			status = "disabled";
		};

		thermal-zones {
			cpu_thermal: cpu-thermal {
				polling-delay = <1000>;
				polling-delay-passive = <100>;
				thermal-sensors = <&cpu_temp>;

				trips {
					cpu_passive: cpu-passive {
						temperature = <85000>; /* millicelsius */
						hysteresis = <2000>; /* millicelsius */
						type = "passive";
					};

					cpu_hot: cpu-hot {
						temperature = <95000>; /* millicelsius */
						hysteresis = <2000>; /* millicelsius */
						type = "hot";
					};

					cpu_critical: cpu-critical {
						temperature = <110000>; /* millicelsius */
						hysteresis = <2000>; /* millicelsius */
						type = "critical";
					};
				};
			};

			ddr_thermal: ddr-thermal {
				polling-delay = <1000>;
				polling-delay-passive = <100>;
				thermal-sensors = <&ddr_temp>;

				trips {
					ddr_passive: ddr-passive {
						temperature = <85000>; /* millicelsius */
						hysteresis = <2000>; /* millicelsius */
						type = "passive";
					};

					ddr_critical: ddr-critical {
						temperature = <110000>; /* millicelsius */
						hysteresis = <2000>; /* millicelsius */
						type = "critical";
					};
				};

				cooling-maps {
					map {
						trip = <&ddr_passive>;
						cooling-device = <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
					};
				};
			};
		};

		ethmac: ethernet@ff3f0000 {
			compatible = "amlogic,meson-g12a-dwmac",
				     "snps,dwmac-3.70a",
@@ -2415,6 +2360,61 @@ mali: gpu@ffe40000 {
		};
	};

	thermal-zones {
		cpu_thermal: cpu-thermal {
			polling-delay = <1000>;
			polling-delay-passive = <100>;
			thermal-sensors = <&cpu_temp>;

			trips {
				cpu_passive: cpu-passive {
					temperature = <85000>; /* millicelsius */
					hysteresis = <2000>; /* millicelsius */
					type = "passive";
				};

				cpu_hot: cpu-hot {
					temperature = <95000>; /* millicelsius */
					hysteresis = <2000>; /* millicelsius */
					type = "hot";
				};

				cpu_critical: cpu-critical {
					temperature = <110000>; /* millicelsius */
					hysteresis = <2000>; /* millicelsius */
					type = "critical";
				};
			};
		};

		ddr_thermal: ddr-thermal {
			polling-delay = <1000>;
			polling-delay-passive = <100>;
			thermal-sensors = <&ddr_temp>;

			trips {
				ddr_passive: ddr-passive {
					temperature = <85000>; /* millicelsius */
					hysteresis = <2000>; /* millicelsius */
					type = "passive";
				};

				ddr_critical: ddr-critical {
					temperature = <110000>; /* millicelsius */
					hysteresis = <2000>; /* millicelsius */
					type = "critical";
				};
			};

			cooling-maps {
				map {
					trip = <&ddr_passive>;
					cooling-device = <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
				};
			};
		};
	};

	timer {
		compatible = "arm,armv8-timer";
		interrupts = <GIC_PPI 13
+1 −1
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ &spifc {
	pinctrl-0 = <&nor_pins>;
	pinctrl-names = "default";

	mx25u64: spi-flash@0 {
	mx25u64: flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "mxicy,mx25u6435f", "jedec,spi-nor";
+8 −2
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
 */

#include "meson-gxbb.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>

/ {
	aliases {
@@ -25,8 +27,10 @@ memory@0 {
	leds {
		compatible = "gpio-leds";

		led-system {
			label = "wetek-play:system-status";
		led-power {
			/* red in suspend or power-off */
			color = <LED_COLOR_ID_BLUE>;
			function = LED_FUNCTION_POWER;
			gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
			default-state = "on";
			panic-indicator;
@@ -64,6 +68,7 @@ vddio_ao18: regulator-vddio_ao18 {
		regulator-name = "VDDIO_AO18";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-always-on;
	};

	vcc_3v3: regulator-vcc_3v3 {
@@ -161,6 +166,7 @@ &hdmi_tx {
	status = "okay";
	pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
	pinctrl-names = "default";
	hdmi-supply = <&vddio_ao18>;
};

&hdmi_tx_tmds_port {
+83 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
/dts-v1/;

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

#include "meson-gxl-s805x.dtsi"

@@ -21,6 +22,13 @@ aliases {
		ethernet0 = &ethmac;
	};

	au2: analog-amplifier {
		compatible = "simple-audio-amplifier";
		sound-name-prefix = "AU2";
		VCC-supply = <&vcc_5v>;
		enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};
@@ -84,6 +92,14 @@ vcc_3v3: regulator-vcc_3v3 {
		regulator-max-microvolt = <3300000>;
	};

	vcc_5v: regulator-vcc-5v {
		compatible = "regulator-fixed";
		regulator-name = "VCC_5V";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
	};


	emmc_pwrseq: emmc-pwrseq {
		compatible = "mmc-pwrseq-emmc";
		reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
@@ -102,6 +118,68 @@ sdio_pwrseq: sdio-pwrseq {
		clocks = <&wifi32k>;
		clock-names = "ext_clock";
	};

	sound {
		compatible = "amlogic,gx-sound-card";
		model = "GXL-P241";
		audio-aux-devs = <&au2>;
		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 {
@@ -136,6 +214,7 @@ &hdmi_tx {
	status = "okay";
	pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
	pinctrl-names = "default";
	hdmi-supply = <&vcc_5v>;
};

&hdmi_tx_tmds_port {
@@ -220,3 +299,7 @@ &usb {
	status = "okay";
	dr_mode = "host";
};

&usb2_phy0 {
	phy-supply = <&vcc_5v>;
};
+14 −0
Original line number Diff line number Diff line
@@ -225,6 +225,20 @@ &arb {
	status = "okay";
};

&cec_AO {
	pinctrl-0 = <&cec_ao_a_h_pins>;
	pinctrl-names = "default";
	status = "disabled";
	hdmi-phandle = <&hdmi_tx>;
};

&cecb_AO {
	pinctrl-0 = <&cec_ao_b_h_pins>;
	pinctrl-names = "default";
	status = "okay";
	hdmi-phandle = <&hdmi_tx>;
};

&clkc_audio {
	status = "okay";
};