From patchwork Wed Feb 26 18:33:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TcOlbnMgUnVsbGfDpXJk?= X-Patchwork-Id: 11407041 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3490A159A for ; Wed, 26 Feb 2020 18:33:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0AFAF20714 for ; Wed, 26 Feb 2020 18:33:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="txNQ7fDn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AFAF20714 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mansr.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=wF/5qNWp5aoeg9L4v/TNjGQSuWCnAAtK4PLZTkCUt/E=; b=txNQ7fDn+qfr0V Ip8env8YlK/A8A3o4vef8pvQ7gqlamnxeNNiKv2sVxuzAqj8+Y3/v+QSZFkEvVzg2z9lMrSFxgs8y o/cVrAZHPGKKqedQICxP43DxyvS0+0mesnxNLj9i+sk77jgFNRrIecc96Bc0hLkKXS8oRSQpmu6Bn TG0K1xLXiDQHk/4ig6/0CAIdxtiR5nHKhL81TecLEgHvkG0ao72s+u5JOWY+H8RwrjS2+ptHpcIck vZaqaASCwOel+oHezbDdizes30T22rc2UCo/5wvULSITHvQ71d1Ftxb6xu9tO5YMklIf55GnWvjFc FKHKn+lj1zAWBVokV27Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j71VA-0001rM-GY; Wed, 26 Feb 2020 18:33:44 +0000 Received: from unicorn.mansr.com ([2001:8b0:ca0d:8d8e::2]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j71V7-0001qN-0p for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2020 18:33:42 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 3C5FB15EF6; Wed, 26 Feb 2020 18:33:26 +0000 (GMT) From: Mans Rullgard To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH] ARM: dts: sunxi: h3/h5: add r_pwm node Date: Wed, 26 Feb 2020 18:33:16 +0000 Message-Id: <20200226183316.26159-1-mans@mansr.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200226_103341_219824_F8A10D1A X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 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: Mark Rutland , devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org There is a second PWM unit available in the PL I/O block. Add a node and pinmux definition for it. Signed-off-by: Mans Rullgard Reviewed-by: Chen-Yu Tsai --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 107eeafad20a..1842c9f12c36 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -871,6 +871,19 @@ pins = "PL0", "PL1"; function = "s_i2c"; }; + + r_pwm_pins: r-pwm-pins { + pins = "PL10"; + function = "s_pwm"; + }; + }; + + r_pwm: pwm@1f03800 { + compatible = "allwinner,sun8i-h3-pwm"; + reg = <0x01f03800 0x8>; + clocks = <&osc24M>; + #pwm-cells = <3>; + status = "disabled"; }; }; };