* [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support
@ 2017-10-23 20:21 Maxime Ripard
2017-10-23 20:21 ` [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG Maxime Ripard
2017-10-25 7:16 ` [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support Chen-Yu Tsai
0 siblings, 2 replies; 4+ messages in thread
From: Maxime Ripard @ 2017-10-23 20:21 UTC (permalink / raw)
To: linux-arm-kernel
The TBS A711 is using an AXP813 PMIC. Let's add all the regulators for that
board, and migrate the current, dumb, regulators to the actual ones.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 165 +++++++++++++++++++++--
1 file changed, 155 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 723641f56a74..786937a3af78 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -43,7 +43,8 @@
/dts-v1/;
#include "sun8i-a83t.dtsi"
-#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "TBS A711 Tablet";
@@ -105,7 +106,7 @@
};
&mmc0 {
- vmmc-supply = <®_vcc3v3>;
+ vmmc-supply = <®_dcdc1>;
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
@@ -117,8 +118,8 @@
bus-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins>;
- vmmc-supply = <®_vcc3v3>;
- vqmmc-supply = <®_vcc3v3>;
+ vmmc-supply = <®_dldo1>;
+ vqmmc-supply = <®_dldo1>;
non-removable;
wakeup-source;
status = "okay";
@@ -135,8 +136,8 @@
&mmc2 {
pinctrl-0 = <&mmc2_8bit_emmc_pins>;
pinctrl-names = "default";
- vmmc-supply = <®_vcc3v3>;
- vqmmc-supply = <®_vcc3v3>;
+ vmmc-supply = <®_dcdc1>;
+ vqmmc-supply = <®_dcdc1>;
bus-width = <8>;
non-removable;
cap-mmc-hw-reset;
@@ -146,11 +147,12 @@
&r_rsb {
status = "okay";
- axp813: pmic at 3a3 {
- compatible = "x-powers,axp813";
+ axp81x: pmic at 3a3 {
reg = <0x3a3>;
interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+ swin-supply = <®_dcdc1>;
+ x-powers,drive-vbus-en;
};
ac100: codec at e89 {
@@ -179,6 +181,149 @@
};
+#include "axp81x.dtsi"
+
+®_aldo1 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-name = "vcc-1.8";
+};
+
+®_aldo2 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ regulator-name = "vdd-drampll";
+};
+
+®_aldo3 {
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
+ regulator-always-on;
+ regulator-name = "avcc";
+};
+
+®_dcdc1 {
+ regulator-min-microvolt = <3100000>;
+ regulator-max-microvolt = <3100000>;
+ regulator-always-on;
+ regulator-name = "vcc-io";
+};
+
+®_dcdc2 {
+ regulator-min-microvolt = <700000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-always-on;
+ regulator-name = "vdd-cpu-A";
+};
+
+®_dcdc3 {
+ regulator-min-microvolt = <700000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-always-on;
+ regulator-name = "vdd-cpu-B";
+};
+
+®_dcdc4 {
+ regulator-min-microvolt = <700000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-name = "vdd-gpu";
+};
+
+®_dcdc5 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1500000>;
+ regulator-always-on;
+ regulator-name = "vcc-dram";
+};
+
+®_dcdc6 {
+ regulator-min-microvolt = <900000>;
+ regulator-max-microvolt = <900000>;
+ regulator-always-on;
+ regulator-name = "vdd-sys";
+};
+
+®_dldo1 {
+ regulator-min-microvolt = <3100000>;
+ regulator-max-microvolt = <3100000>;
+ regulator-name = "vcc-wifi-io";
+};
+
+®_dldo2 {
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <4200000>;
+ regulator-name = "vcc-mipi";
+};
+
+®_dldo3 {
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ regulator-name = "vdd-csi";
+};
+
+®_dldo4 {
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ regulator-name = "avdd-csi";
+};
+
+®_drivevbus {
+ regulator-name = "usb0-vbus";
+ status = "okay";
+};
+
+®_eldo1 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-name = "dvdd-csi-r";
+};
+
+®_eldo2 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-name = "vcc-dsi";
+};
+
+®_eldo3 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-name = "dvdd-csi-f";
+};
+
+®_fldo1 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-name = "vcc-hsic";
+};
+
+®_fldo2 {
+ regulator-min-microvolt = <700000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-always-on;
+ regulator-name = "vdd-cpus";
+};
+
+®_ldo_io0 {
+ regulator-min-microvolt = <3100000>;
+ regulator-max-microvolt = <3100000>;
+ regulator-name = "vcc-ctp";
+ status = "okay";
+};
+
+®_ldo_io1 {
+ regulator-min-microvolt = <3100000>;
+ regulator-max-microvolt = <3100000>;
+ regulator-name = "vcc-vb";
+ status = "okay";
+};
+
+®_sw {
+ regulator-min-microvolt = <3100000>;
+ regulator-max-microvolt = <3100000>;
+ regulator-name = "vcc-lcd";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pb_pins>;
@@ -193,7 +338,7 @@
};
&usbphy {
- usb1_vbus_supply = <®_vcc5v0>;
- usb2_vbus_supply = <®_vcc5v0>;
+ usb1_vbus_supply = <®_vmain>;
+ usb2_vbus_supply = <®_vmain>;
status = "okay";
};
base-commit: 3aa3befb21ea3267f4e96d6e3103ff2588027d5b
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG
2017-10-23 20:21 [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support Maxime Ripard
@ 2017-10-23 20:21 ` Maxime Ripard
2017-10-25 7:17 ` Chen-Yu Tsai
2017-10-25 7:16 ` [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support Chen-Yu Tsai
1 sibling, 1 reply; 4+ messages in thread
From: Maxime Ripard @ 2017-10-23 20:21 UTC (permalink / raw)
To: linux-arm-kernel
The TBS A711 has a micro-USB connector that can be used in OTG mode. Enable
it.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 786937a3af78..94fb01564304 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -337,7 +337,14 @@
status = "okay";
};
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
&usbphy {
+ usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
+ usb0_vbus-supply = <®_drivevbus>;
usb1_vbus_supply = <®_vmain>;
usb2_vbus_supply = <®_vmain>;
status = "okay";
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support
2017-10-23 20:21 [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support Maxime Ripard
2017-10-23 20:21 ` [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG Maxime Ripard
@ 2017-10-25 7:16 ` Chen-Yu Tsai
1 sibling, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2017-10-25 7:16 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Oct 24, 2017 at 4:21 AM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> The TBS A711 is using an AXP813 PMIC. Let's add all the regulators for that
> board, and migrate the current, dumb, regulators to the actual ones.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG
2017-10-23 20:21 ` [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG Maxime Ripard
@ 2017-10-25 7:17 ` Chen-Yu Tsai
0 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2017-10-25 7:17 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Oct 24, 2017 at 4:21 AM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> The TBS A711 has a micro-USB connector that can be used in OTG mode. Enable
> it.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-25 7:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23 20:21 [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support Maxime Ripard
2017-10-23 20:21 ` [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG Maxime Ripard
2017-10-25 7:17 ` Chen-Yu Tsai
2017-10-25 7:16 ` [PATCH v2 1/2] ARM: dts: sun8i: a711: Add regulator support Chen-Yu Tsai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.