From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 62DC1C5DF60 for ; Tue, 5 Nov 2019 21:33:26 +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 1DE1B21882 for ; Tue, 5 Nov 2019 21:33:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Pa48AZb6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1DE1B21882 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z+i66LyUk7vY5jLcorh/cxh81MLT+TWt3jr0gA+CXuo=; b=Pa48AZb6knuL7r HTshSXdoFxDE2c2SiorIpUQrpOZkiIQprQMC3INv/cS/ICSjYbqu+H/VRhcjLQsTtCem6w+0+Ds/m ubBl0h7Kc3sL5FCrOQmPIxlc/ZCmnpDhBXANyzLA/SqlVVfmiRxPcXdNUx6zVYItk1Bb/anOkE8hv 71ajBjuv5eLFzZUoO81TXjn/r2Vo8qZ8zvimGkD5LL656uVchy81QeBLiHJOReN/tQBbJykqlVSg8 cX47mMX2g/hWENXJTLPyXVohnfEOBWHYSeboQe68r7uUb4i7BHSVIPjcinfw99mWXhxh/+Ykd15Co 9nT+DbGmxI5QaLb+fKoA==; 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 1iS6S5-0003Af-Bn; Tue, 05 Nov 2019 21:33:25 +0000 Received: from mail-ot1-f65.google.com ([209.85.210.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iS6S2-00039y-Gx for linux-arm-kernel@lists.infradead.org; Tue, 05 Nov 2019 21:33:23 +0000 Received: by mail-ot1-f65.google.com with SMTP id t4so7505286otr.1 for ; Tue, 05 Nov 2019 13:33:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=zsmPSGfU4VIabCEcquyi1hsnRpNdKZ9P9UXPGbIVCSk=; b=iaUU802PU1RtYhZN63c2HnTn/9FEpW/pAMC/ONz7UF/4Khc1W9IsBEUD6xTH2nUrFB NLo3tuHBd38SUr0SW5Tb6+iJPabMcRnA8srXsnyNp+zxEACpRikP4TAJaHJhyYSgWULF 3e4zckNlRrCmI+P+2aoXMU7VHZm3MajpOAltJaxXoXLJ2m+xirg/pokQFBS332zZfBS1 tfTdCROMdJRBudzkljdnFHibzDFK+g1C/surz7dVr1ITWUjf3H+h6Q/vq8wujCH4MVLP WW38n9PxegpN9e2hlMXhe72Z9jg0xtMSgWcr+IXzVDkuoNLLBzVWpg9AN0ZdHY+sLDdR UvwQ== X-Gm-Message-State: APjAAAVd+il2OZOifxSl638dnmcijA9KUu/aJdkdC4YIifv+VDEWe2y+ lr1szK2SC1qzwAuZ0cofXw== X-Google-Smtp-Source: APXvYqyuA6gQZu8HaSbrJ5/20jXgGV+3XUqpkaSV9Wbbgx/bbOF724lg2zbaq9jCmndj046bD68/WQ== X-Received: by 2002:a9d:7441:: with SMTP id p1mr9387956otk.87.1572989601214; Tue, 05 Nov 2019 13:33:21 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q3sm238414oti.49.2019.11.05.13.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 13:33:20 -0800 (PST) Date: Tue, 5 Nov 2019 15:33:19 -0600 From: Rob Herring To: =?iso-8859-1?Q?Cl=E9ment_P=E9ron?= Subject: Re: [PATCH v3 1/7] dt-bindings: pwm: allwinner: Add H6 PWM description Message-ID: <20191105213319.GA30538@bogus> References: <20191105131456.32400-1-peron.clem@gmail.com> <20191105131456.32400-2-peron.clem@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191105131456.32400-2-peron.clem@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191105_133322_565578_2F005FF0 X-CRM114-Status: GOOD ( 18.54 ) 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 , linux-pwm@vger.kernel.org, Jernej Skrabec , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Thierry Reding , 'Uwe =?iso-8859-1?Q?Kleine-K=F6nig'?= , Philipp Zabel , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 05, 2019 at 02:14:50PM +0100, Cl=E9ment P=E9ron wrote: > 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 > Signed-off-by: Cl=E9ment P=E9ron > --- > .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 47 +++++++++++++++++++ > 1 file changed, 47 insertions(+) > = > diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pw= m.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml > index 0ac52f83a58c..9fc32c1d94b4 100644 > --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml > +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml > @@ -30,13 +30,50 @@ 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: Bus Clock > + - description: Module Clock The order here doesn't match the if/then or the example. > + > + # 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 blank line here. > + resets: > maxItems: 1 > = > + if: > + properties: > + compatible: > + contains: > + const: allwinner,sun50i-h6-pwm > + > + then: > + properties: > + clocks: > + minItems: 2 > + > + clock-names: > + items: > + - const: mod > + - const: bus > + > + required: > + - clock-names > + - resets > + > + else: > + properties: > + clocks: > + maxItems: 1 > + > required: > - "#pwm-cells" > - compatible > @@ -54,4 +91,14 @@ examples: > #pwm-cells =3D <3>; > }; > = > + - | > + pwm@300a000 { > + compatible =3D "allwinner,sun50i-h6-pwm"; > + reg =3D <0x0300a000 0x400>; > + clocks =3D <&osc24M>, <&ccu CLK_BUS_PWM>; > + clock-names =3D "mod", "bus"; > + resets =3D <&ccu RST_BUS_PWM>; > + #pwm-cells =3D <3>; > + }; > + > ... > -- = > 2.20.1 > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel