linuxtorvalds / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
917372
From c41ca64d075020e2d5daecb7f48da6af0ba5b512 Mon Sep 17 00:00:00 2001
917372
From: Tuomas Tynkkynen <tuomas@tuxera.com>
917372
Date: Wed, 8 Aug 2018 02:25:53 +0300
917372
Subject: ARM: dts: sunxi: Don't use cd-inverted in sun8i-r40-bananapi-m2-ultra
917372
917372
Another user of cd-inverted seems to have crept in. Switch it away from
917372
cd-inverted to be consistent with other sunxi boards.
917372
917372
Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
917372
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
917372
---
917372
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 3 +--
917372
 1 file changed, 1 insertion(+), 2 deletions(-)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
917372
index c39b9169ea64..a891a387e8f1 100644
917372
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
917372
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
917372
@@ -159,8 +159,7 @@
917372
 &mmc0 {
917372
 	vmmc-supply = <&reg_dcdc1>;
917372
 	bus-width = <4>;
917372
-	cd-gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */
917372
-	cd-inverted;
917372
+	cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
917372
 	status = "okay";
917372
 };
917372
 
917372
-- 
917372
cgit 1.2-0.3.lf.el7
917372
917372
From e5c6e693be831c1bba9b4f8f1da597fb5514deca Mon Sep 17 00:00:00 2001
917372
From: Chen-Yu Tsai <wens@csie.org>
917372
Date: Wed, 9 Jan 2019 23:02:55 +0800
917372
Subject: ARM: dts: sun8i: r40: bananapi-m2-ultra: Fix WiFi regulator
917372
 definitions
917372
917372
The design of the Bananapi M2 Ultra has both DLDO1 and DLDO2 regulators
917372
provide power to the WiFi+BT module, which is based on the Broadcom
917372
BCM43438 or BCM43430 chip. Each regulator output from the PMIC can supply
917372
up to 200 mA. The datasheet of the chip suggests a maximum power draw of
917372
up to 360 mA when transmitting, thus requiring two outputs from the PMIC
917372
to handle the load. However the device tree only references one of them,
917372
leaving the other unused and possibly turned off.
917372
917372
This patch marks both as always-on, since we don't have a proper binding
917372
to specify two regulators as "bound together". The name and constraints
917372
of DLDO2 are also added.
917372
917372
Fixes: da7ac948fa93 ("ARM: dts: sun8i: Add board dts file for Banana Pi M2
917372
		      Ultra")
917372
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
917372
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
917372
---
917372
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 15 +++++++++++++++
917372
 1 file changed, 15 insertions(+)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
917372
index 438b7b44dab3..1a6794e63b90 100644
917372
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
917372
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
917372
@@ -250,12 +250,27 @@
917372
 	regulator-name = "vcc-wifi-io";
917372
 };
917372
 
917372
+/*
917372
+ * Our WiFi chip needs both DLDO2 and DLDO3 to be powered at the same
917372
+ * time, with the two being in sync, to be able to meet maximum power
917372
+ * consumption during transmits. Since this is not really supported
917372
+ * right now, just use the two as always on, and we will fix it later.
917372
+ */
917372
+
917372
 &reg_dldo2 {
917372
+	regulator-always-on;
917372
 	regulator-min-microvolt = <3300000>;
917372
 	regulator-max-microvolt = <3300000>;
917372
 	regulator-name = "vcc-wifi";
917372
 };
917372
 
