Skip to content

Commit b42f455

Browse files
committed
Merge tag 'zte-dt64-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/dt64
ZTE arm64 device tree updates for 4.12: - Add mmc devices for ZX296718 SoC and enable those available on zx296718-evb board. - Add VOU controller device, output devices HDMI and TVENC, and enable display support for zx296718-evb board. - Remove pll_vga clock from ZX296718 device tree, as it's not a fixed rate clock. * tag 'zte-dt64-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: arm64: dts: zte: add tvenc device for zx296718 arm64: dts: zte: add vou and hdmi devices for zx296718 arm64: dts: zte: add mmc devices for zx296718 arm64: dts: zte: remove zx296718 pll_vga clock Signed-off-by: Olof Johansson <[email protected]>
2 parents 13ed63b + f006aaf commit b42f455

File tree

2 files changed

+147
-7
lines changed

2 files changed

+147
-7
lines changed

arch/arm64/boot/dts/zte/zx296718-evb.dts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,34 @@
5757
reg = <0x40000000 0x40000000>;
5858
};
5959

60+
sound0 {
61+
compatible = "simple-audio-card";
62+
simple-audio-card,name = "zx_snd_spdif0";
63+
64+
simple-audio-card,cpu {
65+
sound-dai = <&spdif0>;
66+
};
67+
68+
simple-audio-card,codec {
69+
sound-dai = <&hdmi>;
70+
};
71+
};
72+
};
73+
74+
&emmc {
75+
status = "okay";
76+
};
77+
78+
&hdmi {
79+
status = "okay";
80+
};
81+
82+
&sd1 {
83+
status = "okay";
84+
};
85+
86+
&spdif0 {
87+
status = "okay";
6088
};
6189

6290
&uart0 {

arch/arm64/boot/dts/zte/zx296718.dtsi

Lines changed: 119 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,6 @@
235235
clock-output-names = "pll_mac";
236236
};
237237

238-
pll_vga: clk-pll-1073m {
239-
compatible = "fixed-clock";
240-
#clock-cells = <0>;
241-
clock-frequency = <1073000000>;
242-
clock-output-names = "pll_vga";
243-
};
244-
245238
pll_mm0: clk-pll-1188m {
246239
compatible = "fixed-clock";
247240
#clock-cells = <0>;
@@ -305,6 +298,51 @@
305298
status = "disabled";
306299
};
307300

301+
sd0: mmc@1110000 {
302+
compatible = "zte,zx296718-dw-mshc";
303+
#address-cells = <1>;
304+
#size-cells = <0>;
305+
reg = <0x01110000 0x1000>;
306+
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
307+
fifo-depth = <32>;
308+
data-addr = <0x200>;
309+
fifo-watermark-aligned;
310+
bus-width = <4>;
311+
clock-frequency = <50000000>;
312+
clocks = <&topcrm SD0_AHB>, <&topcrm SD0_WCLK>;
313+
clock-names = "biu", "ciu";
314+
num-slots = <1>;
315+
max-frequency = <50000000>;
316+
cap-sdio-irq;
317+
cap-sd-highspeed;
318+
sd-uhs-sdr12;
319+
sd-uhs-sdr25;
320+
sd-uhs-sdr50;
321+
sd-uhs-sdr104;
322+
sd-uhs-ddr50;
323+
status = "disabled";
324+
};
325+
326+
sd1: mmc@1111000 {
327+
compatible = "zte,zx296718-dw-mshc";
328+
#address-cells = <1>;
329+
#size-cells = <0>;
330+
reg = <0x01111000 0x1000>;
331+
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
332+
fifo-depth = <32>;
333+
data-addr = <0x200>;
334+
fifo-watermark-aligned;
335+
bus-width = <4>;
336+
clock-frequency = <167000000>;
337+
clocks = <&topcrm SD1_AHB>, <&topcrm SD1_WCLK>;
338+
clock-names = "biu", "ciu";
339+
num-slots = <1>;
340+
max-frequency = <167000000>;
341+
cap-sdio-irq;
342+
cap-sd-highspeed;
343+
status = "disabled";
344+
};
345+
308346
dma: dma-controller@1460000 {
309347
compatible = "zte,zx296702-dma";
310348
reg = <0x01460000 0x1000>;
@@ -328,6 +366,47 @@
328366
#clock-cells = <1>;
329367
};
330368

369+
vou: vou@1440000 {
370+
compatible = "zte,zx296718-vou";
371+
#address-cells = <1>;
372+
#size-cells = <1>;
373+
ranges = <0 0x1440000 0x10000>;
374+
375+
dpc: dpc@0 {
376+
compatible = "zte,zx296718-dpc";
377+
reg = <0x0000 0x1000>, <0x1000 0x1000>,
378+
<0x5000 0x1000>, <0x6000 0x1000>,
379+
<0xa000 0x1000>;
380+
reg-names = "osd", "timing_ctrl",
381+
"dtrc", "vou_ctrl",
382+
"otfppu";
383+
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
384+
clocks = <&topcrm VOU_ACLK>, <&topcrm VOU_PPU_WCLK>,
385+
<&topcrm VOU_MAIN_WCLK>, <&topcrm VOU_AUX_WCLK>;
386+
clock-names = "aclk", "ppu_wclk",
387+
"main_wclk", "aux_wclk";
388+
};
389+
390+
hdmi: hdmi@c000 {
391+
compatible = "zte,zx296718-hdmi";
392+
reg = <0xc000 0x4000>;
393+
interrupts = <GIC_SPI 82 IRQ_TYPE_EDGE_RISING>;
394+
clocks = <&topcrm HDMI_OSC_CEC>,
395+
<&topcrm HDMI_OSC_CLK>,
396+
<&topcrm HDMI_XCLK>;
397+
clock-names = "osc_cec", "osc_clk", "xclk";
398+
#sound-dai-cells = <0>;
399+
status = "disabled";
400+
};
401+
402+
tvenc: tvenc@2000 {
403+
compatible = "zte,zx296718-tvenc";
404+
reg = <0x2000 0x1000>;
405+
zte,tvenc-power-control = <&sysctrl 0x170 0x10>;
406+
status = "disabled";
407+
};
408+
};
409+
331410
topcrm: clock-controller@1461000 {
332411
compatible = "zte,zx296718-topcrm";
333412
reg = <0x01461000 0x1000>;
@@ -339,10 +418,43 @@
339418
reg = <0x1463000 0x1000>;
340419
};
341420

421+
emmc: mmc@1470000{
422+
compatible = "zte,zx296718-dw-mshc";
423+
reg = <0x01470000 0x1000>;
424+
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
425+
zte,aon-syscon = <&aon_sysctrl>;
426+
bus-width = <8>;
427+
fifo-depth = <128>;
428+
data-addr = <0x200>;
429+
fifo-watermark-aligned;
430+
clock-frequency = <167000000>;
431+
clocks = <&topcrm EMMC_NAND_AHB>, <&topcrm EMMC_WCLK>;
432+
clock-names = "biu", "ciu";
433+
max-frequency = <167000000>;
434+
cap-mmc-highspeed;
435+
mmc-ddr-1_8v;
436+
mmc-hs200-1_8v;
437+
non-removable;
438+
disable-wp;
439+
status = "disabled";
440+
};
441+
342442
audiocrm: clock-controller@1480000 {
343443
compatible = "zte,zx296718-audiocrm";
344444
reg = <0x01480000 0x1000>;
345445
#clock-cells = <1>;
346446
};
447+
448+
spdif0: spdif@1488000 {
449+
compatible = "zte,zx296702-spdif";
450+
reg = <0x1488000 0x1000>;
451+
clocks = <&audiocrm AUDIO_SPDIF0_WCLK>;
452+
clock-names = "tx";
453+
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
454+
#sound-dai-cells = <0>;
455+
dmas = <&dma 30>;
456+
dma-names = "tx";
457+
status = "disabled";
458+
};
347459
};
348460
};

0 commit comments

Comments
 (0)