Commit 194eb4ea authored by Olof Johansson's avatar Olof Johansson

Merge tag 'amlogic-arm64-dt-for-v5.14-v2' of...

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

Amlogic ARM64 DT changes for v5.14 round 2:
-  various fixes for Odroid C4/HC4 regulators handling, USB and SPI NOR Flash for HC4

* tag 'amlogic-arm64-dt-for-v5.14-v2' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux:
  arm64: dts: meson-sm1-odroid-c4: remove invalid hub_5v regulator
  arm64: dts: meson-sm1-odroid-hc4: add spifc node to ODROID-HC4
  arm64: dts: meson-sm1-odroid-hc4: add regulators controlled by GPIOH_8
  arm64: dts: meson-sm1-odroid-hc4: disable unused USB PHY0
  arm64: dts: meson-sm1-odroid: add 5v regulator gpio
  arm64: dts: meson-sm1-odroid: set tf_io regulator gpio as open source
  arm64: dts: meson-sm1-odroid: add missing enable gpio and supply for tf_io regulator

Link: https://lore.kernel.org/r/c953e97a-f901-a749-1fb6-b1caa75b4748@baylibre.comSigned-off-by: default avatarOlof Johansson <olof@lixom.net>
parents 8d8538a4 303d2af2
...@@ -23,18 +23,6 @@ led-blue { ...@@ -23,18 +23,6 @@ led-blue {
}; };
}; };
hub_5v: regulator-hub_5v {
compatible = "regulator-fixed";
regulator-name = "HUB_5V";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc_5v>;
/* Connected to the Hub CHIPENABLE, LOW sets low power state */
gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
sound { sound {
model = "ODROID-C4"; model = "ODROID-C4";
}; };
...@@ -58,8 +46,3 @@ hog-0 { ...@@ -58,8 +46,3 @@ hog-0 {
&ir { &ir {
linux,rc-map-name = "rc-odroid"; linux,rc-map-name = "rc-odroid";
}; };
&usb2_phy1 {
/* Enable the hub which is connected to this port */
phy-supply = <&hub_5v>;
};
...@@ -44,6 +44,32 @@ led-red { ...@@ -44,6 +44,32 @@ led-red {
}; };
}; };
/* Powers the SATA Disk 0 regulator, which is enabled when a disk load is detected */
p12v_0: regulator-p12v_0 {
compatible = "regulator-fixed";
regulator-name = "P12V_0";
regulator-min-microvolt = <12000000>;
regulator-max-microvolt = <12000000>;
vin-supply = <&main_12v>;
gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
enable-active-high;
regulator-always-on;
};
/* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */
p12v_1: regulator-p12v_1 {
compatible = "regulator-fixed";
regulator-name = "P12V_1";
regulator-min-microvolt = <12000000>;
regulator-max-microvolt = <12000000>;
vin-supply = <&main_12v>;
gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
enable-active-high;
regulator-always-on;
};
sound { sound {
model = "ODROID-HC4"; model = "ODROID-HC4";
}; };
...@@ -90,7 +116,25 @@ &sd_emmc_c { ...@@ -90,7 +116,25 @@ &sd_emmc_c {
status = "disabled"; status = "disabled";
}; };
&spifc {
status = "okay";
pinctrl-0 = <&nor_pins>;
pinctrl-names = "default";
spi-flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <104000000>;
};
};
&usb { &usb {
phys = <&usb2_phy0>, <&usb2_phy1>; phys = <&usb2_phy1>;
phy-names = "usb2-phy0", "usb2-phy1"; phy-names = "usb2-phy1";
};
&usb2_phy0 {
status = "disabled";
}; };
...@@ -46,8 +46,13 @@ tf_io: gpio-regulator-tf_io { ...@@ -46,8 +46,13 @@ tf_io: gpio-regulator-tf_io {
regulator-name = "TF_IO"; regulator-name = "TF_IO";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
vin-supply = <&vcc_5v>;
gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; enable-gpio = <&gpio GPIOE_2 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
gpios = <&gpio_ao GPIOAO_6 GPIO_OPEN_SOURCE>;
gpios-states = <0>; gpios-states = <0>;
states = <3300000 0>, states = <3300000 0>,
...@@ -78,6 +83,8 @@ vcc_5v: regulator-vcc_5v { ...@@ -78,6 +83,8 @@ vcc_5v: regulator-vcc_5v {
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-always-on; regulator-always-on;
vin-supply = <&main_12v>; vin-supply = <&main_12v>;
gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
enable-active-high;
}; };
vcc_1v8: regulator-vcc_1v8 { vcc_1v8: regulator-vcc_1v8 {
......
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