Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp626933imu; Thu, 13 Dec 2018 01:26:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UqDyvI37G4DB7HC6pKX85eUvftDG6A0z0rl9OWdGrqfHD+BuRfUMqWeRvHLPQJS8H2RrOn X-Received: by 2002:a17:902:a70b:: with SMTP id w11mr22814288plq.84.1544693206792; Thu, 13 Dec 2018 01:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544693206; cv=none; d=google.com; s=arc-20160816; b=qNNEgd8P0PiFPyqQ92CdnJG+SVUkcWoElEoopTIM7v2foW/NaXb/p7Kt1EF1+VauUn I/Dw4hi6HQ8a+JdRVYCuB4Shg6AH7SOSAh/HDW8xbpyEcbD2x2JjUOvzuYBp3k6iWdwY PHVVRTW36z44fOWVxp5x2/ey5jJuJPlROWN0PobOjfJffgsUxvvIE3AWOXl1SoORRHrU oxoIzew+bG9M7fGj6W7eVwcoh8RXp7duTVJbZHVeItRTAp1Fup02XorYT8h0XP/6ebiP k3iVYUeAC0lZ7xZfFnHGh+4jPeLTrsyXCYkVECuAk5WIeL/CUVl8YaV3FYWFG+i02vQR hkLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WFWqFEQiWEthd9WTZmzi5PpqjfMg89EcxliBzcidWYo=; b=CkGukOfBwFA6HIZIROwTTbUwxTSA6CT1AGqoBy/0H3X2Q6AeXfmM/cnt5oCTTAmQ0b Uo9iZomy9yVLVS9sd01n3x39vZjHefWTmdkmEXOSV9UWC3pEmgwz3riFRcYUP0rrbqa7 GYo7CYyPoErmKLRlkbXxRkL65k4DL1tyFwXHJwfITkyLHW88Yn8c6OynhjV8WrVCjgUm nb89p7RWPwBL5GatIBW8KWDVKOVa+sliMp2IDMlHDJwgnj1OMo+9UTeOZ0JfSergtJ7p LZLAUhnRylikearheN8xJsLKUHYP1zo9UILE2E7LHL6DFRJxCft1c7p6UeEWxtMlSTnj 5g4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 135si571838pge.572.2018.12.13.01.26.31; Thu, 13 Dec 2018 01:26:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbeLMJYY (ORCPT + 99 others); Thu, 13 Dec 2018 04:24:24 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:42951 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbeLMJYX (ORCPT ); Thu, 13 Dec 2018 04:24:23 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gXNE2-0006FW-Kv; Thu, 13 Dec 2018 10:24:10 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gXNE1-0006EO-CE; Thu, 13 Dec 2018 10:24:09 +0100 Date: Thu, 13 Dec 2018 10:24:09 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Paul Cercueil Cc: Thierry Reding , Rob Herring , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet , Mathieu Malaterre , Ezequiel Garcia , PrasannaKumar Muralidharan , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, od@zcrc.me Subject: Re: [PATCH v8 15/26] pwm: jz4740: Add support for the JZ4725B Message-ID: <20181213092409.ml4wpnzow2nnszkd@pengutronix.de> References: <20181212220922.18759-1-paul@crapouillou.net> <20181212220922.18759-16-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181212220922.18759-16-paul@crapouillou.net> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Dec 12, 2018 at 11:09:10PM +0100, Paul Cercueil wrote: > The PWM in the JZ4725B works the same as in the JZ4740, except that it > only has 6 channels available instead of 8. this driver is probed only from device tree? If yes, it might be sensible to specify the number of PWMs there and get it from there. There doesn't seem to be a generic binding for that, but there are several drivers that could benefit from it. (This is a bigger project though and shouldn't stop your patch. Still more as it already got Thierry's ack.) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |