Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp815032ybg; Thu, 19 Mar 2020 09:13:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtLYg6evNh3uDs6d6pl8Lcr9tWYNK7F/gxyo4c6mhUiqi5juER6XSmmCkEOLdisuLifQvRb X-Received: by 2002:aca:adc7:: with SMTP id w190mr2986260oie.42.1584634418449; Thu, 19 Mar 2020 09:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584634418; cv=none; d=google.com; s=arc-20160816; b=YKHfq7LLByBbeFUi6c1RrMOhJtnlM1QUEynebBVdjYEd5gmATvguvmcc/YQzKDzbSi jBK3qCbxtlG5eJu1zDllXJLCrvwN58VHRC77CUZNlCGsG4WuzZ/fiWo3KfbhTkYt20XB 2MQqzBDgw4koSjKgJRjJifhmphg2BNkVToQbGhIcxr06h88RRtvKXEbqBbBDvgk2iCsD ETzNsiVN2oamz+VMlu+PMW/EpGpmLaBO5wMWFxa7MfXUFixMyWZK09zFAGGcatiniyGD u+YmEN8m1FpO6hDzlrvk0HqKTWCFM4g4EbMFbTngQWD1VP4jNHMd3rQh5e3xCU3D2Wa+ N2og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kcI9L10AVu3IFfDLlq7fYdN8ePr2Q+2h97GxsvZx3J0=; b=d0RotKzMYWACnco04t/qdzc9gJeXMyBwdQYvG7Q21qxJRhLhVFsueOYiac086+gSWs bxDfphWP72FT+4MkiIb759xpwpDcfpPokKDwjS8NgAqcTzythqpi6w2TE85KwSVp/Ssz gDPg0YIbqNGisMfq9tCMlY4BuB12HzU3wLhr3sW+xiBOElT7eQYn6j6q0SHAxGj5x6Yh vCosWTk8e+xCOPkPrw0BdBDm5+aSpy/11QEsPyXhpJAG5dPEn7q+fPQ9c4fROb5v5T4f nH/f2dUD0idgbrRtJBlfq2GzypyQUwBmf7VK20w7umRfPPfjx8wLV/DybBIiY048cab6 RRYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OAfJ6Cb3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si1510513otn.37.2020.03.19.09.13.23; Thu, 19 Mar 2020 09:13:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OAfJ6Cb3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728198AbgCSQMM (ORCPT + 99 others); Thu, 19 Mar 2020 12:12:12 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38033 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbgCSQMK (ORCPT ); Thu, 19 Mar 2020 12:12:10 -0400 Received: by mail-wm1-f65.google.com with SMTP id l20so2984961wmi.3; Thu, 19 Mar 2020 09:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=kcI9L10AVu3IFfDLlq7fYdN8ePr2Q+2h97GxsvZx3J0=; b=OAfJ6Cb3Q7fO4i8JHLbUWXZbGL9oGZ25fAszYa+CqeczsxwpIpylMDlEaAE3/6thJw KDRToGk8bkf4r6chrw1GbZXwv1UPYsxCBC+WIDQhNV4VNFn6bWcI0joUFSxwznheJPCg lxP0P/PWJiwSO2nMZL6FVLSU9KUopelr5zs871Yi9UHdL5tlvPnYh7KgRnh3EM+2SkVn itx45pb22aoykPkRDFoX1u728LHpvSdtwnjYuY2Zf0+IEe+xE+Nym0hoy0weKmpxdtLX KSooY/ODYEwZSNZQl24hdoaGVkigEYOPDppGJv2vGS3gNqp1WJ2az5SO3s7y1pUkXnVo y/tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kcI9L10AVu3IFfDLlq7fYdN8ePr2Q+2h97GxsvZx3J0=; b=a3S7L5jQBHtXNUnH2rE2oZ6HkxzuJG8xOv84najdp0QzM4TX59eH49mAXZ/vflvzl9 +ZMBrY3humE02/EsBM2yrZv+mjCZRLf5HldRACI/UoQtPTchVzcKlN34RdvdiBk2tHzq 9xqslHUqAFVeecJzIJkTZe7V4XOvSfls8LUM4GL6y6R5i8iLo53JfuO0aljJY+zVLgbZ VRpW6xfpy5eHWi7NZzpLlHq9UMoxAxMLsXgV9esUBqM2Af4bkZlkbm5DGJrH//WvG1T+ g6YuJeF5ykymoB174OC0tx4yjjdUrgZpwaeLOgSQwMi6zSF46t2uHaxOaHV5Hzsjk+o8 WmmQ== X-Gm-Message-State: ANhLgQ3Bk6BPrZjX/dy0hKmjS6ghJqWtQae2pC0eMaNoFpEkWj2RFdFI kwUZXcw7wnnTz9/tE/V0eWg= X-Received: by 2002:a05:600c:210d:: with SMTP id u13mr4718627wml.92.1584634327036; Thu, 19 Mar 2020 09:12:07 -0700 (PDT) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w204sm3973485wma.1.2020.03.19.09.12.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2020 09:12:06 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2 1/2] dt-bindings: sram: convert rockchip-pmu-sram bindings to yaml Date: Thu, 19 Mar 2020 17:11:58 +0100 Message-Id: <20200319161159.24548-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current dts files with 'rockchip-pmu-sram' compatible nodes are now verified with sram.yaml, although the original text document still exists. Merge rockchip-pmu-sram.txt with sram.yaml by adding it as description with an example. Signed-off-by: Johan Jonker --- Not tested with hardware. Changed v2: Merge with sram.yaml --- .../devicetree/bindings/sram/rockchip-pmu-sram.txt | 16 ---------------- Documentation/devicetree/bindings/sram/sram.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sram/rockchip-pmu-sram.txt diff --git a/Documentation/devicetree/bindings/sram/rockchip-pmu-sram.txt b/Documentation/devicetree/bindings/sram/rockchip-pmu-sram.txt deleted file mode 100644 index 6b42fda30..000000000 --- a/Documentation/devicetree/bindings/sram/rockchip-pmu-sram.txt +++ /dev/null @@ -1,16 +0,0 @@ -Rockchip SRAM for pmu: ------------------------------- - -The sram of pmu is used to store the function of resume from maskrom(the 1st -level loader). This is a common use of the "pmu-sram" because it keeps power -even in low power states in the system. - -Required node properties: -- compatible : should be "rockchip,rk3288-pmu-sram" -- reg : physical base address and the size of the registers window - -Example: - sram@ff720000 { - compatible = "rockchip,rk3288-pmu-sram", "mmio-sram"; - reg = <0xff720000 0x1000>; - }; diff --git a/Documentation/devicetree/bindings/sram/sram.yaml b/Documentation/devicetree/bindings/sram/sram.yaml index 7b83cc6c9..a9b1c2b74 100644 --- a/Documentation/devicetree/bindings/sram/sram.yaml +++ b/Documentation/devicetree/bindings/sram/sram.yaml @@ -224,6 +224,19 @@ examples: }; - | + // Rockchip's rk3288 SoC uses the sram of pmu to store the function of + // resume from maskrom(the 1st level loader). This is a common use of + // the "pmu-sram" because it keeps power even in low power states + // in the system. + sram@ff720000 { + compatible = "rockchip,rk3288-pmu-sram", "mmio-sram"; + reg = <0xff720000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xff720000 0x1000>; + }; + + - | // Allwinner's A80 SoC uses part of the secure sram for hotplugging of the // primary core (cpu0). Once the core gets powered up it checks if a magic // value is set at a specific location. If it is then the BROM will jump -- 2.11.0