917372
+&reg_dldo3 {
917372
+	regulator-always-on;
917372
+	regulator-min-microvolt = <3300000>;
917372
+	regulator-max-microvolt = <3300000>;
917372
+	regulator-name = "vcc-wifi-2";
917372
+};
917372
+
917372
 &reg_dldo4 {
917372
 	regulator-min-microvolt = <2500000>;
917372
 	regulator-max-microvolt = <2500000>;
917372
-- 
917372
cgit 1.2-0.3.lf.el7
917372
917372
From 0729b4af5753b65aa031f58c435da53dbbf56d19 Mon Sep 17 00:00:00 2001
917372
From: Rob Herring <robh@kernel.org>
917372
Date: Thu, 13 Sep 2018 13:12:32 -0500
917372
Subject: ARM: dts: sunxi: Fix I2C bus warnings
917372
917372
dtc has new checks for I2C buses. Fix the warnings in unit-addresses.
917372
917372
arch/arm/boot/dts/sun8i-a23-gt90h-v4.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: I2C bus unit address format error, expected "40"
917372
arch/arm/boot/dts/sun8i-a23-inet86dz.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: I2C bus unit address format error, expected "40"
917372
arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: I2C bus unit address format error, expected "40"
917372
arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: I2C bus unit address format error, expected "40"
917372
arch/arm/boot/dts/sun8i-a33-ga10h-v1.1.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: I2C bus unit address format error, expected "40"
917372
arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: missing or empty reg property
917372
arch/arm/boot/dts/sun8i-a33-ippo-q8h-v1.2.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: missing or empty reg property
917372
arch/arm/boot/dts/sun8i-a33-q8-tablet.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2ac00/touchscreen@0: missing or empty reg property
917372
arch/arm/boot/dts/sun5i-a13-utoo-p66.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2b000/touchscreen: I2C bus unit address format error, expected "40"
917372
arch/arm/boot/dts/sun5i-a13-difrnce-dit4350.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2b000/touchscreen: missing or empty reg property
917372
arch/arm/boot/dts/sun5i-a13-empire-electronix-m712.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2b000/touchscreen: missing or empty reg property
917372
arch/arm/boot/dts/sun5i-a13-inet-98v-rev2.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2b000/touchscreen: missing or empty reg property
917372
arch/arm/boot/dts/sun5i-a13-q8-tablet.dtb: Warning (i2c_bus_reg): /soc@1c00000/i2c@1c2b000/touchscreen: missing or empty reg property
917372
917372
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
917372
Cc: Chen-Yu Tsai <wens@csie.org>
917372
Signed-off-by: Rob Herring <robh@kernel.org>
917372
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
917372
---
917372
 arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 2 +-
917372
 1 file changed, 1 insertion(+), 1 deletion(-)
917372
917372
(limited to 'arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts')
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
index 35859d8f3267..bf97f6244c23 100644
917372
--- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
+++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
@@ -95,7 +95,7 @@
917372
 &i2c0 {
917372
 	status = "okay";
917372
 
917372
-	axp22x: pmic@68 {
917372
+	axp22x: pmic@34 {
917372
 		compatible = "x-powers,axp221";
917372
 		reg = <0x34>;
917372
 		interrupt-parent = <&nmi_intc>;
917372
-- 
917372
cgit 1.2-0.3.lf.el7
917372
917372
From 933ea7e9d143cee0c8c3bdc274afa69c91d91d61 Mon Sep 17 00:00:00 2001
917372
From: Pablo Greco <pgreco@centosproject.org>
917372
Date: Wed, 10 Apr 2019 18:59:25 -0300
917372
Subject: [PATCH v2 1/6] ARM: dts: sun8i: v40: bananapi-m2-berry: Sort device
917372
 node dereferences.
917372
917372
The device node dereferences are out of order, sort them.
917372
917372
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
917372
---
917372
 arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 36 +++++++++++------------
917372
 1 file changed, 18 insertions(+), 18 deletions(-)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
index bf97f62..f05cabd 100644
917372
--- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
+++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
@@ -105,6 +105,24 @@
917372
 
917372
 #include "axp22x.dtsi"
917372
 
917372
+&mmc0 {
917372
+	vmmc-supply = <&reg_dcdc1>;
917372
+	bus-width = <4>;
917372
+	cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
917372
+	status = "okay";
917372
+};
917372
+
917372
+&mmc1 {
917372
+	pinctrl-names = "default";
917372
+	pinctrl-0 = <&mmc1_pg_pins>;
917372
+	vmmc-supply = <&reg_dldo2>;
917372
+	vqmmc-supply = <&reg_dldo1>;
917372
+	mmc-pwrseq = <&wifi_pwrseq>;
917372
+	bus-width = <4>;
917372
+	non-removable;
917372
+	status = "okay";
917372
+};
917372
+
917372
 &reg_aldo3 {
917372
 	regulator-always-on;
917372
 	regulator-min-microvolt = <2700000>;
917372
@@ -152,24 +170,6 @@
917372
 	regulator-name = "vcc-wifi";
917372
 };
917372
 
917372
-&mmc0 {
917372
-	vmmc-supply = <&reg_dcdc1>;
917372
-	bus-width = <4>;
917372
-	cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
917372
-	status = "okay";
917372
-};
917372
-
917372
-&mmc1 {
917372
-	pinctrl-names = "default";
917372
-	pinctrl-0 = <&mmc1_pg_pins>;
917372
-	vmmc-supply = <&reg_dldo2>;
917372
-	vqmmc-supply = <&reg_dldo1>;
917372
-	mmc-pwrseq = <&wifi_pwrseq>;
917372
-	bus-width = <4>;
917372
-	non-removable;
917372
-	status = "okay";
917372
-};
917372
-
917372
 &uart0 {
917372
 	pinctrl-names = "default";
917372
 	pinctrl-0 = <&uart0_pb_pins>;
917372
-- 
917372
1.8.3.1
917372
917372
From 745c1a105e34553caf247215cdcefa30db95092a Mon Sep 17 00:00:00 2001
917372
From: Pablo Greco <pgreco@centosproject.org>
917372
Date: Thu, 11 Apr 2019 13:58:49 -0300
917372
Subject: [PATCH v2 2/6] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable GMAC
917372
 ethernet controller
917372
917372
Just like the Bananapi M2 Ultra, the Bananapi M2 Berry has a Realtek
917372
RTL8211E RGMII PHY tied to the GMAC.
917372
The PMIC's DC1SW output provides power for the PHY, while the ALDO2
917372
output provides I/O voltages on both sides.
917372
917372
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
917372
---
917372
 arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 30 +++++++++++++++++++++++
917372
 1 file changed, 30 insertions(+)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
index f05cabd..0d79e91 100644
917372
--- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
+++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
@@ -50,6 +50,7 @@
917372
 	compatible = "sinovoip,bpi-m2-berry", "allwinner,sun8i-r40";
917372
 
917372
 	aliases {
917372
+		ethernet0 = &gmac;
917372
 		serial0 = &uart;;
917372
 	};
917372
 
917372
@@ -92,6 +93,22 @@
917372
 	status = "okay";
917372
 };
917372
 
917372
+&gmac {
917372
+	pinctrl-names = "default";
917372
+	pinctrl-0 = <&gmac_rgmii_pins>;
917372
+	phy-handle = <&phy1>;
917372
+	phy-mode = "rgmii";
917372
+	phy-supply = <&reg_dc1sw>;
917372
+	status = "okay";
917372
+};
917372
+
917372
+&gmac_mdio {
917372
+	phy1: ethernet-phy@1 {
917372
+		compatible = "ethernet-phy-ieee802.3-c22";
917372
+		reg = <1>;
917372
+	};
917372
+};
917372
+
917372
 &i2c0 {
917372
 	status = "okay";
917372
 
917372
@@ -123,6 +140,13 @@
917372
 	status = "okay";
917372
 };
917372
 
917372
+&reg_aldo2 {
917372
+	regulator-always-on;
917372
+	regulator-min-microvolt = <2500000>;
917372
+	regulator-max-microvolt = <2500000>;
917372
+	regulator-name = "vcc-pa";
917372
+};
917372
+
917372
 &reg_aldo3 {
917372
 	regulator-always-on;
917372
 	regulator-min-microvolt = <2700000>;
917372
@@ -130,6 +154,12 @@
917372
 	regulator-name = "avcc";
917372
 };
917372
 
917372
+&reg_dc1sw {
917372
+	regulator-min-microvolt = <3000000>;
917372
+	regulator-max-microvolt = <3000000>;
917372
+	regulator-name = "vcc-gmac-phy";
917372
+};
917372
+
917372
 &reg_dcdc1 {
917372
 	regulator-always-on;
917372
 	regulator-min-microvolt = <3000000>;
917372
-- 
917372
1.8.3.1
917372
917372
From 274ba1411bac61fcecdf021a13d645891e7b723c Mon Sep 17 00:00:00 2001
917372
From: Pablo Greco <pgreco@centosproject.org>
917372
Date: Thu, 11 Apr 2019 14:00:05 -0300
917372
Subject: [PATCH v2 3/6] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable HDMI
917372
 output
917372
917372
This patch adds the hdmi nodes to the Bananapi M2 Berry, the same way it
917372
was done to the Bananapi M2 Ultra
917372
917372
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
917372
---
917372
 arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 29 +++++++++++++++++++++++
917372
 1 file changed, 29 insertions(+)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
index 0d79e91..2a5b80b 100644
917372
--- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
+++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
@@ -58,6 +58,17 @@
917372
 		stdout-path = "serial0:115200n8";
917372
 	};
917372
 
917372
+	connector {
917372
+		compatible = "hdmi-connector";
917372
+		type = "a";
917372
+
917372
+		port {
917372
+			hdmi_con_in: endpoint {
917372
+				remote-endpoint = <&hdmi_out_con>;
917372
+			};
917372
+		};
917372
+	};
917372
+
917372
 	leds {
917372
 		compatible = "gpio-leds";
917372
 
917372
@@ -88,6 +99,10 @@
917372
 	};
917372
 };
917372
 
917372
+&de {
917372
+	status = "okay";
917372
+};
917372
+
917372
 &ehci1 {
917372
 	/* Terminus Tech FE 1.1s 4-port USB 2.0 hub here */
917372
 	status = "okay";
917372
@@ -109,6 +124,16 @@
917372
 	};
917372
 };
917372
 
917372
+&hdmi {
917372
+	status = "okay";
917372
+};
917372
+
917372
+&hdmi_out {
917372
+	hdmi_out_con: endpoint {
917372
+		remote-endpoint = <&hdmi_con_in>;
917372
+	};
917372
+};
917372
+
917372
 &i2c0 {
917372
 	status = "okay";
917372
 
917372
@@ -200,6 +225,10 @@
917372
 	regulator-name = "vcc-wifi";
917372
 };
917372
 
917372
+&tcon_tv0 {
917372
+	status = "okay";
917372
+};
917372
+
917372
 &uart0 {
917372
 	pinctrl-names = "default";
917372
 	pinctrl-0 = <&uart0_pb_pins>;
917372
-- 
917372
1.8.3.1
917372
917372
From e91ec82e21aaf29f1453053175050b8230c2b495 Mon Sep 17 00:00:00 2001
917372
From: Pablo Greco <pgreco@centosproject.org>
917372
Date: Thu, 11 Apr 2019 14:03:54 -0300
917372
Subject: [PATCH v2 4/6] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable AHCI
917372
917372
Just like the Bananapi M2 Ultra, enable the ahci controller and
917372
the two regulators needed to activate it.
917372
917372
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
917372
---
917372
 arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 18 ++++++++++++++++++
917372
 1 file changed, 18 insertions(+)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
index 2a5b80b..c37c7ab 100644
917372
--- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
+++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
@@ -99,6 +99,12 @@
917372
 	};
917372
 };
917372
 
917372
+&ahci {
917372
+	ahci-supply = <&reg_dldo4>;
917372
+	phy-supply = <&reg_eldo3>;
917372
+	status = "okay";
917372
+};
917372
+
917372
 &de {
917372
 	status = "okay";
917372
 };
917372
@@ -225,6 +231,18 @@
917372
 	regulator-name = "vcc-wifi";
917372
 };
917372
 
917372
+&reg_dldo4 {
917372
+	regulator-min-microvolt = <2500000>;
917372
+	regulator-max-microvolt = <2500000>;
917372
+	regulator-name = "vdd2v5-sata";
917372
+};
917372
+
917372
+&reg_eldo3 {
917372
+	regulator-min-microvolt = <1200000>;
917372
+	regulator-max-microvolt = <1200000>;
917372
+	regulator-name = "vdd1v2-sata";
917372
+};
917372
+
917372
 &tcon_tv0 {
917372
 	status = "okay";
917372
 };
917372
-- 
917372
1.8.3.1
917372
917372
From df95d67e4385275586d3f91ee145f8d13885a560 Mon Sep 17 00:00:00 2001
917372
From: Pablo Greco <pgreco@centosproject.org>
917372
Date: Thu, 11 Apr 2019 14:04:35 -0300
917372
Subject: [PATCH v2 5/6] ARM: dts: sun8i: v40: bananapi-m2-berry: Fix WiFi
917372
 regulator definitions
917372
917372
Just like was done for the bananapi-m2-ultra, add the second wifi/bt
917372
regulator and mark both as always-on.
917372
917372
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
917372
---
917372
 arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 15 +++++++++++++++
917372
 1 file changed, 15 insertions(+)
