From: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org> To: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>, Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>, Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org>, Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org> Cc: linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org> Subject: [PATCH 5/8] arm64: dts: allwinner: add R_PIO node Date: Wed, 8 Feb 2017 18:00:06 +0800 [thread overview] Message-ID: <20170208100009.29362-5-icenowy@aosc.xyz> (raw) In-Reply-To: <20170208100009.29362-1-icenowy-ymACFijhrKM@public.gmane.org> Allwinner A64 SoC has a R_PIO node like the one in H3. Add the node as well as needed clocks and resets. As there's no document for apb0_gates, I only added the R_PIO bit here. Signed-off-by: Icenowy Zheng <icenowy-ymACFijhrKM@public.gmane.org> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 1c64ea2d23f9..4b0baa79554c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -98,6 +98,15 @@ clock-output-names = "osc32k"; }; + apb0: apb0_clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clock-div = <1>; + clock-mult = <1>; + clocks = <&osc24M>; + clock-output-names = "apb0"; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; @@ -392,5 +401,36 @@ interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; }; + + apb0_gates: clk@1f01428 { + compatible = "allwinner,sun50i-a64-apb0-gates-clk", + "allwinner,sun4i-a10-gates-clk"; + reg = <0x01f01428 0x4>; + #clock-cells = <1>; + clocks = <&apb0>; + clock-indices = <0>; + clock-output-names = "apb0_pio"; + }; + + apb0_rst: reset@1f014b0 { + reg = <0x01f014b0 0x4>; + compatible = "allwinner,sun6i-a31-clock-reset"; + #reset-cells = <1>; + }; + + r_pio: pinctrl@1f02c00 { + compatible = "allwinner,sun50i-a64-r-pinctrl"; + reg = <0x01f02c00 0x400>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>; + clock-names = "apb", "hosc", "losc"; + resets = <&apb0_rst 0>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <3>; + #address-cells = <1>; + #size-cells = <0>; + #gpio-cells = <3>; + }; }; }; -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: icenowy@aosc.xyz (Icenowy Zheng) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/8] arm64: dts: allwinner: add R_PIO node Date: Wed, 8 Feb 2017 18:00:06 +0800 [thread overview] Message-ID: <20170208100009.29362-5-icenowy@aosc.xyz> (raw) In-Reply-To: <20170208100009.29362-1-icenowy@aosc.xyz> Allwinner A64 SoC has a R_PIO node like the one in H3. Add the node as well as needed clocks and resets. As there's no document for apb0_gates, I only added the R_PIO bit here. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 1c64ea2d23f9..4b0baa79554c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -98,6 +98,15 @@ clock-output-names = "osc32k"; }; + apb0: apb0_clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clock-div = <1>; + clock-mult = <1>; + clocks = <&osc24M>; + clock-output-names = "apb0"; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; @@ -392,5 +401,36 @@ interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; }; + + apb0_gates: clk at 1f01428 { + compatible = "allwinner,sun50i-a64-apb0-gates-clk", + "allwinner,sun4i-a10-gates-clk"; + reg = <0x01f01428 0x4>; + #clock-cells = <1>; + clocks = <&apb0>; + clock-indices = <0>; + clock-output-names = "apb0_pio"; + }; + + apb0_rst: reset at 1f014b0 { + reg = <0x01f014b0 0x4>; + compatible = "allwinner,sun6i-a31-clock-reset"; + #reset-cells = <1>; + }; + + r_pio: pinctrl at 1f02c00 { + compatible = "allwinner,sun50i-a64-r-pinctrl"; + reg = <0x01f02c00 0x400>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>; + clock-names = "apb", "hosc", "losc"; + resets = <&apb0_rst 0>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <3>; + #address-cells = <1>; + #size-cells = <0>; + #gpio-cells = <3>; + }; }; }; -- 2.11.0
next prev parent reply other threads:[~2017-02-08 10:00 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-02-08 10:00 [PATCH 1/8] dt-bindings: fix for Allwinner H5 pinctrl's compatible Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng [not found] ` <20170208100009.29362-1-icenowy-ymACFijhrKM@public.gmane.org> 2017-02-08 10:00 ` [PATCH 2/8] dt: bindings: add binding for Allwinner A64 R_PIO pinctrl Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng [not found] ` <20170208100009.29362-2-icenowy-ymACFijhrKM@public.gmane.org> 2017-02-13 15:06 ` Chen-Yu Tsai 2017-02-13 15:06 ` [linux-sunxi] " Chen-Yu Tsai 2017-02-13 15:06 ` Chen-Yu Tsai 2017-02-08 10:00 ` [PATCH 3/8] pinctrl: sunxi: Add A64 R_PIO controller support Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng [not found] ` <20170208100009.29362-3-icenowy-ymACFijhrKM@public.gmane.org> 2017-02-13 14:52 ` Linus Walleij 2017-02-13 14:52 ` Linus Walleij 2017-02-13 14:52 ` Linus Walleij 2017-02-13 15:09 ` Chen-Yu Tsai 2017-02-13 15:09 ` [linux-sunxi] " Chen-Yu Tsai 2017-02-13 15:09 ` Chen-Yu Tsai 2017-02-08 10:00 ` [PATCH 4/8] arm64: allwinner: select A64 R_PIO driver Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng [this message] 2017-02-08 10:00 ` [PATCH 5/8] arm64: dts: allwinner: add R_PIO node Icenowy Zheng [not found] ` <20170208100009.29362-5-icenowy-ymACFijhrKM@public.gmane.org> 2017-02-08 10:14 ` Maxime Ripard 2017-02-08 10:14 ` Maxime Ripard 2017-02-08 10:14 ` Maxime Ripard 2017-02-08 11:08 ` Icenowy Zheng 2017-02-08 11:08 ` Icenowy Zheng [not found] ` <39431486552126-4vD9JDEoAAxxpj1cXAZ9Bg@public.gmane.org> 2017-02-10 8:07 ` Maxime Ripard 2017-02-10 8:07 ` Maxime Ripard 2017-02-10 8:07 ` Maxime Ripard 2017-02-08 10:00 ` [PATCH 6/8] arm64: dts: allwinner: add device node for R_PWM Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng [not found] ` <20170208100009.29362-6-icenowy-ymACFijhrKM@public.gmane.org> 2017-02-08 10:17 ` Maxime Ripard 2017-02-08 10:17 ` Maxime Ripard 2017-02-08 10:17 ` Maxime Ripard 2017-02-08 10:00 ` [PATCH 7/8] arm64: dts: allwinner: add pinmux for A64's r_pwm Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng 2017-02-08 10:00 ` [PATCH 8/8] arm64: dts: allwinner: add PWM node to A64 dtsi Icenowy Zheng 2017-02-08 10:00 ` Icenowy Zheng [not found] ` <20170208100009.29362-8-icenowy-ymACFijhrKM@public.gmane.org> 2017-02-08 10:17 ` Maxime Ripard 2017-02-08 10:17 ` Maxime Ripard 2017-02-08 10:17 ` Maxime Ripard 2017-02-13 15:04 ` [PATCH 1/8] dt-bindings: fix for Allwinner H5 pinctrl's compatible Chen-Yu Tsai 2017-02-13 15:04 ` [linux-sunxi] " Chen-Yu Tsai 2017-02-13 15:04 ` Chen-Yu Tsai
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=20170208100009.29362-5-icenowy@aosc.xyz \ --to=icenowy-ymacfijhrkm@public.gmane.org \ --cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \ --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \ --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ --cc=wens-jdAy2FN1RRM@public.gmane.org \ --cc=will.deacon-5wv7dgnIgG8@public.gmane.org \ /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.