Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3431075ybb; Tue, 31 Mar 2020 05:15:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuNts5MuUitFCPDiuD+TYSca56A4+85yE8qOMD+FMRsrkLXvZR7omh7OadIOCECowBzZ5Nr X-Received: by 2002:a9d:7f05:: with SMTP id j5mr13099013otq.312.1585656908523; Tue, 31 Mar 2020 05:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585656908; cv=none; d=google.com; s=arc-20160816; b=MZVhL/PBvirH2kW2QPwztxgtBTghfnXaga9Xs3hsFYRD6MIHi1qc8q95tQL/IGqiD5 WM64horX29nIklIdCcwLyyon3KiRRqyL4t68JcqYb8/UaTahbYpbsz0Df/a7nLysC0Jb X4fDh+46OTIpBfhbMXo6xPEmEstY3OY38NGDej/tlADgRzCq8ZnbSuRcoL65FrbnXvBq sFDy9uxdopi7fKfCWJJ/xVeU+ild281evpRX7G+WSvs8qY0KyXzm+Lwltf6L1gHrl++t ZE2v1qx9Xsh/4HnA94e8+ulVQw4mkdcYKOo5fgud4r/sS/Yfk+FnZTxoDoXpfCQzV7LD H/eg== 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=RaTwRr96LXp/hTXZkNHh+ephRC8ostasbFPkQNr4Hb8=; b=lCSGH2EkUDNl0HWqXMcHRV3Uri43bry4gQ06+R9OjORbFbwhQidB2nnT+x6MJtVmMR 4jfkIDRXwYasJ+cNA8sKB6f/HTWb+XBFcNsclL9lCaueQc9KzjuwPkDhtxmxiqSPzaXo L6DHB/fSQ1opa7nA/lxiAnuGOS6W7/C2a9XDSl/W416xAuiX2RAhcbPaHhhQHt93LkfJ o8wGHT0Zm4ibsgFID1u4LkQp8s75rEfRtUmCR/lzKZ/bpyJi09hM2PKtyhwi56u1EIcm SL4HjIAY3hfNjPyNjlchikvvcOakGelflw345Fd8Ki4HHR3SlhoV/JAowMC1WECcuMzh dv+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rgtwhkzG; 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 d185si7034398oif.234.2020.03.31.05.14.56; Tue, 31 Mar 2020 05:15:08 -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=rgtwhkzG; 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 S1730616AbgCaMOC (ORCPT + 99 others); Tue, 31 Mar 2020 08:14:02 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41360 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729483AbgCaMOC (ORCPT ); Tue, 31 Mar 2020 08:14:02 -0400 Received: by mail-wr1-f67.google.com with SMTP id h9so25589516wrc.8; Tue, 31 Mar 2020 05:14:00 -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=RaTwRr96LXp/hTXZkNHh+ephRC8ostasbFPkQNr4Hb8=; b=rgtwhkzGGRUXYxeH5bHrhNHBc+JNY4l8GMVg4YFEl5L/oeNrTK+SSQvLvLYuMs0BHU /pDfG/JQYKRApYpuFaeQy9dioDlkxtTiqMM1RHkwJs5DUoEAKpq1nHUD+2Eg622wyGqu KUUvLmJc8kAcsQl9D51OEqcaVKE6WU1Ie3+r9DhE+wJabKtrCaAaEXEk1KAaLNpIMnKc LkNokC22Zxi2QcQxaDKXzQJfzK0ls+pE2UY5xuRCNmULNT4TvWajX6TiB/dO4bSyGxdd FgAhD2+fcm+3CyUmxIYmRGemPJialzqSLq4ZUZ5K3SE8RZfeKzLFCUSPIIMFH6f75se3 3pMw== 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=RaTwRr96LXp/hTXZkNHh+ephRC8ostasbFPkQNr4Hb8=; b=iVUlDg6+EjjNt230mWN2wyAuxrWtav3eIZkZH3W3Oh9RS5htTp+nv3wzMyiLQqmHH9 9MCSVFi3QSwrTPKwHbtRm7YicxIWUZX5Uh6m80SVbU5B9LWlzhajMoA6KJKXV1BxogaA sApSsqywWquq2/IGRCMEw5RyjMSd1R8ULgrLCtRP7j0aBMm4feM0XIOii7kHqeuWlV6g KKMljuOGgmx3XM5u+76ZydhwbA1g6PHGyMbLgPLXfW2j9qS+zLUpUgL3ScsQVQEMsanj mn19U+01bw2pTZ3myiSNQWtxfuziVEwlb/zkj3fo+wtkyfOECKHeMzV1T69SGv+cwh2m aLNw== X-Gm-Message-State: ANhLgQ0AACyB8sIeX4P+o3++C8Y5XpGGA46aYGxb2X1lCDLbYFIZAhHt crs7rmmlCTZhbQcmsa7bvbs= X-Received: by 2002:adf:b1d8:: with SMTP id r24mr20580572wra.266.1585656839738; Tue, 31 Mar 2020 05:13:59 -0700 (PDT) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 127sm3754936wmd.38.2020.03.31.05.13.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2020 05:13:59 -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 v3 1/2] dt-bindings: sram: convert rockchip-pmu-sram bindings to yaml Date: Tue, 31 Mar 2020 14:13:51 +0200 Message-Id: <20200331121352.3825-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. Changes v3: Document the compatible Changed v2: Merge with sram.yaml --- .../devicetree/bindings/sram/rockchip-pmu-sram.txt | 16 ---------------- Documentation/devicetree/bindings/sram/sram.yaml | 14 ++++++++++++++ 2 files changed, 14 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..605eb1460 100644 --- a/Documentation/devicetree/bindings/sram/sram.yaml +++ b/Documentation/devicetree/bindings/sram/sram.yaml @@ -29,6 +29,7 @@ properties: enum: - mmio-sram - atmel,sama5d2-securam + - rockchip,rk3288-pmu-sram reg: maxItems: 1 @@ -224,6 +225,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