From patchwork Mon Mar 20 13:57:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 72172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1237340wrt; Mon, 20 Mar 2023 07:08:23 -0700 (PDT) X-Google-Smtp-Source: AK7set/bNOyNjRwLD8I4AzHpWH9OIYKEKm/srSZZUYty87TnJ/XEntfOsCO23g65bwZmXA3uW7l8 X-Received: by 2002:a92:cc01:0:b0:315:503c:ca4e with SMTP id s1-20020a92cc01000000b00315503cca4emr5774401ilp.17.1679321303258; Mon, 20 Mar 2023 07:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679321303; cv=none; d=google.com; s=arc-20160816; b=Iuyxr7R6q8STZ4V6OGey5fNFQnXNR+ipCNy6NMClbfR7ck0dg57aZ9ITaOQsvlK3Fz h0bpqCE7cxVuj/M7IBPMW6kOKyBibeexUv/LC7u8F6+VA35mkjKGDO+3+K6BANM/Z4rc oHIzqOyclI74igYgAMYERNECSYQ0n4W1cG442hsEBHnDUY0qiWDhu3CCUZsPK1Yz8xH4 Ro72NSrxEnpyi77c0iXlozObFKS8oAnm9HvSSWcCnXFrMICGqWIG5JBcaj0/ZPDQ239J 9sRSoHucC6WiCg9zEIJ5V164Zvp77wtsMGiOeuKNGoqMCoUJgq11BcNh0aoebdVcpFzJ HbPA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yXFoo3SAkU9IqsI27ntbRDrI++76Sprtvyx0NII6OrI=; b=SaM2/G+3646y1AX93+dSou+3vsDVO42rYB7z5gJiIR00Sw9GGhjhDwkJsbDHUH85+N 6APSu2n4iOUvQhq4GuE7u1DU8AtWnVblV7poYP4h4Iw6UteHJ1Kl0HXonZa1mDJN8vu8 0nR9V8k53mGCGsVP3pi4eia2i62Johj4bFIhw7c8FmXXhI6NiL2sOV3Cp8J0JFrxYNT0 VAm190h59UOAnWZw5cXYpN2c4EJHj9aCPHJH20nJUpPY7da19SJUuhfgaieyX7ELuHtr WDTSyAdGnloJnWlqN/gSdW3a/8EWQx5PP/WW8iO3NLyeYdbid7/leGsMxoKvjkDanoGu voFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YM8ovJ9B; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020a927606000000b003193a6d1c7dsi8302112ilc.102.2023.03.20.07.08.07; Mon, 20 Mar 2023 07:08:23 -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=@kernel.org header.s=k20201202 header.b=YM8ovJ9B; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231614AbjCTN44 (ORCPT + 99 others); Mon, 20 Mar 2023 09:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231691AbjCTN4Z (ORCPT ); Mon, 20 Mar 2023 09:56:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C053BDF0; Mon, 20 Mar 2023 06:55:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D4CF6B80E97; Mon, 20 Mar 2023 13:55:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 742D3C4339B; Mon, 20 Mar 2023 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679320556; bh=C1Qh/WWAaSUHP1prYGquNRNsLHTSbT09WNuA4Tp6dX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YM8ovJ9BCFM9YRI7fD52jsnPiQWlsiY2ma5zgSTUGycS5JNHIlAhTvKUpkgJPc91q 9TGcf9UIThGTLh3ZsSwT1NNVUkeiRV+YUcxFo2UiRXVcV3XqFrgqs6jhfMLZrZLtHF x4ofq2gl0zt3Tm/2CfpFgE8jzAE92Jv+Ckw046UmlFzZ0pqA0NqrHy86bYHfupKaGU AoI5XbwntL8u94f0Ovk0RYw7mI2RqoNFYBZj0qWQwfo0p1ah2zNZyk83JiGL7AMCXy k36UD+xVTBPypDgKhiKjSQjE4g18qks9wmfpbkeU9fE/ymN3aswZuErLbOcJ3jCiCq BEgaJsMaYzbUg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1peG0j-0000WR-OP; Mon, 20 Mar 2023 14:57:17 +0100 From: Johan Hovold To: Bjorn Andersson , Lee Jones , Srinivas Kandagatla Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 1/3] dt-bindings: nvmem: qcom,spmi-sdam: fix example 'reg' property Date: Mon, 20 Mar 2023 14:57:08 +0100 Message-Id: <20230320135710.1989-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230320135710.1989-1-johan+linaro@kernel.org> References: <20230320135710.1989-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760896014890789928?= X-GMAIL-MSGID: =?utf-8?q?1760896014890789928?= The SPMI PMIC register region width is fixed and should not be encoded in the devicetree. Amend the example with a parent pmic node with the expected '#address-cells' and '#size-cells' and fix up the 'reg' property. Fixes: 9664a6b54c57 ("dt-bindings: nvmem: add binding for QTI SPMI SDAM") Signed-off-by: Johan Hovold Reviewed-by: Krzysztof Kozlowski --- .../bindings/nvmem/qcom,spmi-sdam.yaml | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml b/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml index e08504ef3b6e..4702f10ecca2 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml @@ -42,17 +42,22 @@ unevaluatedProperties: false examples: - | - sdam_1: nvram@b000 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "qcom,spmi-sdam"; - reg = <0xb000 0x100>; - ranges = <0 0xb000 0x100>; - - /* Data cells */ - restart_reason: restart@50 { - reg = <0x50 0x1>; - bits = <6 2>; - }; - }; + pmic { + #address-cells = <1>; + #size-cells = <0>; + + sdam_1: nvram@b000 { + compatible = "qcom,spmi-sdam"; + reg = <0xb000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xb000 0x100>; + + /* Data cells */ + restart_reason: restart@50 { + reg = <0x50 0x1>; + bits = <6 2>; + }; + }; + }; ... From patchwork Mon Mar 20 13:57:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 72174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1240782wrt; Mon, 20 Mar 2023 07:14:26 -0700 (PDT) X-Google-Smtp-Source: AK7set8Uv0obG4phcsiC7QRsChAxNLbqsrlB7cK/jwNT6RT/wAUfNzU2OPgi3N7rLkRAe8AKchcQ X-Received: by 2002:a05:6a21:328b:b0:d9:ad20:c97d with SMTP id yt11-20020a056a21328b00b000d9ad20c97dmr3587726pzb.20.1679321666545; Mon, 20 Mar 2023 07:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679321666; cv=none; d=google.com; s=arc-20160816; b=oE4MR6hS0Aa2tehyqQOFjDPXdaIid7bfbbVbA3I2BQnLaoN31rO1FzYPm1zFvdS4Eu YsVxzthV35ti42AQZz1HtNRhk7uAYZd2IoPovhrzhu6TW5bVVRYK+VeX5deopLfXU2jT vO9NO2wk5OlTc+Tzswk8fJNj7GQkBnCeRs2NDXvqKmX3OCuTS6usU0PhRVJkrBTl5UW2 FeXupYj1Gvq4b6DQzaF1nyi0UwcA7vh+nYBRtlXjhUTkKQlrPCw/nFoSP0ynkjEszc/k pwIyP/iMyOXKDw7TsTYnPeamNs0WXuNs8CvE3aRxlfqbh5ZgszkldWxZ/4Anrrjtb62l UR4w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uqJIsCLdcxsDvu9/76I4LWpadiXNjC12sw0ppkuugG4=; b=r7Q3AsqzknQ+ttsY/sD1ucKtuXF0F+OvBSy8C1C5gUlwH2wqX3ncSHIecUbkjUqrMv N9eLunGpHn5r6cRuBBmfJXMZXQBA/oGHNUA0gRE/wVRwW+e1grcjMN0dTgv9nwuRaHDg CAMIOPnGzUif0xbwB1zFhJTWwCim3JyxFlRi31YwEUzRHqNfBcHUpyxHxpPPpOdMCz9L SPCwZczYbYXEAk7/6tdMnPBq8W0OdBPLrBCmcqFAu2zTgQTqoiroIF2PD05qWG12bMh8 qIN+fXm2l/GrVK4O4azGAzexJdoS6xgIkpoLwV9rFBsr5RMwox1M+o11RsIssc6sbGSE Xjmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kp1rXR92; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j70-20020a638b49000000b004fbc70b72cesi10816822pge.771.2023.03.20.07.14.03; Mon, 20 Mar 2023 07:14:26 -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=@kernel.org header.s=k20201202 header.b=Kp1rXR92; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231537AbjCTN4q (ORCPT + 99 others); Mon, 20 Mar 2023 09:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231680AbjCTN4Z (ORCPT ); Mon, 20 Mar 2023 09:56:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73CA613501; Mon, 20 Mar 2023 06:55:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1824E6151C; Mon, 20 Mar 2023 13:55:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BD45C433EF; Mon, 20 Mar 2023 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679320556; bh=wc3FoLvFgLDkOgN7gxHKEwm4JJ7/VP0SV4GEWDLU+TU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kp1rXR92DwaNGamGVlJ5BA0l4VTVEUJo5h8XtXWuNyt1UjKof2mnkfEFScjfMRHl5 nd9UbqNHsGuJGIBalp3Yr6AGzsdKUnF8VGRjSYA4JDOVdQMuI6sx/6cme6EEbHQf7t qWEK51be3jcK5BMorqyaYtG856SOhkXNz4AZnWHvr8S0dwnQfu6TOp1RL1DM0neXOF RFSDlrjVAzSzYPbXiTykloQkH3auezR6iGrDQ0WRpGe+L+GQMfJ0+NBmsWwWWZAu9l BQHvqnmq5zfW+22mrsG3vHx1Q3ukNqoiRoWeh4Lcqd5GeKf99wT0muiIzvREbcCRMM GdBZyRmlbUfyQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1peG0j-0000WT-R5; Mon, 20 Mar 2023 14:57:17 +0100 From: Johan Hovold To: Bjorn Andersson , Lee Jones , Srinivas Kandagatla Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/3] arm64: dts: qcom: sc8280xp-pmics: fix sdam 'reg' property Date: Mon, 20 Mar 2023 14:57:09 +0100 Message-Id: <20230320135710.1989-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230320135710.1989-1-johan+linaro@kernel.org> References: <20230320135710.1989-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760896175719932750?= X-GMAIL-MSGID: =?utf-8?q?1760896395375007308?= The SPMI PMIC register region width is fixed and should not be encoded in the devicetree. Fixes: 42f45cc655d0 ("arm64: dts: qcom: sc8280xp-pmics: add pmk8280 sdam nvram") Signed-off-by: Johan Hovold Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 1411edd42b25..c35e7f6bd657 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -107,7 +107,7 @@ pmk8280_rtc: rtc@6100 { pmk8280_sdam_6: nvram@8500 { compatible = "qcom,spmi-sdam"; - reg = <0x8500 0x100>; + reg = <0x8500>; #address-cells = <1>; #size-cells = <1>; ranges = <0 0x8500 0x100>; From patchwork Mon Mar 20 13:57:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 72177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1241130wrt; Mon, 20 Mar 2023 07:14:57 -0700 (PDT) X-Google-Smtp-Source: AK7set9goTH4YtRcEFIE9FWrQWqdTL+6GEV+u6sAEG4rLvyLYz34IaAhaoGBlFzOzEk5F75Iulsm X-Received: by 2002:a17:903:1247:b0:1a0:5d0b:c31e with SMTP id u7-20020a170903124700b001a05d0bc31emr22824968plh.44.1679321697296; Mon, 20 Mar 2023 07:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679321697; cv=none; d=google.com; s=arc-20160816; b=Rc9LuWERb0WmLAhZS5hb/82oTJoPS5+vPkE/4GtHI19KM6TqCJ3zCyGcaFEeq4eUim hY0vIucWgQrdBFKGXHlDTFvnC/MC7Xdrv4oEynmLV7sSxTCH1CQGR6iKhJwj5zm1JB8T mFkuvHoF42RT4eJN2KXIEh8KF6tGYAXG8VRo12Bm8IPGfSM1NAa1wqfiTNRaxPEMeMEP YxZzV6Vl9DEC+NCiuwaVrXlTUt7JAwixxKo74GydlefrbUuaJlYiHcTF2Qm0RU+60tdL hXP2rNjLOZARWhpjcWra57sXO0oh/5ozd1HjXXIyhib4+Y+UZBJoom4kzesHpZ7X749u aZAg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+h+Ws9rwXVKSKYAsHn1OgDt3dVndA13jiO9Ds2JJHA8=; b=0jjeV6C2MIuXPOz44WipfQPU2a3cD2TFJ8sZDdqARw9CP7eWne5StgkZVnd2WQl0ef mTP3veDKgxs31jJJRNvh2dek5caKAzLgZ+HHFpB3QdKjmAZX88P5v4/dZI5W/L0VSjUa jQ/boPiSk4U1S9+G1oG2+A2DqwFYM1rfwpnvbjb6FgsR4n0NCX3mL2yJQSByGf5afjQs 3cTaW9ipwzaoeQa9yNaTUT1WGYvLRIMESTk3HPkKNZNiohsu53ZD32J6w4iFBJYIkJak M+jTC3v1X29/+Rbi3/H33GkcHwCAnCQOMfhc38C10wVZ/CTagyIUFmsdZq6JEAJo59+1 MWYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UKMeh3bz; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a170902c94100b001926e41c963si11358948pla.31.2023.03.20.07.14.37; Mon, 20 Mar 2023 07:14:57 -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=@kernel.org header.s=k20201202 header.b=UKMeh3bz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbjCTN4w (ORCPT + 99 others); Mon, 20 Mar 2023 09:56:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231687AbjCTN4Z (ORCPT ); Mon, 20 Mar 2023 09:56:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F07DC6599; Mon, 20 Mar 2023 06:55:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B63DEB80E60; Mon, 20 Mar 2023 13:55:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70D80C4339C; Mon, 20 Mar 2023 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679320556; bh=Xmx9cDTJ2FJFqZIA9L7awuTit5u1PEZ+i+E1WB2uprU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UKMeh3bzCHGmkKUiGsETglxA/nv+zNPZLPsn8hruDWim7DTQNQXKretgvhRyrvTeR XOQ21hHi9NAp7wSVFZ7MXbnFUT1b0S0O80nhjENQ+DWOB49QC+s6Fx5CT8x28pUaDy M+1W0TK79yHHe1gjuH0dNdUQgAFLQlzuVEiV5wieT0dEYK3PrhXMhCGq+DcM5+hMNU 4KMQs1K4TybJjl1jE3M5/ICIJyHysTGl5gDLjx6uiTt5S6clOKRJyCQCwXTSRUsBXs Mzb/cetWklS1I8cQPga370ekXkNLq3XaLy8kvnV1/4ZBJs2hlbYnqFRJFilLVdOcuS EfxvwOSL/1lPg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1peG0j-0000WV-UC; Mon, 20 Mar 2023 14:57:17 +0100 From: Johan Hovold To: Bjorn Andersson , Lee Jones , Srinivas Kandagatla Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 3/3] dt-bindings: mfd: qcom,spmi-pmic: add nvram function Date: Mon, 20 Mar 2023 14:57:10 +0100 Message-Id: <20230320135710.1989-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230320135710.1989-1-johan+linaro@kernel.org> References: <20230320135710.1989-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760896427819255458?= X-GMAIL-MSGID: =?utf-8?q?1760896427819255458?= Add an 'nvram' pattern property and a reference to the corresponding SDAM DT schema. Signed-off-by: Johan Hovold Reviewed-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index adf88245c409..05bf0d76bf5f 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -135,6 +135,10 @@ patternProperties: type: object $ref: /schemas/pinctrl/qcom,pmic-gpio.yaml# + "^nvram@[0-9a-f]+$": + type: object + $ref: /schemas/nvmem/qcom,spmi-sdam.yaml# + "pon@[0-9a-f]+$": type: object $ref: /schemas/power/reset/qcom,pon.yaml#