Commit 5ea67992 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'v4.12-rockchip-dts32-1' of...

Merge tag 'v4.12-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/dt

Pull "Rockchip dts32 updates for 4.12 part1" from Heiko Stübner:

Contains one new board, the Tinkerboard from Asus based on the rk3288,
definitions for the mmc resets in the socs reset controller, sound
support for the Rock2, dma support for mmc controllers on the rk3188
and a led-fix for the MiQi board and and irq-fix for older Cortex-A9 socs.

* tag 'v4.12-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
  ARM: dts: rockchip: setup DMA-channels for mmc0 and emmc for rk3188
  ARM: dts: rockchip: fix PPI misconfiguration on Cortex-A9 socs
  ARM: dts: rockchip: add rk322x dw-mmc resets
  ARM: dts: rockchip: add rk3066/rk3188 dw-mmc resets
  ARM: dts: rockchip: add rk3036 dw-mmc resets
  ARM: dts: rockchip: add rk3288 dw-mmc resets
  ARM: dts: rockchip: add dts for RK3288-Tinker board
  dt-bindings: add rk3288-based Asus Tinker board
  ARM: dts: rockchip: fix the MiQi board's LED definition
  ARM: dts: rockchip: Add support for ES8388 to the Radxa Rock 2
parents f63c00bc 94bbdd77
Rockchip platforms device tree bindings Rockchip platforms device tree bindings
--------------------------------------- ---------------------------------------
- Asus Tinker board
Required root node properties:
- compatible = "asus,rk3288-tinker", "rockchip,rk3288";
- Kylin RK3036 board: - Kylin RK3036 board:
Required root node properties: Required root node properties:
......
...@@ -725,6 +725,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ ...@@ -725,6 +725,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rk3288-popmetal.dtb \ rk3288-popmetal.dtb \
rk3288-r89.dtb \ rk3288-r89.dtb \
rk3288-rock2-square.dtb \ rk3288-rock2-square.dtb \
rk3288-tinker.dtb \
rk3288-veyron-brain.dtb \ rk3288-veyron-brain.dtb \
rk3288-veyron-jaq.dtb \ rk3288-veyron-jaq.dtb \
rk3288-veyron-jerry.dtb \ rk3288-veyron-jerry.dtb \
......
...@@ -250,6 +250,8 @@ sdmmc: dwmmc@10214000 { ...@@ -250,6 +250,8 @@ sdmmc: dwmmc@10214000 {
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
fifo-depth = <0x100>; fifo-depth = <0x100>;
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
resets = <&cru SRST_MMC0>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -262,6 +264,8 @@ sdio: dwmmc@10218000 { ...@@ -262,6 +264,8 @@ sdio: dwmmc@10218000 {
clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
fifo-depth = <0x100>; fifo-depth = <0x100>;
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
resets = <&cru SRST_SDIO>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -286,6 +290,8 @@ emmc: dwmmc@1021c000 { ...@@ -286,6 +290,8 @@ emmc: dwmmc@1021c000 {
num-slots = <1>; num-slots = <1>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
resets = <&cru SRST_EMMC>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
......
...@@ -529,11 +529,11 @@ &emac { ...@@ -529,11 +529,11 @@ &emac {
}; };
&global_timer { &global_timer {
interrupts = <GIC_PPI 11 0xf04>; interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
}; };
&local_timer { &local_timer {
interrupts = <GIC_PPI 13 0xf04>; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
}; };
&i2c0 { &i2c0 {
......
...@@ -414,6 +414,8 @@ emmc: dwmmc@30020000 { ...@@ -414,6 +414,8 @@ emmc: dwmmc@30020000 {
fifo-depth = <0x100>; fifo-depth = <0x100>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
resets = <&cru SRST_EMMC>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
......
...@@ -68,11 +68,9 @@ leds { ...@@ -68,11 +68,9 @@ leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
work { work {
gpios = <&gpio7 RK_PA4 GPIO_ACTIVE_LOW>; gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
label = "miqi:green:user"; label = "miqi:green:user";
linux,default-trigger = "default-on"; linux,default-trigger = "timer";
pinctrl-names = "default";
pinctrl-0 = <&led_ctl>;
}; };
}; };
...@@ -363,12 +361,6 @@ phy_rst: phy-rst { ...@@ -363,12 +361,6 @@ phy_rst: phy-rst {
}; };
}; };
leds {
led_ctl: led-ctl {
rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
sdmmc { sdmmc {
/* /*
* Default drive strength isn't enough to achieve even * Default drive strength isn't enough to achieve even
......
...@@ -136,7 +136,7 @@ vcc_ddr: REG1 { ...@@ -136,7 +136,7 @@ vcc_ddr: REG1 {
regulator-always-on; regulator-always-on;
}; };
vcc_io: REG2 { vcc_io: vccio_codec: REG2 {
regulator-name = "VCC_IO"; regulator-name = "VCC_IO";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
......
...@@ -86,6 +86,19 @@ spdif_out: spdif-out { ...@@ -86,6 +86,19 @@ spdif_out: spdif-out {
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
}; };
sound-i2s {
compatible = "rockchip,rk3288-hdmi-analog";
pinctrl-names = "default";
pinctrl-0 = <&phone_ctl>, <&hp_det>;
rockchip,audio-codec = <&es8388>;
rockchip,hp-det-gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>;
rockchip,hp-en-gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
rockchip,i2s-controller = <&i2s>;
rockchip,model = "I2S";
rockchip,routing = "Analog", "LOUT2",
"Analog", "ROUT2";
};
sdio_pwrseq: sdio-pwrseq { sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
clocks = <&hym8563>; clocks = <&hym8563>;
...@@ -173,10 +186,28 @@ hym8563: hym8563@51 { ...@@ -173,10 +186,28 @@ hym8563: hym8563@51 {
}; };
}; };
&i2c2 {
status = "okay";
es8388: es8388@10 {
compatible = "everest,es8388", "everest,es8328";
reg = <0x10>;
AVDD-supply = <&vccio_codec>;
DVDD-supply = <&vccio_codec>;
HPVDD-supply = <&vccio_codec>;
PVDD-supply = <&vccio_codec>;
clocks = <&cru SCLK_I2S0_OUT>;
};
};
&i2c5 { &i2c5 {
status = "okay"; status = "okay";
}; };
&i2s {
status = "okay";
};
&pinctrl { &pinctrl {
ir { ir {
ir_int: ir-int { ir_int: ir-int {
...@@ -190,6 +221,16 @@ pmic_int: pmic-int { ...@@ -190,6 +221,16 @@ pmic_int: pmic-int {
}; };
}; };
headphone {
hp_det: hp-det {
rockchip,pins = <7 7 RK_FUNC_GPIO &pcfg_pull_none>;
};
phone_ctl: phone-ctl {
rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
usb { usb {
host_vbus_drv: host-vbus-drv { host_vbus_drv: host-vbus-drv {
rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
......
This diff is collapsed.
...@@ -236,6 +236,8 @@ sdmmc: dwmmc@ff0c0000 { ...@@ -236,6 +236,8 @@ sdmmc: dwmmc@ff0c0000 {
fifo-depth = <0x100>; fifo-depth = <0x100>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
reg = <0xff0c0000 0x4000>; reg = <0xff0c0000 0x4000>;
resets = <&cru SRST_MMC0>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -248,6 +250,8 @@ sdio0: dwmmc@ff0d0000 { ...@@ -248,6 +250,8 @@ sdio0: dwmmc@ff0d0000 {
fifo-depth = <0x100>; fifo-depth = <0x100>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
reg = <0xff0d0000 0x4000>; reg = <0xff0d0000 0x4000>;
resets = <&cru SRST_SDIO0>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -260,6 +264,8 @@ sdio1: dwmmc@ff0e0000 { ...@@ -260,6 +264,8 @@ sdio1: dwmmc@ff0e0000 {
fifo-depth = <0x100>; fifo-depth = <0x100>;
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
reg = <0xff0e0000 0x4000>; reg = <0xff0e0000 0x4000>;
resets = <&cru SRST_SDIO1>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -272,6 +278,8 @@ emmc: dwmmc@ff0f0000 { ...@@ -272,6 +278,8 @@ emmc: dwmmc@ff0f0000 {
fifo-depth = <0x100>; fifo-depth = <0x100>;
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
reg = <0xff0f0000 0x4000>; reg = <0xff0f0000 0x4000>;
resets = <&cru SRST_EMMC>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
......
...@@ -132,14 +132,14 @@ scu@1013c000 { ...@@ -132,14 +132,14 @@ scu@1013c000 {
global_timer: global-timer@1013c200 { global_timer: global-timer@1013c200 {
compatible = "arm,cortex-a9-global-timer"; compatible = "arm,cortex-a9-global-timer";
reg = <0x1013c200 0x20>; reg = <0x1013c200 0x20>;
interrupts = <GIC_PPI 11 0x304>; interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
clocks = <&cru CORE_PERI>; clocks = <&cru CORE_PERI>;
}; };
local_timer: local-timer@1013c600 { local_timer: local-timer@1013c600 {
compatible = "arm,cortex-a9-twd-timer"; compatible = "arm,cortex-a9-twd-timer";
reg = <0x1013c600 0x20>; reg = <0x1013c600 0x20>;
interrupts = <GIC_PPI 13 0x304>; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
clocks = <&cru CORE_PERI>; clocks = <&cru CORE_PERI>;
}; };
...@@ -223,7 +223,11 @@ mmc0: dwmmc@10214000 { ...@@ -223,7 +223,11 @@ mmc0: dwmmc@10214000 {
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>; clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
dmas = <&dmac2 1>;
dma-names = "rx-tx";
fifo-depth = <256>; fifo-depth = <256>;
resets = <&cru SRST_SDMMC>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -233,7 +237,11 @@ mmc1: dwmmc@10218000 { ...@@ -233,7 +237,11 @@ mmc1: dwmmc@10218000 {
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>; clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
dmas = <&dmac2 3>;
dma-names = "rx-tx";
fifo-depth = <256>; fifo-depth = <256>;
resets = <&cru SRST_SDIO>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
...@@ -243,7 +251,11 @@ emmc: dwmmc@1021c000 { ...@@ -243,7 +251,11 @@ emmc: dwmmc@1021c000 {
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>; clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
clock-names = "biu", "ciu"; clock-names = "biu", "ciu";
dmas = <&dmac2 4>;
dma-names = "rx-tx";
fifo-depth = <256>; fifo-depth = <256>;
resets = <&cru SRST_EMMC>;
reset-names = "reset";
status = "disabled"; status = "disabled";
}; };
......
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