Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1469014rwb; Sat, 5 Aug 2023 16:31:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKaYVRFyY2bBQeb6FRDJM3aAl7UFVfjSE8dp7MdAPzK9zmmfCwW1aYG92fvoOYyFRDJV5g X-Received: by 2002:a17:902:f7d1:b0:1bb:98a0:b78a with SMTP id h17-20020a170902f7d100b001bb98a0b78amr4885577plw.18.1691278319306; Sat, 05 Aug 2023 16:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691278319; cv=none; d=google.com; s=arc-20160816; b=HV46Wv84ZLFyOhWgGp3eABlqeUKi+mZH2OBmOSP/dtMVH9dhDC1/LrsxRtZOqSpGVV mTrxT0ZPexg9KVBWl9ne/JKFEJbodKrxryHP1NPNCXBIVE59XBLTfZeMk459stnwoMWm KQ2+EJ/X8/digoUK5+wXjgyHNcVJaViw+U+a9M0AXusZpIheiNp9zu5LYdSsSN78wu+7 RA5m9Y9O9LlbS+bPZ0BX5rzB+Noah/O/l3QA0vzuD10IohT27O7JU/fmW3aNX4zceBkw VPkdjIMeSMCvN4Ch5XAlQERgjHeU5A4YRKePNiEtDuQQsn0t1n+PqU7t511LN3iYoF2o Pj7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ggWaW4EQlBby2qejWOi770+rQ3P4xA6A/UBr+a9idG0=; fh=fOf+S3djCTiTDI1YsLIOYs3eWShs3cY21TcJrG8aVn8=; b=OtIAobVMq5Rc4PjbgVToc2Kb675eedBtPq4nwuQDAA9P0xgqmDIMEY9d9ssaerq2zG 0AEgqmi5tzk4+vooBwraQ1lXz8zYA8OL82PBkLJbIZeHNKXgZFuAk0RSJDH0Hu2p1qeP eJ2I6iZzIUCm9r++wWVR2LUjLqk0X/aygbisyLmPE3ftriPvFfAZF62rRbVRjxgc/xHO MNp5jrlTPHoNJ7ikv2XgZxo9dKV17/a+lep/djbI2BdXo0l1f3+XL9xffhGQ8/4WPiNw eoDZHBCVaiyKO7vRZ6sIPMslE6/TU805sX29vXaox3LQhPh2Rnmqn8SeHBvYPEnuqDMc GKhQ== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a170902cec700b001bbc80a2a3asi1854845plg.299.2023.08.05.16.31.48; Sat, 05 Aug 2023 16:31:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbjHEWvc (ORCPT + 99 others); Sat, 5 Aug 2023 18:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHEWvb (ORCPT ); Sat, 5 Aug 2023 18:51:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B600F1732; Sat, 5 Aug 2023 15:51:29 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 396A11FB; Sat, 5 Aug 2023 15:52:12 -0700 (PDT) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8296A3F6C4; Sat, 5 Aug 2023 15:51:27 -0700 (PDT) Date: Sat, 5 Aug 2023 23:50:30 +0100 From: Andre Przywara To: Shengyu Qu Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng , Martin Botka , Martin Botka , Mark Brown Subject: Re: [PATCH] dt-bindings: mfd: x-powers,axp152: make interrupt optional for more chips Message-ID: <20230805235030.35bed33c@slackpad.lan> In-Reply-To: References: <20230802141829.522595-1-andre.przywara@arm.com> Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.1 (GTK 3.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 Sat, 5 Aug 2023 23:43:35 +0800 Shengyu Qu wrote: Hi Shengyu, > No, you can't only add the binding stuff. The PEK driver would crash when > there's no IRQ config in dts. Well, that's strictly speaking a problem of the existing Linux driver then, which cannot cope with this new updated binding yet. But the binding needs to be updated first in any case, so this patch needs to come first. But yeah, indeed this is missing the extension of the "IRQ > 0" check from the 15060 MFD code, I will send a patch shortly to extend this to the AXP305 and AXP313a. Thanks for the heads up! Cheers, Andre > Best regards, > > Shengyu > > > All X-Powers PMICs described by this binding have an IRQ pin, and so > > far (almost) all boards connected this to some NMI pin or GPIO on the SoC > > they are connected to. > > However we start to see boards that omit this connection, and technically > > the IRQ pin is not essential to the basic PMIC operation. > > The existing Linux driver allows skipping an IRQ pin setup for some > > chips already, so update the binding to also make the DT property > > optional for these chips, so that we can actually have DTs describing > > boards with the PMIC interrupt not wired up. > > > > Signed-off-by: Andre Przywara > > --- > > Hi, > > > > arguably the IRQ functionality is optional for many more PMICs, > > especially if a board doesn't use GPIOs or a power key. > > So I wonder if the interrupts property should become optional for all? > > After all it's more a board designer's decision to wire up the IRQ pin > > or not, and nothing that's really related to a particular PMIC. > > > > Cheers, > > Andre > > > > Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > index 9ad55746133b5..06f1779835a1e 100644 > > --- a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > +++ b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > @@ -67,7 +67,10 @@ allOf: > > properties: > > compatible: > > contains: > > - const: x-powers,axp305 > > + enum: > > + - x-powers,axp15060 > > + - x-powers,axp305 > > + - x-powers,axp313a > > > > then: > > required: