Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262Ab3COE00 (ORCPT ); Fri, 15 Mar 2013 00:26:26 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:36858 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748Ab3COE0Y (ORCPT ); Fri, 15 Mar 2013 00:26:24 -0400 Message-ID: <5142A2D5.5090009@ti.com> Date: Fri, 15 Mar 2013 09:55:57 +0530 From: Sekhar Nori User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Peter Korsgaard CC: Philip Avinash , , , , , Rob Herring , , Subject: Re: [PATCH 2/3] pwm: pwm-tiecap: Add device-tree binding support for da850 SOC References: <1363257158-11615-1-git-send-email-avinashphilip@ti.com> <1363257158-11615-3-git-send-email-avinashphilip@ti.com> <5141B7CC.7000700@ti.com> <87txoe56lk.fsf@dell.be.48ers.dk> In-Reply-To: <87txoe56lk.fsf@dell.be.48ers.dk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1640 Lines: 39 On 3/14/2013 9:14 PM, Peter Korsgaard wrote: >>>>>> "Sekhar" == Sekhar Nori writes: > > >> Required properties: > >> -- compatible: Must be "ti,am33xx-ecap" > >> +- compatible: Must be "ti,am33xx-ecap" or "ti,da850-ecap" > >> - #pwm-cells: Should be 3. Number of cells being used to specify PWM property. > >> First cell specifies the per-chip index of the PWM to use, the second > >> cell is the period in nanoseconds and bit 0 in the third cell is used to > >> diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c > >> index 22e96e2..e0d96c8 100644 > >> --- a/drivers/pwm/pwm-tiecap.c > >> +++ b/drivers/pwm/pwm-tiecap.c > >> @@ -197,6 +197,7 @@ static const struct pwm_ops ecap_pwm_ops = { > >> > >> static const struct of_device_id ecap_of_match[] = { > >> { .compatible = "ti,am33xx-ecap" }, > >> + { .compatible = "ti,da850-ecap" }, > >> {}, > > Sekhar> You add a new compatible, but don't really show any changes in > Sekhar> driver in this series. So why can't we simply use > Sekhar> ti,am33xx-ecap on DA850 too? > > Indeed, if the hardware block is identical the dts should simply list: > > compatible = "ti,da850-ecap", "ti,am33xx-ecap" > > And the driver only bind to ti,am33xx-ecap (unless there ever needs to > be a da850 specific workarounde. Okay, so this is to future proof the DA850 DT blob. Makes sense. Thanks! ~Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/