Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp43139pxh; Thu, 7 Apr 2022 13:26:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjoZQK3QMwbfQbO6ahNQOgBOD3o7Esz9SdpgOu8yhA1yAC6GRXLlZKet3SA/TE7KAsyZoL X-Received: by 2002:a17:90a:6382:b0:1ca:800e:1790 with SMTP id f2-20020a17090a638200b001ca800e1790mr17752910pjj.234.1649363184197; Thu, 07 Apr 2022 13:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363184; cv=none; d=google.com; s=arc-20160816; b=MJMQhs3PGJM1EDyS8Oy1/EfiPRTqdrf7uyHq08upMCDLI9DemO37yxOUMBD/v4qi+K eWePrReVCP2QWTQdKn1pFd75j/+SRzm5VytdwGjoOj5KLjzsP7knmevKVWR3aEhIyPFs XS59lYUhR2yJdnzDArO9oPpBrTY9n7Jo3Y4g6FlrGvMTySTjHOZ5eFi/rDkIFd+icsqK huWtg8pw0dmEN2T8A3tkxFt8Ex+qCvdGnvD+bgx++KZ0AZZsh9OZhslGlanYWt+jZFlr Gm7ZxM8BCovpjkuG0dWZYlvAcSe7ukbVU83S9IZrqVtYdzZce5pQVEJ69DFxug7A1WOf zyWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W9Hs+gnhjn+YVFkRSWJCDbSOkGyWB/bGPp9Wsa3Ssvo=; b=qzUt56zR7ShMCoS0IA4UtzJwexv9IIri2qxQzbUlwvjxBM0X7jM6WrWSFBYWsWPWlB gfq592jWamSgsnnJv6pqQ7StMjeAfxqlTpfpM6+OzxfrCcvOEvgt9t1dbOq628sC6pka 0gEo22vUzu8/di6ePyTn9+BcLLQqCl/EOvQtfyYOc14SMxA/XObmb+edPCIlD3GSiMRQ KSqnWt7PNdzK2RYOvFc6D7rAOhJXiloRGyX89Ja+dC8K7xF2Va3a6DZIUyB26sdTm/K1 XW1SVGD7muQtRyRyWNiloghJ2BAgyJjE7kmuaGSMTBNABi3UH1y8qEzRd4wPqFr1ZfXo 4wPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c17-20020a170903235100b00153d85f77e5si624830plh.503.2022.04.07.13.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:26:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 049811CAF3F; Thu, 7 Apr 2022 12:41:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345828AbiDGQvP (ORCPT + 99 others); Thu, 7 Apr 2022 12:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238015AbiDGQvM (ORCPT ); Thu, 7 Apr 2022 12:51:12 -0400 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C23D0B61; Thu, 7 Apr 2022 09:49:11 -0700 (PDT) Received: by mail-ot1-f50.google.com with SMTP id c24-20020a9d6c98000000b005e6b7c0a8a8so822518otr.2; Thu, 07 Apr 2022 09:49:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=W9Hs+gnhjn+YVFkRSWJCDbSOkGyWB/bGPp9Wsa3Ssvo=; b=y3G9GyvZ3A8QzOl2MdfqS5ZAZhmvOrJDwsA9CTfoGhVXxTmkvVLebqgc7ybRtX4Cnp xX2GknR4v0G8VM5NKkWaSMKBFpVg0Wvm7yqA70uWKLsM/RTU4B2eIzhREMwhPiFv3Lcd x12wJoTOAoSDMtQqxPjsyHM0X0H/fMuvqAxRfeohDfVJ64jkkEa1MurY2iFiaUaCgAx+ N91Saq9REQ7CtH1diaOsa7iYJu3NWnHtxc4M08dQqWwDRSBt722GqwUlAQJ0xkNfa9uh aG3Qzq4YldSfIlwcnt5/AOzpCGgAuFWoy7ZYaWITXlknKMC9BKwULZKKoy2UoKNVPQk5 ffXg== X-Gm-Message-State: AOAM532L0tDe5a0sa1eibe/JqHj/lsd4eF/6VvDMiODDJe7hvfUf/rxW rX1HC5ywU45t5nNV/nM4ig== X-Received: by 2002:a9d:20e2:0:b0:5c9:2edb:af8e with SMTP id x89-20020a9d20e2000000b005c92edbaf8emr5228736ota.325.1649350150961; Thu, 07 Apr 2022 09:49:10 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id q11-20020a05683033cb00b005e686fd52d6sm4950701ott.17.2022.04.07.09.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 09:49:10 -0700 (PDT) Received: (nullmailer pid 1386536 invoked by uid 1000); Thu, 07 Apr 2022 16:49:09 -0000 Date: Thu, 7 Apr 2022 11:49:09 -0500 From: Rob Herring To: Fabio Baltieri Cc: Benson Leung , Guenter Roeck , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Lee Jones , chrome-platform@lists.linux.dev, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] dt-bindings: update google,cros-ec-pwm documentation Message-ID: References: <20220331125818.3776912-1-fabiobaltieri@chromium.org> <20220331125818.3776912-4-fabiobaltieri@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 07, 2022 at 02:38:55PM +0000, Fabio Baltieri wrote: > Hi Rob, > > On Wed, Apr 06, 2022 at 10:41:45AM -0500, Rob Herring wrote: > > On Thu, Mar 31, 2022 at 12:58:17PM +0000, Fabio Baltieri wrote: > > > Update google,cros-ec-pwm node documentation to mention the > > > google,use_pwm_type property. > > > > > > Signed-off-by: Fabio Baltieri > > > --- > > > .../devicetree/bindings/pwm/google,cros-ec-pwm.yaml | 6 ++++++ > > > 1 file changed, 6 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml > > > index 4cfbffd8414a..9c895c990ed8 100644 > > > --- a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml > > > +++ b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml > > > @@ -19,6 +19,12 @@ description: | > > > properties: > > > compatible: > > > const: google,cros-ec-pwm > > > + > > > + google,use-pwm-type: > > > + description: > > > + Use PWM types (CROS_EC_PWM_DT_<...>) instead of generic channels. > > > + type: boolean > > > > Either do a new compatible string if the cell interpretation is mutually > > exclusive (channel number vs. type) or split the number space for the > > 1st cell between type and channel number. IOW, set a bit (31?) to > > signify the number is a type, not a channel. > > Split the number space was my first (tentative) implementation as well, > but it turns out that the PWM subsystem really wants channels to be > zero-based[1], so I don't think flags or bitmasks are really an option. Fix the PWM subsystem then... > New compatible sounds good though, I'll rework a v3 with that change. > > Thanks! > Fabio > > [1] https://elixir.bootlin.com/linux/v5.17/source/drivers/pwm/core.c#L423 > > -- > Fabio Baltieri