From patchwork Mon Oct 31 17:39:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2448901wru; Mon, 31 Oct 2022 10:42:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ACGtH3koyCKAWRze2L1s3vboyeYMpL+gNx6FMs+aLp19fsgkCjA/+THgpeTacxFnT1GNq X-Received: by 2002:a05:6a00:230f:b0:53e:2c2c:5c03 with SMTP id h15-20020a056a00230f00b0053e2c2c5c03mr15409320pfh.11.1667238124162; Mon, 31 Oct 2022 10:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667238124; cv=none; d=google.com; s=arc-20160816; b=uXPygw7JLuDKtDm8+6TdpUkPhcYqWvXSIuRzx/o+P7m8iNLtOtG6vwhAqZ2frE8DkV VgIFsbFc/jFbTlFDI2xQUUSODRI+JKvmdfx7ppm5hNfAFHulqN9scCs5p79RiUkSCzSP F8gzob/xk9sy5T24nfVZUbtb5plBeZ6+ZmTpwyXLKM48DU3kL++m1sA6dY991J4QFQSY dv5W/kqWOA8TTtbSjHzXdW0/PkOabsb5OQSg0Mu4iHC3tOs4XKjUHE3NJmDF3X+h45j6 5RQxt4eYXdcjRgMx0Pgmh+9Q/iGZ4iJEHs523OD1GV97EHNZ/IXTq8Z47WiGLRKX6FFW tY5w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pqbrlOctHc8txBzFZ3DLxBLSHMUJG8ovNfiPdMLOVEU=; b=bmtKKN/Cy4SNmsVRyRocBNDGjMQ5oZcVBu/xP+X9e8KzSYWOZ0j1FFkLElurAP5DmU JCms35OShzVq9tZF5ext3PTzJKzJOUjNNDiOztkRBkCjhKN22MGEFMSAPg2STAXba5B3 3Wkum3VvG2rmnmWWmqhRjjrrm6tGN0fEcqTEwsNVaTQgOU/q95RL2K1UfqJWT8vLyFx/ cnjRv3CcRPq6guiPZL2yz4ait9xK8dBbIHuspJ4tKUOpB9fO9pSlVJwvOTVcibBkWA6r IJlCzqAPpm5QuoqGVkhP07Y1JQYdla6R/fFp+0IEa2NjBH3bXXpLPokw30dI+Po1znpH URWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=KXmF94Vb; 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=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j23-20020aa79297000000b0056cd5bf105dsi8483146pfa.219.2022.10.31.10.41.43; Mon, 31 Oct 2022 10:42:04 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=KXmF94Vb; 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=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbiJaRkY (ORCPT + 99 others); Mon, 31 Oct 2022 13:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231942AbiJaRkJ (ORCPT ); Mon, 31 Oct 2022 13:40:09 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2266613D73; Mon, 31 Oct 2022 10:39:49 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 325DED019C; Mon, 31 Oct 2022 17:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1667237987; bh=2Gi0EKJdVgf4UQs0CB/NSQnG2y/0R6oOHuiW0D9biC8=; h=From:To:Cc:Subject:Date; b=KXmF94VbM5DR089XGQaH3c2n6/JW657iwEtLEGFAwaRlFPQrt/lVVSqKjYCg7y2H6 kmyBUYFh7t1TzdfRZBglmCeThI583SQtPUQDwlubPNhgtOMi/u4FpHpS1KBXZ9ADZT bLScWcHmHGRPRUXHcd3oKZUYe1nvhxqzGDT8QUbU= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, afd@ti.com, Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: mfd: qcom,spmi-pmic: support more types Date: Mon, 31 Oct 2022 18:39:31 +0100 Message-Id: <20221031173933.936147-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748225883479871664?= X-GMAIL-MSGID: =?utf-8?q?1748225883479871664?= * 'adc@' is either spmi-iadc or spmi-vadc * 'charger@' is either pm8941-charger or pm8941-coincell * 'usb-vbus-regulator@' is usb-vbus-regulator * 'vibrator@' is now in yaml format, so add it Signed-off-by: Luca Weiss Reviewed-by: Rob Herring --- Changes since v1: * Change dcdc@ to usb-vbus-regulator@ * Link to pm8xxx-vib.yaml .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 777f2da52f1e..cf10d62ace54 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -105,7 +105,9 @@ properties: patternProperties: "^adc@[0-9a-f]+$": type: object - $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml# + oneOf: + - $ref: /schemas/iio/adc/qcom,spmi-iadc.yaml# + - $ref: /schemas/iio/adc/qcom,spmi-vadc.yaml# "^adc-tm@[0-9a-f]+$": type: object @@ -115,6 +117,12 @@ patternProperties: type: object additionalProperties: true # FIXME qcom,pm8916-wcd-analog-codec binding not converted yet + "^charger@[0-9a-f]+$": + type: object + oneOf: + - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml# + - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml# + "extcon@[0-9a-f]+$": type: object $ref: /schemas/extcon/qcom,pm8941-misc.yaml# @@ -135,9 +143,13 @@ patternProperties: type: object $ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml# + "^usb-vbus-regulator@[0-9a-f]+$": + type: object + $ref: /schemas/regulator/qcom,usb-vbus-regulator.yaml# + "^vibrator@[0-9a-f]+$": type: object - additionalProperties: true # FIXME qcom,pm8916-vib binding not converted yet + $ref: /schemas/input/qcom,pm8xxx-vib.yaml# "^mpps@[0-9a-f]+$": type: object