* [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers to macros @ 2017-06-05 4:32 Chen-Yu Tsai [not found] ` <20170605043224.20687-1-wens-jdAy2FN1RRM@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Chen-Yu Tsai @ 2017-06-05 4:32 UTC (permalink / raw) To: Maxime Ripard Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw Hi Maxime, These are some clean up patches for 4.12. They convert raw number references for the CCU and R_CCU nodes, from when the CCU/R_CCU stuff was first added, to the defined macros in the device tree header files. These affect the A64 and H3/H5. These are based on our sunxi/fixes-for-4.12 branch. Once these are merged, I think it's time to send off pull requests for our fixes branches. ChenYu Chen-Yu Tsai (2): ARM: sunxi: h3-h5: Convert R_CCU raw numbers to macros arm64: allwinner: a64: Convert CCU raw number references to macros arch/arm/boot/dts/sunxi-h3-h5.dtsi | 8 +++--- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 35 ++++++++++++++------------- 2 files changed, 23 insertions(+), 20 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20170605043224.20687-1-wens-jdAy2FN1RRM@public.gmane.org>]
* [PATCH 1/2] ARM: sunxi: h3-h5: Convert R_CCU raw numbers to macros [not found] ` <20170605043224.20687-1-wens-jdAy2FN1RRM@public.gmane.org> @ 2017-06-05 4:32 ` Chen-Yu Tsai [not found] ` <20170605043224.20687-2-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 4:32 ` [PATCH 2/2] arm64: allwinner: a64: Convert CCU raw number references " Chen-Yu Tsai 2017-06-05 8:14 ` [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers " Maxime Ripard 2 siblings, 1 reply; 7+ messages in thread From: Chen-Yu Tsai @ 2017-06-05 4:32 UTC (permalink / raw) To: Maxime Ripard Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw Now that the R_CCU device tree binding headers have been merged, we can convert the raw number references in the device trees to use the defined macros. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index d4f600dbb7eb..e2f4e029d483 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -41,8 +41,10 @@ */ #include <dt-bindings/clock/sun8i-h3-ccu.h> +#include <dt-bindings/clock/sun8i-r-ccu.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/reset/sun8i-h3-ccu.h> +#include <dt-bindings/reset/sun8i-r-ccu.h> / { interrupt-parent = <&gic>; @@ -574,9 +576,9 @@ ir: ir@01f02000 { compatible = "allwinner,sun5i-a13-ir"; - clocks = <&r_ccu 4>, <&r_ccu 11>; + clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; clock-names = "apb", "ir"; - resets = <&r_ccu 0>; + resets = <&r_ccu RST_IR>; interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; reg = <0x01f02000 0x40>; status = "disabled"; @@ -586,7 +588,7 @@ compatible = "allwinner,sun8i-h3-r-pinctrl"; reg = <0x01f02c00 0x400>; interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&r_ccu 3>, <&osc24M>, <&osc32k>; + clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; clock-names = "apb", "hosc", "losc"; gpio-controller; #gpio-cells = <3>; -- 2.11.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <20170605043224.20687-2-wens-jdAy2FN1RRM@public.gmane.org>]
* Re: [PATCH 1/2] ARM: sunxi: h3-h5: Convert R_CCU raw numbers to macros [not found] ` <20170605043224.20687-2-wens-jdAy2FN1RRM@public.gmane.org> @ 2017-06-05 7:02 ` kbuild test robot 0 siblings, 0 replies; 7+ messages in thread From: kbuild test robot @ 2017-06-05 7:02 UTC (permalink / raw) Cc: kbuild-all-JC7UmRfGjtg, Maxime Ripard, Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1391 bytes --] Hi Chen-Yu, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.12-rc4 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Chen-Yu-Tsai/ARM-arm64-sunxi-convert-CCU-raw-numbers-to-macros/20170605-124326 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm-hisi_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> Error: arch/arm/boot/dts/sunxi-h3-h5.dtsi:580.21-22 syntax error FATAL ERROR: Unable to parse input tree --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 18421 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] arm64: allwinner: a64: Convert CCU raw number references to macros [not found] ` <20170605043224.20687-1-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 4:32 ` [PATCH 1/2] ARM: sunxi: h3-h5: Convert R_CCU " Chen-Yu Tsai @ 2017-06-05 4:32 ` Chen-Yu Tsai [not found] ` <20170605043224.20687-3-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 8:14 ` [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers " Maxime Ripard 2 siblings, 1 reply; 7+ messages in thread From: Chen-Yu Tsai @ 2017-06-05 4:32 UTC (permalink / raw) To: Maxime Ripard Cc: Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw The A64 device tree file has some remnants of raw number references to the CCU node, likely from when the CCU bindings and device tree changes were first merged. Convert these, and the R_CCU ones, to use the proper defined macros from their respective device tree binding header files. Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 35 ++++++++++++++------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 166c9ef884dc..373df5ee1c23 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -43,6 +43,7 @@ */ #include <dt-bindings/clock/sun50i-a64-ccu.h> +#include <dt-bindings/clock/sun8-r-ccu.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/reset/sun50i-a64-ccu.h> @@ -303,8 +304,8 @@ interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 67>; - resets = <&ccu 46>; + clocks = <&ccu CLK_BUS_UART0>; + resets = <&ccu RST_BUS_UART0>; status = "disabled"; }; @@ -314,8 +315,8 @@ interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 68>; - resets = <&ccu 47>; + clocks = <&ccu CLK_BUS_UART1>; + resets = <&ccu RST_BUS_UART1>; status = "disabled"; }; @@ -325,8 +326,8 @@ interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 69>; - resets = <&ccu 48>; + clocks = <&ccu CLK_BUS_UART2>; + resets = <&ccu RST_BUS_UART2>; status = "disabled"; }; @@ -336,8 +337,8 @@ interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 70>; - resets = <&ccu 49>; + clocks = <&ccu CLK_BUS_UART3>; + resets = <&ccu RST_BUS_UART3>; status = "disabled"; }; @@ -347,8 +348,8 @@ interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; reg-shift = <2>; reg-io-width = <4>; - clocks = <&ccu 71>; - resets = <&ccu 50>; + clocks = <&ccu CLK_BUS_UART4>; + resets = <&ccu RST_BUS_UART4>; status = "disabled"; }; @@ -356,8 +357,8 @@ compatible = "allwinner,sun6i-a31-i2c"; reg = <0x01c2ac00 0x400>; interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&ccu 63>; - resets = <&ccu 42>; + clocks = <&ccu CLK_BUS_I2C0>; + resets = <&ccu RST_BUS_I2C0>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -367,8 +368,8 @@ compatible = "allwinner,sun6i-a31-i2c"; reg = <0x01c2b000 0x400>; interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&ccu 64>; - resets = <&ccu 43>; + clocks = <&ccu CLK_BUS_I2C1>; + resets = <&ccu RST_BUS_I2C1>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -378,8 +379,8 @@ compatible = "allwinner,sun6i-a31-i2c"; reg = <0x01c2b400 0x400>; interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&ccu 65>; - resets = <&ccu 44>; + clocks = <&ccu CLK_BUS_I2C2>; + resets = <&ccu RST_BUS_I2C2>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -417,7 +418,7 @@ compatible = "allwinner,sun50i-a64-r-pinctrl"; reg = <0x01f02c00 0x400>; interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&r_ccu 3>, <&osc24M>, <&osc32k>; + clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; clock-names = "apb", "hosc", "losc"; gpio-controller; #gpio-cells = <3>; -- 2.11.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <20170605043224.20687-3-wens-jdAy2FN1RRM@public.gmane.org>]
* Re: [PATCH 2/2] arm64: allwinner: a64: Convert CCU raw number references to macros [not found] ` <20170605043224.20687-3-wens-jdAy2FN1RRM@public.gmane.org> @ 2017-06-05 8:31 ` kbuild test robot 0 siblings, 0 replies; 7+ messages in thread From: kbuild test robot @ 2017-06-05 8:31 UTC (permalink / raw) Cc: kbuild-all-JC7UmRfGjtg, Maxime Ripard, Chen-Yu Tsai, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2191 bytes --] Hi Chen-Yu, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.12-rc4 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Chen-Yu-Tsai/ARM-arm64-sunxi-convert-CCU-raw-numbers-to-macros/20170605-124326 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm64 All errors (new ones prefixed by >>): In file included from arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts:45:0, from arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts:43: >> arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi:46:42: fatal error: dt-bindings/clock/sun8-r-ccu.h: No such file or directory #include <dt-bindings/clock/sun8-r-ccu.h> ^ compilation terminated. vim +46 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi 40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42 * OTHER DEALINGS IN THE SOFTWARE. 43 */ 44 45 #include <dt-bindings/clock/sun50i-a64-ccu.h> > 46 #include <dt-bindings/clock/sun8-r-ccu.h> 47 #include <dt-bindings/interrupt-controller/arm-gic.h> 48 #include <dt-bindings/reset/sun50i-a64-ccu.h> 49 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 35196 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers to macros [not found] ` <20170605043224.20687-1-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 4:32 ` [PATCH 1/2] ARM: sunxi: h3-h5: Convert R_CCU " Chen-Yu Tsai 2017-06-05 4:32 ` [PATCH 2/2] arm64: allwinner: a64: Convert CCU raw number references " Chen-Yu Tsai @ 2017-06-05 8:14 ` Maxime Ripard [not found] ` <20170605081423.sx7qqjq73646enlm-ZC1Zs529Oq4@public.gmane.org> 2 siblings, 1 reply; 7+ messages in thread From: Maxime Ripard @ 2017-06-05 8:14 UTC (permalink / raw) To: Chen-Yu Tsai Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 619 bytes --] On Mon, Jun 05, 2017 at 12:32:22PM +0800, Chen-Yu Tsai wrote: > Hi Maxime, > > These are some clean up patches for 4.12. They convert raw number > references for the CCU and R_CCU nodes, from when the CCU/R_CCU stuff > was first added, to the defined macros in the device tree header files. > > These affect the A64 and H3/H5. > > These are based on our sunxi/fixes-for-4.12 branch. Once these are merged, > I think it's time to send off pull requests for our fixes branches. > > ChenYu Applied both, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20170605081423.sx7qqjq73646enlm-ZC1Zs529Oq4@public.gmane.org>]
* Re: [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers to macros [not found] ` <20170605081423.sx7qqjq73646enlm-ZC1Zs529Oq4@public.gmane.org> @ 2017-06-05 8:17 ` Chen-Yu Tsai 0 siblings, 0 replies; 7+ messages in thread From: Chen-Yu Tsai @ 2017-06-05 8:17 UTC (permalink / raw) To: Maxime Ripard Cc: Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi On Mon, Jun 5, 2017 at 4:14 PM, Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > On Mon, Jun 05, 2017 at 12:32:22PM +0800, Chen-Yu Tsai wrote: >> Hi Maxime, >> >> These are some clean up patches for 4.12. They convert raw number >> references for the CCU and R_CCU nodes, from when the CCU/R_CCU stuff >> was first added, to the defined macros in the device tree header files. >> >> These affect the A64 and H3/H5. >> >> These are based on our sunxi/fixes-for-4.12 branch. Once these are merged, >> I think it's time to send off pull requests for our fixes branches. >> >> ChenYu > > Applied both, thanks! > Maxime Argh... Could you fix the build break on patch 1? It's simply sed -i -e 's/RST_IR/RST_APB0_IR/' arch/arm/boot/dts/sunxi-h3-h5.dtsi Thanks ChenYu ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-06-05 8:31 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-06-05 4:32 [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers to macros Chen-Yu Tsai [not found] ` <20170605043224.20687-1-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 4:32 ` [PATCH 1/2] ARM: sunxi: h3-h5: Convert R_CCU " Chen-Yu Tsai [not found] ` <20170605043224.20687-2-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 7:02 ` kbuild test robot 2017-06-05 4:32 ` [PATCH 2/2] arm64: allwinner: a64: Convert CCU raw number references " Chen-Yu Tsai [not found] ` <20170605043224.20687-3-wens-jdAy2FN1RRM@public.gmane.org> 2017-06-05 8:31 ` kbuild test robot 2017-06-05 8:14 ` [PATCH 0/2] ARM/arm64: sunxi: convert CCU raw numbers " Maxime Ripard [not found] ` <20170605081423.sx7qqjq73646enlm-ZC1Zs529Oq4@public.gmane.org> 2017-06-05 8:17 ` Chen-Yu Tsai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).