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=unavailable 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 6A8F1ECE58D for ; Thu, 10 Oct 2019 18:54:39 +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 26901214E0 for ; Thu, 10 Oct 2019 18:54:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="d0aR8WNE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26901214E0 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=XEDe/+WkR8u4+P3/6zaTDKAi7PORBMXyFvaB5opRHxg=; b=d0aR8WNEKE7ZMo IelE2yfexa57ngHtko8aA5xHGf9z1BlFOGGZuHrDRlMxFT093C6OTlNO/WheQNDr6wkAfOhPldTUi 4afOayvfmeQUSstjxZBxmdkTUJee/S/pFrLhMAP1L2dtz+r6M1SegcrWFjWasPmD0+Ea/5o15ivSG JyjN8tzKpMV7YHYTND9Ft070Dm9NfAmmp4ezcOizwcUB49jzXPxJm0Lyf5WLz2hxXEY21jSohNjsF 8oxNXwxkcJPeeJoncZ9SL242k4AZsRnhFU9rukDpLOXLUHnGh50GMh2oLdPqvn7SoGMvcv0xasTPF CQXAuBsdY3GqTC28fviA==; 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 1iIdaA-0002Oq-IK; Thu, 10 Oct 2019 18:54:38 +0000 Received: from mail-ot1-f67.google.com ([209.85.210.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iIda7-0002Nr-Ks; Thu, 10 Oct 2019 18:54:37 +0000 Received: by mail-ot1-f67.google.com with SMTP id z6so5833252otb.2; Thu, 10 Oct 2019 11:54:34 -0700 (PDT) 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:in-reply-to:user-agent; bh=o+zin2bL1A/EltcDjtt8OSEY4VLYK08n8Dj1hQ6Wf2k=; b=nxafwnwjiwC0h3WJqamIpYCmQ8EnyjkZSrAKZbPMQREviRYqLXLtMR4iS3ycWZU95e zjnTroaAY0R1gjOt61F0zCkJImfGpSzoKPvAJ966+TaRH2KDL8YgL4J9Vc90LZJgUdxO 4QBXwnlzFP5iG5U4J3BjLqDiAOo72a1ZK+mSYkEog13Ak3N1hoiIrO72omGglwJFbCwe 1ex6JbVv6fyeYl+inxkb3idX1MhxNNQuh2mDGS+NNHsVrCmNg6KghY45ViWRtrlcWRUJ I9Tv0hMI4KKjg/Y1d05ricP+r5WKjVO2PIowCsdLTc/C4z6NAjLKeKZDhJ+lBvSPp4z5 /w0A== X-Gm-Message-State: APjAAAWD5kicquEJPH1hIRaeors0dStN1BcnLe9HRZgd6LNjhK5kwNBv Pu5UIVg5HVSfsF9gj/REVQ== X-Google-Smtp-Source: APXvYqxQEXGO9Uc01zKUGpeB8t0R+xv3eN1jyvC9TPfe47vyIsyRP58qHhRhPLQG1SNW3RGl2mO7pw== X-Received: by 2002:a9d:73d8:: with SMTP id m24mr8810042otk.227.1570733674052; Thu, 10 Oct 2019 11:54:34 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r19sm1846829ota.79.2019.10.10.11.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 11:54:33 -0700 (PDT) Date: Thu, 10 Oct 2019 13:54:32 -0500 From: Rob Herring To: Krzysztof Kozlowski Subject: Re: [PATCH v3 1/2] dt-bindings: pwm: Convert PWM bindings to json-schema Message-ID: <20191010185432.GA17457@bogus> References: <20191002164047.14499-1-krzk@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191002164047.14499-1-krzk@kernel.org> 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-20191010_115435_683580_BCE7D178 X-CRM114-Status: GOOD ( 19.42 ) 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, linux-pwm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-rockchip@lists.infradead.org, Thierry Reding , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-tegra@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, linux-leds@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Oct 02, 2019 at 06:40:46PM +0200, Krzysztof Kozlowski wrote: > Convert generic PWM bindings to DT schema format using json-schema. The > consumer bindings are split to separate file. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v2: > 1. Change also pwm-sprd.txt > > Changes since v1: > 1. Indent example with four spaces (more readable), > 2. Change pattern for pwm nodes, > 3. Remove $ref from #cells. > --- > diff --git a/Documentation/devicetree/bindings/pwm/pwm-consumers.yaml b/Documentation/devicetree/bindings/pwm/pwm-consumers.yaml > new file mode 100644 > index 000000000000..39c844fe6338 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/pwm-consumers.yaml > @@ -0,0 +1,76 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pwm/pwm-consumers.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Specifying PWM information for devices > + > +maintainers: > + - Thierry Reding > + > +description: | > + PWM properties should be named "pwms". The exact meaning of each pwms > + property must be documented in the device tree binding for each device. > + An optional property "pwm-names" may contain a list of strings to label > + each of the PWM devices listed in the "pwms" property. If no "pwm-names" > + property is given, the name of the user node will be used as fallback. > + > + Drivers for devices that use more than a single PWM device can use the > + "pwm-names" property to map the name of the PWM device requested by the > + pwm_get() call to an index into the list given by the "pwms" property. > + > +properties: > + pwms: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: | > + Phandle to PWM controller node and pwm-specifier (controller specific). > + pwm-specifier typically encodes the chip-relative PWM number and the PWM > + period in nanoseconds. > + Optionally, the pwm-specifier can encode a number of flags (defined in > + ) in a third cell: > + - PWM_POLARITY_INVERTED: invert the PWM signal polarity > + > + pwm-names: > + $ref: /schemas/types.yaml#/definitions/string-array > + description: > + A list of strings to label each of the PWM devices listed in the "pwms" > + property. If no "pwm-names" property is given, the name of the user node > + will be used as fallback. > + > +required: > + - pwms This schema is never applied because it has no 'select' which is only automatic for $nodename or compatible. You could include this from other schemas, but why? Any consumer still has to list these properties to define their specific constraints. We already have a schema in dtschema for consumer side. It's just missing descriptions which needs relicensing from this. > + > +dependencies: > + pwm-names: [ pwms ] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel