From patchwork Sat Aug 27 14:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 600744 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 7333FC0502E for ; Sat, 27 Aug 2022 14:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230494AbiH0O4t (ORCPT ); Sat, 27 Aug 2022 10:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233173AbiH0O4r (ORCPT ); Sat, 27 Aug 2022 10:56:47 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A395E2AE3D for ; Sat, 27 Aug 2022 07:56:45 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id m10-20020a05600c3b0a00b003a603fc3f81so2251155wms.0 for ; Sat, 27 Aug 2022 07:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=8ePOaK7LqyICB7cNgln3+XlsOSVfW+pl/bxSdIX+eoc=; b=MhzCD+l35fxOSqY7Uq2xIGpyfuDU0VKLDnLVR3ACbEdZUKq/5ak13O4ziprC0clieg xkY5z//OJSLcUtf7TBWAQNL/8HlohpnEhpXunuBnSfTnSgeBKux4JZbiy2thfoVeup9+ PaH9IN4A3FoNXCcnszLH82aWYzlCoZQ62mFkfYuznZnK+0hc7Hk96t/wSkb8UwSa3H3A S+K4pAbZRO30E5Xj6SrQ7ABeXTDDF6WWOPDabqvOPwhvpMEm/xlNxkdux9T9nVchnVBb jyoikOgwB3QpuEl8Ks3I9MlM8Gtwzf7qiZCnL5d155TEC3h+d4rtR2799idS0cCSqhJQ NF3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=8ePOaK7LqyICB7cNgln3+XlsOSVfW+pl/bxSdIX+eoc=; b=r9DFb5+mEvy0S1Cba90qiH6xPY3OeWYmOA6WIVgeFGko63IbtMBpv128Px76uenHFZ 57m27i4Pw5bF1CuwD9+Abx38vpuYZ+59PTY85go9DuR9PPCE3b72a/NomKFWrjytdvn1 xaJGVT49TAn0O0BSWF6UwI3O+IbaBa28/K3RF9McTZdKMcmuNXnCZXlN66Qh4NjgmTT/ WCW/lB4/7J1+RBjPo+6mJQmKb9G8FXFZjA48eVzlg1TXhej2MzI1Fu7DIf79p2tfaaxd EETMCJYqEuHj0VyCqkWLVpQXwG242PQHdpGuXdYnfHAT3yC5ZBTYZVa2fPxnEb4+8dLj Lg6g== X-Gm-Message-State: ACgBeo0hMlFkAT0jqcsftBJBpUdJ0+vihXCsJFZ0Fm2GjxBuH10rk2I2 KxKU9+2JNLQ3qVJDVQ4vzGS+5Q== X-Google-Smtp-Source: AA6agR7GbiZJHx0DnHSI3C8AScZ1J7DRgnwNCSojtqqzloKGIrGswWgE+9OjEceX0dRT8L2VoSmGNQ== X-Received: by 2002:a05:600c:4e0f:b0:3a5:e065:9b50 with SMTP id b15-20020a05600c4e0f00b003a5e0659b50mr2519900wmq.35.1661612204279; Sat, 27 Aug 2022 07:56:44 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m186-20020a1c26c3000000b003a5e7435190sm3407395wmm.32.2022.08.27.07.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 07:56:43 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: bryan.odonoghue@linaro.org, Krzysztof Kozlowski Subject: [PATCH v3 1/2] dt-bindings: spmi: Drop PWM reg dependency Date: Sat, 27 Aug 2022 15:56:39 +0100 Message-Id: <20220827145640.3530878-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220827145640.3530878-1-bryan.odonoghue@linaro.org> References: <20220827145640.3530878-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PWM node is not a separate device and is expected to be part of parent SPMI PMIC node, thus it obtains the address space from the parent. One IO address in "reg" is also not correct description because LPG block maps to several regions. Fixes: 3f5117be9584 ("dt-bindings: mfd: convert to yaml Qualcomm SPMI PMIC") Suggested-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 65cbc6dee545e..2a5bafe0660a0 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -92,6 +92,10 @@ properties: type: object $ref: /schemas/regulator/regulator.yaml# + pwm: + type: object + $ref: /schemas/leds/leds-qcom-lpg.yaml# + patternProperties: "^adc@[0-9a-f]+$": type: object @@ -117,10 +121,6 @@ patternProperties: type: object $ref: /schemas/power/reset/qcom,pon.yaml# - "pwm@[0-9a-f]+$": - type: object - $ref: /schemas/leds/leds-qcom-lpg.yaml# - "^rtc@[0-9a-f]+$": type: object $ref: /schemas/rtc/qcom-pm8xxx-rtc.yaml# From patchwork Sat Aug 27 14:56:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 600610 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 65C90C0502A for ; Sat, 27 Aug 2022 14:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233173AbiH0O4u (ORCPT ); Sat, 27 Aug 2022 10:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233187AbiH0O4r (ORCPT ); Sat, 27 Aug 2022 10:56:47 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8DB22B198 for ; Sat, 27 Aug 2022 07:56:46 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id bs25so5016424wrb.2 for ; Sat, 27 Aug 2022 07:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=3IUgdGEoh6SUefAGVEJuf5Vdw0rjNhMb5+8tK3DbfD8=; b=vEtXM8WAJx1xD97GIqCXN8BpsekW2GvkQRlaxIhsfj2k9hmwHSmt9i7tanthjoIW68 5XHFPKdO2Ch3fGE8sAAaet9iSNoYNSHaGH9yKPuoJq6Nd831zoE97nzNUHZNczfcgYno QhAYiOQ331S+sebFUhEAJeXJ01Pqn6CzT1XBkecjoFjiUQMkkUEpFKwxD7lFltxYiKne xZov/snwGR+2dXGVUbN4X1/j4aNKaQ/JC+kWHHrGuQL0ZFF05GQP4bS20NaysMFPUsPA 1ErPWZDI6fNHQYYH2iWZGAxed1sSM7pTITyQeZB2S7O6NFLcWxQ3q5gxgrCHnqFWLV3U xDLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=3IUgdGEoh6SUefAGVEJuf5Vdw0rjNhMb5+8tK3DbfD8=; b=SXh+RRMfO88IJsX7u8TYO8ZFq+6M1NfU6Vr4ZbNaslo1HKVec22LRWnCTDbHcwa4gI Ag9V9Ppejt+6OudJsrv4DEd3fehyfV6yjEIGqBlfM9218Yuy0btwRQ3dc1047HGSz9rB ff5a4DWQBoMpygm8pnr5KUe4/s45mY38ilAaZtBS3LMH+d3NaDY3CEJiW7ARQI1jAldk BwDaoneradFCjMbFVUec/J5+Vl/eENVTn4+ZDNzrHY8Ufuqi3mfC8oPdKNgS9HJCwCKS hKlB48zpk/y3P6v+0CYmHskpmkGTNMKqm9XhT6tebGk4JN4+rJd/fvgogv1mE7YEKV8i T+XQ== X-Gm-Message-State: ACgBeo2xCTUmHVaQ2CekyVY7bpCss2pIAWrxjmF+eO3y8saIhbZE9TWp BgzmnEsnx3jdzQa2JECHpv7muw== X-Google-Smtp-Source: AA6agR4B1iwtVIUQq8a8Q263gquX96r/Bg2+JjrlbgZi3+TGP7eVyi/6HvUufjiYrM7ResJ1TgVnkA== X-Received: by 2002:adf:f642:0:b0:226:d4b1:8502 with SMTP id x2-20020adff642000000b00226d4b18502mr674903wrp.553.1661612205252; Sat, 27 Aug 2022 07:56:45 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m186-20020a1c26c3000000b003a5e7435190sm3407395wmm.32.2022.08.27.07.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 07:56:44 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: bryan.odonoghue@linaro.org Subject: [PATCH v3 2/2] arm64: dts: qcom: pm8350c: Drop PWM reg declaration Date: Sat, 27 Aug 2022 15:56:40 +0100 Message-Id: <20220827145640.3530878-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220827145640.3530878-1-bryan.odonoghue@linaro.org> References: <20220827145640.3530878-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PWM is a part of the SPMI PMIC block and maps several different addresses within the SPMI block. It is not accurate to describe as pwm@reg as a result. Fixes: 5be66d2dc887 ("arm64: dts: qcom: pm8350c: Add pwm support") Signed-off-by: Bryan O'Donoghue Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi index e0bbb67717fec..f28e71487d5c7 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -30,9 +30,8 @@ pm8350c_gpios: gpio@8800 { #interrupt-cells = <2>; }; - pm8350c_pwm: pwm@e800 { + pm8350c_pwm: pwm { compatible = "qcom,pm8350c-pwm"; - reg = <0xe800>; #pwm-cells = <2>; status = "disabled"; };