From patchwork Fri Oct 30 18:36:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 11870539 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B327C4741F for ; Fri, 30 Oct 2020 18:37:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B2C5720731 for ; Fri, 30 Oct 2020 18:37:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Sv2KoHBZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B2C5720731 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=QEh7EXHUVmMnhYmpHgOLqyX+sTTGlLXC7jbrxESqSxE=; b=Sv2KoHBZF4cBy/1scFqhHm6t9J vTRi6NI3f6upJ1Mv7r/Vicu6/cA0pJBdEyCLh9nTvZU6lgoiFiCs+UcheW2d7jAlu1UEQ7BF2LASI 4FJgS4w1Uc+3HHKS17iH6ZO0gUsPt2eG6/Kq17tywDCUn551GoCqizpc/WmaiAaUyjQ67HBBoZVBP uZ/WP2n2tJ2Jf9p/DM7Scroxew2vr3Y0X9bWRaMbJHLJzxhDWWsmL2looof8Yz9SF0X4+gEOSqgFx j8FzKd9rCyf+ki1YMOF3ZuduL33ndWynEgMDSLO1j6Usd/zs35H2P7jla5HukJU/j5PU2vZnUdQGt mBe8AIQA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYZH4-0003Zz-9K; Fri, 30 Oct 2020 18:37:18 +0000 Received: from relay10.mail.gandi.net ([217.70.178.230]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYZGz-0003Xo-Pa for linux-arm-kernel@lists.infradead.org; Fri, 30 Oct 2020 18:37:16 +0000 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 9CF62240013; Fri, 30 Oct 2020 18:37:08 +0000 (UTC) From: Alexandre Belloni To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= Subject: [PATCH v2 0/4] pwm: atmel-tcb: rework device tree binding Date: Fri, 30 Oct 2020 19:36:54 +0100 Message-Id: <20201030183658.1007395-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201030_143714_948324_7D6D3CF0 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, Alexandre Belloni , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, This was sent as part of a 58 patches series back in 2017. The bindings were agreed upon back then: https://lore.kernel.org/linux-arm-kernel/20170607211752.avts3cofvac7ks3q@rob-hp-laptop/ There is still only one user of atmel,tcb-pwm in the tree and I still think it is worth doing that change now. The various dependencies are now in v5.9-rc1 so it is ready to be applied. I have another series removing atmel_tclib once this is applied. Changes in v2: - rework binding commit message - use enum for the pwm node reg values Alexandre Belloni (4): dt-bindings: microchip: atmel,at91rm9200-tcb: add atmel,tcb-pwm pwm: atmel-tcb: switch to new binding pwm: atmel-tcb: add sama5d2 support ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding .../devicetree/bindings/pwm/atmel-tcb-pwm.txt | 16 -- .../soc/microchip/atmel,at91rm9200-tcb.yaml | 34 ++- arch/arm/boot/dts/at91-kizbox.dts | 45 ++- drivers/pwm/Kconfig | 3 +- drivers/pwm/pwm-atmel-tcb.c | 264 ++++++++++-------- 5 files changed, 220 insertions(+), 142 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/atmel-tcb-pwm.txt