Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: r8a7778: Add HSCIF0/1 support

Add HSCIF0/1 clocks and device nodes, based on Rev. 1.00 of the R-Car
M1A datasheet.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
[geert: Squashed two patches]
[geert: Correct HSCIF1 module clock index]
[geert: Correct reg properties for non-LPAE]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

authored by

Ulrich Hecht and committed by
Simon Horman
adbb78e1 383f6024

+30
+28
arch/arm/boot/dts/r8a7778.dtsi
··· 367 367 status = "disabled"; 368 368 }; 369 369 370 + hscif0: serial@ffe48000 { 371 + compatible = "renesas,hscif-r8a7778", 372 + "renesas,rcar-gen1-hscif", "renesas,hscif"; 373 + reg = <0xffe48000 96>; 374 + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; 375 + clocks = <&mstp0_clks R8A7778_CLK_HSCIF0>, 376 + <&cpg_clocks R8A7778_CLK_S>, <&scif_clk>; 377 + clock-names = "fck", "brg_int", "scif_clk"; 378 + power-domains = <&cpg_clocks>; 379 + status = "disabled"; 380 + }; 381 + 382 + hscif1: serial@ffe49000 { 383 + compatible = "renesas,hscif-r8a7778", 384 + "renesas,rcar-gen1-hscif", "renesas,hscif"; 385 + reg = <0xffe49000 96>; 386 + interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; 387 + clocks = <&mstp0_clks R8A7778_CLK_HSCIF1>, 388 + <&cpg_clocks R8A7778_CLK_S>, <&scif_clk>; 389 + clock-names = "fck", "brg_int", "scif_clk"; 390 + power-domains = <&cpg_clocks>; 391 + status = "disabled"; 392 + }; 393 + 370 394 mmcif: mmc@ffe4e000 { 371 395 compatible = "renesas,mmcif-r8a7778", "renesas,sh-mmcif"; 372 396 reg = <0xffe4e000 0x100>; ··· 559 535 <&cpg_clocks R8A7778_CLK_P>, 560 536 <&cpg_clocks R8A7778_CLK_P>, 561 537 <&cpg_clocks R8A7778_CLK_P>, 538 + <&cpg_clocks R8A7778_CLK_S>, 539 + <&cpg_clocks R8A7778_CLK_S>, 562 540 <&cpg_clocks R8A7778_CLK_P>, 563 541 <&cpg_clocks R8A7778_CLK_P>, 564 542 <&cpg_clocks R8A7778_CLK_P>, ··· 577 551 R8A7778_CLK_SCIF0 R8A7778_CLK_SCIF1 578 552 R8A7778_CLK_SCIF2 R8A7778_CLK_SCIF3 579 553 R8A7778_CLK_SCIF4 R8A7778_CLK_SCIF5 554 + R8A7778_CLK_HSCIF0 R8A7778_CLK_HSCIF1 580 555 R8A7778_CLK_TMU0 R8A7778_CLK_TMU1 581 556 R8A7778_CLK_TMU2 R8A7778_CLK_SSI0 582 557 R8A7778_CLK_SSI1 R8A7778_CLK_SSI2 ··· 587 560 clock-output-names = 588 561 "i2c0", "i2c1", "i2c2", "i2c3", "scif0", 589 562 "scif1", "scif2", "scif3", "scif4", "scif5", 563 + "hscif0", "hscif1", 590 564 "tmu0", "tmu1", "tmu2", "ssi0", "ssi1", 591 565 "ssi2", "ssi3", "sru", "hspi"; 592 566 };
+2
include/dt-bindings/clock/r8a7778-clock.h
··· 30 30 #define R8A7778_CLK_SCIF3 23 31 31 #define R8A7778_CLK_SCIF4 22 32 32 #define R8A7778_CLK_SCIF5 21 33 + #define R8A7778_CLK_HSCIF0 19 34 + #define R8A7778_CLK_HSCIF1 18 33 35 #define R8A7778_CLK_TMU0 16 34 36 #define R8A7778_CLK_TMU1 15 35 37 #define R8A7778_CLK_TMU2 14