917372
917372
diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
index c37c7ab..78f4a1a 100644
917372
--- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
+++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts
917372
@@ -225,12 +225,27 @@
917372
 	regulator-name = "vcc-wifi-io";
917372
 };
917372
 
917372
+/*
917372
+ * Our WiFi chip needs both DLDO2 and DLDO3 to be powered at the same
917372
+ * time, with the two being in sync, to be able to meet maximum power
917372
+ * consumption during transmits. Since this is not really supported
917372
+ * right now, just use the two as always on, and we will fix it later.
917372
+ */
917372
+
917372
 &reg_dldo2 {
917372
+	regulator-always-on;
917372
 	regulator-min-microvolt = <3300000>;
917372
 	regulator-max-microvolt = <3300000>;
917372
 	regulator-name = "vcc-wifi";
917372
 };
917372
 
917372
+&reg_dldo3 {
917372
+	regulator-always-on;
917372
+	regulator-min-microvolt = <3300000>;
917372
+	regulator-max-microvolt = <3300000>;
917372
+	regulator-name = "vcc-wifi-2";
917372
+};
917372
+
917372
 &reg_dldo4 {
917372
 	regulator-min-microvolt = <2500000>;
917372
 	regulator-max-microvolt = <2500000>;
917372
-- 
917372
1.8.3.1
917372