arm64: dts: mediatek: random Chromebook cleanups
Subsystems (2)
cover arm64: dts: mediatek: random Chromebook cleanups
Hi,
Here are some random DT cleanups that are not directly related to other topics I'm working on, but came up when checking for warnings.
The regulator related changes overlap with my other "Regulator cleanup for Chromebooks" series [1].
Please have a look.
Thanks
ChenYu
[1] https://lore.kernel.org/all/[email protected]/
Chen-Yu Tsai (4):
arm64: dts: mediatek: mt8192-asurada: Fix SPI-NOR flash compatible
arm64: dts: mediatek: mt8192-asurada: Add (BT|WIFI)_KILL_1V8_L GPIO
line names
arm64: dts: mediatek: mt8195-cherry: Fix names for EC controlled
regulators
arm64: dts: mediatek: mt8195-cherry: Sort top level nodes correctly
.../boot/dts/mediatek/mt8192-asurada.dtsi | 6 +- .../boot/dts/mediatek/mt8195-cherry.dtsi | 106 +++++++++--------- 2 files changed, 56 insertions(+), 56 deletions(-)
Signature · 1 line
2.54.0.563.g4f69b47b94-goog
PATCH 1/4 arm64: dts: mediatek: mt8192-asurada: Fix SPI-NOR flash compatible
For JEDEC compatible SPI NOR chips, there should be a single generic "jedec,spi-nor" compatible.
Drop the model-specific compatible from the flash node.
--- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +1 -1
@@ -631,7 +631,7 @@ &nor_flash { assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6_D8>; flash@0 { - compatible = "winbond,w25q64jwm", "jedec,spi-nor"; + compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <52000000>; spi-rx-bus-width = <2>;
Signature · 1 line
2.54.0.563.g4f69b47b94-goog
PATCH 2/4 arm64: dts: mediatek: mt8192-asurada: Add (BT|WIFI)_KILL_1V8_L GPIO line names
In reply to Chen-Yu TsaiGPIO lines 59 and 61 are named BT_KILL_1V8_L and WIFI_KILL_1V8_L in the hardware design. Add them to the gpio-line-names property to make the names available to users and developers.
--- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +2 -2
@@ -727,9 +727,9 @@ &pio { "SD_DATA1", "", "", + "BT_KILL_1V8_L", "", - "", - "", + "WIFI_KILL_1V8_L", "", "PCIE_WAKE_ODL", "PCIE_RST_L",
Signature · 1 line
2.54.0.563.g4f69b47b94-goog
PATCH 3/4 arm64: dts: mediatek: mt8195-cherry: Fix names for EC controlled regulators
In reply to Chen-Yu TsaiThe names currently given to the EC controlled regulators do not match what is used in the hardware design.
Fix the names and the labels.
--- arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +6 -6
@@ -717,8 +717,8 @@ &mmc1 { pinctrl-1 = <&mmc1_pins_default>; sd-uhs-sdr50; sd-uhs-sdr104; - vmmc-supply = <&mt_pmic_vmch_ldo_reg>; - vqmmc-supply = <&mt_pmic_vmc_ldo_reg>; + vmmc-supply = <&pp3000_sd>; + vqmmc-supply = <&pp3000_vmc_pmu>; }; &mt6359codec {
@@ -1436,19 +1436,19 @@ i2c_tunnel: i2c-tunnel { #size-cells = <0>; }; - mt_pmic_vmc_ldo_reg: regulator@0 { + pp3000_vmc_pmu: regulator@0 { compatible = "google,cros-ec-regulator"; reg = <0>; - regulator-name = "mt_pmic_vmc_ldo"; + regulator-name = "pp3000_vmc_pmu"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3600000>; vin-supply = <&pp4200_z2>; }; - mt_pmic_vmch_ldo_reg: regulator@1 { + pp3000_sd: regulator@1 { compatible = "google,cros-ec-regulator"; reg = <1>; - regulator-name = "mt_pmic_vmch_ldo"; + regulator-name = "pp3000_sd"; regulator-min-microvolt = <2700000>; regulator-max-microvolt = <3600000>; vin-supply = <&pp4200_z2>;
Signature · 1 line
2.54.0.563.g4f69b47b94-goog
PATCH 4/4 arm64: dts: mediatek: mt8195-cherry: Sort top level nodes correctly
In reply to Chen-Yu TsaiThe thermistor device nodes were added before the vbus regulator and reserved memory nodes, when they should be after them, based on alphabetical order of the device node _name_.
Move them to the correct position. No functional changes intended.
--- .../boot/dts/mediatek/mt8195-cherry.dtsi | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-)
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +47 -47
@@ -149,6 +149,53 @@ ppvar_sys: regulator-ppvar-sys { regulator-boot-on; }; + usb_vbus: regulator-5v0-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb-vbus"; + enable-active-high; + regulator-always-on; + vin-supply = <&pp5000_s5>; + }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + scp_mem: memory@50000000 { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + + adsp_mem: memory@60000000 { + compatible = "shared-dma-pool"; + reg = <0 0x60000000 0 0xd80000>; + no-map; + }; + + afe_mem: memory@60d80000 { + compatible = "shared-dma-pool"; + reg = <0 0x60d80000 0 0x100000>; + no-map; + }; + + adsp_device_mem: memory@60e80000 { + compatible = "shared-dma-pool"; + reg = <0 0x60e80000 0 0x280000>; + no-map; + }; + }; + + spk_amplifier: rt1019p { + compatible = "realtek,rt1019p"; + label = "rt1019p"; + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&rt1019p_pins_default>; + sdb-gpios = <&pio 100 GPIO_ACTIVE_HIGH>; + }; + /* Murata NCP03WF104F05RL */ tboard_thermistor1: thermal-sensor-t1 { compatible = "generic-adc-thermal";
@@ -219,53 +266,6 @@ tboard_thermistor2: thermal-sensor-t2 { 120000 51 125000 44>; }; - - usb_vbus: regulator-5v0-usb-vbus { - compatible = "regulator-fixed"; - regulator-name = "usb-vbus"; - enable-active-high; - regulator-always-on; - vin-supply = <&pp5000_s5>; - }; - - reserved_memory: reserved-memory { - #address-cells = <2>; - #size-cells = <2>; - ranges; - - scp_mem: memory@50000000 { - compatible = "shared-dma-pool"; - reg = <0 0x50000000 0 0x2900000>; - no-map; - }; - - adsp_mem: memory@60000000 { - compatible = "shared-dma-pool"; - reg = <0 0x60000000 0 0xd80000>; - no-map; - }; - - afe_mem: memory@60d80000 { - compatible = "shared-dma-pool"; - reg = <0 0x60d80000 0 0x100000>; - no-map; - }; - - adsp_device_mem: memory@60e80000 { - compatible = "shared-dma-pool"; - reg = <0 0x60e80000 0 0x280000>; - no-map; - }; - }; - - spk_amplifier: rt1019p { - compatible = "realtek,rt1019p"; - label = "rt1019p"; - #sound-dai-cells = <0>; - pinctrl-names = "default"; - pinctrl-0 = <&rt1019p_pins_default>; - sdb-gpios = <&pio 100 GPIO_ACTIVE_HIGH>; - }; }; &adsp {
Signature · 1 line
2.54.0.563.g4f69b47b94-goog
Quoted 9 lines · Chen-Yu Tsai
Here are some random DT cleanups that are not directly related to other topics I'm working on, but came up when checking for warnings.
The regulator related changes overlap with my other "Regulator cleanup for Chromebooks" series [1].
Please have a look.
[...]
Applied to v7.1-next/dts64, thanks!
[1/4] arm64: dts: mediatek: mt8192-asurada: Fix SPI-NOR flash compatible
commit: 95937cbb6d51e0c6f8ac937bd043fb3b442391ec
[2/4] arm64: dts: mediatek: mt8192-asurada: Add (BT|WIFI)_KILL_1V8_L GPIO line names
commit: c42235145c52955ab20fcb648bb8c7818f58282b
[3/4] arm64: dts: mediatek: mt8195-cherry: Fix names for EC controlled regulators
commit: 2066ac078402301d9aa50026dee017182d316eac
[4/4] arm64: dts: mediatek: mt8195-cherry: Sort top level nodes correctly
commit: 559b8b1524760ad8dc18d52c4415d40ee24d02fcCheers,
Angelo