On Sun, Aug 12, 2018 at 03:31:48PM +0200, Eugeniu Rosca wrote:
> Fix below DTC error:
> Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:36.1-8 Label or path hscif0 
> not found
> 
> The DTC error occurs *after* the addition of r8a77965-m3nulcb-kf.dts.
> Fix it beforehand.
> 
> Inspired from v4.12-rc1 commits:
>  - commit 68cd16107260 ("arm64: dts: r8a7796 dtsi: Add all HSCIF nodes")
>  - commit 6d50bb893504 ("arm64: dts: r8a7796: Enable HSCIF DMA")
>  - commit bec0948e810f ("arm64: dts: r8a7796: Add reset control properties")
> 
> Signed-off-by: Eugeniu Rosca <[email protected]>
> ---
> Changes in v2:
>  - Slightly improved the commit description.
>  - Note that this commit could be replaced by
>    
> https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git/commit/?h=b8e3c8e17611

That commit has been accepted for upstream so it should be used.

> ---
>  arch/arm64/boot/dts/renesas/r8a77965.dtsi | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi 
> b/arch/arm64/boot/dts/renesas/r8a77965.dtsi
> index 4da479d3c226..d04a8b671cc2 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi
> @@ -451,6 +451,24 @@
>                       status = "disabled";
>               };
>  
> +             hscif0: serial@e6540000 {
> +                     compatible = "renesas,hscif-r8a77965",
> +                                  "renesas,rcar-gen3-hscif",
> +                                  "renesas,hscif";
> +                     reg = <0 0xe6540000 0 0x60>;
> +                     interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
> +                     clocks = <&cpg CPG_MOD 520>,
> +                              <&cpg CPG_CORE R8A77965_CLK_S3D1>,
> +                              <&scif_clk>;
> +                     clock-names = "fck", "brg_int", "scif_clk";
> +                     dmas = <&dmac1 0x31>, <&dmac1 0x30>,
> +                            <&dmac2 0x31>, <&dmac2 0x30>;
> +                     dma-names = "tx", "rx", "tx", "rx";
> +                     power-domains = <&sysc R8A77965_PD_ALWAYS_ON>;
> +                     resets = <&cpg 520>;
> +                     status = "disabled";
> +             };
> +
>               hsusb: usb@e6590000 {
>                       compatible = "renesas,usbhs-r8a7796",
>                                    "renesas,rcar-gen3-usbhs";
> -- 
> 2.18.0
> 

Reply via email to