diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2018-03-03 14:06:21 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2018-03-13 14:16:17 -0400 |
commit | cbfa278e20913a9b8380278149fa7e4068ea82e2 (patch) | |
tree | 6a581c7d8e45524cbb81ebbf9edbd0f88f1415cb | |
parent | 972952d39fc1e2274c273ec9f1a47bcce30a5722 (diff) |
arm64: dts: renesas: r8a77970: add I2C support
Define the generic R8A77970 parts of the I2C[0-4] device node.
Based on the original (and large) patch by Daisuke Matsushita
<daisuke.matsushita.ns@hitachi.com>.
Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm64/boot/dts/renesas/r8a77970.dtsi | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi index 13ff4305416e..e44281cc1047 100644 --- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi | |||
@@ -19,6 +19,14 @@ | |||
19 | #address-cells = <2>; | 19 | #address-cells = <2>; |
20 | #size-cells = <2>; | 20 | #size-cells = <2>; |
21 | 21 | ||
22 | aliases { | ||
23 | i2c0 = &i2c0; | ||
24 | i2c1 = &i2c1; | ||
25 | i2c2 = &i2c2; | ||
26 | i2c3 = &i2c3; | ||
27 | i2c4 = &i2c4; | ||
28 | }; | ||
29 | |||
22 | psci { | 30 | psci { |
23 | compatible = "arm,psci-1.0", "arm,psci-0.2"; | 31 | compatible = "arm,psci-1.0", "arm,psci-0.2"; |
24 | method = "smc"; | 32 | method = "smc"; |
@@ -338,6 +346,91 @@ | |||
338 | <&ipmmu_ds1 22>, <&ipmmu_ds1 23>; | 346 | <&ipmmu_ds1 22>, <&ipmmu_ds1 23>; |
339 | }; | 347 | }; |
340 | 348 | ||
349 | i2c0: i2c@e6500000 { | ||
350 | compatible = "renesas,i2c-r8a77970", | ||
351 | "renesas,rcar-gen3-i2c"; | ||
352 | reg = <0 0xe6500000 0 0x40>; | ||
353 | interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; | ||
354 | clocks = <&cpg CPG_MOD 931>; | ||
355 | power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; | ||
356 | resets = <&cpg 931>; | ||
357 | dmas = <&dmac1 0x91>, <&dmac1 0x90>, | ||
358 | <&dmac2 0x91>, <&dmac2 0x90>; | ||
359 | dma-names = "tx", "rx", "tx", "rx"; | ||
360 | i2c-scl-internal-delay-ns = <6>; | ||
361 | #address-cells = <1>; | ||
362 | #size-cells = <0>; | ||
363 | status = "disabled"; | ||
364 | }; | ||
365 | |||
366 | i2c1: i2c@e6508000 { | ||
367 | compatible = "renesas,i2c-r8a77970", | ||
368 | "renesas,rcar-gen3-i2c"; | ||
369 | reg = <0 0xe6508000 0 0x40>; | ||
370 | interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>; | ||
371 | clocks = <&cpg CPG_MOD 930>; | ||
372 | power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; | ||
373 | resets = <&cpg 930>; | ||
374 | dmas = <&dmac1 0x93>, <&dmac1 0x92>, | ||
375 | <&dmac2 0x93>, <&dmac2 0x92>; | ||
376 | dma-names = "tx", "rx", "tx", "rx"; | ||
377 | i2c-scl-internal-delay-ns = <6>; | ||
378 | #address-cells = <1>; | ||
379 | #size-cells = <0>; | ||
380 | status = "disabled"; | ||
381 | }; | ||
382 | |||
383 | i2c2: i2c@e6510000 { | ||
384 | compatible = "renesas,i2c-r8a77970", | ||
385 | "renesas,rcar-gen3-i2c"; | ||
386 | reg = <0 0xe6510000 0 0x40>; | ||
387 | interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>; | ||
388 | clocks = <&cpg CPG_MOD 929>; | ||
389 | power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; | ||
390 | resets = <&cpg 929>; | ||
391 | dmas = <&dmac1 0x95>, <&dmac1 0x94>, | ||
392 | <&dmac2 0x95>, <&dmac2 0x94>; | ||
393 | dma-names = "tx", "rx", "tx", "rx"; | ||
394 | i2c-scl-internal-delay-ns = <6>; | ||
395 | #address-cells = <1>; | ||
396 | #size-cells = <0>; | ||
397 | status = "disabled"; | ||
398 | }; | ||
399 | |||
400 | i2c3: i2c@e66d0000 { | ||
401 | compatible = "renesas,i2c-r8a77970", | ||
402 | "renesas,rcar-gen3-i2c"; | ||
403 | reg = <0 0xe66d0000 0 0x40>; | ||
404 | interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>; | ||
405 | clocks = <&cpg CPG_MOD 928>; | ||
406 | power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; | ||
407 | resets = <&cpg 928>; | ||
408 | dmas = <&dmac1 0x97>, <&dmac1 0x96>, | ||
409 | <&dmac2 0x97>, <&dmac2 0x96>; | ||
410 | dma-names = "tx", "rx", "tx", "rx"; | ||
411 | i2c-scl-internal-delay-ns = <6>; | ||
412 | #address-cells = <1>; | ||
413 | #size-cells = <0>; | ||
414 | status = "disabled"; | ||
415 | }; | ||
416 | |||
417 | i2c4: i2c@e66d8000 { | ||
418 | compatible = "renesas,i2c-r8a77970", | ||
419 | "renesas,rcar-gen3-i2c"; | ||
420 | reg = <0 0xe66d8000 0 0x40>; | ||
421 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; | ||
422 | clocks = <&cpg CPG_MOD 927>; | ||
423 | power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; | ||
424 | resets = <&cpg 927>; | ||
425 | dmas = <&dmac1 0x99>, <&dmac1 0x98>, | ||
426 | <&dmac2 0x99>, <&dmac2 0x98>; | ||
427 | dma-names = "tx", "rx", "tx", "rx"; | ||
428 | i2c-scl-internal-delay-ns = <6>; | ||
429 | #address-cells = <1>; | ||
430 | #size-cells = <0>; | ||
431 | status = "disabled"; | ||
432 | }; | ||
433 | |||
341 | hscif0: serial@e6540000 { | 434 | hscif0: serial@e6540000 { |
342 | compatible = "renesas,hscif-r8a77970", | 435 | compatible = "renesas,hscif-r8a77970", |
343 | "renesas,rcar-gen3-hscif", | 436 | "renesas,rcar-gen3-hscif", |