From: Simon Horman <horms+renesas@verge.net.au> To: linux-renesas-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Magnus Damm <magnus.damm@gmail.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Simon Horman <horms+renesas@verge.net.au> Subject: [PATCH 57/68] ARM: dts: r8a7790: Add BRG support for (H)SCIF Date: Fri, 12 Feb 2016 20:05:47 +0100 [thread overview] Message-ID: <42af65e88df70a32c3c1afa0e6d35022b379c6ae.1455303422.git.horms+renesas@verge.net.au> (raw) In-Reply-To: <cover.1455303422.git.horms+renesas@verge.net.au> From: Geert Uytterhoeven <geert+renesas@glider.be> Add the device node for the external SCIF_CLK. The presence of the SCIF_CLK crystal and its clock frequency depends on the actual board. Add the two optional clock sources (ZS_CLK and SCIF_CLK for the internal resp. external clock) for the Baud Rate Generator for External Clock (BRG) to all SCIF and HSCIF device nodes. This increases the range and accuracy of supported baud rates on (H)SCIF. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index c5672745a1e5..c9583fa6cae7 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -667,8 +667,9 @@ "renesas,scif"; reg = <0 0xe6e60000 0 64>; interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_SCIF0>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_SCIF0>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x29>, <&dmac0 0x2a>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -680,8 +681,9 @@ "renesas,scif"; reg = <0 0xe6e68000 0 64>; interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_SCIF1>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_SCIF1>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -693,8 +695,9 @@ "renesas,rcar-gen2-hscif", "renesas,hscif"; reg = <0 0xe62c0000 0 96>; interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x39>, <&dmac0 0x3a>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -706,8 +709,9 @@ "renesas,rcar-gen2-hscif", "renesas,hscif"; reg = <0 0xe62c8000 0 96>; interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -996,6 +1000,15 @@ clock-output-names = "audio_clk_c"; }; + /* External SCIF clock */ + scif_clk: scif { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; + status = "disabled"; + }; + /* External USB clock - can be overridden by the board */ usb_extal_clk: usb_extal_clk { compatible = "fixed-clock"; -- 2.7.0.rc3.207.g0ac5344
WARNING: multiple messages have this Message-ID (diff)
From: horms+renesas@verge.net.au (Simon Horman) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 57/68] ARM: dts: r8a7790: Add BRG support for (H)SCIF Date: Fri, 12 Feb 2016 20:05:47 +0100 [thread overview] Message-ID: <42af65e88df70a32c3c1afa0e6d35022b379c6ae.1455303422.git.horms+renesas@verge.net.au> (raw) In-Reply-To: <cover.1455303422.git.horms+renesas@verge.net.au> From: Geert Uytterhoeven <geert+renesas@glider.be> Add the device node for the external SCIF_CLK. The presence of the SCIF_CLK crystal and its clock frequency depends on the actual board. Add the two optional clock sources (ZS_CLK and SCIF_CLK for the internal resp. external clock) for the Baud Rate Generator for External Clock (BRG) to all SCIF and HSCIF device nodes. This increases the range and accuracy of supported baud rates on (H)SCIF. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- arch/arm/boot/dts/r8a7790.dtsi | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index c5672745a1e5..c9583fa6cae7 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -667,8 +667,9 @@ "renesas,scif"; reg = <0 0xe6e60000 0 64>; interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_SCIF0>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_SCIF0>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x29>, <&dmac0 0x2a>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -680,8 +681,9 @@ "renesas,scif"; reg = <0 0xe6e68000 0 64>; interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_SCIF1>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_SCIF1>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x2d>, <&dmac0 0x2e>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -693,8 +695,9 @@ "renesas,rcar-gen2-hscif", "renesas,hscif"; reg = <0 0xe62c0000 0 96>; interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_HSCIF0>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x39>, <&dmac0 0x3a>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -706,8 +709,9 @@ "renesas,rcar-gen2-hscif", "renesas,hscif"; reg = <0 0xe62c8000 0 96>; interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>; - clock-names = "fck"; + clocks = <&mstp7_clks R8A7790_CLK_HSCIF1>, <&zs_clk>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; dmas = <&dmac0 0x4d>, <&dmac0 0x4e>; dma-names = "tx", "rx"; power-domains = <&cpg_clocks>; @@ -996,6 +1000,15 @@ clock-output-names = "audio_clk_c"; }; + /* External SCIF clock */ + scif_clk: scif { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; + status = "disabled"; + }; + /* External USB clock - can be overridden by the board */ usb_extal_clk: usb_extal_clk { compatible = "fixed-clock"; -- 2.7.0.rc3.207.g0ac5344
next prev parent reply other threads:[~2016-02-12 19:05 UTC|newest] Thread overview: 122+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-02-12 19:05 [GIT PULL v2] Renesas ARM Based SoC DT Updates for v4.6 Simon Horman 2016-02-12 19:04 ` [PATCH 01/68] ARM: dts: gose: Add GPIO keys to DT Simon Horman 2016-02-12 19:04 ` Simon Horman 2016-02-13 20:23 ` Geert Uytterhoeven 2016-02-15 7:18 ` Simon Horman 2016-02-15 7:45 ` Geert Uytterhoeven 2016-02-12 19:04 ` [PATCH 02/68] ARM: dts: gose: Add GPIO leds " Simon Horman 2016-02-12 19:04 ` [PATCH 03/68] ARM: dts: porter: add DU DT support Simon Horman 2016-02-12 19:04 ` Simon Horman 2016-02-12 19:04 ` [PATCH 04/68] ARM: dts: r8a7793: Add I2C master nodes to DT Simon Horman 2016-02-12 19:04 ` [PATCH 05/68] ARM: dts: alt: Add QSPI device " Simon Horman 2016-02-12 19:04 ` [PATCH 06/68] ARM: dts: r8a7790: use fallback usbhs compatibility string Simon Horman 2016-02-12 19:04 ` [PATCH 07/68] ARM: dts: r8a7791: " Simon Horman 2016-02-12 19:04 ` [PATCH 08/68] ARM: dts: r8a7794: " Simon Horman 2016-02-12 19:04 ` [PATCH 09/68] ARM: dts: r8a7793: move dmac nodes Simon Horman 2016-02-12 19:04 ` Simon Horman 2016-02-12 19:05 ` [PATCH 10/68] ARM: dts: gose: add i2c2 bus to device tree Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 11/68] ARM: dts: r8a7790: use GIC_* defines Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 12/68] ARM: dts: r8a7791: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 13/68] ARM: dts: silk: add DU DT support Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 14/68] ARM: dts: r8a7793: use GIC_* defines Simon Horman 2016-02-12 19:05 ` [PATCH 15/68] ARM: dts: r8a7794: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 16/68] ARM: dts: r8a7793: gose: Add HDMI video out support Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 17/68] ARM: dts: r8a7778: use GIC_* defines Simon Horman 2016-02-12 19:05 ` [PATCH 18/68] ARM: dts: r8a7779: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 19/68] ARM: dts: porter: add sound support Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 20/68] ARM: dts: r8a73a4: use GIC_* defines Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 21/68] ARM: dts: r8a7740: " Simon Horman 2016-02-12 19:05 ` [PATCH 22/68] ARM: dts: r8a7793: add MSTP10 clocks to device tree Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 23/68] ARM: dts: r8a7793: add audio clock " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 24/68] ARM: dts: r8a7793: add m2 " Simon Horman 2016-02-12 19:05 ` [PATCH 25/68] ARM: dts: r8a7793: add R-Car sound support " Simon Horman 2016-02-12 19:05 ` [PATCH 26/68] ARM: dts: r8a7793: add DVC " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 27/68] ARM: dts: r8a7793: add audio DMAC clocks " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 28/68] ARM: dts: r8a7793: add audio DMAC " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 29/68] ARM: dts: r8a7793: enable Audio DMAC peri peri via sound driver Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 30/68] ARM: dts: gose: Enable sound PIO support in device tree Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 31/68] ARM: dts: gose: enable sound DMA " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 32/68] ARM: dts: gose: enable sound DMA support via BUSIF " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 33/68] ARM: dts: gose: enable sound DMA support via SRC " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 34/68] ARM: dts: gose: enable sound DMA support via DVC " Simon Horman 2016-02-12 19:05 ` [PATCH 35/68] ARM: dts: r8a7793: enable audio DMAC " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 36/68] ARM: dts: r7s72100: use GIC_* defines Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 37/68] ARM: dts: sh73a0: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 38/68] ARM: dts: emev2: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 39/68] ARM: dts: r8a7778: Add SCIF fallback compatibility strings Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 40/68] ARM: dts: r8a7779: " Simon Horman 2016-02-12 19:05 ` [PATCH 41/68] ARM: dts: r8a7790: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 42/68] ARM: dts: r8a7791: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 43/68] ARM: dts: r8a7793: " Simon Horman 2016-02-12 19:05 ` [PATCH 44/68] ARM: dts: r8a7794: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 45/68] ARM: dts: sh73a0: Rename the serial port clock to fck Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 46/68] ARM: dts: r7s72100: " Simon Horman 2016-02-12 19:05 ` [PATCH 47/68] ARM: dts: r8a73a4: " Simon Horman 2016-02-12 19:05 ` [PATCH 48/68] ARM: dts: r8a7740: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 49/68] ARM: dts: r8a7778: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 50/68] ARM: dts: r8a7779: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 51/68] ARM: dts: r8a7790: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 52/68] ARM: dts: r8a7791: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 53/68] ARM: dts: r8a7793: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 54/68] ARM: dts: r8a7794: " Simon Horman 2016-02-12 19:05 ` [PATCH 55/68] ARM: dts: r8a7778: Add BRG support for SCIF Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 56/68] ARM: dts: r8a7779: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` Simon Horman [this message] 2016-02-12 19:05 ` [PATCH 57/68] ARM: dts: r8a7790: Add BRG support for (H)SCIF Simon Horman 2016-02-12 19:05 ` [PATCH 58/68] ARM: dts: r8a7791: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 59/68] ARM: dts: r8a7793: Add BRG support for SCIF Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 60/68] ARM: dts: r8a7794: Add BRG support for (H)SCIF Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 61/68] ARM: dts: alt: Enable SCIF_CLK frequency and pins Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 62/68] ARM: dts: bockw: " Simon Horman 2016-02-12 19:05 ` [PATCH 63/68] ARM: dts: gose: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 64/68] ARM: dts: koelsch: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 65/68] ARM: dts: lager: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 66/68] ARM: dts: marzen: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 67/68] ARM: dts: porter: " Simon Horman 2016-02-12 19:05 ` Simon Horman 2016-02-12 19:05 ` [PATCH 68/68] ARM: dts: silk: " Simon Horman 2016-02-24 22:02 ` [GIT PULL v2] Renesas ARM Based SoC DT Updates for v4.6 Olof Johansson
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=42af65e88df70a32c3c1afa0e6d35022b379c6ae.1455303422.git.horms+renesas@verge.net.au \ --to=horms+renesas@verge.net.au \ --cc=geert+renesas@glider.be \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-renesas-soc@vger.kernel.org \ --cc=magnus.damm@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.