Renesas RZ/G2 extend peripheral support
Subsystems (7)
cover Renesas RZ/G2 extend peripheral support
From: Fabrizio Castro <[email protected]>
This patch series adds support for for following peripherals supported by RZ/G2N:
1] I2C and IIC-DVFS
2] OPP's table for CPU nodes
3] Thermal zones
4] CMT and TMU
This patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from upstream.
Biju Das (12):
dt-bindings: i2c: rcar: Add r8a774b1 support
dt-bindings: i2c: sh_mobile: Add r8a774b1 support
arm64: dts: renesas: r8a774b1: Add I2C and IIC-DVFS support
arm64: dts: renesas: r8a774b1: Add OPPs table for cpu devices
dt-bindings: thermal: rcar-gen3-thermal: Add r8a774b1 support
thermal: rcar_gen3_thermal: Add r8a774b1 support
arm64: dts: renesas: r8a774b1: Add RZ/G2N thermal support
dt-bindings: timer: renesas, cmt: Document r8a774b1 CMT support
arm64: dts: renesas: r8a774b1: Add CMT device nodes
dt-bindings: timer: renesas: tmu: Document r8a774b1 bindings
clk: renesas: r8a774b1: Add TMU clock
arm64: dts: renesas: r8a774b1: Add TMU device nodes
Simon Horman (2):
dt-bindings: i2c: rcar: Rename bindings documentation file
dt-bindings: i2c: sh_mobile: Rename bindings documentation file
Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 60 ---- .../devicetree/bindings/i2c/i2c-sh_mobile.txt | 67 ---- .../devicetree/bindings/i2c/renesas,i2c.txt | 61 ++++ .../devicetree/bindings/i2c/renesas,iic.txt | 68 ++++ .../bindings/thermal/rcar-gen3-thermal.txt | 1 + .../devicetree/bindings/timer/renesas,cmt.txt | 2 + .../devicetree/bindings/timer/renesas,tmu.txt | 1 + arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 359 ++++++++++++++++++++- drivers/clk/renesas/r8a774b1-cpg-mssr.c | 5 + drivers/thermal/rcar_gen3_thermal.c | 4 + 10 files changed, 500 insertions(+), 128 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-rcar.txt delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt create mode 100644 Documentation/devicetree/bindings/i2c/renesas,i2c.txt create mode 100644 Documentation/devicetree/bindings/i2c/renesas,iic.txt
Signature · 1 line
2.7.4
PATCH 1/14 dt-bindings: i2c: rcar: Rename bindings documentation file
From: Simon Horman <[email protected]>
commit 4e4521f76ff96f83561555f76c50d25314320d10 upstream.
Rename the bindings documentation file for R-Car I2C controller from i2c-rcar.txt to renesas,i2c.txt.
This is part of an ongoing effort to name bindings documentation files for Renesas IP blocks consistently, in line with the compat strings they document.
(dropped unsupported compatible strings. dropped updating MAINTAINERS file since the entry didnt exist)
--- Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 60 ---------------------- .../devicetree/bindings/i2c/renesas,i2c.txt | 60 ++++++++++++++++++++++ 2 files changed, 60 insertions(+), 60 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-rcar.txt create mode 100644 Documentation/devicetree/bindings/i2c/renesas,i2c.txt
Documentation/devicetree/bindings/i2c/i2c-rcar.txt deleted +0 -60
@@ -1,60 +0,0 @@ -I2C for R-Car platforms - -Required properties: -- compatible: - "renesas,i2c-r8a7743" if the device is a part of a R8A7743 SoC. - "renesas,i2c-r8a7745" if the device is a part of a R8A7745 SoC. - "renesas,i2c-r8a774a1" if the device is a part of a R8A774A1 SoC. - "renesas,i2c-r8a774c0" if the device is a part of a R8A774C0 SoC. - "renesas,i2c-r8a7778" if the device is a part of a R8A7778 SoC. - "renesas,i2c-r8a7779" if the device is a part of a R8A7779 SoC. - "renesas,i2c-r8a7790" if the device is a part of a R8A7790 SoC. - "renesas,i2c-r8a7791" if the device is a part of a R8A7791 SoC. - "renesas,i2c-r8a7792" if the device is a part of a R8A7792 SoC. - "renesas,i2c-r8a7793" if the device is a part of a R8A7793 SoC. - "renesas,i2c-r8a7794" if the device is a part of a R8A7794 SoC. - "renesas,i2c-r8a7795" if the device is a part of a R8A7795 SoC. - "renesas,i2c-r8a7796" if the device is a part of a R8A7796 SoC. - "renesas,i2c-r8a77965" if the device is a part of a R8A77965 SoC. - "renesas,i2c-r8a77970" if the device is a part of a R8A77970 SoC. - "renesas,i2c-r8a77980" if the device is a part of a R8A77980 SoC. - "renesas,i2c-r8a77990" if the device is a part of a R8A77990 SoC. - "renesas,i2c-r8a77995" if the device is a part of a R8A77995 SoC. - "renesas,rcar-gen1-i2c" for a generic R-Car Gen1 compatible device. - "renesas,rcar-gen2-i2c" for a generic R-Car Gen2 or RZ/G1 compatible - device. - "renesas,rcar-gen3-i2c" for a generic R-Car Gen3 or RZ/G2 compatible - device. - "renesas,i2c-rcar" (deprecated) - - When compatible with the generic version, nodes must list the - SoC-specific version corresponding to the platform first followed - by the generic version. - -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: interrupt specifier. - -Optional properties: -- clock-frequency: desired I2C bus clock frequency in Hz. The absence of this - property indicates the default frequency 100 kHz. -- clocks: clock specifier. -- dmas: Must contain a list of two references to DMA specifiers, one for - transmission, and one for reception. -- dma-names: Must contain a list of two DMA names, "tx" and "rx". - -- i2c-scl-falling-time-ns: see i2c.txt -- i2c-scl-internal-delay-ns: see i2c.txt -- i2c-scl-rising-time-ns: see i2c.txt - -Examples : - -i2c0: i2c at e6508000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "renesas,i2c-r8a7791", "renesas,rcar-gen2-i2c"; - reg = <0 0xe6508000 0 0x40>; - interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp9_clks R8A7791_CLK_I2C0>; - clock-frequency = <400000>; -};
Documentation/devicetree/bindings/i2c/renesas,i2c.txt new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/14 dt-bindings: i2c: rcar: Add r8a774b1 support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit b803376824c6a3544638bc1dc24e33737dfd9b6b upstream.
Document RZ/G2N (R8A774B1) I2C compatibility with the relevant driver dt-bindings.
--- Documentation/devicetree/bindings/i2c/renesas,i2c.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/i2c/renesas,i2c.txt +1 -0
@@ -5,6 +5,7 @@ Required properties: "renesas,i2c-r8a7743" if the device is a part of a R8A7743 SoC. "renesas,i2c-r8a7745" if the device is a part of a R8A7745 SoC. "renesas,i2c-r8a774a1" if the device is a part of a R8A774A1 SoC. + "renesas,i2c-r8a774b1" if the device is a part of a R8A774B1 SoC. "renesas,i2c-r8a774c0" if the device is a part of a R8A774C0 SoC. "renesas,i2c-r8a7778" if the device is a part of a R8A7778 SoC. "renesas,i2c-r8a7779" if the device is a part of a R8A7779 SoC.
Signature · 1 line
2.7.4
PATCH 3/14 dt-bindings: i2c: sh_mobile: Rename bindings documentation file
In reply to Lad PrabhakarFrom: Simon Horman <[email protected]>
commit 23c2556d8fbec57e72e2c8fd8b7be2715c192b25 upstream.
Rename the bindings documentation file for sh_mobile I2C controller from i2c-sh_mobile.txt to renesas,iic.txt.
This is part of an ongoing effort to name bindings documentation files for Renesas IP blocks consistently, in line with the compat strings they document.
(dropped unsupported compatible strings. dropped updating MAINTAINERS file since the entry didnt exist)
--- .../devicetree/bindings/i2c/i2c-sh_mobile.txt | 67 ---------------------- .../devicetree/bindings/i2c/renesas,iic.txt | 67 ++++++++++++++++++++++ 2 files changed, 67 insertions(+), 67 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt create mode 100644 Documentation/devicetree/bindings/i2c/renesas,iic.txt
Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt deleted +0 -67
@@ -1,67 +0,0 @@ -Device tree configuration for Renesas IIC (sh_mobile) driver - -Required properties: -- compatible : - - "renesas,iic-r8a73a4" (R-Mobile APE6) - - "renesas,iic-r8a7740" (R-Mobile A1) - - "renesas,iic-r8a7743" (RZ/G1M) - - "renesas,iic-r8a7745" (RZ/G1E) - - "renesas,iic-r8a774a1" (RZ/G2M) - - "renesas,iic-r8a774c0" (RZ/G2E) - - "renesas,iic-r8a7790" (R-Car H2) - - "renesas,iic-r8a7791" (R-Car M2-W) - - "renesas,iic-r8a7792" (R-Car V2H) - - "renesas,iic-r8a7793" (R-Car M2-N) - - "renesas,iic-r8a7794" (R-Car E2) - - "renesas,iic-r8a7795" (R-Car H3) - - "renesas,iic-r8a7796" (R-Car M3-W) - - "renesas,iic-r8a77965" (R-Car M3-N) - - "renesas,iic-r8a77990" (R-Car E3) - - "renesas,iic-sh73a0" (SH-Mobile AG5) - - "renesas,rcar-gen2-iic" (generic R-Car Gen2 or RZ/G1 - compatible device) - - "renesas,rcar-gen3-iic" (generic R-Car Gen3 or RZ/G2 - compatible device) - - "renesas,rmobile-iic" (generic device) - - When compatible with a generic R-Car version, nodes - must list the SoC-specific version corresponding to - the platform first followed by the generic R-Car - version. - - When compatible with "renesas,rmobile-iic" it should - be the last compatibility string listed. - - The r8a77990 (R-Car E3) and r8a774c0 (RZ/G2E) - controllers are not considered compatible with - "renesas,rcar-gen3-iic" or "renesas,rmobile-iic" - due to the absence of automatic transmission registers. - -- reg : address start and address range size of device -- interrupts : interrupt of device -- clocks : clock for device -- #address-cells : should be <1> -- #size-cells : should be <0> - -Optional properties: -- clock-frequency : frequency of bus clock in Hz. Default 100kHz if unset. -- dmas : Must contain a list of two references to DMA - specifiers, one for transmission, and one for - reception. -- dma-names : Must contain a list of two DMA names, "tx" and "rx". - - -Pinctrl properties might be needed, too. See there. - -Example: - - iic0: i2c at e6500000 { - compatible = "renesas,iic-r8a7790", "renesas,rcar-gen2-iic", - "renesas,rmobile-iic"; - reg = <0 0xe6500000 0 0x425>; - interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp3_clks R8A7790_CLK_IIC0>; - clock-frequency = <400000>; - #address-cells = <1>; - #size-cells = <0>; - };
Documentation/devicetree/bindings/i2c/renesas,iic.txt new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 4/14 dt-bindings: i2c: sh_mobile: Add r8a774b1 support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 2a0cfc2f83e857e26ceb2021a0feb0dde0be1239 upstream.
Document RZ/G2N (R8A774B1) SoC bindings.
--- Documentation/devicetree/bindings/i2c/renesas,iic.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/i2c/renesas,iic.txt +1 -0
@@ -7,6 +7,7 @@ Required properties: - "renesas,iic-r8a7743" (RZ/G1M) - "renesas,iic-r8a7745" (RZ/G1E) - "renesas,iic-r8a774a1" (RZ/G2M) + - "renesas,iic-r8a774b1" (RZ/G2N) - "renesas,iic-r8a774c0" (RZ/G2E) - "renesas,iic-r8a7790" (R-Car H2) - "renesas,iic-r8a7791" (R-Car M2-W)
Signature · 1 line
2.7.4
PATCH 5/14 arm64: dts: renesas: r8a774b1: Add I2C and IIC-DVFS support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 070302d4673a6229506226b03acb555cc8bd0eec upstream.
Add the I2C[0-6] and IIC Bus Interface for DVFS (IIC for DVFS) devices nodes to the r8a774b1 device tree.
--- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 126 +++++++++++++++++++++++++++++- 1 file changed, 125 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +125 -1
@@ -298,11 +298,135 @@ resets = <&cpg 407>; }; + i2c0: i2c at e6500000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; + reg = <0 0xe6500000 0 0x40>; + interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 931>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 931>; + dmas = <&dmac1 0x91>, <&dmac1 0x90>, + <&dmac2 0x91>, <&dmac2 0x90>; + dma-names = "tx", "rx", "tx", "rx"; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c1: i2c at e6508000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; + reg = <0 0xe6508000 0 0x40>; + interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 930>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 930>; + dmas = <&dmac1 0x93>, <&dmac1 0x92>, + <&dmac2 0x93>, <&dmac2 0x92>; + dma-names = "tx", "rx", "tx", "rx"; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c2: i2c at e6510000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; + reg = <0 0xe6510000 0 0x40>; + interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 929>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 929>; + dmas = <&dmac1 0x95>, <&dmac1 0x94>, + <&dmac2 0x95>, <&dmac2 0x94>; + dma-names = "tx", "rx", "tx", "rx"; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c3: i2c at e66d0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; + reg = <0 0xe66d0000 0 0x40>; + interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 928>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 928>; + dmas = <&dmac0 0x97>, <&dmac0 0x96>; + dma-names = "tx", "rx"; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + i2c4: i2c at e66d8000 { #address-cells = <1>; #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; reg = <0 0xe66d8000 0 0x40>; - /* placeholder */ + interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 927>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 927>; + dmas = <&dmac0 0x99>, <&dmac0 0x98>; + dma-names = "tx", "rx"; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c5: i2c at e66e0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; + reg = <0 0xe66e0000 0 0x40>; + interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 919>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 919>; + dmas = <&dmac0 0x9b>, <&dmac0 0x9a>; + dma-names = "tx", "rx"; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c6: i2c at e66e8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a774b1", + "renesas,rcar-gen3-i2c"; + reg = <0 0xe66e8000 0 0x40>; + interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 918>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 918>; + dmas = <&dmac0 0x9d>, <&dmac0 0x9c>; + dma-names = "tx", "rx"; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c_dvfs: i2c at e60b0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,iic-r8a774b1", + "renesas,rcar-gen3-iic", + "renesas,rmobile-iic"; + reg = <0 0xe60b0000 0 0x425>; + interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 926>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 926>; + dmas = <&dmac0 0x11>, <&dmac0 0x10>; + dma-names = "tx", "rx"; + status = "disabled"; }; hscif0: serial at e6540000 {
Signature · 1 line
2.7.4
PATCH 6/14 arm64: dts: renesas: r8a774b1: Add OPPs table for cpu devices
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit ce21f29032ae49a0bb2a260ab5ebf4c516c9f6e9 upstream.
This patch adds OPPs table for CA57{0,1} cpu devices.
--- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +24 -0
@@ -45,6 +45,28 @@ clock-frequency = <0>; }; + cluster0_opp: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <830000>; + clock-latency-ns = <300000>; + }; + opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <830000>; + clock-latency-ns = <300000>; + }; + opp-1500000000 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <830000>; + clock-latency-ns = <300000>; + opp-suspend; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>;
@@ -59,6 +81,7 @@ #cooling-cells = <2>; dynamic-power-coefficient = <854>; clocks = <&cpg CPG_CORE R8A774B1_CLK_Z>; + operating-points-v2 = <&cluster0_opp>; }; a57_1: cpu at 1 {
@@ -69,6 +92,7 @@ next-level-cache = <&L2_CA57>; enable-method = "psci"; clocks = <&cpg CPG_CORE R8A774B1_CLK_Z>; + operating-points-v2 = <&cluster0_opp>; }; L2_CA57: cache-controller-0 {
Signature · 1 line
2.7.4
PATCH 7/14 dt-bindings: thermal: rcar-gen3-thermal: Add r8a774b1 support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 554cee820e22847ddb0925d5e3b3ea8b2a1f840c upstream.
Document RZ/G2N (R8A774B1) SoC bindings.
--- Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt +1 -0
@@ -8,6 +8,7 @@ Required properties: - compatible : "renesas,<soctype>-thermal", Examples with soctypes are: - "renesas,r8a774a1-thermal" (RZ/G2M) + - "renesas,r8a774b1-thermal" (RZ/G2N) - "renesas,r8a7795-thermal" (R-Car H3) - "renesas,r8a7796-thermal" (R-Car M3-W) - "renesas,r8a77965-thermal" (R-Car M3-N)
Signature · 1 line
2.7.4
PATCH 8/14 thermal: rcar_gen3_thermal: Add r8a774b1 support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 1a005912410f5026d59620fdcd4340c1758ec0a3 upstream.
Add r8a774b1 specific compatible string.
--- drivers/thermal/rcar_gen3_thermal.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/thermal/rcar_gen3_thermal.c +4 -0
@@ -315,6 +315,10 @@ static const struct of_device_id rcar_gen3_thermal_dt_ids[] = { .data = &rcar_gen3_ths_tj_1_m3_w, }, { + .compatible = "renesas,r8a774b1-thermal", + .data = &rcar_gen3_ths_tj_1, + }, + { .compatible = "renesas,r8a7795-thermal", .data = &rcar_gen3_ths_tj_1, },
Signature · 1 line
2.7.4
PATCH 9/14 arm64: dts: renesas: r8a774b1: Add RZ/G2N thermal support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 95b3547f27a60eb63c0c658072b8cdb09979218c upstream.
Add thermal support for R8A774B1 (RZ/G2N) SoC.
Based on the work done for r8a77965 SoC.
--- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 74 +++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +74 -0
@@ -389,6 +389,20 @@ status = "disabled"; }; + tsc: thermal at e6198000 { + compatible = "renesas,r8a774b1-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 0 0x100>, + <0 0xe61a8000 0 0x100>; + interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + i2c4: i2c at e66d8000 { #address-cells = <1>; #size-cells = <0>;
@@ -1105,6 +1119,66 @@ }; }; + thermal-zones { + sensor_thermal1: sensor-thermal1 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 0>; + sustainable-power = <2439>; + + trips { + sensor1_crit: sensor1-crit { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + sensor_thermal2: sensor-thermal2 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 1>; + sustainable-power = <2439>; + + trips { + sensor2_crit: sensor2-crit { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + sensor_thermal3: sensor-thermal3 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 2>; + sustainable-power = <2439>; + + cooling-maps { + map0 { + trip = <&target>; + cooling-device = <&a57_0 0 2>; + contribution = <1024>; + }; + }; + trips { + target: trip-point1 { + temperature = <100000>; + hysteresis = <1000>; + type = "passive"; + }; + + sensor3_crit: sensor3-crit { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
Signature · 1 line
2.7.4
PATCH 10/14 dt-bindings: timer: renesas, cmt: Document r8a774b1 CMT support
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit db95b8e3642a61b1576e600c3d313aca0c329db3 upstream.
Document SoC specific bindings for RZ/G2N (r8a774b1) SoC.
--- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/timer/renesas,cmt.txt +2 -0
@@ -28,6 +28,8 @@ Required Properties: - "renesas,r8a7745-cmt1" for the 48-bit CMT1 device included in r8a7745. - "renesas,r8a774a1-cmt0" for the 32-bit CMT0 device included in r8a774a1. - "renesas,r8a774a1-cmt1" for the 48-bit CMT1 device included in r8a774a1. + - "renesas,r8a774b1-cmt0" for the 32-bit CMT0 device included in r8a774b1. + - "renesas,r8a774b1-cmt1" for the 48-bit CMT devices included in r8a774b1. - "renesas,r8a774c0-cmt0" for the 32-bit CMT0 device included in r8a774c0. - "renesas,r8a774c0-cmt1" for the 48-bit CMT1 device included in r8a774c0. - "renesas,r8a7790-cmt0" for the 32-bit CMT0 device included in r8a7790.
Signature · 1 line
2.7.4
PATCH 11/14 arm64: dts: renesas: r8a774b1: Add CMT device nodes
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 39040e87b71aa126f285ab8939d63056f9983543 upstream.
This patch adds the CMT[0123] device tree nodes to the r8a774b1 SoC specific DT.
--- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +70 -0
@@ -285,6 +285,76 @@ reg = <0 0xe6060000 0 0x50c>; }; + cmt0: timer at e60f0000 { + compatible = "renesas,r8a774b1-cmt0", + "renesas,rcar-gen3-cmt0"; + reg = <0 0xe60f0000 0 0x1004>; + interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 303>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 303>; + status = "disabled"; + }; + + cmt1: timer at e6130000 { + compatible = "renesas,r8a774b1-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6130000 0 0x1004>; + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 302>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 302>; + status = "disabled"; + }; + + cmt2: timer at e6140000 { + compatible = "renesas,r8a774b1-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6140000 0 0x1004>; + interrupts = <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 399 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 401 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 402 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 403 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 404 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 301>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 301>; + status = "disabled"; + }; + + cmt3: timer at e6148000 { + compatible = "renesas,r8a774b1-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6148000 0 0x1004>; + interrupts = <GIC_SPI 470 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 471 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 472 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 473 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 474 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 475 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 476 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 477 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 300>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 300>; + status = "disabled"; + }; + cpg: clock-controller at e6150000 { compatible = "renesas,r8a774b1-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;
Signature · 1 line
2.7.4
PATCH 12/14 dt-bindings: timer: renesas: tmu: Document r8a774b1 bindings
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit c4ed20f74c79cb070f9e2a1cb2acb4f53dfb95a9 upstream.
Document RZ/G2N (R8A774B1) SoC in the Renesas TMU bindings.
--- Documentation/devicetree/bindings/timer/renesas,tmu.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/renesas,tmu.txt +1 -0
@@ -10,6 +10,7 @@ Required Properties: - compatible: must contain one or more of the following: - "renesas,tmu-r8a7740" for the r8a7740 TMU + - "renesas,tmu-r8a774b1" for the r8a774B1 TMU - "renesas,tmu-r8a774c0" for the r8a774C0 TMU - "renesas,tmu-r8a7778" for the r8a7778 TMU - "renesas,tmu-r8a7779" for the r8a7779 TMU
Signature · 1 line
2.7.4
PATCH 13/14 clk: renesas: r8a774b1: Add TMU clock
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 56278c8fcb71874d591907d654272d511ce3597c upstream.
This patch adds the TMU clocks to the R8A774B1 SoC.
--- drivers/clk/renesas/r8a774b1-cpg-mssr.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/clk/renesas/r8a774b1-cpg-mssr.c +5 -0
@@ -110,6 +110,11 @@ static const struct cpg_core_clk r8a774b1_core_clks[] __initconst = { };static const struct mssr_mod_clk r8a774b1_mod_clks[]__initconst = { +DEF_MOD ("tmu4" ,121 ,R8A774B1_CLK_S0D6 ), +DEF_MOD ("tmu3" ,122 ,R8A774B1_CLK_S3D2 ), +DEF_MOD ("tmu2" ,123 ,R8A774B1_CLK_S3D2 ), +DEF_MOD ("tmu1" ,124 ,R8A774B1_CLK_S3D2 ), +DEF_MOD ("tmu0" ,125 ,R8A774B1_CLK_CP ),DEF_MOD ("fdp1-0" ,119 ,R8A774B1_CLK_S0D1 ),DEF_MOD ("scif5" ,202 ,R8A774B1_CLK_S3D4 ),DEF_MOD ("scif4" ,203 ,R8A774B1_CLK_S3D4 ),
Signature · 1 line
2.7.4
PATCH 14/14 arm64: dts: renesas: r8a774b1: Add TMU device nodes
In reply to Lad PrabhakarFrom: Biju Das <[email protected]>
commit 928249b781eb5ca598bd32f3e72b90bc3adcf3f6 upstream.
This patch adds TMU[01234] device tree nodes to the r8a774b1 SoC specific DT.
--- arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 65 +++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +65 -0
@@ -473,6 +473,71 @@ #thermal-sensor-cells = <1>; }; + tmu0: timer at e61e0000 { + compatible = "renesas,tmu-r8a774b1", "renesas,tmu"; + reg = <0 0xe61e0000 0 0x30>; + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 125>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer at e6fc0000 { + compatible = "renesas,tmu-r8a774b1", "renesas,tmu"; + reg = <0 0xe6fc0000 0 0x30>; + interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 124>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer at e6fd0000 { + compatible = "renesas,tmu-r8a774b1", "renesas,tmu"; + reg = <0 0xe6fd0000 0 0x30>; + interrupts = <GIC_SPI 303 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer at e6fe0000 { + compatible = "renesas,tmu-r8a774b1", "renesas,tmu"; + reg = <0 0xe6fe0000 0 0x30>; + interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 122>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer at ffc00000 { + compatible = "renesas,tmu-r8a774b1", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 407 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 408 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c4: i2c at e66d8000 { #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.7.4
cover Renesas RZ/G2 extend peripheral support
In reply to Lad PrabhakarHi!
Quoted 11 lines
From: Fabrizio Castro <[email protected]>
This patch series adds support for for following peripherals supported by RZ/G2N:
1] I2C and IIC-DVFS
2] OPP's table for CPU nodes
3] Thermal zones
4] CMT and TMUThis patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from upstream.
Looks good to me. I can apply it if there are no objections.
Best regards,
Pavel
Signature · 9 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20200202/03a84d2d/attachment.sig>
cover Renesas RZ/G2 extend peripheral support
Hi,
Quoted 21 lines
-----Original Message-----
From: Pavel Machek [mailto:pavel at denx.de]
Sent: Monday, February 3, 2020 3:43 AM
To: Lad Prabhakar <[email protected]>
Cc: cip-dev at lists.cip-project.org; iwamatsu nobuhiro(?? ?? ??? ?????) <[email protected]>; Pavel Machek <[email protected]>; Chris Paterson <[email protected]>
Subject: Re: [PATCH 4.19.y-cip 00/14] Renesas RZ/G2 extend peripheral supportHi!
Quoted 9 lines
From: Fabrizio Castro <[email protected]>
This patch series adds support for for following peripherals supported by RZ/G2N:
1] I2C and IIC-DVFS
2] OPP's table for CPU nodes
3] Thermal zones
4] CMT and TMU
Quoted 4 lines
Quoted 2 lines
This patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from upstream.
Looks good to me. I can apply it if there are no objections.
Looks good to me, too.
Pavel, please apply this series.
Best regards,
Nobuhiro
cover Renesas RZ/G2 extend peripheral support
Hi!
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
From: Fabrizio Castro <[email protected]>
This patch series adds support for for following peripherals supported by RZ/G2N:
1] I2C and IIC-DVFS
2] OPP's table for CPU nodes
3] Thermal zones
4] CMT and TMU
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
This patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from upstream.
Looks good to me. I can apply it if there are no objections.
Looks good to me, too.
Pavel, please apply this series.
Thanks for the series. Tests seem to pass, so applied.
Best regards,
Pavel
Signature · 9 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20200205/4d29c96a/attachment.sig>
cover Renesas RZ/G2 extend peripheral support
Hi Pavel/Nobuhiro,
Quoted 24 lines
-----Original Message-----
From: Pavel Machek <[email protected]>
Sent: 05 February 2020 22:40
To: nobuhiro1.iwamatsu at toshiba.co.jp
Cc: pavel at denx.de; Prabhakar Mahadev Lad <prabhakar.mahadev- lad.rj at bp.renesas.com>; cip-dev at lists.cip-project.org; Chris Paterson <[email protected]>
Subject: Re: [PATCH 4.19.y-cip 00/14] Renesas RZ/G2 extend peripheral supportHi!
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
From: Fabrizio Castro <[email protected]>
This patch series adds support for for following peripherals supported by RZ/G2N:
1] I2C and IIC-DVFS
2] OPP's table for CPU nodes
3] Thermal zones
4] CMT and TMUThis patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from upstream.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Looks good to me. I can apply it if there are no objections.
Looks good to me, too.
Pavel, please apply this series.Thanks for the series. Tests seem to pass, so applied.
Thank you for the review and acceptance of patches.
Cheers,
--Prabhakar
Quoted 10 lines
https://gitlab.com/cip-project/cip-kernel/linux-
cip/commit/6620dd338cfe63ffd0b9e3347b22880c2a58ea46/pipelines?ref=ci% 2Fpavel%2Flinux-cipBest regards,
Pavel--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Renesas Electronics Europe GmbH, Geschaeftsfuehrer/President: Carsten Jauch, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany, Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647