Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2216534rwe; Sun, 28 Aug 2022 06:24:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4MEDtN9pJbwXsTb46hdp7PmC7FLAVHD2vKR7Nj0+Y5spwEcKGJNz0yas/8ieOP0PkRFAAi X-Received: by 2002:a17:907:2d86:b0:741:662f:f1f7 with SMTP id gt6-20020a1709072d8600b00741662ff1f7mr2444537ejc.34.1661693045673; Sun, 28 Aug 2022 06:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661693045; cv=none; d=google.com; s=arc-20160816; b=YJewMC5Pd+VwBYT+JzFUV8ua1QGYnyCrJZpYEmoTV4Go/R3mniYiy3CregWQgPNaiQ RE2rXECNoylmv53COt90GLkhXhDK6RcJ1T6qTWOj2cVEKl04MK1cpZjnMTSom561qcdY 9JVGL7uyamGT9shibyGRdic7SLoxCvFT2fRhsEHySxCx/SQqKwK+2EqlSy2FNAWX8Auh a1nWWKH0tiR/i4pNDmRwU5VoPC6k/97q21YzBOfJZR5UKI/HPn/G+5H3fuk0OgYIFiYu Ghr7FGVvRjZr0ju2ahSaJlOvRHh4dQARzp3WO4epfzcRQCW/hKJn4shfIjTcXL1bayVC wr2w== 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=G6q99tFV5zDIWUnco/c4mKVD0xJW7VMbRdjRGKQjAt8=; b=xWTz2xsc+xot/W98WvLGQDKt8E460I5pmf3WTbsiOXF1qRQ9xz0847M1iRaOfNlPnL nheJvukmKJ8fM5uRcLP7wJgSUKUyxg/DnnR3G+iTcNevTLwqHsrvyXmG+sr9/OlOv0o7 4b2aYs5+zuSSYfZ7HySiEOGar/wVunG3z/8XxP7j3AZ54hkE58PRYhZhm7iYXRJ6cHUU TmvY7ESuqNkdjs7ztIHEPx9vwAv7POj/HHz3JRWDKvGu2LHD7+V1NR2PiqlVz6eCd8c8 +S4PCt4PA7lKqyJn8WHqt0/b4+3vAc4vS7MkOZsNYXOpfjcws9st4yl+OquTHXs0KP9y VO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DLz6IBmV; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a50ce46000000b00446a87500fdsi4536756edj.523.2022.08.28.06.23.40; Sun, 28 Aug 2022 06:24:05 -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=@linaro.org header.s=google header.b=DLz6IBmV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229515AbiH1NB2 (ORCPT + 99 others); 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-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: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Add a more complete example with PM6150 to provide better validation of the bindings. Signed-off-by: Krzysztof Kozlowski --- .../bindings/mfd/qcom,spmi-pmic.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/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 = "qcom,pm6150", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pon@800 { + compatible = "qcom,pm8998-pon"; + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + + temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; + io-channels = <&pm6150_adc ADC5_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + + pm6150_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + adc-chan@6 { + reg = ; + label = "die_temp"; + }; + + adc-chan@4f { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; + + adc-tm@3500 { + compatible = "qcom,spmi-adc-tm5"; + reg = <0x3500>; + interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + + charger-thermistor@0 { + reg = <0>; + io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + }; + + pm6150_gpio: gpios@c000 { + compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pm6150_gpio 0 0 10>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; -- 2.34.1