From nobody Tue Apr 14 15:41:19 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4243BECAAD2 for ; Sun, 28 Aug 2022 13:01:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbiH1NB2 (ORCPT ); Sun, 28 Aug 2022 09:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiH1NBX (ORCPT ); Sun, 28 Aug 2022 09:01:23 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58EFD10FF1 for ; Sun, 28 Aug 2022 06:01:21 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id m5so7826292lfj.4 for ; Sun, 28 Aug 2022 06:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=G6q99tFV5zDIWUnco/c4mKVD0xJW7VMbRdjRGKQjAt8=; b=DLz6IBmV8LBfhG5UiGcd8gNLWxnU9MJAHwyX1cTORiUOcLKCqLnC+9vaGIbI+SJpE2 52Z2/UhDmo+KdsmgylbSn8bP3LS/iqjorrtlG82rh6t/h0HypS5bYgRcfQLGXKdIh9QH MBYB71tZn/V0uygZueOoAMIfEPqRPg9cF7FYiwdE7pW8pStZegXzvs0q26D0UEw+4+GW 2478ejsTyFaYir5e5jnYWcW+lNGsMoVTfH+Wiyct3Do1HaIoGWppE0U+32QBiG+kvJi7 2Woj3dcGNrCu/cYUQiPs3FcTVhglcxxvND8gGNztHZDcYNSERC+rxI4OgoVc7BU6nOLV x2dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=G6q99tFV5zDIWUnco/c4mKVD0xJW7VMbRdjRGKQjAt8=; b=WB9HTY+aHZ49CJGYcNHNWlOSOY6P4KSEQaORdWwXcH+slvWkB0NyzCe51r081gwy8V /i2NMwZpAZCX5WNchi9O1Orv/Vx+clESO3OPXLP3cfVrfAzD7RwkHuGnorOKdA9uh7V7 iSNWhgPzJrfnv5H4fmktFfQqsl3/UiNT7XZzahlZRQtHhxMszzgMhIHEiEnInd9Dm0h1 mrZEAAfV0Uo55GYECzO2ZAnGJRSiJpNW9ACszng+u7f327FLyDffOuHXAwUFjCaDPZRk E8qsOxyrZc5bcyXROvjbrC68YeWes+YTD+8RPthoDMNHUFo3j7Pr0Vje50Tk5NTdL+N0 zfag== X-Gm-Message-State: ACgBeo0lCg3DqsILvtb9zktaScXzrfmNH19EgizUCgSUufGLnH6wdaxU vp8ElgMerZKLRfhBYL5apZQcX96ume/le549 X-Google-Smtp-Source: AA6agR5CMAaUfuNsOo55O6/Pp9V57W6soCFzdY1i+KfmNUgwcA1432j0Xm8It0zqYgrVRHg7viHwvQ== X-Received: by 2002:a05:6512:3a94:b0:492:b8d3:2236 with SMTP id q20-20020a0565123a9400b00492b8d32236mr4764772lfu.147.1661691679332; Sun, 28 Aug 2022 06:01:19 -0700 (PDT) Received: from krzk-bin.starman.ee (82.131.98.15.cable.starman.ee. [82.131.98.15]) by smtp.gmail.com with ESMTPSA id o4-20020ac25e24000000b00492ebf36ac4sm958228lfg.89.2022.08.28.06.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 06:01:18 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: mfd: qcom,spmi-pmic: extend example Date: Sun, 28 Aug 2022 16:01:13 +0300 Message-Id: <20220828130113.5845-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a more complete example with PM6150 to provide better validation of the bindings. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring Reviewed-by: Stephen Boyd --- .../bindings/mfd/qcom,spmi-pmic.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Do= cumentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 230f3bf9c1ea..9676a9e3d176 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -208,3 +208,87 @@ examples: }; }; }; + + - | + #include + #include + #include + #include + #include + + pmic@0 { + compatible =3D "qcom,pm6150", "qcom,spmi-pmic"; + reg =3D <0x0 SPMI_USID>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + pon@800 { + compatible =3D "qcom,pm8998-pon"; + reg =3D <0x800>; + mode-bootloader =3D <0x2>; + mode-recovery =3D <0x1>; + + pwrkey { + compatible =3D "qcom,pm8941-pwrkey"; + interrupts =3D <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce =3D <15625>; + bias-pull-up; + linux,code =3D ; + }; + }; + + temp-alarm@2400 { + compatible =3D "qcom,spmi-temp-alarm"; + reg =3D <0x2400>; + interrupts =3D <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; + io-channels =3D <&pm6150_adc ADC5_DIE_TEMP>; + io-channel-names =3D "thermal"; + #thermal-sensor-cells =3D <0>; + }; + + pm6150_adc: adc@3100 { + compatible =3D "qcom,spmi-adc5"; + reg =3D <0x3100>; + interrupts =3D <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells =3D <1>; + #size-cells =3D <0>; + #io-channel-cells =3D <1>; + + adc-chan@6 { + reg =3D ; + label =3D "die_temp"; + }; + + adc-chan@4f { + reg =3D ; + qcom,ratiometric; + qcom,hw-settle-time =3D <200>; + }; + }; + + adc-tm@3500 { + compatible =3D "qcom,spmi-adc-tm5"; + reg =3D <0x3500>; + interrupts =3D <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + charger-thermistor@0 { + reg =3D <0>; + io-channels =3D <&pm6150_adc ADC5_AMUX_THM3_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us =3D <200>; + }; + }; + + pm6150_gpio: gpios@c000 { + compatible =3D "qcom,pm6150-gpio", "qcom,spmi-gpio"; + reg =3D <0xc000>; + gpio-controller; + gpio-ranges =3D <&pm6150_gpio 0 0 10>; + #gpio-cells =3D <2>; + interrupt-controller; + #interrupt-cells =3D <2>; + }; + }; --=20 2.34.1