Add R8A77980/Condor PCIe support
Subsystems (2)
v2 cover Add R8A77980/Condor PCIe support
Hello!
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180827-v4.19-rc1' tag. We're adding the R8A77980 PCIe related device nodes and then enable PCIe on the Condor board.
[1/2] arm64: dts: renesas: r8a77980: add PCIe support [2/2] arm64: dts: renesas: condor: add PCIe support
WBR, Sergei
v2 cover Add R8A77980/Condor PCIe support
v3, I meant to type... :-/
PATCH v3 1/2 arm64: dts: renesas: r8a77980: add PCIe support
In reply to Sergei ShtylyovDescribe the PCIe PHY, PCIEC, and PCIe bus clock in the R8A77980 device tree.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 3:
- refreshed against the recent tree (moving the PCIe clock node);
- added Simon's tag.
Changes in version 2:
- merged in the PCIEC patch, renamed the patch, updated the description accordingly;
- used R8A77980_PD_ALWAYS_ON in the "power-domains" props;
- mentioned Vladimir's original work and added his signoff.
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +49 -0
@@ -98,6 +98,13 @@ clock-frequency = <0>; }; + /* External PCIe clock - can be overridden by the board */ + pcie_bus_clk: pcie_bus { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + pmu_a53 { compatible = "arm,cortex-a53-pmu"; interrupts-extended = <&gic GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
@@ -437,6 +444,16 @@ status = "disabled"; }; + pcie_phy: pcie-phy at e65d0000 { + compatible = "renesas,r8a77980-pcie-phy"; + reg = <0 0xe65d0000 0 0x8000>; + #phy-cells = <0>; + clocks = <&cpg CPG_MOD 319>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 319>; + status = "disabled"; + }; + canfd: can at e66c0000 { compatible = "renesas,r8a77980-canfd", "renesas,rcar-gen3-canfd";
@@ -1047,6 +1064,38 @@ resets = <&cpg 408>; }; + pciec: pcie at fe000000 { + compatible = "renesas,pcie-r8a77980", + "renesas,pcie-rcar-gen3"; + reg = <0 0xfe000000 0 0x80000>; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x00 0xff>; + device_type = "pci"; + ranges = < + 0x01000000 0 0x00000000 0 0xfe100000 0 0x0100000 + 0x02000000 0 0xfe200000 0 0xfe200000 0 0x0200000 + 0x02000000 0 0x30000000 0 0x30000000 0 0x8000000 + 0x42000000 0 0x38000000 0 0x38000000 0 0x8000000 + >; + dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 + 0 0x80000000>; + interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 148 + IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>; + clock-names = "pcie", "pcie_bus"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 319>; + phys = <&pcie_phy>; + phy-names = "pcie"; + status = "disabled"; + }; + vspd0: vsp at fea20000 { compatible = "renesas,vsp2"; reg = <0 0xfea20000 0 0x5000>;
PATCH v3 1/2 arm64: dts: renesas: r8a77980: add PCIe support
Quoted 8 lines · Sergei Shtylyov
Describe the PCIe PHY, PCIEC, and PCIe bus clock in the R8A77980 device tree.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Simon Horman <[email protected]>
Thanks Sergei, applied for v4.20.
PATCH v3 2/2 arm64: dts: renesas: condor: add PCIe support
In reply to Sergei ShtylyovEnable PCIe PHY and PCIEC and specify the PCIe bus clock for the Condor board.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 2:
- mentioned Vladimir's original work and added his signoff;
- refreshed the patch.
arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980-condor.dts +12 -0
@@ -223,6 +223,18 @@ status = "okay"; }; +&pciec { + status = "okay"; +}; + +&pcie_bus_clk { + clock-frequency = <100000000>; +}; + +&pcie_phy { + status = "okay"; +}; + &pfc { avb_pins: avb { groups = "avb_mdio", "avb_rgmii";
PATCH v3 2/2 arm64: dts: renesas: condor: add PCIe support
Quoted 7 lines · Sergei Shtylyov
Enable PCIe PHY and PCIEC and specify the PCIe bus clock for the Condor board.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Thanks Sergei, applied for v4.20.
PATCH 1/1 arm64: dts: renesas: r8a779{7|8}0: add CMT support
In reply to Sergei ShtylyovDescribe CMTs in the R8A779{7|8}0 device trees.
---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo.
The R8A779{7|8}0 CMT DT binding updates have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +66 -0
@@ -239,6 +239,72 @@ reg = <0 0xe6060000 0 0x50c>; }; + cmt0: timer@e60f0000 { + compatible = "renesas,r8a77980-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 R8A77980_PD_ALWAYS_ON>; + status = "disabled"; + }; + + cmt1: timer@e6130000 { + compatible = "renesas,r8a77980-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 R8A77980_PD_ALWAYS_ON>; + status = "disabled"; + }; + + cmt2: timer@e6140000 { + compatible = "renesas,r8a77980-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6140000 0 0x1004>; + interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 264 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 301>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + status = "disabled"; + }; + + cmt3: timer@e6148000 { + compatible = "renesas,r8a77980-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6148000 0 0x1004>; + interrupts = <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 300>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + status = "disabled"; + }; + cpg: clock-controller@e6150000 { compatible = "renesas,r8a77980-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;
arch/arm64/boot/dts/renesas/r8a77970.dtsi +66 -0
72 lines not on this page · raw message
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add CMT support
Quoted 23 lines · Sergei Shtylyov
Describe CMTs in the R8A779{7|8}0 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo.The R8A779{7|8}0 CMT DT binding updates have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0@@ -239,6 +239,72 @@ reg = <0 0xe6060000 0 0x50c>; }; + cmt0: timer@e60f0000 {
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 252
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ compatible = "renesas,r8a77980-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 R8A77980_PD_ALWAYS_ON>; + status = "disabled"; + };
"resets"! I forgot about them again... :-(
MBR, Sergei
PATCH v2 1/1 arm64: dts: renesas: r8a779{7|8}0: add CMT support
In reply to Sergei ShtylyovDescribe CMTs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo.
The R8A779{7|8}0 CMT DT binding updates have been posted the other day...
Changes in version 2:
- added the "resets" prop to all CMT nodes;
- credited Vladimir Barinov as the formal author of the original patches.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 70 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 70 ++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +70 -0
@@ -209,6 +209,76 @@ reg = <0 0xe6060000 0 0x504>; }; + cmt0: timer@e60f0000 { + compatible = "renesas,r8a77970-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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 303>; + status = "disabled"; + }; + + cmt1: timer@e6130000 { + compatible = "renesas,r8a77970-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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 302>; + status = "disabled"; + }; + + cmt2: timer@e6140000 { + compatible = "renesas,r8a77970-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6140000 0 0x1004>; + interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 264 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 301>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 301>; + status = "disabled"; + }; + + cmt3: timer@e6148000 { + compatible = "renesas,r8a77970-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6148000 0 0x1004>; + interrupts = <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 300>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 300>; + status = "disabled"; + }; + cpg: clock-controller@e6150000 { compatible = "renesas,r8a77970-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;
arch/arm64/boot/dts/renesas/r8a77980.dtsi +70 -0
76 lines not on this page · raw message
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add CMT support
Quoted 6 lines · Sergei Shtylyov
Describe CMTs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Thanks Sergei,
This looks fine to me but I will wait to see if there are other reviews before applying.
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add CMT support
In reply to Sergei ShtylyovQuoted 6 lines · Sergei Shtylyov
Describe CMTs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Simon Horman
AppliedRe: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add CMT support
Quoted 10 lines · Geert Uytterhoeven
Quoted 6 lines · Sergei Shtylyov
Describe CMTs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied for v4.20.
PATCH 1/1 arm64: dts: renesas: r8a779{7|8}0: add TMU support
In reply to Sergei ShtylyovDescribe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).
The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +66 -0
@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77970", "renesas,rcar-gen3-i2c";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +66 -0
72 lines not on this page · raw message
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Quoted 48 lines · Sergei Shtylyov
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +22
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>;
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +10
-0+ resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77970", "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>;
Should GIC_SPI 306 also be here for TMU 2 channel 3? And likewise for the r8a77980 (V3H)
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Quoted 17 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +17
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>;
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +10
-0+ status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;
Should GIC_SPI 369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?
As per my note above, the documentation seems inconsistent here.
Quoted 88 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +7
-0+ clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77970", "renesas,rcar-gen3-i2c";Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +66
-0@@ -346,6 +346,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77980", "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>, + <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 124>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77980", "renesas,rcar-gen3-i2c";
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Hello!
Quoted 53 lines · Simon Horman
Quoted 53 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +27
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 {
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ compatible = "renesas,tmu-r8a77970", "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>;Should
GIC_SPI306 also be here for TMU 2 channel 3?> And likewise for the r8a77980 (V3H)
There are only 3 channels per TMU according to the beginning of the TMU chapter.
Quoted 3 lines
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Right!
Quoted 22 lines
Quoted 22 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +22
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu";
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;Should
GIC_SPI369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?
I don't think it should be pesent in either place, and I thought I had removed
the 4th IRQ from every node before posting... :-/
Quoted 1 line
As per my note above, the documentation seems inconsistent here.
Yes.
Quoted 30 lines
Quoted 30 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +7
-0+ clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77970", "renesas,rcar-gen3-i2c";Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +12
-0@@ -346,6 +346,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + };
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 368
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +8
-0+ + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77980", "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>, + <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
Hadn't removed this apparently as well...
Quoted 42 lines
Quoted 42 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +42
-0+ clocks = <&cpg CPG_MOD 124>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 417
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +4
-0+ resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77980", "renesas,rcar-gen3-i2c";
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Quoted 105 lines · Sergei Shtylyov
Hello!
Quoted 53 lines · Simon Horman
Quoted 53 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +27
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 {Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ compatible = "renesas,tmu-r8a77970", "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>;Should
GIC_SPI306 also be here for TMU 2 channel 3?> And likewise for the r8a77980 (V3H)There are only 3 channels per TMU according to the beginning of the TMU chapter.
Quoted 3 lines
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Right!
Quoted 22 lines
Quoted 22 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +22
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu";Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;Should
GIC_SPI369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?
Quoted 6 lines
I don't think it should be pesent in either place, and I thought I had removed
the 4th IRQ from every node before posting... :-/Quoted 1 line
As per my note above, the documentation seems inconsistent here.
Yes.
Lets go with no 4th IRQ anywhere :)
Could you send an updated patch?
Quoted 95 lines
Quoted 31 lines
Quoted 31 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +7
-0+ clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77970", "renesas,rcar-gen3-i2c";Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +12
-0@@ -346,6 +346,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + };Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 368
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +8
-0+ + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77980", "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>, + <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;Hadn't removed this apparently as well...
Quoted 42 lines
Quoted 42 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +42
-0+ clocks = <&cpg CPG_MOD 124>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a77980", "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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 417
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +4
-0+ resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77980", "renesas,rcar-gen3-i2c";MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Quoted 5 lines · Simon Horman
Quoted 4 lines · Sergei Shtylyov
Quoted 2 lines · Simon Horman
Quoted 2 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Lets go with no 4th IRQ anywhere :)
Could you send an updated patch?
Please consider my comments on the bindings first:
https://patchwork.kernel.org/patch/10592517/
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
In reply to Simon HormanHello!
Quoted 101 lines · Simon Horman
Quoted 101 lines
Quoted 53 lines
Quoted 53 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +27
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 {Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ compatible = "renesas,tmu-r8a77970", "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>;Should
GIC_SPI306 also be here for TMU 2 channel 3?> And likewise for the r8a77980 (V3H)There are only 3 channels per TMU according to the beginning of the TMU chapter.
Quoted 3 lines
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Right!
Quoted 30 lines
Quoted 17 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +17
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>;arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +10
-0+ status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;Should
GIC_SPI369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?
Quoted 8 lines
Quoted 6 lines
I don't think it should be pesent in either place, and I thought I had removed
the 4th IRQ from every node before posting... :-/Quoted 1 line
As per my note above, the documentation seems inconsistent here.
Yes.
Lets go with no 4th IRQ anywhere :)
After having studied the manual, 4th IRQ might have sometging to do with the input capture channel capability which uses an extra IRQ output.
Quoted 1 line
Could you send an updated patch?
Sure. I'll verify and repost.
[...]
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Quoted 112 lines · Sergei Shtylyov
Hello!
Quoted 108 lines · Simon Horman
Quoted 107 lines
Quoted 53 lines
Quoted 53 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +27
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 {Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ compatible = "renesas,tmu-r8a77970", "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>;Should
GIC_SPI306 also be here for TMU 2 channel 3?> And likewise for the r8a77980 (V3H)There are only 3 channels per TMU according to the beginning of the TMU chapter.
Quoted 3 lines
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Right!
Quoted 22 lines
Quoted 22 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +22
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu";Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;Should
GIC_SPI369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?I don't think it should be pesent in either place, and I thought I had removed
the 4th IRQ from every node before posting... :-/Quoted 1 line
As per my note above, the documentation seems inconsistent here.
Yes.
Quoted 7 lines
Quoted 1 line
Lets go with no 4th IRQ anywhere :)
After having studied the manual, 4th IRQ might have sometging to do with the input capture channel capability which uses an extra IRQ output.
Quoted 1 line
Could you send an updated patch?
Sure. I'll verify and repost.
Geert seems to want us to consider this further.
As DT describes hardware it seems reasonable that we should describe the TMU device fully in DT, including all IRQs. But it seems to me that the documentation may not be consistent enough to judge how to do that. So perhaps a way forwards is to seek clarification of the documentation?
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Quoted 110 lines · Simon Horman
Quoted 110 lines
Quoted 109 lines
Quoted 101 lines
Quoted 53 lines
Quoted 53 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +27
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 {Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ compatible = "renesas,tmu-r8a77970", "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>;Should
GIC_SPI306 also be here for TMU 2 channel 3?> And likewise for the r8a77980 (V3H)There are only 3 channels per TMU according to the beginning of the TMU chapter.
Quoted 3 lines
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Right!
Quoted 22 lines
Quoted 22 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +22
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu";Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;Should
GIC_SPI369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?Quoted 6 lines
I don't think it should be pesent in either place, and I thought I had removed
the 4th IRQ from every node before posting... :-/Quoted 1 line
As per my note above, the documentation seems inconsistent here.
Yes.
Lets go with no 4th IRQ anywhere :)
Quoted 7 lines
Quoted 5 lines
After having studied the manual, 4th IRQ might have sometging to do with the input capture channel capability which uses an extra IRQ output.
Quoted 1 line
Could you send an updated patch?
Sure. I'll verify and repost.
Geert seems to want us to consider this further.
Geert's main concern is about the different TMU hardware on the same SoC, like
the CMT types 0/1 (each described in its separate chapter). Somehow we don't have the same situation with TMUs...
Quoted 4 lines
As DT describes hardware it seems reasonable that we should describe the TMU device fully in DT, including all IRQs. But it seems to me that the documentation may not be consistent enough to judge how to do that. So perhaps a way forwards is to seek clarification of the documentation?
Yes, definitely won't hurts. :-)
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support
In reply to Sergei ShtylyovQuoted 108 lines · Sergei Shtylyov
Quoted 108 lines
Quoted 107 lines
Quoted 53 lines
Quoted 53 lines
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus the R8A779{7|8}0 DT patch adding the CMT support).The R8A779{7|8}0 TMU DT binding update have been just posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 66 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 66 ++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +27
-0@@ -316,6 +316,72 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 {Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 350
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ compatible = "renesas,tmu-r8a77970", "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>;Should
GIC_SPI306 also be here for TMU 2 channel 3?> And likewise for the r8a77980 (V3H)There are only 3 channels per TMU according to the beginning of the TMU chapter.
Quoted 3 lines
The documentation seems inconsistent as I see this listed in the interrupt controller documentation. But I do not see that channel documented in the TMU documentation.
Right!
Quoted 22 lines
Quoted 22 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +22
-0+ clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a7797", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a7797", "renesas,tmu";Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 377
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>;Should
GIC_SPI369 for TMU 4 channel 3 be present not here for the r8a77970 (V3M) but rather below for the r8a77980 (V3H) ?I don't think it should be pesent in either place, and I thought I had removed
the 4th IRQ from every node before posting... :-/Quoted 1 line
As per my note above, the documentation seems inconsistent here.
Yes.
Quoted 7 lines
Quoted 1 line
Lets go with no 4th IRQ anywhere :)
After having studied the manual, 4th IRQ might have sometging to do with the input capture channel capability which uses an extra IRQ output.
Quoted 1 line
Could you send an updated patch?
Sure. I'll verify and repost.
No, the extra IRQ doesn't match the existing of the input capture hardware.
MBR, Sergei
PATCH 1/1 arm64: dts: renesas: r8a779{7|8}0: add TPU support
In reply to Sergei ShtylyovDescribe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180919-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 9 +++++++++ 2 files changed, 17 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +8 -0
@@ -614,6 +614,14 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x100>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <4>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +9 -0
@@ -666,6 +666,15 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a7798", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x100>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #pwm-cells = <4>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 20 lines · Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180919-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo.arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 9 +++++++++ 2 files changed, 17 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 618
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +2
-0@@ -614,6 +614,14 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu";
Oops, forgot to document the SoC specific binding...
Quoted 14 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +6
-0+ reg = <0 0xe6e80000 0 0x100>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <4>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970";Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 670
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +2
-0@@ -666,6 +666,15 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a7798", "renesas,tpu";
Same here. Plus forgot a zero at the end. :-/
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 680
Quoted 11 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +7
-0+ reg = <0 0xe6e80000 0 0x100>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #pwm-cells = <4>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 25 lines · Sergei Shtylyov
Quoted 23 lines · Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180919-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo.arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 9 +++++++++ 2 files changed, 17 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -614,6 +614,14 @@ status = "disabled"; };
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 618
Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +2
-0+ tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu";Oops, forgot to document the SoC specific binding...
I'm still not seeing the binding in my inbox.
Could you post it or point me to a link to it?
Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 619
Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1
-0+ reg = <0 0xe6e80000 0 0x100>;
This register range seems a little small.
Quoted 1 line
From my reading of the documentation
0x148would be a more obvious choice.
Is the driver only accessing registers in in the 0x100 range for some reason?
Quoted 35 lines
Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +5
-0+ clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <4>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970";Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi line 670
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +2
-0@@ -666,6 +666,15 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a7798", "renesas,tpu";Same here. Plus forgot a zero at the end. :-/
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 680
Quoted 11 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +7
-0+ reg = <0 0xe6e80000 0 0x100>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #pwm-cells = <4>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 23 lines · Simon Horman
Quoted 23 lines
Quoted 23 lines
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180919-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo.arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 9 +++++++++ 2 files changed, 17 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -614,6 +614,14 @@ status = "disabled"; };
Quoted 7 lines
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 618
Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +2
-0+ tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu";Oops, forgot to document the SoC specific binding...
I'm still not seeing the binding in my inbox.
Could you post it or point me to a link to it?
Because I still haven't posted it. It turned out the bindings doc needs
some fixing 1st... :-/
Quoted 4 lines
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 619
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1
-0+ reg = <0 0xe6e80000 0 0x100>;This register range seems a little small.
From my reading of the documentation0x148would be a more obvious choice.
Yeah, I've noticed that too -- will be fixed in v2.
Quoted 2 lines
Is the driver only accessing registers in in the
0x100range for some reason?
Yes, the registers beyond 0x100 are for the step motor control...
[...]
MBR, Sergei
PATCH v2 1/1 arm64: dts: renesas: r8a779{7|8}0: add TPU support
In reply to Sergei ShtylyovDescribe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180921-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo.
Changes in version 2:
- fixed up the size cells in the "regs" properties;
- fixed up the "#pwm-cells" properties;
- fixed up the R8A77980's "compatible" property.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 9 +++++++++ 2 files changed, 17 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +8 -0
@@ -614,6 +614,14 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <3>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +9 -0
@@ -666,6 +666,15 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77980", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #pwm-cells = <3>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 6 lines · Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Thanks, this looks good but I'd like to see the binding update before accepting this.
Quoted 54 lines
---
This patch is against the 'renesas-devel-20180921-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo.Changes in version 2:
- fixed up the size cells in the "regs" properties;
- fixed up the "#pwm-cells" properties;
- fixed up the R8A77980's "compatible" property.arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 9 +++++++++ 2 files changed, 17 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +8
-0@@ -614,6 +614,14 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <3>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970";Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +9
-0@@ -666,6 +666,15 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77980", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #pwm-cells = <3>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 9 lines · Simon Horman
Quoted 6 lines
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Thanks, this looks good but I'd like to see the binding update before accepting this.
See it merged, you mean? Because the binding updates have been posted before v2,
and I'm seeing them in patchwork...
MBR, Sergei
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 6 lines · Sergei Shtylyov
Quoted 4 lines · Simon Horman
Quoted 4 lines
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Thanks, this looks good but I'd like to see the binding update before accepting this.
See it merged, you mean? Because the binding updates have been posted before v2, and I'm seeing them in patchwork...
See them Acked.
Somehow I couldn't find them this morning but I see them now.
Could you respond to Geert's comment on this patch regarding interrupts?
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support
In reply to Sergei ShtylyovQuoted 6 lines · Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -614,6 +614,14 @@ status = "disabled";
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 624
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +8
-0}; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <3>; + status = "disabled"; + };
While not used by the driver, I think it would be good to describe its interrupt (SPI 135). Same for r8a77980.dtsi.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 15 lines · Geert Uytterhoeven
Quoted 6 lines
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -614,6 +614,14 @@ status = "disabled"; };
Quoted 11 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 624
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +8
-0+ tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + #pwm-cells = <3>; + status = "disabled"; + };While not used by the driver, I think it would be good to describe its interrupt (SPI 135). Same for
r8a77980.dtsi.
Gosh, you're right! Will re-spin. :-)
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
PATCH v3 1/1 arm64: dts: renesas: r8a779{7|8}0: add TPU support
In reply to Sergei ShtylyovDescribe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo.
Changes in version 3:
- added the "interrupts" and "resets" properties.
Changes in version 2:
- fixed up the size cells in the "regs" properties;
- fixed up the "#pwm-cells" properties;
- fixed up the R8A77980's "compatible" property.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 10 ++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 11 +++++++++++ 2 files changed, 21 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +10 -0
@@ -614,6 +614,16 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 304>; + #pwm-cells = <3>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +11 -0
@@ -666,6 +666,17 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77980", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 304>; + #pwm-cells = <3>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;
Re: [PATCH v3] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 6 lines · Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Simon Horman
AppliedRe: [PATCH v3] arm64: dts: renesas: r8a779{7|8}0: add TPU support
Quoted 10 lines · Geert Uytterhoeven
Quoted 6 lines · Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied for v4.20.
PATCH v2 1/1 arm64: dts: renesas: r8a779{7|8}0: add TMU support
In reply to Sergei ShtylyovDescribe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo.
Changes in version 2:
- fixed up the "compatible" prop in the R8A77970 TMU3/4 node;
- removed the 4th interrupt from the R8A77970 TMU4 node and the R8A77980 TMU1 node.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 65 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 65 ++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +65 -0
@@ -316,6 +316,71 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a77970", "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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a77970", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77970", "renesas,rcar-gen3-i2c";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +65 -0
71 lines not on this page · raw message
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Hello!
Quoted 11 lines · Sergei Shtylyov
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo.
Quoted 8 lines
Changes in version 2:
- fixed up the "compatible" prop in the R8A77970 TMU3/4 node;
- removed the 4th interrupt from the R8A77970 TMU4 node and the R8A77980 TMU1 node.arch/arm64/boot/dts/renesas/r8a77970.dtsi | 65 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 65 ++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+)
I thought we had a consensus about TMU? Why this patch is marked as superseded
in the patchwork?
MBR, Sergei
Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TMU support
Quoted 20 lines · Sergei Shtylyov
Hello!
Quoted 16 lines · Sergei Shtylyov
Describe TMUs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo.Changes in version 2:
- fixed up the "compatible" prop in the R8A77970 TMU3/4 node;
- removed the 4th interrupt from the R8A77970 TMU4 node and the R8A77980 TMU1 node.
Quoted 6 lines
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 65 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 65 ++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+)I thought we had a consensus about TMU? Why this patch is marked as superseded
in the patchwork?
Thanks, that looks like an error in my part.
I have applied this for v4.21.
PATCH 1/1 arm64: dts: renesas: r8a779{7|8}0: add PWM support
In reply to Sergei ShtylyovDescribe PWMs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20181001-v4.19-rc6' branch of Simon Horman's 'renesas.git' repo.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 50 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 50 ++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +50 -0
@@ -543,6 +543,56 @@ status = "disabled"; }; + pwm0: pwm@e6e30000 { + compatible = "renesas,pwm-r8a77970", "renesas,pwm-rcar"; + reg = <0 0xe6e30000 0 8>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 523>; + status = "disabled"; + }; + + pwm1: pwm@e6e31000 { + compatible = "renesas,pwm-r8a77970", "renesas,pwm-rcar"; + reg = <0 0xe6e31000 0 8>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 523>; + status = "disabled"; + }; + + pwm2: pwm@e6e32000 { + compatible = "renesas,pwm-r8a77970", "renesas,pwm-rcar"; + reg = <0 0xe6e32000 0 8>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 523>; + status = "disabled"; + }; + + pwm3: pwm@e6e33000 { + compatible = "renesas,pwm-r8a7790", "renesas,pwm-rcar"; + reg = <0 0xe6e33000 0 8>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 523>; + status = "disabled"; + }; + + pwm4: pwm@e6e34000 { + compatible = "renesas,pwm-r8a77970", "renesas,pwm-rcar"; + reg = <0 0xe6e34000 0 8>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 523>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 523>; + status = "disabled"; + }; + scif0: serial@e6e60000 { compatible = "renesas,scif-r8a77970", "renesas,rcar-gen3-scif",
arch/arm64/boot/dts/renesas/r8a77980.dtsi +50 -0
56 lines not on this page · raw message
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add PWM support
Quoted 6 lines · Sergei Shtylyov
Describe PWMs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Simon Horman
AppliedRe: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add PWM support
Quoted 10 lines · Geert Uytterhoeven
Quoted 6 lines · Sergei Shtylyov
Describe PWMs in the R8A779{7|8}0 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied for v4.21.
PATCH 1/1 arm64: dts: renesas: r8a77970: add thermal support
In reply to Sergei ShtylyovDescribe THS/CIVM in the R8A77970 device trees.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.
The thermal driver/bindings patches have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +32 -0
@@ -300,6 +300,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x14 + 0 0xe6190100 0 0x38>; + 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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77970", "renesas,irqc"; #interrupt-cells = <2>;
@@ -1033,6 +1046,25 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
Quoted 1 line · Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device trees.
Damn, should be singular "tree"! :-/
Quoted 4 lines
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
[...]
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
In reply to Sergei ShtylyovQuoted 21 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 305
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +3
-0@@ -300,6 +300,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x14
What is the motivation for 0x14, to me 0x10 seems like a more natural size for the register window.
Otherwise the patch looks good to me.
Quoted 40 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +29
-0+ 0 0xe6190100 0 0x38>; + 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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77970", "renesas,irqc"; #interrupt-cells = <2>;@@ -1033,6 +1046,25 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
In reply to Sergei ShtylyovHi Sergei,
Quoted 21 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 305
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +3
-0@@ -300,6 +300,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x14
0x14 was appropriate for R-Mobile APE6...
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 306
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1
-0+ 0 0xe6190100 0 0x38>;
What about the CIVM status register? DT describes hardware, not driver limitations.
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 318
Quoted 12 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +9
-0+ 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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77970", "renesas,irqc"; #interrupt-cells = <2>;
The rest looks good to me, so with the above fixed:
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
Quoted 24 lines · Geert Uytterhoeven
Quoted 24 lines
Describe THS/CIVM in the R8A77970 device trees.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -300,6 +300,19 @@ #power-domain-cells = <1>; };
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 305
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +3
-0+ thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x14
0x14was appropriate for R-Mobile APE6...
Copy&paste is to blame here, I guess... I'll fix to 0x10.
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 306
Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1
-0+ 0 0xe6190100 0 0x38>;What about the CIVM status register? DT describes hardware, not driver limitations.
I wasn't sure whether to put it into a separate "reg" tuple (which would confuse
the driver) or not. After looking into the manual again, I'm going to extend the 2nd "reg" tuple...
Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 318
Quoted 12 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +9
-0+ 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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77970", "renesas,irqc"; #interrupt-cells = <2>;
Quoted 3 lines
The rest looks good to me, so with the above fixed:
Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks :-)
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
Hi Sergei,
Quoted 24 lines · Sergei Shtylyov
Quoted 23 lines · Geert Uytterhoeven
Quoted 23 lines
Describe THS/CIVM in the R8A77970 device trees. Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -300,6 +300,19 @@ #power-domain-cells = <1>; };
Quoted 7 lines
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 305
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +3
-0+ thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x14
0x14was appropriate for R-Mobile APE6...Copy&paste is to blame here, I guess... I'll fix to
0x10.
OK.
Quoted 8 lines
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 306
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1
-0+ 0 0xe6190100 0 0x38>;What about the CIVM status register? DT describes hardware, not driver limitations.
I wasn't sure whether to put it into a separate "reg" tuple (which would confuse
the driver) or not. After looking into the manual again, I'm going to extend the 2nd "reg" tuple...
The CIVM Status Register indicates the chip internal voltage.
As such it's not a per-channel property, and IMHO doesn't belong in the second tuple (e.g. R-Mobile APE6 has 3 channels).
Perhaps extending the bindings to handle more reg tuples, possibly using reg-names?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
Hello!
Quoted 38 lines · Geert Uytterhoeven
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Describe THS/CIVM in the R8A77970 device trees. Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been posted yesterday...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +0
-0@@ -300,6 +300,19 @@ #power-domain-cells = <1>; };Quoted 7 lines
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 305
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +3
-0+ thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x14
0x14was appropriate for R-Mobile APE6...Copy&paste is to blame here, I guess... I'll fix to
0x10.OK.
Quoted 5 lines
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 306
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1
-0+ 0 0xe6190100 0 0x38>;What about the CIVM status register? DT describes hardware, not driver limitations.
Quoted 7 lines
Quoted 3 lines
I wasn't sure whether to put it into a separate "reg" tuple (which would confuse
the driver) or not. After looking into the manual again, I'm going to extend the 2nd "reg" tuple...The CIVM Status Register indicates the chip internal voltage.
As such it's not a per-channel property, and IMHO doesn't belong in the second tuple
I was looking a the block diagrams (both in the chapters 10A and 10B) and I got a totally different impression...
Quoted 1 line
(e.g. R-Mobile APE6 has 3 channels).
The driver handles that alright. It's the adding the CIVM as a separate tuple
that would break it.
Quoted 2 lines
Perhaps extending the bindings to handle more reg tuples, possibly using reg-names?
You mean teaching the driver about one more kind of "reg" tuples? I would like
to avoid that of course -- due to the need to still handle the old DTs as well...
Quoted 4 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support
Hi Sergei,
Quoted 13 lines · Sergei Shtylyov
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines
Quoted 7 lines
Quoted 4 lines
Describe THS/CIVM in the R8A77970 device trees. Based on the original (and large) patches by Vladimir Barinov.
+ 0
0xe619010000x38>;What about the CIVM status register? DT describes hardware, not driver limitations.
I wasn't sure whether to put it into a separate "reg" tuple (which would confuse
the driver) or not. After looking into the manual again, I'm going to extend the 2nd "reg" tuple...
Quoted 5 lines
Quoted 3 lines
The CIVM Status Register indicates the chip internal voltage.
As such it's not a per-channel property, and IMHO doesn't belong in the second tupleI was looking a the block diagrams (both in the chapters 10A and 10B) and I got a totally different impression...
I stand corrected. So extending the second reg block is fine.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
PATCH 1/1 arm64: dts: renesas: r8a77980: add thermal support
In reply to Sergei ShtylyovDescribe THS/CIVM in the R8A77980 device trees.
---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.
The thermal driver/bindings patches have been just posted...
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +38 -0
@@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6198000 { + compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>;
@@ -1404,6 +1417,31 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + + sensor2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 1>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support
[+ Niklas]
Quoted 11 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been just posted...
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++
Thanks Sergei, one minor nit from me below.
Niklas, I'd value your review of this patch.
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 333
Quoted 11 lines
1 file changed, 38 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6198000 {
"tsc:" would be consistent with other R-Car Gen 3 dtsi that describe this device.
Quoted 48 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +37
-0+ compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>;@@ -1404,6 +1417,31 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + + sensor2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 1>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support
Quoted 26 lines · Simon Horman
Quoted 11 lines
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been just posted...
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++Thanks Sergei, one minor nit from me below.
Niklas, I'd value your review of this patch.
Quoted 10 lines
1 file changed, 38 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; };
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 333
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0+ thermal: thermal@e6198000 {"tsc:" would be consistent with other R-Car Gen 3 dtsi that describe this device.
There's no consistency even among those: R8A779{5|6}0 use "tsc:",
R8A77995 uses "thermal:"... :-)
[...]
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support
Hi Sergei,
Quoted 28 lines · Sergei Shtylyov
Quoted 26 lines · Simon Horman
Quoted 11 lines
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been just posted...
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++Thanks Sergei, one minor nit from me below.
Niklas, I'd value your review of this patch.
Quoted 10 lines
1 file changed, 38 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; };
Quoted 7 lines
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 333
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0+ thermal: thermal@e6198000 {"tsc:" would be consistent with other R-Car Gen 3 dtsi that describe this device.
There's no consistency even among those: R8A779{5|6}0 use "tsc:",
R8A77995 uses "thermal:"... :-)
D3 (R8A77995) uses the Gen2 thermal driver while V3H uses Gen3 thermal driver, so there is some consistency and I think we should aim to make it as consistent as possible :-)
Quoted 4 lines
[...]
MBR, Sergei
Signature · 2 lines
Regards, Niklas S�derlund
Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support
In reply to Sergei ShtylyovHi Sergei,
Thanks for your work.
Quoted 18 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been just posted...
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 333
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6198000 {
As Simon points out other Gen3 thermal nodes use "tsc:" not "thermal:".
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 343
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>;
Missing status = "okay" or am I missing something?
Quoted 23 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +16
-0+ }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>;@@ -1404,6 +1417,31 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; +
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 1443
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ cooling-maps { + }; + }; + + sensor2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 1>; + }; + };
The thermal-zones node uses the Gen2 labels and I think this should be updated to be as consistent as possible with other Gen3 users. For extra points expand this could be expanded to also include the cooling-maps but could also happen in a separate patch if cooling-devices are not yet defined :-)
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0+ timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
Signature · 2 lines
Regards, Niklas S�derlund
Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support
Quoted 21 lines · Niklas Söderlund
Quoted 21 lines
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.The thermal driver/bindings patches have been just posted...
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; };
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 333
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0+ thermal: thermal@e6198000 {As Simon points out other Gen3 thermal nodes use "tsc:" not "thermal:".
Ah, indeed. However the manual calls this device THS/CIVM regardless of
the version.
Quoted 4 lines
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +4
-0+ compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 0 0x100>; + interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 343
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +6
-0+ <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>;Missing status = "okay" or am I missing something?
Yes, 'status = "okay"' can be omitted with the same effect.
Quoted 27 lines
Quoted 27 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +20
-0+ }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>;@@ -1404,6 +1417,31 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; +
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 1443
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +6
-0+ sensor2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 1>; + }; + };The thermal-zones node uses the Gen2 labels
I don't see it using any labels at all...
Quoted 2 lines
and I think this should be
updated to be as consistent as possible with other Gen3 users. For extra
OK, I forgot to look at the thermal zones on R8A779{5|6}0...
Quoted 3 lines
points expand this could be expanded to also include the cooling-maps but could also happen in a separate patch if cooling-devices are not yet defined :-)
I'll look into that...
[...]
MBR, Sergei
PATCH v2 1/1 arm64: dts: renesas: r8a77970: add thermal support
In reply to Sergei ShtylyovDescribe THS/CIVM in the R8A77970 device tree.
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.
Changed in version 2:
- fix the "reg" prop in the thermal device node;
- fixed wrong plural in the patch description.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +32 -0
@@ -300,6 +300,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77970"; + reg = <0 0xe6190000 0 0x10 + 0 0xe6190100 0 0x120>; + 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 R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77970", "renesas,irqc"; #interrupt-cells = <2>;
@@ -1033,6 +1046,25 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
Re: [PATCH v2] arm64: dts: renesas: r8a77970: add thermal support
Quoted 7 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device tree.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Quoted 7 lines
---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.Changed in version 2:
- fix the "reg" prop in the thermal device node;
- fixed wrong plural in the patch description.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Simon Horman
AppliedRe: [PATCH v2] arm64: dts: renesas: r8a77970: add thermal support
Quoted 13 lines · Geert Uytterhoeven
Quoted 11 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device tree.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.
Quoted 5 lines
Quoted 3 lines
Changed in version 2:
- fix the "reg" prop in the thermal device node;
- fixed wrong plural in the patch description.Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied for v4.21.
Re: [PATCH v2] arm64: dts: renesas: r8a77970: add thermal support
Quoted 11 lines · Simon Horman
Quoted 11 lines
Quoted 11 lines
Describe THS/CIVM in the R8A77970 device tree.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Changed in version 2:
- fix the "reg" prop in the thermal device node;
- fixed wrong plural in the patch description.Reviewed-by Geert Uytterhoeven <[email protected]>Thanks, applied for v4.21.
Not seeing any updates -- forgot to push?
MBR, Sergei
Re: [PATCH v2] arm64: dts: renesas: r8a77970: add thermal support
Quoted 17 lines · Sergei Shtylyov
Quoted 15 lines · Simon Horman
Quoted 15 lines
Quoted 14 lines
Describe THS/CIVM in the R8A77970 device tree.
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo.Changed in version 2:
- fix the "reg" prop in the thermal device node;
- fixed wrong plural in the patch description.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Reviewed-by Geert Uytterhoeven <[email protected]>Thanks, applied for v4.21.
Not seeing any updates -- forgot to push?
Yes, sorry. I noticed that this morning and pushed renesas-devel-20181012-v4.19-rc7.
PATCH v2 1/1 arm64: dts: renesas: r8a77980: add thermal support
In reply to Sergei ShtylyovDescribe THS/CIVM in the R8A77980 device trees.
---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.
Changes in version 2:
- renamed the thermal device node label;
- renamed the thermal zone nodes;
- added the passive trip point in the 1st thermal zone and the passive and critical trip points in the 2nd thermal zone;
- changed the "hysteresis" prop in the critical trip point;
- removed the empty "cooling-maps" node from the 1st thermal zone.
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +53 -0
@@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + tsc: thermal@e6198000 { + compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>;
@@ -1404,6 +1417,46 @@ }; }; + thermal-zones { + thermal-sensor-1 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 0>; + + trips { + sensor1-passive { + temperature = <95000>; + hysteresis = <1000>; + type = "passive"; + }; + sensor1-critical { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + thermal-sensor-2 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 1>; + + trips { + sensor2-passive { + temperature = <95000>; + hysteresis = <1000>; + type = "passive"; + }; + sensor2-critical { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
Re: [PATCH v2] arm64: dts: renesas: r8a77980: add thermal support
Hi Sergei,
Thanks for keep working on this patch.
Quoted 28 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo.Changes in version 2:
- renamed the thermal device node label;
- renamed the thermal zone nodes;
- added the passive trip point in the 1st thermal zone and the passive and critical trip points in the 2nd thermal zone;
- changed the "hysteresis" prop in the critical trip point;
- removed the empty "cooling-maps" node from the 1st thermal zone.arch/arm64/boot/dts/renesas/r8a77980.dtsi | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + tsc: thermal@e6198000 {
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 343
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>;
The status property is missing but as you told me in v1 it should not matter. I will leave it for Simon to decide if he wants it to keep it consistent with other SoC or if we should remove it from the other dtsi files. In any case with or without the status property.
Quoted 52 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +42
-0+ }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>;@@ -1404,6 +1417,46 @@ }; }; + thermal-zones { + thermal-sensor-1 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 0>; + + trips { + sensor1-passive { + temperature = <95000>; + hysteresis = <1000>; + type = "passive"; + }; + sensor1-critical { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + thermal-sensor-2 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 1>; + + trips { + sensor2-passive { + temperature = <95000>; + hysteresis = <1000>; + type = "passive"; + }; + sensor2-critical { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
Signature · 2 lines
Regards, Niklas S�derlund
Re: [PATCH v2] arm64: dts: renesas: r8a77980: add thermal support
Hi Niklas,
Quoted 11 lines · Niklas Söderlund
Quoted 10 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; };
Quoted 16 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 343
Quoted 11 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +11
-0+ tsc: thermal@e6198000 { + compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>;The status property is missing but as you told me in v1 it should not matter. I will leave it for Simon to decide if he wants it to keep it consistent with other SoC or if we should remove it from the other dtsi files. In any case with or without the status property.
Forgot to review commit c79661eb5060e2bf ("arm64: dts: renesas: Remove unneeded status from thermal nodes")? ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2] arm64: dts: renesas: r8a77980: add thermal support
Hi Geert,
Quoted 32 lines · Geert Uytterhoeven
Hi Niklas,
Quoted 11 lines · Niklas S�derlund
Quoted 10 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; };Quoted 16 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 343
Quoted 11 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +11
-0+ tsc: thermal@e6198000 { + compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>;The status property is missing but as you told me in v1 it should not matter. I will leave it for Simon to decide if he wants it to keep it consistent with other SoC or if we should remove it from the other dtsi files. In any case with or without the status property.
Quoted 2 lines
Forgot to review commit
c79661eb5060e2bf("arm64: dts: renesas: Remove unneeded status from thermal nodes")? ;-)
Not only that also reviewing using the context from v4.19-rc1 which of course is not correct for dtsi patches, thanks for enlightening me :-)
Signature · 2 lines
Regards, Niklas S�derlund
Re: [PATCH v2] arm64: dts: renesas: r8a77980: add thermal support
Quoted 35 lines · Niklas Söderlund
Hi Geert,
Quoted 32 lines · Geert Uytterhoeven
Hi Niklas,
Quoted 27 lines · Niklas Söderlund
Quoted 11 lines · Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees.
Signed-off-by Sergei Shtylyov <[email protected]>arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0@@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + tsc: thermal@e6198000 {arch/arm64/boot/dts/renesas/r8a77980.dtsi line 343
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 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 R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>;The status property is missing but as you told me in v1 it should not matter. I will leave it for Simon to decide if he wants it to keep it consistent with other SoC or if we should remove it from the other dtsi files. In any case with or without the status property.
Quoted 5 lines
Quoted 2 lines
Forgot to review commit
c79661eb5060e2bf("arm64: dts: renesas: Remove unneeded status from thermal nodes")? ;-)Not only that also reviewing using the context from v4.19-rc1 which of course is not correct for dtsi patches, thanks for enlightening me :-)
Thanks everyone, applied or v4.21.
PATCH 1/1 arm64: dts: renesas: r8a779{7|8}0: add MSIOF support
In reply to Sergei ShtylyovDescribe MSIOF in the R8A779{7|8}0 device trees.
The DMA props are deliberately omitted as the MSIOF DMA doesn't work on R8A77970 (due to IPMMU issue) and the RT-DMAC isn't supported on R8A77980.
---
This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo.
The MSIOF bindings patch has just been posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 56 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 56 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +56 -0
@@ -22,6 +22,10 @@ i2c2 = &i2c2; i2c3 = &i2c3; i2c4 = &i2c4; + spi1 = &msiof0; + spi2 = &msiof1; + spi3 = &msiof2; + spi4 = &msiof3; }; /* External CAN clock - to be overridden by boards that provide it */
@@ -688,6 +692,58 @@ status = "disabled"; }; + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x64>; + interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 210>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 210>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 209>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 209>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 208>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 208>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970"; reg = <0 0xe6ef0000 0 0x1000>;
arch/arm64/boot/dts/renesas/r8a77980.dtsi +56 -0
68 lines not on this page · raw message
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support
Quoted 4 lines · Sergei Shtylyov
Describe MSIOF in the R8A779{7|8}0 device trees.
The DMA props are deliberately omitted as the MSIOF DMA doesn't work on R8A77970 (due to IPMMU issue) and the RT-DMAC isn't supported on R8A77980.
For the record: In the short term I'm fine with not enabling DMA if there are known problems. But in the long term we should describe DMA in DT as the purpose of DT is to describe hardware rather than software.
So please, as follow-up work, lets work towards a solution that allows us to describe the hardware in DT.
Quoted 17 lines
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo.The MSIOF bindings patch has just been posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 56 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 56 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+)Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 28
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +4
-0@@ -22,6 +22,10 @@ i2c2 = &i2c2; i2c3 = &i2c3; i2c4 = &i2c4; + spi1 = &msiof0; + spi2 = &msiof1; + spi3 = &msiof2; + spi4 = &msiof3;
Geert, could you comment on these aliases and the similar ones below? I'm not seeing them for any other ARM64-based Renesas SoCs.
Otherwise I am happy with this patch.
Quoted 137 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi +52
-0}; /* External CAN clock - to be overridden by boards that provide it */@@ -688,6 +692,58 @@ status = "disabled"; }; + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x64>; + interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 210>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 210>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 209>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 209>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 208>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 208>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970"; reg = <0 0xe6ef0000 0 0x1000>;Index:
renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77980.dtsi +56
-0@@ -23,6 +23,10 @@ i2c3 = &i2c3; i2c4 = &i2c4; i2c5 = &i2c5; + spi1 = &msiof0; + spi2 = &msiof1; + spi3 = &msiof2; + spi4 = &msiof3; }; /* External CAN clock - to be overridden by boards that provide it */@@ -740,6 +744,58 @@ status = "disabled"; }; + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x64>; + interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 210>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 210>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 209>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 209>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 208>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 208>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support
Hi Simon,
Quoted 25 lines · Simon Horman
Quoted 4 lines · Sergei Shtylyov
Describe MSIOF in the R8A779{7|8}0 device trees.
The DMA props are deliberately omitted as the MSIOF DMA doesn't work on R8A77970 (due to IPMMU issue) and the RT-DMAC isn't supported on R8A77980.
For the record: In the short term I'm fine with not enabling DMA if there are known problems. But in the long term we should describe DMA in DT as the purpose of DT is to describe hardware rather than software.
So please, as follow-up work, lets work towards a solution that allows us to describe the hardware in DT.
Quoted 12 lines
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo.The MSIOF bindings patch has just been posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 56 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 56 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+)
Quoted 15 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 28
Quoted 12 lines
Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +4
-0@@ -22,6 +22,10 @@ i2c2 = &i2c2; i2c3 = &i2c3; i2c4 = &i2c4; + spi1 = &msiof0; + spi2 = &msiof1; + spi3 = &msiof2; + spi4 = &msiof3;Geert, could you comment on these aliases and the similar ones below? I'm not seeing them for any other ARM64-based Renesas SoCs.
I2c and spi aliases are "used, but not recommended", cfr.
https://lore.kernel.org/lkml/20181015180046.GA18294@bogus/
Personally (but I'm biased, referring to an email thread I participated in ;-), I'd only leave serial0 (+ perhaps a 2nd/3th serial port) and ethernet0.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support
Quoted 44 lines · Geert Uytterhoeven
Hi Simon,
Quoted 25 lines · Simon Horman
Quoted 4 lines · Sergei Shtylyov
Describe MSIOF in the R8A779{7|8}0 device trees.
The DMA props are deliberately omitted as the MSIOF DMA doesn't work on R8A77970 (due to IPMMU issue) and the RT-DMAC isn't supported on R8A77980.
For the record: In the short term I'm fine with not enabling DMA if there are known problems. But in the long term we should describe DMA in DT as the purpose of DT is to describe hardware rather than software.
So please, as follow-up work, lets work towards a solution that allows us to describe the hardware in DT.
Quoted 12 lines
Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo.The MSIOF bindings patch has just been posted...
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 56 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 56 ++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+)Quoted 15 lines
arch/arm64/boot/dts/renesas/r8a77970.dtsi line 28
Quoted 12 lines
Index:
renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi
===================================================================arch/arm64/boot/dts/renesas/r8a77970.dtsi +4
-0@@ -22,6 +22,10 @@ i2c2 = &i2c2; i2c3 = &i2c3; i2c4 = &i2c4; + spi1 = &msiof0; + spi2 = &msiof1; + spi3 = &msiof2; + spi4 = &msiof3;Geert, could you comment on these aliases and the similar ones below? I'm not seeing them for any other ARM64-based Renesas SoCs.
Quoted 5 lines
I2c and spi aliases are "used, but not recommended", cfr.
https://lore.kernel.org/lkml/20181015180046.GA18294@bogus/Personally (but I'm biased, referring to an email thread I participated in ;-), I'd only leave serial0 (+ perhaps a 2nd/3th serial port) and ethernet0.
Thanks, it seems to me that would be a good direction to move towards.
Sergei, could you consider dropping the alias portions of this patch?
PATCH 1/1 arm64: dts: renesas: condor: switch from EtherAVB to GEther
In reply to Sergei ShtylyovThe "official" Condor boards have always been wired to mount NFS via GEther, not EtherAVB -- the boards resoldered for EtherAVB were local to Cogent Embedded, so we've been having an unpleasant situation where a "normal" Condor board still can't mount NFS (unless an EtherAVB PHY extension board is plugged in). Switch from EtherAVB to GEther at last!
---
The patch is against Linus' 'linux.git' repo -- coulan't find a fitting brancxh in Simon Horman's 'renesas.git' repo...
arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 47 ++++++++++++------------ 1 file changed, 24 insertions(+), 23 deletions(-)
arch/arm64/boot/dts/renesas/r8a77980-condor.dts +24 -23
@@ -15,7 +15,7 @@ aliases { serial0 = &scif0; - ethernet0 = &avb; + ethernet0 = &gether; }; chosen {
@@ -47,23 +47,6 @@ }; }; -&avb { - pinctrl-0 = <&avb_pins>; - pinctrl-names = "default"; - - phy-mode = "rgmii-id"; - phy-handle = <&phy0>; - renesas,no-ether-link; - status = "okay"; - - phy0: ethernet-phy@0 { - rxc-skew-ps = <1500>; - reg = <0>; - interrupt-parent = <&gpio1>; - interrupts = <17 IRQ_TYPE_LEVEL_LOW>; - }; -}; - &canfd { pinctrl-0 = <&canfd0_pins>; pinctrl-names = "default";
@@ -82,6 +65,23 @@ clock-frequency = <32768>; }; +&gether { + pinctrl-0 = <&gether_pins>; + pinctrl-names = "default"; + + phy-mode = "rgmii-id"; + phy-handle = <&phy0>; + renesas,no-ether-link; + status = "okay"; + + phy0: ethernet-phy@0 { + rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio4>; + interrupts = <23 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &i2c0 { pinctrl-0 = <&i2c0_pins>; pinctrl-names = "default";
@@ -118,16 +118,17 @@ }; &pfc { - avb_pins: avb { - groups = "avb_mdio", "avb_rgmii"; - function = "avb"; - }; - canfd0_pins: canfd0 { groups = "canfd0_data_a"; function = "canfd0"; }; + gether_pins: gether { + groups = "gether_mdio_a", "gether_rgmii", + "gether_txcrefclk", "gether_txcrefclk_mega"; + function = "gether"; + }; + i2c0_pins: i2c0 { groups = "i2c0"; function = "i2c0";
Simon Horman
AppliedRe: [PATCH] arm64: dts: renesas: condor: switch from EtherAVB to GEther
Quoted 8 lines · Sergei Shtylyov
The "official" Condor boards have always been wired to mount NFS via GEther, not EtherAVB -- the boards resoldered for EtherAVB were local to Cogent Embedded, so we've been having an unpleasant situation where a "normal" Condor board still can't mount NFS (unless an EtherAVB PHY extension board is plugged in). Switch from EtherAVB to GEther at last!
Fixes 8091788f3d38 ("arm64: dts: renesas: condor: add EtherAVB support")Signed-off-by Sergei Shtylyov <[email protected]>
Thanks, applied for v4.21.
Re: [PATCH] arm64: dts: renesas: condor: switch from EtherAVB to GEther
Quoted 10 lines · Simon Horman
Quoted 8 lines
The "official" Condor boards have always been wired to mount NFS via GEther, not EtherAVB -- the boards resoldered for EtherAVB were local to Cogent Embedded, so we've been having an unpleasant situation where a "normal" Condor board still can't mount NFS (unless an EtherAVB PHY extension board is plugged in). Switch from EtherAVB to GEther at last!
Fixes 8091788f3d38 ("arm64: dts: renesas: condor: add EtherAVB support")Signed-off-by Sergei Shtylyov <[email protected]>Thanks, applied for v4.21.
Wait, this was intended as a fix for 4.20...
MBR, Sergei
Re: [PATCH] arm64: dts: renesas: condor: switch from EtherAVB to GEther
Quoted 8 lines · Sergei Shtylyov
Quoted 6 lines · Simon Horman
Quoted 6 lines
The "official" Condor boards have always been wired to mount NFS via GEther, not EtherAVB -- the boards resoldered for EtherAVB were local to Cogent Embedded, so we've been having an unpleasant situation where a "normal" Condor board still can't mount NFS (unless an EtherAVB PHY extension board is plugged in). Switch from EtherAVB to GEther at last!
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Fixes 8091788f3d38 ("arm64: dts: renesas: condor: add EtherAVB support")Signed-off-by Sergei Shtylyov <[email protected]>Thanks, applied for v4.21.
Wait, this was intended as a fix for 4.20...
Thanks, I have re-queued this as a fix for v4.20.
PATCH v2 1/1 arm64: dts: renesas: r8a779{7|8}0: add MSIOF support
In reply to Sergei ShtylyovDescribe MSIOF in the R8A779{7|8}0 device trees.
The DMA props are omitted for R8A77980 as the RT-DMAC isn't supported (yet?)...
Based on the original (and large) patches by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo.
Changes in version 2:
- removed the aliases;
- restored the DMA props on R8A77970, updated the description accordingly;
- mentioned Vladimir in the description and added his signoff;
- refreshed the patch.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 64 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 52 ++++++++++++++++++++++++ 2 files changed, 116 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +64 -0
@@ -753,6 +753,70 @@ status = "disabled"; }; + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x64>; + interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 211>; + dmas = <&dmac1 0x41>, <&dmac1 0x40>, + <&dmac2 0x41>, <&dmac2 0x40>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 210>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 210>; + dmas = <&dmac1 0x43>, <&dmac1 0x42>, + <&dmac2 0x43>, <&dmac2 0x42>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 209>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 209>; + dmas = <&dmac1 0x45>, <&dmac1 0x44>, + <&dmac2 0x45>, <&dmac2 0x44>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 208>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 208>; + dmas = <&dmac1 0x47>, <&dmac1 0x46>, + <&dmac2 0x47>, <&dmac2 0x46>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970"; reg = <0 0xe6ef0000 0 0x1000>;
arch/arm64/boot/dts/renesas/r8a77980.dtsi +52 -0
58 lines not on this page · raw message
Simon Horman
AppliedRe: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support
Quoted 14 lines · Sergei Shtylyov
Describe MSIOF in the R8A779{7|8}0 device trees.
The DMA props are omitted for R8A77980 as the RT-DMAC isn't supported (yet?)...
Based on the original (and large) patches by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo.
Quoted 5 lines
Changes in version 2:
- removed the aliases;
- restored the DMA props on R8A77970, updated the description accordingly;
- mentioned Vladimir in the description and added his signoff;
- refreshed the patch.
Thanks, applied for v4.21.