Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1237339rwp; Thu, 13 Jul 2023 08:05:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgWc7OCbFcU1aP9F1RlSSyjCWGAcTBz3DDgFuKlX6yW4b74rcb7RQTYoM7AuNNHptoTyOv X-Received: by 2002:a05:6a00:23d2:b0:682:95ab:32f with SMTP id g18-20020a056a0023d200b0068295ab032fmr1377046pfc.1.1689260702906; Thu, 13 Jul 2023 08:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689260702; cv=none; d=google.com; s=arc-20160816; b=VzLx46uaYI/3LgkFiPjcxlWA0sKQz4nDvwBdJ3EQfqJxHhNwgt8AYTYNV1izbRGAOR F4CEuC/YKerhHrWgMozi+t/beY6OW/NrEVclBp7fIVUlRCEj6B4XaiCBQ/6fH6xVDLFU +WC7YXFUjoejXF8PjJJz6mQAz2C33o2ppUsbq6SDnpuHsNI7vtZHEXmHQ/oiotYKxUU6 9CnJ1N1KxG6rVLkzYB07IxEFO8pm9WlixB0B6AYPSAcsq/qEkPFOKOmaOm5mZmh3tBes gQP4YF2DcZ9ZnIsRVtRn7UHbKgftFRmKV0EcnZpON5ZUK9oJ3CEhCda34HtPSyH/CBpU GsgA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yJKtxxw8vhloF4ckCqB3WpyVC2s7p9ZVKuq6SGR9w6w=; fh=90xlDZHrBNnbvW8dYx+oBUdctpHlF9w49+Pp9cSMiWE=; b=udc3vWJ2tBLiIP91FoRipb9nlZIPr4WbHoAKoEZwbTs0sgHUaHAv06fSunCrjBbPlN tL7KQvBqA5bAbowBLpsX68yoNIFAt3FoMvbuwGSaKdHcqqFjukRInPqb3SR/5mHhB7Pt rJ9vDOWydcEhl4kpXsCiBE4ay9YstNBsGuCvq2kGFfQ9ik1lcvUniqLYA2+T02ZxFKdQ TuaIXuxuiDbkZjkqIr986e1jZ9b12CZiwKL22iX4HEp9/bUZBjhpbF6WxbX8ChVs2KAu /VelVPWk2pSrnnBQNOXS1I8gMvtgIN0lqYDkM45g0OLDWz7Zsi64EqBErGRudGUGPPEw bvjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XxKgmn1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx15-20020a056a00428f00b006776687031esi5194230pfb.221.2023.07.13.08.04.42; Thu, 13 Jul 2023 08:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XxKgmn1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbjGMOuU (ORCPT + 99 others); Thu, 13 Jul 2023 10:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjGMOuT (ORCPT ); Thu, 13 Jul 2023 10:50:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5042273A; Thu, 13 Jul 2023 07:49:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3887561545; Thu, 13 Jul 2023 14:49:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03A37C433C8; Thu, 13 Jul 2023 14:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689259797; bh=oUeQBue4D+P5RKuXyNTqDYmkvCRh4FYVyWtbLqAKhmA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XxKgmn1xsOU2pbWpxRsCyKp99xUi09w4uLO1jBoSotyiJJfgPbzmlDjlmVpBsS5Yx ncIKrzKTaCItf5d2aokcdPa8m4ykTT8eLxOfOfaM0s0kk5LsbIPsp4OOzWcSmSj2I2 m2upGxLV5F+Dl4eoKKngsmTR1oinJHxiDWLERc+pK3cC2L/SLbYzEJBh6l+VzgNXy1 gv2T5CpLDQ/tDZKe3UfKnti5V1QizPVI3MCNRkrb5pmPRMSoOdFjbwbF5nhNvdPrzl oOuAQTXH5PDOIdTy7qHbEezRIFzaPM5g7QeOP4kQaOO0fS76lgohHqzxEzRVcl5iWQ /HxBJ7XGKXF9Q== Date: Thu, 13 Jul 2023 15:49:50 +0100 From: Lee Jones To: Linus Walleij Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Dmitry Torokhov , Philippe Schenker , Stefan Agner , Marek Vasut , Steffen Trumtrar , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Rob Herring Subject: Re: [PATCH v5] dt-bindings: MFD: Convert STMPE to YAML schema Message-ID: <20230713144950.GE10768@google.com> References: <20230709-stmpe-dt-bindings-v5-1-34a3d6ee1e57@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230709-stmpe-dt-bindings-v5-1-34a3d6ee1e57@linaro.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sun, 09 Jul 2023, Linus Walleij wrote: > This converts the STMPE MFD device tree bindings to the YAML > schema. > > Reference the existing schema for the ADC, just define the > other subnode schemas directly in the MFD schema. > > Add two examples so we have examples covering both the simple > GPIO expander and the more complex with ADC and touchscreen. > > Some in-tree users do not follow the naming conventions for nodes > so these DTS files need to be augmented to use proper node names > like "adc", "pwm", "gpio", "keyboard-controller" etc before the > bindings take effect on them. > > Acked-by: Dmitry Torokhov > Reviewed-by: Rob Herring > Signed-off-by: Linus Walleij > --- > This adds the missing GPIO bindings for the STMPE port expander > and converts the existing MFD binding to YAML. > > I suppose Lee can merge this when he's happy with it. > --- > Changes in v5: > - Rebase on v6.5-rc1 meaning GPIO binding is merged > upstream and can be dropped. > - Link to v4: https://lore.kernel.org/r/20230426-stmpe-dt-bindings-v4-0-36fdd53d9919@linaro.org > > Changes in v4: > - Make the GPIO bindings a conversion: there were some old > text bindings for the STMPE GPIO, we now delete them as > part of the patch. > - I expect Lee or the DT binding tree to pick both patches. > - Link to v3: https://lore.kernel.org/r/20230426-stmpe-dt-bindings-v3-0-eac1d736e488@linaro.org > > Changes in v3: > - Update to review feedback > - Collected some ack/review tags > - Link to v2: https://lore.kernel.org/r/20230426-stmpe-dt-bindings-v2-0-2f85a1fffcda@linaro.org > > Changes in v2: > - Split off a separate GPIO binding > - Updated the MFD binding according to feedback > --- > ChangeLog v4->v5: > - Rebase on v6.5-rc1 > ChangeLog v3->v4: > - No changes. > ChangeLog v2->v3: > - Drop the required pwm properties already required by the > template pwm schema. > - Add the number of PWM cells as const. > ChangeLog v1->v2: > - Split off the GPIO bindings to their own schema, as the old > bindings didn't even have any GPIO bindings. Put the GPIO > schema before this schema so we can use GPIO in the examples. > - Drop nodename and pattern as STMPE is not a generic name. > - Add maxItems to the resets. > - Make wakeup-source just :true, as it is a generic property. > - Move unevaluatedProperties for subnodes right before properties > as requested. > - Name devices "port-expander" in the examples. > - Use lowercase hex in line init. > --- > .../devicetree/bindings/input/stmpe-keypad.txt | 41 --- > .../bindings/input/touchscreen/stmpe.txt | 108 -------- > .../devicetree/bindings/mfd/st,stmpe.yaml | 297 +++++++++++++++++++++ > Documentation/devicetree/bindings/mfd/stmpe.txt | 42 --- > 4 files changed, 297 insertions(+), 191 deletions(-) Applied, thanks -- Lee Jones [李琼斯]