linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: dts: rockchip: add more nodes for RK3368 SoCs
@ 2017-03-15  6:13 Jianqun Xu
  2017-03-15  6:14 ` [PATCH 1/4] ASoC: rockchip: add bindings for rk3368 i2s Jianqun Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jianqun Xu @ 2017-03-15  6:13 UTC (permalink / raw)
  To: heiko; +Cc: broonie, huangtao, wxt, linux-rockchip, linux-kernel, Jianqun Xu

Add more nodes to RK3368 core dts file for RK3368 SoCs, and disable mailbox
in core dts file.

Jianqun Xu (4):
  ASoC: rockchip: add bindings for rk3368 i2s
  arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs
  arm64: dts: rockchip: add amba node support for RK3368 SoCs
  arm64: dts: rockchip: disable mailbox of RK3368 SoCs defaultly

 .../devicetree/bindings/sound/rockchip-i2s.txt     |  1 +
 arch/arm64/boot/dts/rockchip/rk3368.dtsi           | 70 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ASoC: rockchip: add bindings for rk3368 i2s
  2017-03-15  6:13 [PATCH 0/4] arm64: dts: rockchip: add more nodes for RK3368 SoCs Jianqun Xu
@ 2017-03-15  6:14 ` Jianqun Xu
  2017-03-15  6:15 ` [PATCH 2/4] arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs Jianqun Xu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Jianqun Xu @ 2017-03-15  6:14 UTC (permalink / raw)
  To: heiko; +Cc: broonie, huangtao, wxt, linux-rockchip, linux-kernel, Jianqun Xu

Add devicetree bindings for i2s controller found on rk3368
processors from rockchip.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
---
 Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sound/rockchip-i2s.txt b/Documentation/devicetree/bindings/sound/rockchip-i2s.txt
index a6600f6..206aba1 100644
--- a/Documentation/devicetree/bindings/sound/rockchip-i2s.txt
+++ b/Documentation/devicetree/bindings/sound/rockchip-i2s.txt
@@ -9,6 +9,7 @@ Required properties:
    - "rockchip,rk3066-i2s": for rk3066
    - "rockchip,rk3188-i2s", "rockchip,rk3066-i2s": for rk3188
    - "rockchip,rk3288-i2s", "rockchip,rk3066-i2s": for rk3288
+   - "rockchip,rk3368-i2s", "rockchip,rk3066-i2s": for rk3368
    - "rockchip,rk3399-i2s", "rockchip,rk3066-i2s": for rk3399
 - reg: physical base address of the controller and length of memory mapped
   region.
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs
  2017-03-15  6:13 [PATCH 0/4] arm64: dts: rockchip: add more nodes for RK3368 SoCs Jianqun Xu
  2017-03-15  6:14 ` [PATCH 1/4] ASoC: rockchip: add bindings for rk3368 i2s Jianqun Xu
@ 2017-03-15  6:15 ` Jianqun Xu
  2017-03-17  2:50   ` kbuild test robot
  2017-03-15  6:17 ` [PATCH 3/4] arm64: dts: rockchip: add amba node " Jianqun Xu
  2017-03-15  6:17 ` [PATCH 4/4] arm64: dts: rockchip: disable mailbox of RK3368 SoCs defaultly Jianqun Xu
  3 siblings, 1 reply; 6+ messages in thread
From: Jianqun Xu @ 2017-03-15  6:15 UTC (permalink / raw)
  To: heiko; +Cc: broonie, huangtao, wxt, linux-rockchip, linux-kernel, Jianqun Xu

I2S of RK3368 SoCs keep same as RK3066 SoCs found on Rockchip,
add nodes to support them.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 38 ++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index a635adc..a6eb3e4 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
@@ -684,6 +684,30 @@
 		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
 	};
 
+	i2s0: i2s0@ff890000 {
+		compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
+		reg = <0x0 0xff890000 0x0 0x1000>;
+		interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
+		dmas = <&dmac_bus 6>, <&dmac_bus 7>;
+		dma-names = "tx", "rx";
+		clock-names = "i2s_clk", "i2s_hclk";
+		clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
+		status = "disabled";
+	};
+
+	i2s1: i2s1@ff898000 {
+		compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
+		reg = <0x0 0xff898000 0x0 0x1000>;
+		interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
+		dmas = <&dmac_bus 0>, <&dmac_bus 1>;
+		dma-names = "tx", "rx";
+		clock-names = "i2s_clk", "i2s_hclk";
+		clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&i2s1>;
+		status = "disabled";
+	};
+
 	gic: interrupt-controller@ffb71000 {
 		compatible = "arm,gic-400";
 		interrupt-controller;
@@ -886,6 +910,20 @@
 			};
 		};
 
+		i2s {
+			i2s1: i2s1 {
+				rockchip,pins = <2 12 RK_FUNC_1 &pcfg_pull_none>,
+						<2 13 RK_FUNC_1 &pcfg_pull_none>,
+						<2 14 RK_FUNC_1 &pcfg_pull_none>,
+						<2 15 RK_FUNC_1 &pcfg_pull_none>,
+						<2 16 RK_FUNC_1 &pcfg_pull_none>,
+						<2 17 RK_FUNC_1 &pcfg_pull_none>,
+						<2 18 RK_FUNC_1 &pcfg_pull_none>,
+						<2 19 RK_FUNC_1 &pcfg_pull_none>,
+						<2 20 RK_FUNC_1 &pcfg_pull_none>;
+			};
+		};
+
 		pwm0 {
 			pwm0_pin: pwm0-pin {
 				rockchip,pins = <3 8 RK_FUNC_2 &pcfg_pull_none>;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] arm64: dts: rockchip: add amba node support for RK3368 SoCs
  2017-03-15  6:13 [PATCH 0/4] arm64: dts: rockchip: add more nodes for RK3368 SoCs Jianqun Xu
  2017-03-15  6:14 ` [PATCH 1/4] ASoC: rockchip: add bindings for rk3368 i2s Jianqun Xu
  2017-03-15  6:15 ` [PATCH 2/4] arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs Jianqun Xu
@ 2017-03-15  6:17 ` Jianqun Xu
  2017-03-15  6:17 ` [PATCH 4/4] arm64: dts: rockchip: disable mailbox of RK3368 SoCs defaultly Jianqun Xu
  3 siblings, 0 replies; 6+ messages in thread
From: Jianqun Xu @ 2017-03-15  6:17 UTC (permalink / raw)
  To: heiko; +Cc: broonie, huangtao, wxt, linux-rockchip, linux-kernel, Jianqun Xu

There are two dmacs found on RK3368 SoCs, peripher dmac and bus dmac,
and the dmacs are same as previous SoCs' dmac.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index a6eb3e4..90f72c2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
@@ -204,6 +204,37 @@
 				     <&cpu_b2>, <&cpu_b3>;
 	};
 
+	amba {
+		compatible = "simple-bus";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		dmac_peri: dma-controller@ff250000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0x0 0xff250000 0x0 0x4000>;
+			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+			#dma-cells = <1>;
+			clocks = <&cru ACLK_DMAC_PERI>;
+			clock-names = "apb_pclk";
+			arm,pl330-broken-no-flushp;
+			peripherals-req-type-burst;
+		};
+
+		dmac_bus: dma-controller@ff600000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0x0 0xff600000 0x0 0x4000>;
+			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
+			#dma-cells = <1>;
+			clocks = <&cru ACLK_DMAC_BUS>;
+			clock-names = "apb_pclk";
+			arm,pl330-broken-no-flushp;
+			peripherals-req-type-burst;
+		};
+	};
+
 	psci {
 		compatible = "arm,psci-0.2";
 		method = "smc";
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] arm64: dts: rockchip: disable mailbox of RK3368 SoCs defaultly
  2017-03-15  6:13 [PATCH 0/4] arm64: dts: rockchip: add more nodes for RK3368 SoCs Jianqun Xu
                   ` (2 preceding siblings ...)
  2017-03-15  6:17 ` [PATCH 3/4] arm64: dts: rockchip: add amba node " Jianqun Xu
@ 2017-03-15  6:17 ` Jianqun Xu
  3 siblings, 0 replies; 6+ messages in thread
From: Jianqun Xu @ 2017-03-15  6:17 UTC (permalink / raw)
  To: heiko; +Cc: broonie, huangtao, wxt, linux-rockchip, linux-kernel, Jianqun Xu

Default to disable mailbox in rk3368 core dts file.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index 90f72c2..36aeed0 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
@@ -662,6 +662,7 @@
 		clocks = <&cru PCLK_MAILBOX>;
 		clock-names = "pclk_mailbox";
 		#mbox-cells = <1>;
+		status = "disabled";
 	};
 
 	pmugrf: syscon@ff738000 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/4] arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs
  2017-03-15  6:15 ` [PATCH 2/4] arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs Jianqun Xu
@ 2017-03-17  2:50   ` kbuild test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2017-03-17  2:50 UTC (permalink / raw)
  To: Jianqun Xu
  Cc: kbuild-all, heiko, broonie, huangtao, wxt, linux-rockchip,
	linux-kernel, Jianqun Xu

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

Hi Jianqun,

[auto build test ERROR on rockchip/for-next]
[also build test ERROR on v4.11-rc2 next-20170310]
[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/Jianqun-Xu/ASoC-rockchip-add-bindings-for-rk3368-i2s/20170317-074509
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.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 >>):

   ERROR (duplicate_label): Duplicate label 'i2s1' on /pinctrl/i2s/i2s1 and /i2s1@ff898000
>> ERROR: Input tree has errors, aborting (use -f to force output)

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34529 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-17  2:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15  6:13 [PATCH 0/4] arm64: dts: rockchip: add more nodes for RK3368 SoCs Jianqun Xu
2017-03-15  6:14 ` [PATCH 1/4] ASoC: rockchip: add bindings for rk3368 i2s Jianqun Xu
2017-03-15  6:15 ` [PATCH 2/4] arm64: dts: rockchip: add i2s nodes support for RK3368 SoCs Jianqun Xu
2017-03-17  2:50   ` kbuild test robot
2017-03-15  6:17 ` [PATCH 3/4] arm64: dts: rockchip: add amba node " Jianqun Xu
2017-03-15  6:17 ` [PATCH 4/4] arm64: dts: rockchip: disable mailbox of RK3368 SoCs defaultly Jianqun Xu

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).