ramips: dts: adjust the power regulators of MMC controller
- Fix MMC bus IO voltage. The GPIO voltage of mt762x series SoCs is fixed 3.3V. There are no visible registers that can control the voltage level. Also add "no-1-8-v" property to indicate that MMC controller doesn't support 1.8V IO. - Drop useless property "enable-active-high". These dummy fixed voltage regulators are not controlled by the GPIO. We don't need to set the GPIO polarity. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18886 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
a617ab6639
commit
afdf88b9a1
4 changed files with 46 additions and 72 deletions
|
@ -32,28 +32,22 @@
|
|||
compatible = "mti,cpu-interrupt-controller";
|
||||
};
|
||||
|
||||
mmc_reg_1v8: regulator-1v8 {
|
||||
reg_vmmc: regulator-vmmc {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
enable-active-high;
|
||||
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-name = "mmc_io";
|
||||
};
|
||||
|
||||
mmc_reg_3v3: regulator-3v3 {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
enable-active-high;
|
||||
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-name = "mmc_power";
|
||||
};
|
||||
|
||||
reg_vqmmc: regulator-vqmmc {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-name = "mmc_io";
|
||||
};
|
||||
|
||||
palmbus: palmbus@10000000 {
|
||||
compatible = "palmbus";
|
||||
reg = <0x10000000 0x200000>;
|
||||
|
@ -528,20 +522,18 @@
|
|||
reg = <0x10130000 0x4000>;
|
||||
|
||||
bus-width = <4>;
|
||||
|
||||
max-frequency = <24000000>;
|
||||
cap-mmc-highspeed;
|
||||
cap-sd-highspeed;
|
||||
disable-wp;
|
||||
no-1-8-v;
|
||||
|
||||
clocks = <&sysc 15>, <&sysc 15>;
|
||||
clock-names = "source", "hclk";
|
||||
|
||||
disable-wp;
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <14>;
|
||||
|
||||
max-frequency = <24000000>;
|
||||
|
||||
pinctrl-names = "default", "state_uhs";
|
||||
pinctrl-0 = <&sdhci_pins>;
|
||||
pinctrl-1 = <&sdhci_pins>;
|
||||
|
@ -549,8 +541,8 @@
|
|||
resets = <&sysc 30>;
|
||||
reset-names = "hrst";
|
||||
|
||||
vmmc-supply = <&mmc_reg_3v3>;
|
||||
vqmmc-supply = <&mmc_reg_1v8>;
|
||||
vmmc-supply = <®_vmmc>;
|
||||
vqmmc-supply = <®_vqmmc>;
|
||||
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
|
@ -87,12 +87,6 @@
|
|||
mediatek,ephy-base = /bits/ 8 <12>;
|
||||
};
|
||||
|
||||
&mmc_reg_3v3 {
|
||||
/delete-property/ enable-active-high;
|
||||
|
||||
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&pcie {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -107,6 +101,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
®_vmmc {
|
||||
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&wmac {
|
||||
pinctrl-names = "default", "pa_gpio";
|
||||
pinctrl-0 = <&pa_pins>;
|
||||
|
|
|
@ -42,28 +42,22 @@
|
|||
bootargs = "console=ttyS0,57600";
|
||||
};
|
||||
|
||||
mmc_reg_1v8: regulator-1v8 {
|
||||
reg_vmmc: regulator-vmmc {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
enable-active-high;
|
||||
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-name = "mmc_io";
|
||||
};
|
||||
|
||||
mmc_reg_3v3: regulator-3v3 {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
enable-active-high;
|
||||
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-name = "mmc_power";
|
||||
};
|
||||
|
||||
reg_vqmmc: regulator-vqmmc {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-name = "mmc_io";
|
||||
};
|
||||
|
||||
reg_vbus: regulator-vbus {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-always-on;
|
||||
|
@ -369,20 +363,18 @@
|
|||
reg = <0x1e130000 0x4000>;
|
||||
|
||||
bus-width = <4>;
|
||||
|
||||
max-frequency = <48000000>;
|
||||
cap-mmc-highspeed;
|
||||
cap-sd-highspeed;
|
||||
disable-wp;
|
||||
no-1-8-v;
|
||||
|
||||
clocks = <&sysc MT7621_CLK_SHXC>, <&sysc MT7621_CLK_SHXC>;
|
||||
clock-names = "source", "hclk";
|
||||
|
||||
disable-wp;
|
||||
|
||||
interrupt-parent = <&gic>;
|
||||
interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
|
||||
|
||||
max-frequency = <48000000>;
|
||||
|
||||
pinctrl-names = "default", "state_uhs";
|
||||
pinctrl-0 = <&sdhci_pins>;
|
||||
pinctrl-1 = <&sdhci_pins>;
|
||||
|
@ -390,8 +382,8 @@
|
|||
resets = <&sysc MT7621_RST_SDXC>;
|
||||
reset-names = "hrst";
|
||||
|
||||
vmmc-supply = <&mmc_reg_3v3>;
|
||||
vqmmc-supply = <&mmc_reg_1v8>;
|
||||
vmmc-supply = <®_vmmc>;
|
||||
vqmmc-supply = <®_vqmmc>;
|
||||
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
|
@ -30,28 +30,22 @@
|
|||
compatible = "mti,cpu-interrupt-controller";
|
||||
};
|
||||
|
||||
mmc_reg_1v8: regulator-1v8 {
|
||||
reg_vmmc: regulator-vmmc {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
enable-active-high;
|
||||
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-name = "mmc_io";
|
||||
};
|
||||
|
||||
mmc_reg_3v3: regulator-3v3 {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
enable-active-high;
|
||||
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-name = "mmc_power";
|
||||
};
|
||||
|
||||
reg_vqmmc: regulator-vqmmc {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-always-on;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-name = "mmc_io";
|
||||
};
|
||||
|
||||
palmbus: palmbus@10000000 {
|
||||
compatible = "palmbus";
|
||||
reg = <0x10000000 0x200000>;
|
||||
|
@ -382,20 +376,18 @@
|
|||
reg = <0x10130000 0x4000>;
|
||||
|
||||
bus-width = <4>;
|
||||
|
||||
max-frequency = <24000000>;
|
||||
cap-mmc-highspeed;
|
||||
cap-sd-highspeed;
|
||||
disable-wp;
|
||||
no-1-8-v;
|
||||
|
||||
clocks = <&sysc 16>, <&sysc 16>;
|
||||
clock-names = "source", "hclk";
|
||||
|
||||
disable-wp;
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <14>;
|
||||
|
||||
max-frequency = <24000000>;
|
||||
|
||||
pinctrl-names = "default", "state_uhs";
|
||||
pinctrl-0 = <&sdxc_pins>;
|
||||
pinctrl-1 = <&sdxc_pins>;
|
||||
|
@ -403,8 +395,8 @@
|
|||
resets = <&sysc 30>;
|
||||
reset-names = "hrst";
|
||||
|
||||
vmmc-supply = <&mmc_reg_3v3>;
|
||||
vqmmc-supply = <&mmc_reg_1v8>;
|
||||
vmmc-supply = <®_vmmc>;
|
||||
vqmmc-supply = <®_vqmmc>;
|
||||
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue