Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750954AbeAPIZG (ORCPT + 1 other); Tue, 16 Jan 2018 03:25:06 -0500 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:61252 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbeAPIZE (ORCPT ); Tue, 16 Jan 2018 03:25:04 -0500 X-IronPort-AV: E=Sophos;i="5.44,434,1505804400"; d="scan'208";a="7907744" Subject: Re: [PATCH v2 01/16] drivers: pwm: core: use a single of xlate function To: Andy Shevchenko CC: Brian Norris , Thierry Reding , Rob Herring , Mark Rutland , Russell King - ARM Linux , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Jonathan Corbet , Nicolas Ferre , Alexandre Belloni , , Linux Kernel Mailing List , linux-arm Mailing List , , , , devicetree , Mike Dunn , Alexander Shiyan References: <1515766983-15151-1-git-send-email-claudiu.beznea@microchip.com> <1515766983-15151-2-git-send-email-claudiu.beznea@microchip.com> <20180112183512.GB102880@google.com> <6441df76-fb4a-ce00-1019-f7ff9143b75e@microchip.com> From: Claudiu Beznea Message-ID: <9a130c0b-572d-be0b-8ac7-596714208d41@microchip.com> Date: Tue, 16 Jan 2018 10:24:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 15.01.2018 22:27, Andy Shevchenko wrote: > On Mon, Jan 15, 2018 at 10:41 AM, Claudiu Beznea > wrote: > >> For this driver, the PWM bindings were changed (I did a grep by "google,cros-ec-pwm" >> and located only: >> arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts >> arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi >> files) and changed the bindings in this series, as follows, patch 7 from this series: >> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts >> index 0384e3121f18..0c790ec387eb 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts >> +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts >> @@ -77,7 +77,7 @@ >> >> backlight: backlight { >> compatible = "pwm-backlight"; >> - pwms = <&cros_ec_pwm 1>; >> + pwms = <&cros_ec_pwm 1 65535>; > > This shows an breakage for user. As long as pwm-cells=2 the OF hooks will read PWM channel and PWM period (e.g. in this case, PWM channel=1, PWM period=65532) I don't see a breakage here. Please explain me further. The old PWM device tree sources or > binaries should work independently on what changes you did to kernel. Please explain me further. From this I understand, as a general rule, that the device tree binaries from, e.g. 3 years ago, should be compatible with, e.g. the current version of kernel? Thanks, Claudiu >