Skip to content

Commit b1ee541

Browse files
committed
merge tag release-20171213 of release-4.4 of rockchip-linux/kernel
Change-Id: I34bcf2d53299c47ce1f2dbf68936731fb38f05f8
2 parents 3285a94 + 2801809 commit b1ee541

File tree

120 files changed

+9079
-2113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+9079
-2113
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
* Rockchip PX30 Clock and Reset Unit
2+
3+
The PX30 clock controller generates and supplies clock to various
4+
controllers within the SoC and also implements a reset controller for SoC
5+
peripherals.
6+
7+
Required Properties:
8+
9+
- compatible: PMU for CRU should be "rockchip,px30-pmu-cru"
10+
- compatible: CRU should be "rockchip,px30-cru"
11+
- reg: physical base address of the controller and length of memory mapped
12+
region.
13+
- #clock-cells: should be 1.
14+
- #reset-cells: should be 1.
15+
16+
Optional Properties:
17+
18+
- rockchip,grf: phandle to the syscon managing the "general register files"
19+
If missing, pll rates are not changeable, due to the missing pll lock status.
20+
21+
Each clock is assigned an identifier and client nodes can use this identifier
22+
to specify the clock which they consume. All available clocks are defined as
23+
preprocessor macros in the dt-bindings/clock/px30-cru.h headers and can be
24+
used in device tree sources. Similar macros exist for the reset sources in
25+
these files.
26+
27+
External clocks:
28+
29+
There are several clocks that are generated outside the SoC. It is expected
30+
that they are defined using standard clock bindings with following
31+
clock-output-names:
32+
- "xin24m" - crystal input - required,
33+
- "xin32k" - rtc clock - optional,
34+
- "i2sx_clkin" - external I2S clock - optional,
35+
- "gmac_clkin" - external GMAC clock - optional
36+
37+
Example: Clock controller node:
38+
39+
pmucru: pmu-clock-controller@ff2bc000 {
40+
compatible = "rockchip,px30-pmucru";
41+
reg = <0x0 0xff2bc000 0x0 0x1000>;
42+
#clock-cells = <1>;
43+
#reset-cells = <1>;
44+
};
45+
46+
cru: clock-controller@ff2b0000 {
47+
compatible = "rockchip,px30-cru";
48+
reg = <0x0 0xff2b0000 0x0 0x1000>;
49+
rockchip,grf = <&grf>;
50+
#clock-cells = <1>;
51+
#reset-cells = <1>;
52+
};
53+
54+
Example: UART controller node that consumes the clock generated by the clock
55+
controller:
56+
57+
uart0: serial@ff030000 {
58+
compatible = "rockchip,px30-uart", "snps,dw-apb-uart";
59+
reg = <0x0 0xff030000 0x0 0x100>;
60+
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
61+
clocks = <&pmucru SCLK_UART0_PMU>, <&pmucru PCLK_UART0_PMU>;
62+
clock-names = "baudclk", "apb_pclk";
63+
reg-shift = <2>;
64+
reg-io-width = <4>;
65+
status = "disabled";
66+
};
67+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Binding for ISSI IS31FL32xx and Si-En SN32xx LED Drivers
2+
3+
The IS31FL32xx/SN32xx family of LED drivers are I2C devices with multiple
4+
constant-current channels, each with independent 256-level PWM control.
5+
Each LED is represented as a sub-node of the device.
6+
7+
Required properties:
8+
- compatible: one of
9+
issi,is31fl3236
10+
issi,is31fl3235
11+
issi,is31fl3218
12+
issi,is31fl3216
13+
si-en,sn3218
14+
si-en,sn3216
15+
- reg: I2C slave address
16+
- address-cells : must be 1
17+
- size-cells : must be 0
18+
19+
LED sub-node properties:
20+
- reg : LED channel number (1..N)
21+
- label : (optional)
22+
see Documentation/devicetree/bindings/leds/common.txt
23+
- linux,default-trigger : (optional)
24+
see Documentation/devicetree/bindings/leds/common.txt
25+
26+
27+
Example:
28+
29+
is31fl3236: led-controller@3c {
30+
compatible = "issi,is31fl3236";
31+
reg = <0x3c>;
32+
#address-cells = <1>;
33+
#size-cells = <0>;
34+
35+
led@1 {
36+
reg = <1>;
37+
label = "EB:blue:usr0";
38+
};
39+
led@2 {
40+
reg = <2>;
41+
label = "EB:blue:usr1";
42+
};
43+
...
44+
led@36 {
45+
reg = <36>;
46+
label = "EB:blue:usr35";
47+
};
48+
};
49+
50+
For more product information please see the links below:
51+
http://www.issi.com/US/product-analog-fxled-driver.shtml
52+
http://www.si-en.com/product.asp?parentid=890

