From patchwork Mon Nov 18 09:37:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11249207 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 568701390 for ; Mon, 18 Nov 2019 09:37:51 +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 2DCAF20855 for ; Mon, 18 Nov 2019 09:37:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rmeJTauA"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P8pFwrxq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DCAF20855 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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:References:In-Reply-To: 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: List-Owner; bh=jSlMm1VYrIdu5BhYwLsKQGhLA/Ih39oRouUk3VE3AvU=; b=rmeJTauAUuDDUL /nm6z+O1LmWjb+COhK1cOP4TEBrFZDouQHDNd7Rgyzp8GXfLKRAxYcif0eil2Qiv2FCuURii3eKJL FeEy7AShmczxh7QOKpClxbcr42wYC/VTbScC9h1PzAKsqSbeR0+NIU193QVhqdZyO+jJjdzy6mQd9 KMJMc3C2bKvklkHZLIDYS8uHSJTLN6a+QyToM6UBlezE0asHP9Brjh1ur3Tvk0+k2se5Rdlp9KlBd 719sxazBYq/iETYPzEBKxksHBWypQOMrTXN7MkNLVgdXatwbP+Om/ZwyEzm0Ui0clpeuNVdx+iArF roMsMz8uSZ5WOg3tw5og==; 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 1iWdTg-00047T-Cg; Mon, 18 Nov 2019 09:37:48 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iWdTc-00046B-Lm for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2019 09:37:46 +0000 Received: by mail-wr1-x442.google.com with SMTP id b18so17114299wrj.8 for ; Mon, 18 Nov 2019 01:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/r/rbSHnQ681j6w5Fd1xT+tCG0CKj+LRyHPCBVvmrlM=; b=P8pFwrxqnL/iAlT+wWn4oq38pZqZta2yNEuAHyDIb1ZjDOQxlMQy8X/ezmV554mXtA 7qPCzxvNVf63u+CueuV8DHvfhXqfNHSXywFqjdaI02d5OWMyXLZBmMI7ioIbkNSqfKiA jl4L7QVsnzzQYak2nL9YfSwksJm31ddlGXeUXnzCfibnyTcIbfvXPu0kI7UuO+GTDb6Z 80LAMvSPP0J/6PVpJ6B6+jjuuVjVwK1q03/AnGi0S5d0sDPaqjUGsT28CXb5KKsH1Cya x52cOGS8VUBM65zquq9U8OOYBY13eZj6J8b/IKk7JdUy3oC06ksEDFc74Fgb8QPklqWa ZLQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/r/rbSHnQ681j6w5Fd1xT+tCG0CKj+LRyHPCBVvmrlM=; b=dEb7zURxTAWkwio6gijN/tO/Tc0zb4j2+RnWhIHy4Gb+IpAP5iXz14GUi/Nsl+j4I0 F3bohD9XH7ZlK/z2E5wd86RXrukeDeBiwZmR9VTRACP8ftFoAUF/YAxOCdeVloDQUfU/ 6JbLnDzuCEQrKKK8jXVeEQCDdVmYdp2fFzVrw1rrA3Ss8oywZlekTpxX6eWurQuV93RH 31jXRRK+iSaJVMzw1OeEHsU0456U6pBs5cf8V7iCwcVevIjDKBv7w+lw6eY2h4NIMl9j TS1W7R8tWDAgaz8XNbUSdFUXsj/wGnUh8+9r6igVkCzBfban5plynzDZS0e4j4UWTSTx PFuw== X-Gm-Message-State: APjAAAUtYiFZdwX9NY073jhUCRsfGnwZhIm2DBPfOuwgaEkHGa9cZdHj 86KunxnLK6C693j0DTi63D4= X-Google-Smtp-Source: APXvYqzrptzyinv4zHsSKlk4uBZG+NdIuGybLeML+SvcHF0FPHiczOcqXhndK5SV0r9Z2ybhkDjMLw== X-Received: by 2002:a5d:68c3:: with SMTP id p3mr31067514wrw.82.1574069862972; Mon, 18 Nov 2019 01:37:42 -0800 (PST) Received: from clement-Latitude-7490.outsight.local (lputeaux-656-1-11-33.w82-127.abo.wanadoo.fr. [82.127.142.33]) by smtp.gmail.com with ESMTPSA id w10sm19006687wmd.26.2019.11.18.01.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 01:37:42 -0800 (PST) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Philipp Zabel Subject: [PATCH v5 1/8] dt-bindings: pwm: allwinner: Add H6 PWM description Date: Mon, 18 Nov 2019 10:37:20 +0100 Message-Id: <20191118093727.21899-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191118093727.21899-1-peron.clem@gmail.com> References: <20191118093727.21899-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191118_013744_739849_E6C30728 X-CRM114-Status: GOOD ( 12.54 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (peron.clem[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, Jernej Skrabec , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , Rob Herring , 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 From: Jernej Skrabec H6 PWM block is basically the same as A20 PWM, except that it also has bus clock and reset line which needs to be handled accordingly. Expand Allwinner PWM binding with H6 PWM specifics. Signed-off-by: Jernej Skrabec Reviewed-by: Rob Herring Signed-off-by: Clément Péron --- .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml index 0ac52f83a58c..1bae446febbb 100644 --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml @@ -30,13 +30,51 @@ properties: - items: - const: allwinner,sun50i-h5-pwm - const: allwinner,sun5i-a13-pwm + - const: allwinner,sun50i-h6-pwm reg: maxItems: 1 clocks: + minItems: 1 + maxItems: 2 + items: + - description: Module Clock + - description: Bus Clock + + # Even though it only applies to subschemas under the conditionals, + # not listing them here will trigger a warning because of the + # additionalsProperties set to false. + clock-names: true + + resets: maxItems: 1 + if: + properties: + compatible: + contains: + const: allwinner,sun50i-h6-pwm + + then: + properties: + clocks: + maxItems: 2 + + clock-names: + items: + - const: mod + - const: bus + + required: + - clock-names + - resets + + else: + properties: + clocks: + maxItems: 1 + required: - "#pwm-cells" - compatible @@ -54,4 +92,14 @@ examples: #pwm-cells = <3>; }; + - | + pwm@300a000 { + compatible = "allwinner,sun50i-h6-pwm"; + reg = <0x0300a000 0x400>; + clocks = <&osc24M>, <&ccu CLK_BUS_PWM>; + clock-names = "mod", "bus"; + resets = <&ccu RST_BUS_PWM>; + #pwm-cells = <3>; + }; + ...