* [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb
2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
@ 2017-07-05 8:30 ` Frank Wang
2017-07-12 23:53 ` Heiko Stuebner
2017-07-05 8:30 ` [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang
` (4 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds regulator info for rk3229-evb board.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 69 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index 82e8a53..394be63 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -51,6 +51,15 @@
reg = <0x60000000 0x40000000>;
};
+ dc_12v: dc-12v-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "dc_12v";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <12000000>;
+ regulator-max-microvolt = <12000000>;
+ };
+
ext_gmac: ext_gmac {
compatible = "fixed-clock";
clock-frequency = <125000000>;
@@ -67,6 +76,7 @@
regulator-name = "vcc_host";
regulator-always-on;
regulator-boot-on;
+ vin-supply = <&vcc_sys>;
};
vcc_phy: vcc-phy-regulator {
@@ -77,6 +87,57 @@
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
+ vin-supply = <&vccio_1v8>;
+ };
+
+ vcc_sys: vcc-sys-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc_sys";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ vin-supply = <&dc_12v>;
+ };
+
+ vccio_1v8: vccio-1v8-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vccio_1v8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ vin-supply = <&vcc_sys>;
+ };
+
+ vccio_3v3: vccio-3v3-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vccio_3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ vin-supply = <&vcc_sys>;
+ };
+
+ vdd_arm: vdd-arm-regulator {
+ compatible = "pwm-regulator";
+ pwms = <&pwm1 0 25000 1>;
+ regulator-name = "vdd_arm";
+ regulator-min-microvolt = <950000>;
+ regulator-max-microvolt = <1400000>;
+ regulator-always-on;
+ regulator-boot-on;
+ pwm-supply = <&vcc_sys>;
+ };
+
+ vdd_log: vdd-log-regulator {
+ compatible = "pwm-regulator";
+ pwms = <&pwm2 0 25000 1>;
+ regulator-name = "vdd_log";
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <1300000>;
+ regulator-always-on;
+ regulator-boot-on;
+ pwm-supply = <&vcc_sys>;
};
};
@@ -104,6 +165,14 @@
};
};
+&pwm1 {
+ status = "okay";
+};
+
+&pwm2 {
+ status = "okay";
+};
+
&uart2 {
status = "okay";
};
--
2.0.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb
2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
2017-07-05 8:30 ` [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang
@ 2017-07-05 8:30 ` Frank Wang
2017-07-12 23:56 ` Heiko Stuebner
2017-07-05 8:30 ` [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb Frank Wang
` (3 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw)
To: linux-arm-kernel
From: Finley Xiao <finley.xiao@rock-chips.com>
This patch adds the cpu-supply property so that cpu can do dvfs
on rk3229-evb board.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index 394be63..17385d8 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -141,6 +141,10 @@
};
};
+&cpu0 {
+ cpu-supply = <&vdd_arm>;
+};
+
&gmac {
assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
--
2.0.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb
2017-07-05 8:30 ` [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang
@ 2017-07-12 23:56 ` Heiko Stuebner
0 siblings, 0 replies; 15+ messages in thread
From: Heiko Stuebner @ 2017-07-12 23:56 UTC (permalink / raw)
To: linux-arm-kernel
Am Mittwoch, 5. Juli 2017, 16:30:17 CEST schrieb Frank Wang:
> From: Finley Xiao <finley.xiao@rock-chips.com>
>
> This patch adds the cpu-supply property so that cpu can do dvfs
> on rk3229-evb board.
>
> Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
> ---
> arch/arm/boot/dts/rk3229-evb.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
> index 394be63..17385d8 100644
> --- a/arch/arm/boot/dts/rk3229-evb.dts
> +++ b/arch/arm/boot/dts/rk3229-evb.dts
> @@ -141,6 +141,10 @@
> };
> };
>
> +&cpu0 {
> + cpu-supply = <&vdd_arm>;
> +};
> +
applied for 4.14 after adding the same for cpu1-cpu3 .
The supply is a property of the cpu-core, so each should have the reference
even though the Linux cpufreq driver taking the regulator from cpu0.
Heiko
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb
2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
2017-07-05 8:30 ` [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang
2017-07-05 8:30 ` [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang
@ 2017-07-05 8:30 ` Frank Wang
2017-07-06 6:47 ` kbuild test robot
2017-07-13 0:13 ` Heiko Stuebner
2017-07-05 8:30 ` [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC " Frank Wang
` (2 subsequent siblings)
5 siblings, 2 replies; 15+ messages in thread
From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw)
To: linux-arm-kernel
From: David Wu <david.wu@rock-chips.com>
This patch enables io-domain support for rk3229-evb board.
The power domain of VCCIO3 is selected from maskrom, so we do not
need to configure it.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index 17385d8..78a3ea1 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -161,6 +161,14 @@
status = "okay";
};
+&io_domains {
+ status = "okay";
+
+ vccio1-supply = <&vccio_3v3>;
+ vccio2-supply = <&vccio_1v8>;
+ vccio4-supply = <&vccio_3v3>;
+};
+
&pinctrl {
usb {
host_vbus_drv: host-vbus-drv {
--
2.0.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC for rk3229-evb
2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
` (2 preceding siblings ...)
2017-07-05 8:30 ` [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb Frank Wang
@ 2017-07-05 8:30 ` Frank Wang
2017-07-13 0:03 ` Heiko Stuebner
2017-07-05 8:32 ` [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc " Frank Wang
2017-07-05 8:33 ` [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key " Frank Wang
5 siblings, 1 reply; 15+ messages in thread
From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw)
To: linux-arm-kernel
This patch enables eMMC support for rk3229-evb board.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index 78a3ea1..a51ca01 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -145,6 +145,13 @@
cpu-supply = <&vdd_arm>;
};
+&emmc {
+ cap-mmc-highspeed;
+ disable-wp;
+ non-removable;
+ status = "okay";
+};
+
&gmac {
assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
--
2.0.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc for rk3229-evb
2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
` (3 preceding siblings ...)
2017-07-05 8:30 ` [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC " Frank Wang
@ 2017-07-05 8:32 ` Frank Wang
2017-07-13 0:04 ` Heiko Stuebner
2017-07-05 8:33 ` [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key " Frank Wang
5 siblings, 1 reply; 15+ messages in thread
From: Frank Wang @ 2017-07-05 8:32 UTC (permalink / raw)
To: linux-arm-kernel
This patch enables the tsadc for rk3229-evb board.
The rk3229 evb board uses the CRU to reset the chip since it has not
the PMIC to connect it, and TSHUT is low active on evb board.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index a51ca01..cfcfe2a 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -192,6 +192,11 @@
status = "okay";
};
+&tsadc {
+ rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
+ status = "okay";
+};
+
&uart2 {
status = "okay";
};
--
2.0.0
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb
2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
` (4 preceding siblings ...)
2017-07-05 8:32 ` [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc " Frank Wang
@ 2017-07-05 8:33 ` Frank Wang
2017-07-13 0:12 ` Heiko Stuebner
5 siblings, 1 reply; 15+ messages in thread
From: Frank Wang @ 2017-07-05 8:33 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds gpio power-key support for rk3229-evb board.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index cfcfe2a..a051708 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -139,6 +139,24 @@
regulator-boot-on;
pwm-supply = <&vcc_sys>;
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key>;
+
+ power_key: power-key {
+ label = "GPIO Key Power";
+ gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+ linux,code = <116>;
+ debounce-interval = <100>;
+ wakeup-source;
+ };
+ };
};
&cpu0 {
@@ -177,6 +195,12 @@
};
&pinctrl {
+ keys {
+ pwr_key: pwr-key {
+ rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
usb {
host_vbus_drv: host-vbus-drv {
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
--
2.0.0
^ permalink raw reply related [flat|nested] 15+ messages in thread