From patchwork Sun Aug 28 13:26:47 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: 600734 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 CC476C3DA6B for ; Sun, 28 Aug 2022 13:26:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbiH1N04 (ORCPT ); Sun, 28 Aug 2022 09:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiH1N0y (ORCPT ); Sun, 28 Aug 2022 09:26:54 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A99152316F for ; Sun, 28 Aug 2022 06:26:52 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id m16so7097811wru.9 for ; Sun, 28 Aug 2022 06:26:52 -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=6FoOZUofj+DPKoTc01frTXq9MERyLJu+7sHRBJl/pmY=; b=z8eenFYJu0Djjvy/BgO44Ndx/fM7y9cGQjn3vVNoj0FNlilwchiJyBoMFd80eRV1R9 XNjnZXoz+PUUWDKiM1XmvWDEy2CG2YFXU2x87I7n90HpnXr7+/0b+kOizqDxGZBT33Yf DV3+KHbse+BaAITxg2XPziH836xMPSxqrTjToS5tuLITXlTVNWHYaFU0UHaRMjHTM+qH Or/l6UDFCD7l5N1y93WAq9aZ+TWt2OXC8WpCjFUoqmEkDbNcUATyPKoa0OD2vWzPFh7x t2QaOhpfkitaGB5JxGJkl0cHt55xoONObyuFYWN8OOvzloXavNWZoH6flmmFyluz1i3M JQbg== 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=6FoOZUofj+DPKoTc01frTXq9MERyLJu+7sHRBJl/pmY=; b=VvnGT4g71nNRuvXMLNyp37k2u33l64S4JW5C+a11zFQ3fIWh4FwGA+2DRr6mq907yr oA9hX38L1rOL7gEdY6qYR8SqrCP3JLnJjzbGMIc8N5bPLmKlw1hMdB0YwkJQ8RboRK+e kyAxReByPpl/A6y3at025h/U5HS1uRGVlL5CBuFhVfpuLmGAXLRjUI+qiDN5/LwdWJr6 jE04hAfGETAvSZMGw9cizseEgOLVoEH/VibvWKYkLLq/e6LKLWqw24+VLclqQHP37ohu 8+Uc4YevMpLJpB3oQRwv6linABruVuxDwyqFGnbiMSiBhxz0gIAhKHz+JdyFOElVj9aK qEwA== X-Gm-Message-State: ACgBeo24C4BWXim03f5EBa3GyMgVtGQCY6Q5faOiIa0SgasrhJTL/eDm OX43BgpbYXk4tNdDUaxz0ewrgDe9I76m7Q== X-Google-Smtp-Source: AA6agR76UTD4PdeIWm/3rHU2rNZXL2mvUtcRqh1P2PcmqiR8USZFWaDqZzk+NtHS7FZqwgSYI8FAcg== X-Received: by 2002:a05:6000:1acb:b0:225:6f9d:37ee with SMTP id i11-20020a0560001acb00b002256f9d37eemr4334134wry.170.1661693211269; Sun, 28 Aug 2022 06:26:51 -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 e15-20020adffc4f000000b0021e51c039c5sm4518874wrs.80.2022.08.28.06.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 06:26:50 -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 v4 1/2] dt-bindings: mfd: qcom,spmi-pmic: Drop PWM reg dependency Date: Sun, 28 Aug 2022 14:26:47 +0100 Message-Id: <20220828132648.3624126-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220828132648.3624126-1-bryan.odonoghue@linaro.org> References: <20220828132648.3624126-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 Reviewed-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 Sun Aug 28 13:26:48 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: 600900 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 5D71CC54EE9 for ; Sun, 28 Aug 2022 13:26:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbiH1N04 (ORCPT ); Sun, 28 Aug 2022 09:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiH1N0z (ORCPT ); Sun, 28 Aug 2022 09:26:55 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB0902317D for ; Sun, 28 Aug 2022 06:26:53 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id m16so7097841wru.9 for ; Sun, 28 Aug 2022 06:26:53 -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=HykuBI5xToy8Y53SKmj40eGehy+Koxti7iT6gLB1tdA=; b=M/1MAcG0vd9sz6JaXtzdg6XQbvI7tsLlL9g8POBwJLGJ3/p3Rkfh4DbUafZBYH+GhV qc8ebq3N9qtUNXSorYXKDkErMIvlQwU8BjcZd8gB6u125K0ZTFyU8bCAdOECZNDIbC0r hWWiytfoZO6kv9OBH9+mRtWHF0/CBuc58o8NGbaO0RtP0VhmYsNmdppVEbANIwSAC60p /7viAoOaSDcNUAGxUC7XPwsF3H5QYjxjh0+WQR5hDBZpI1pVcJfEDYAWjxh+oUpRC5ia Kbt22IenSXjJRk58Qk3AGTk7MlxVkEMH7yu3gzny9UyNiSvm5isaBYOkpxbf0z/AgDJf Ebjw== 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=HykuBI5xToy8Y53SKmj40eGehy+Koxti7iT6gLB1tdA=; b=eEpaMHKWqQ3fwCDgjyt7SIRh0vYuUVX8axRP2bgW6LE+YZ1HFpbk0ISq19ocX+U5hZ tkamZ12wyxOf72wh3sCr9aStgW2sXTpQe6UbaE7fIMBGAyVcRa3aJkbmQErANHWZ/ek4 jXMagECXAk0dXIWqyvEvHRiR4nspuyQ/tf2V/S3RLr+7cNdw2auA4TSzPHjCQSOGNkUp 6N6YWwRNDw8et2FpSJsJORwgqPRqfKRXsOFVXJ9QAHg6fkmlthBNmDiJNlkPu2fR8A0Q CrTJsck5SbuP1j2hhpXcpLaJOS+q/VlP1QI8ySUT4FJ2apCaltWfa5skFjQVQwG1MrX5 2Ueg== X-Gm-Message-State: ACgBeo0MJGxYDGYCMvrXfJY0u48ca8ahLxasxLWjKbFpYudFzAKy1Tc8 O87W4G0V/+dZWWjSC5OJcb/c7A== X-Google-Smtp-Source: AA6agR6wfDx5Dx75+UCCPwrelranCdATSrJjyrrP8Kcu/Lapl7ybNJdIWHISMO1xjaaWGEGQIXG53A== X-Received: by 2002:a5d:60cf:0:b0:225:8a17:fe1 with SMTP id x15-20020a5d60cf000000b002258a170fe1mr4153042wrt.490.1661693212262; Sun, 28 Aug 2022 06:26:52 -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 e15-20020adffc4f000000b0021e51c039c5sm4518874wrs.80.2022.08.28.06.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 06:26:51 -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 v4 2/2] arm64: dts: qcom: pm8350c: Drop PWM reg declaration Date: Sun, 28 Aug 2022 14:26:48 +0100 Message-Id: <20220828132648.3624126-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220828132648.3624126-1-bryan.odonoghue@linaro.org> References: <20220828132648.3624126-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") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- 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"; };