Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419765 > unrolled thread

[PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2016-06-11 00:10 +0200
Last post2016-06-11 12:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-06-11 00:10 +0200
    Re: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new  pwm-atmel-tcb binding kbuild test robot <lkp@intel.com> - 2016-06-11 03:30 +0200
      Re: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new  pwm-atmel-tcb binding Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-06-11 12:30 +0200

#1419765 — [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2016-06-11 00:10 +0200
Subject[PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding
Message-ID<rICMO-2IE-41@gated-at.bofh.it>
Switch to the new pwm-atmel-tcb binding that avoid wasting TCB channels.

Cc: Antoine Aubert <a.aubert@overkiz.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/arm/boot/dts/at91-kizbox.dts | 42 +++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 15 deletions(-)

diff --git a/arch/arm/boot/dts/at91-kizbox.dts b/arch/arm/boot/dts/at91-kizbox.dts
index 58c5d0d3dd66..6579f955250b 100644
--- a/arch/arm/boot/dts/at91-kizbox.dts
+++ b/arch/arm/boot/dts/at91-kizbox.dts
@@ -43,6 +43,29 @@
 				};
 			};
 
+			tcb1: timer@fffdc000 {
+				tcb1_pwm0: pwm@0 {
+					compatible = "atmel,tcb-pwm";
+					#pwm-cells = <3>;
+					pinctrl-names = "default";
+					pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>;
+				}
+
+				tcb1_pwm1: pwm@1 {
+					compatible = "atmel,tcb-pwm";
+					#pwm-cells = <3>;
+					pinctrl-names = "default";
+					pinctrl-0 = &pinctrl_tcb1_tioa1>;
+				}
+
+				tcb1_pwm2: pwm@2 {
+					compatible = "atmel,tcb-pwm";
+					#pwm-cells = <3>;
+					pinctrl-names = "default";
+					pinctrl-0 = <&pinctrl_tcb1_tioa2>;
+				}
+			};
+
 			macb0: ethernet@fffc4000 {
 				phy-mode = "mii";
 				pinctrl-0 = <&pinctrl_macb_rmii
@@ -122,41 +145,30 @@
 
 		network_green {
 			label = "pwm:green:network";
-			pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
+			pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>;
 			max-brightness = <255>;
 			linux,default-trigger = "default-on";
 		};
 
 		network_red {
 			label = "pwm:red:network";
-			pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
+			pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>;
 			max-brightness = <255>;
 			linux,default-trigger = "default-on";
 		};
 
 		user_green {
 			label = "pwm:green:user";
-			pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
+			pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>;
 			max-brightness = <255>;
 			linux,default-trigger = "default-on";
 		};
 
 		user_red {
 			label = "pwm:red:user";
-			pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
+			pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>;
 			max-brightness = <255>;
 			linux,default-trigger = "default-on";
 		};
 	};
-
-	tcb_pwm: pwm {
-		compatible = "atmel,tcb-pwm";
-		#pwm-cells = <3>;
-		tc-block = <1>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_tcb1_tioa0
-			     &pinctrl_tcb1_tioa1
-			     &pinctrl_tcb1_tioa2
-			     &pinctrl_tcb1_tiob0>;
-	};
 };
-- 
2.8.1

[toc] | [next] | [standalone]


#1419873 — Re: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

Fromkbuild test robot <lkp@intel.com>
Date2016-06-11 03:30 +0200
SubjectRe: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding
Message-ID<rIFUl-4Uy-5@gated-at.bofh.it>
In reply to#1419765

[Multipart message — attachments visible in raw view] — view raw

Hi,

[auto build test ERROR on at91/at91-next]
[also build test ERROR on v4.7-rc2 next-20160609]
[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/Alexandre-Belloni/ARM-at91-rework-Atmel-TCB-drivers/20160611-062134
base:   https://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91.git at91-next
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/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/at91-kizbox.dts:54.5-15 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

[toc] | [prev] | [next] | [standalone]


#1419960 — Re: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2016-06-11 12:30 +0200
SubjectRe: [PATCH 48/48] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding
Message-ID<rIOkV-1RJ-1@gated-at.bofh.it>
In reply to#1419873
On 11/06/2016 at 08:14:13 +0800, kbuild test robot wrote :
> Hi,
> 
> [auto build test ERROR on at91/at91-next]
> [also build test ERROR on v4.7-rc2 next-20160609]
> [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/Alexandre-Belloni/ARM-at91-rework-Atmel-TCB-drivers/20160611-062134
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91.git at91-next
> config: arm-at91_dt_defconfig (attached as .config)
> compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/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/at91-kizbox.dts:54.5-15 syntax error
>    FATAL ERROR: Unable to parse input tree
> 

Ok, I'm not sure what happened, this is now fixed in my branch.


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web