Documentation/devicetree/bindings/mfd/rk816.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Optional properties:
2525
- vcc5-supply: The input supply for LDO_REG1, LDO_REG2, LDO_REG3
2626
- vcc6-supply: The input supply for LDO_REG4, LDO_REG5, LDO_REG6
2727

28+
- regulator-initial-mode: default mode to set on startup
29+
- regulator-initial-mode is set as:
30+
REGULATOR_MODE_FAST 0x1
31+
REGULATOR_MODE_NORMAL 0x2
2832
Regulators: All the regulators of RK816 to be instantiated shall be
2933
listed in a child node named 'regulators'. Each regulator is represented
3034
by a child node of the 'regulators' node.
@@ -104,6 +108,7 @@ Example:
104108
regulator-min-microvolt = <750000>;
105109
regulator-max-microvolt = <1450000>;
106110
regulator-ramp-delay = <6001>;
111+
regulator-initial-mode = <1>;
107112
regulator-state-mem {
108113
regulator-off-in-suspend;
109114
};
@@ -115,6 +120,7 @@ Example:
115120
regulator-min-microvolt = <800000>;
116121
regulator-max-microvolt = <1250000>;
117122
regulator-ramp-delay = <6001>;
123+
regulator-initial-mode = <1>;
118124
regulator-state-mem {
119125
regulator-on-in-suspend;
120126
regulator-suspend-microvolt = <1000000>;
@@ -125,6 +131,7 @@ Example:
125131
regulator-always-on;
126132
regulator-boot-on;
127133
regulator-name = "vcc_ddr";
134+
regulator-initial-mode = <1>;
128135
regulator-state-mem {
129136
regulator-on-in-suspend;
130137
};
@@ -136,6 +143,7 @@ Example:
136143
regulator-min-microvolt = <3300000>;
137144
regulator-max-microvolt = <3300000>;
138145
regulator-name = "vcc33_io";
146+
regulator-initial-mode = <1>;
139147
regulator-state-mem {
140148
regulator-on-in-suspend;
141149
regulator-suspend-microvolt = <3300000>;

Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ defined as gpio sub-nodes of the pinmux controller.
2020

2121
Required properties for iomux controller:
2222
- compatible: should be
23+
"rockchip,px30-pinctrl": for Rockchip PX30
2324
"rockchip,rk2928-pinctrl": for Rockchip RK2928
2425
"rockchip,rk3066a-pinctrl": for Rockchip RK3066a
2526
"rockchip,rk3066b-pinctrl": for Rockchip RK3066b

Documentation/devicetree/bindings/power/rockchip-io-domain.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ SoC is on the same page.
3131

3232
Required properties:
3333
- compatible: should be one of:
34+
- "rockchip,px30-io-voltage-domain" for px30
35+
- "rockchip,px30-pmu-io-voltage-domain" for px30 pmu-domains
3436
- "rockchip,rk3188-io-voltage-domain" for rk3188
3537
- "rockchip,rk322x-io-voltage-domain" for rk3228
3638
- "rockchip,rk3288-io-voltage-domain" for rk3288

Documentation/devicetree/bindings/soc/rockchip/power_domain.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ powered up/down by software based on different application scenes to save power.
55

66
Required properties for power domain controller:
77
- compatible: Should be one of the following.
8+
"rockchip,px30-power-controller" - for PX30 SoCs.
89
"rockchip,rk3036-power-controller" - for RK3036 SoCs.
910
"rockchip,rk3128-power-controller" - for RK3128 SoCs.
1011
"rockchip,rk3288-power-controller" - for RK3288 SoCs.
@@ -19,6 +20,7 @@ Required properties for power domain controller:
1920

2021
Required properties for power domain sub nodes:
2122
- reg: index of the power domain, should use macros in:
23+
"include/dt-bindings/power/px30-power.h" - for PX30 type power domain.
2224
"include/dt-bindings/power/rk3036-power.h" - for RK3036 type power domain.
2325
"include/dt-bindings/power/rk3128-power.h" - for RK3128 type power domain.
2426
"include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain.
@@ -97,6 +99,7 @@ Node of a device using power domains must have a power-domains property,
9799
containing a phandle to the power device node and an index specifying which
98100
power domain to use.
99101
The index should use macros in:
102+
"include/dt-bindings/power/px30-power.h" - for px30 type power domain.
100103
"include/dt-bindings/power/rk3036-power.h" - for rk3036 type power domain.
101104
"include/dt-bindings/power/rk3128-power.h" - for rk3128 type power domain.
102105
"include/dt-bindings/power/rk3288-power.h" - for rk3288 type power domain.

arch/arm/boot/dts/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
528528
rk3229-gva-sdk.dtb \
529529
rk3288-evb-act8846.dtb \
530530
rk3288-evb-android-act8846-edp.dtb \
531+
rk3288-evb-android-rk808-edp.dtb \
531532
rk3288-evb-android-rk818-edp.dtb \
533+
rk3288-evb-android-rk818-hdmi.dtb \
532534
rk3288-evb-android-rk818-lvds.dtb \
533535
rk3288-evb-android-rk818-mipi.dtb \
534536
rk3288-evb-android-rk818-mipi-edp.dtb \
@@ -543,6 +545,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
543545
rk3288-miqi.dtb \
544546
rk3288-phycore-rdk.dtb \
545547
rk3288-popmetal.dtb \
548+
rk3288-popmetal-android.dtb \
546549
rk3288-r89.dtb \
547550
rk3288-rock2-square.dtb \
548551
rk3288-veyron-jaq.dtb \

arch/arm/boot/dts/rk3036-kylin.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
};
6363
};
6464

65+
/delete-node/ psci;
66+
6567
sdio_pwrseq: sdio-pwrseq {
6668
compatible = "mmc-pwrseq-simple";
6769
pinctrl-names = "default";

arch/arm/boot/dts/rk3066a-rayeager.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,18 @@
226226
cpu0-supply = <&vdd_arm>;
227227
};
228228

229+
&cpu0_opp_table {
230+
opp-816000000 {
231+
status = "okay";
232+
};
233+
};
234+
235+
&gpu_opp_table {
236+
opp-300000000 {
237+
status = "okay";
238+
};
239+
};
240+
229241
&emac {
230242
pinctrl-names = "default";
231243
pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
@@ -366,6 +378,8 @@
366378
regulator-name = "vcc25_hdmi";
367379
regulator-min-microvolt = <2500000>;
368380
regulator-max-microvolt = <2500000>;
381+
regulator-always-on;
382+
regulator-boot-on;
369383
};
370384

371385
vcca_33: regulator@10 {
@@ -580,6 +594,10 @@
580594
status = "okay";
581595
};
582596

597+
&vop0 {
598+
status = "okay";
599+
};
600+
583601
&wdt {
584602
status = "okay";
585603
};

0 commit comments

Comments
 (0)