mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 09:51:21 -04:00
Merge tag 'v5.1-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/dt
New board the Elgin-R1 based on the rv1108 soc and a number of small improvements for rv1108 as well. RK3066 got support for the core display components and the Edison tablet got its touchscreen added. Apart from that a wider fix to drop display-wp usage from places where it shouldn't be used, a pin fix for Edison and a cleanup to prevent rk3036 board from defining sound-dai-cells for core components in each board separately. * tag 'v5.1-rockchip-dts32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: dts: rockchip: clean up the abuse of disable-wp ARM: dts: rv1108: Add support for rv1108-elgin-r1 board dt-bindings: Add vendor prefix for elgin ARM: dts: rockchip: rv1108: Add spim0 and spim1 pinctrl groups ARM: dts: rockchip: Add missing dma-names SPI support for rv1108 ARM: dts: rockchip: add rk3066 vop display nodes ARM: dts: rockchip: add focaltech touchscreen to rk3188-bqedison2qc ARM: dts: rockchip: fix cif1_pdn pin on rk3188-bqedison2qc ARM: dts: rockchip: add HCLK_HDMI to rk3066 vio power-domain ARM: dts: rockchip: move rk3036 i2s sound-dail-cells into soc dtsi Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -60,6 +60,11 @@ properties:
|
||||
- const: chipspark,rayeager-px2
|
||||
- const: rockchip,rk3066a
|
||||
|
||||
- description: Elgin RV1108 R1
|
||||
items:
|
||||
- const: elgin,rv1108-r1
|
||||
- const: rockchip,rv1108
|
||||
|
||||
- description: Firefly Firefly-RK3288
|
||||
items:
|
||||
- enum:
|
||||
|
||||
@@ -113,6 +113,7 @@ eckelmann Eckelmann AG
|
||||
edt Emerging Display Technologies
|
||||
eeti eGalax_eMPIA Technology Inc
|
||||
elan Elan Microelectronic Corp.
|
||||
elgin Elgin S/A.
|
||||
embest Shenzhen Embest Technology Co., Ltd.
|
||||
emlid Emlid, Ltd.
|
||||
emmicro EM Microelectronic
|
||||
|
||||
@@ -869,6 +869,7 @@ dtb-$(CONFIG_ARCH_RENESAS) += \
|
||||
r9a06g032-rzn1d400-db.dtb \
|
||||
sh73a0-kzm9g.dtb
|
||||
dtb-$(CONFIG_ARCH_ROCKCHIP) += \
|
||||
rv1108-elgin-r1.dtb \
|
||||
rv1108-evb.dtb \
|
||||
rk3036-evb.dtb \
|
||||
rk3036-kylin.dtb \
|
||||
|
||||
@@ -310,7 +310,6 @@ rt5616: rt5616@1b {
|
||||
};
|
||||
|
||||
&i2s {
|
||||
#sound-dai-cells = <0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
@@ -289,6 +289,7 @@ i2s: i2s@10220000 {
|
||||
dma-names = "tx", "rx";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s_bus>;
|
||||
#sound-dai-cells = <0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
|
||||
@@ -171,7 +171,6 @@ &mmc1 { /* wifi */
|
||||
pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
|
||||
|
||||
bus-width = <4>;
|
||||
disable-wp;
|
||||
};
|
||||
|
||||
&pwm3 {
|
||||
|
||||
@@ -101,7 +101,6 @@ &mmc0 {
|
||||
|
||||
&mmc1 {
|
||||
bus-width = <4>;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
@@ -147,7 +147,6 @@ phy0: ethernet-phy@0 {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
|
||||
@@ -309,7 +308,6 @@ &mmc0 {
|
||||
|
||||
&mmc1 {
|
||||
bus-width = <4>;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
|
||||
|
||||
@@ -44,6 +44,11 @@ cpu@1 {
|
||||
};
|
||||
};
|
||||
|
||||
display-subsystem {
|
||||
compatible = "rockchip,display-subsystem";
|
||||
ports = <&vop0_out>, <&vop1_out>;
|
||||
};
|
||||
|
||||
sram: sram@10080000 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x10080000 0x10000>;
|
||||
@@ -57,6 +62,48 @@ smp-sram@0 {
|
||||
};
|
||||
};
|
||||
|
||||
vop0: vop@1010c000 {
|
||||
compatible = "rockchip,rk3066-vop";
|
||||
reg = <0x1010c000 0x19c>;
|
||||
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&cru ACLK_LCDC0>,
|
||||
<&cru DCLK_LCDC0>,
|
||||
<&cru HCLK_LCDC0>;
|
||||
clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
|
||||
power-domains = <&power RK3066_PD_VIO>;
|
||||
resets = <&cru SRST_LCDC0_AXI>,
|
||||
<&cru SRST_LCDC0_AHB>,
|
||||
<&cru SRST_LCDC0_DCLK>;
|
||||
reset-names = "axi", "ahb", "dclk";
|
||||
status = "disabled";
|
||||
|
||||
vop0_out: port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
vop1: vop@1010e000 {
|
||||
compatible = "rockchip,rk3066-vop";
|
||||
reg = <0x1010e000 0x19c>;
|
||||
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&cru ACLK_LCDC1>,
|
||||
<&cru DCLK_LCDC1>,
|
||||
<&cru HCLK_LCDC1>;
|
||||
clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
|
||||
power-domains = <&power RK3066_PD_VIO>;
|
||||
resets = <&cru SRST_LCDC1_AXI>,
|
||||
<&cru SRST_LCDC1_AHB>,
|
||||
<&cru SRST_LCDC1_DCLK>;
|
||||
reset-names = "axi", "ahb", "dclk";
|
||||
status = "disabled";
|
||||
|
||||
vop1_out: port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
i2s0: i2s@10118000 {
|
||||
compatible = "rockchip,rk3066-i2s";
|
||||
reg = <0x10118000 0x2000>;
|
||||
@@ -669,6 +716,7 @@ pd_vio@RK3066_PD_VIO {
|
||||
<&cru SCLK_CIF0>,
|
||||
<&cru ACLK_CIF0>,
|
||||
<&cru HCLK_CIF0>,
|
||||
<&cru HCLK_HDMI>,
|
||||
<&cru ACLK_IPP>,
|
||||
<&cru HCLK_IPP>,
|
||||
<&cru ACLK_RGA>,
|
||||
|
||||
@@ -227,7 +227,6 @@ &cru {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk &emmc_cmd>;
|
||||
@@ -408,6 +407,21 @@ bq24196: charger@6b {
|
||||
&i2c2 {
|
||||
clock-frequency = <400000>;
|
||||
status = "okay";
|
||||
|
||||
ft5606: touchscreen@3e {
|
||||
compatible = "edt,edt-ft5506";
|
||||
reg = <0x3e>;
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&tp_int &tp_rst>;
|
||||
reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
|
||||
touchscreen-inverted-y;
|
||||
/* hw ts resolution does not match display */
|
||||
touchscreen-size-y = <1024>;
|
||||
touchscreen-size-x = <768>;
|
||||
touchscreen-swapped-x-y;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c3 {
|
||||
@@ -526,7 +540,7 @@ cif0_pdn: cif0-pdn {
|
||||
};
|
||||
|
||||
cif1_pdn: cif1-pdn {
|
||||
rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
|
||||
cif_avdd_en: cif-avdd-en {
|
||||
|
||||
@@ -62,7 +62,6 @@ &cpu3 {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
|
||||
|
||||
@@ -137,7 +137,6 @@ &cpu3 {
|
||||
|
||||
&emmc {
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -37,7 +37,6 @@ &cpu0 {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
|
||||
|
||||
@@ -254,7 +254,6 @@ &sdio0 {
|
||||
bus-width = <4>;
|
||||
cap-sd-highspeed;
|
||||
cap-sdio-irq;
|
||||
disable-wp;
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
|
||||
@@ -87,7 +87,6 @@ &cpu0 {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
|
||||
|
||||
@@ -109,7 +109,6 @@ &cpu0 {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
mmc-ddr-1_8v;
|
||||
mmc-hs200-1_8v;
|
||||
non-removable;
|
||||
|
||||
@@ -133,7 +133,6 @@ &sdio0 {
|
||||
bus-width = <4>;
|
||||
cap-sd-highspeed;
|
||||
cap-sdio-irq;
|
||||
disable-wp;
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
|
||||
@@ -15,7 +15,6 @@ / {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
|
||||
|
||||
@@ -121,7 +121,6 @@ &cpu0 {
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
non-removable;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
|
||||
|
||||
206
arch/arm/boot/dts/rv1108-elgin-r1.dts
Normal file
206
arch/arm/boot/dts/rv1108-elgin-r1.dts
Normal file
@@ -0,0 +1,206 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
|
||||
/*
|
||||
* Copyright (C) 2018 O.S. Systems Software LTDA.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "rv1108.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Elgin RV1108 R1 board";
|
||||
compatible = "elgin,rv1108-r1", "rockchip,rv1108";
|
||||
|
||||
memory@60000000 {
|
||||
device_type = "memory";
|
||||
reg = <0x60000000 0x08000000>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial2:1500000n8";
|
||||
};
|
||||
|
||||
vcc_sys: vsys-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vsys";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
regulator-boot-on;
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-supply = <&vdd_core>;
|
||||
};
|
||||
|
||||
&emmc {
|
||||
bus-width = <8>;
|
||||
cap-mmc-highspeed;
|
||||
disable-wp;
|
||||
no-sd;
|
||||
no-sdio;
|
||||
non-removable;
|
||||
mmc-ddr-1_8v;
|
||||
mmc-hs200-1_8v;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gmac {
|
||||
clock_in_out = "output";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rmii_pins>;
|
||||
snps,reset-gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
snps,reset-active-low;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
clock-frequency = <400000>;
|
||||
i2c-scl-rising-time-ns = <275>;
|
||||
i2c-scl-falling-time-ns = <16>;
|
||||
status = "okay";
|
||||
|
||||
rk805: pmic@18 {
|
||||
compatible = "rockchip,rk805";
|
||||
reg = <0x18>;
|
||||
interrupt-parent = <&gpio0>;
|
||||
interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
|
||||
rockchip,system-power-controller;
|
||||
|
||||
vcc1-supply = <&vcc_sys>;
|
||||
vcc2-supply = <&vcc_sys>;
|
||||
vcc3-supply = <&vcc_sys>;
|
||||
vcc4-supply = <&vcc_sys>;
|
||||
vcc5-supply = <&vcc_sys>;
|
||||
vcc6-supply = <&vcc_sys>;
|
||||
|
||||
regulators {
|
||||
vdd_core: DCDC_REG1 {
|
||||
regulator-name= "vdd_core";
|
||||
regulator-min-microvolt = <700000>;
|
||||
regulator-max-microvolt = <1500000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-state-enabled;
|
||||
regulator-state-uv = <900000>;
|
||||
};
|
||||
};
|
||||
|
||||
vdd_cam: DCDC_REG2 {
|
||||
regulator-name= "vdd_cam";
|
||||
regulator-min-microvolt = <700000>;
|
||||
regulator-max-microvolt = <2000000>;
|
||||
regulator-state-mem {
|
||||
regulator-state-disabled;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_ddr: DCDC_REG3 {
|
||||
regulator-name= "vcc_ddr";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-state-enabled;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_io: DCDC_REG4 {
|
||||
regulator-name= "vcc_io";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-state-enabled;
|
||||
regulator-state-uv = <3300000>;
|
||||
};
|
||||
};
|
||||
|
||||
vdd_10: LDO_REG1 {
|
||||
regulator-name= "vdd_10";
|
||||
regulator-min-microvolt = <1000000>;
|
||||
regulator-max-microvolt = <1000000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-state-disabled;
|
||||
};
|
||||
};
|
||||
|
||||
vcc_18: LDO_REG2 {
|
||||
regulator-name= "vcc_18";
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-state-disabled;
|
||||
};
|
||||
};
|
||||
|
||||
vdd10_pmu: LDO_REG3 {
|
||||
regulator-name= "vdd10_pmu";
|
||||
regulator-min-microvolt = <1000000>;
|
||||
regulator-max-microvolt = <1000000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-state-enabled;
|
||||
regulator-state-uv = <1000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&spi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
|
||||
status = "okay";
|
||||
|
||||
dh2228fv: dac@0 {
|
||||
compatible = "rohm,dh2228fv";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <24000000>;
|
||||
spi-cpha;
|
||||
spi-cpol;
|
||||
};
|
||||
};
|
||||
|
||||
&u2phy {
|
||||
status = "okay";
|
||||
|
||||
u2phy_host: host-port {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
u2phy_otg: otg-port {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0_xfer>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host_ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_host_ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_otg {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -207,6 +207,7 @@ spi: spi@10270000 {
|
||||
clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
|
||||
clock-names = "spiclk", "apb_pclk";
|
||||
dmas = <&pdma 8>, <&pdma 9>;
|
||||
dma-names = "tx", "rx";
|
||||
#dma-cells = <2>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@@ -833,6 +834,42 @@ sdmmc_bus4: sdmmc-bus4 {
|
||||
};
|
||||
};
|
||||
|
||||
spim0 {
|
||||
spim0_clk: spim0-clk {
|
||||
rockchip,pins = <1 RK_PD0 RK_FUNC_2 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
spim0_cs0: spim0-cs0 {
|
||||
rockchip,pins = <1 RK_PD1 RK_FUNC_2 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
spim0_tx: spim0-tx {
|
||||
rockchip,pins = <1 RK_PD3 RK_FUNC_2 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
spim0_rx: spim0-rx {
|
||||
rockchip,pins = <1 RK_PD2 RK_FUNC_2 &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
|
||||
spim1 {
|
||||
spim1_clk: spim1-clk {
|
||||
rockchip,pins = <0 RK_PA3 RK_FUNC_1 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
spim1_cs0: spim1-cs0 {
|
||||
rockchip,pins = <0 RK_PA4 RK_FUNC_1 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
spim1_rx: spim1-rx {
|
||||
rockchip,pins = <0 RK_PB0 RK_FUNC_1 &pcfg_pull_up>;
|
||||
};
|
||||
|
||||
spim1_tx: spim1-tx {
|
||||
rockchip,pins = <0 RK_PA7 RK_FUNC_1 &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
|
||||
tsadc {
|
||||
otp_out: otp-out {
|
||||
rockchip,pins = <0 RK_PB7 RK_FUNC_1 &pcfg_pull_none>;
|
||||
|
||||
Reference in New Issue
Block a user