Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1065896ybb; Wed, 25 Mar 2020 15:06:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtw5SJh8yhiuJA4YaSVNSHe0LVb1XuFOFL+8S2gXV+EHLjaoV/clyQP2RlvouZqIyVV9Pnf X-Received: by 2002:aca:4a56:: with SMTP id x83mr4273192oia.166.1585174009778; Wed, 25 Mar 2020 15:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585174009; cv=none; d=google.com; s=arc-20160816; b=T+X/M2A6bNV8EMJ8dF+BMavjRQ/SsuGkhZaTelg/KzEX8MsDIPLe3H2VS60WHQGzEy Qz1MMlobDNNPZoakAjeFrKdfw2gIPwWBSGkE0IDTVREkZwc7AZT7YXaa+fPoS7+0KFGs D+0wpd8V8/vAKWfsitE+5Q8xjSssfwNBG0VzJbMk+DrMDEQIZpOKQsPDXPIsRJonZBR7 RkOBGH+kIQf53wuUs3o6+GB6MgvD8Gl7rTKfV4cqHKObEIoueOBHfYRrdmhC303YBsmx eHIunAJ8nXya1JR+10dMQ25CY79VEvZVdY+R/VzQd8Ljwwkp0hLKmrZe/meqrZ4Wdz/G WIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AwF7FEOUbNvNk4mSehe5GSFcN0+uDrOJWlHbrUm2jl4=; b=XjVNYnLFvfW887EPfgmnrmv7uFIULeW1nCyjUOYjapwT35dHobhB1A8djFl2JOHPcW vuJH6K0zoB/xq1Kc1cjIDY9rv2tsnAm9a+nZvDXlGPJJEzvN9KLvs0CmGt+9inw4CBb5 Dsug+SjGBQqEhlwTUZGaY/1L4aWbDsl0bchOOoCzDZ2KE0fn7eojGgzSanmGG2FS3y+v Y0rDLanGKZeyKAqcVdXfk6BErkE7Ww7U40lugQDDysYiDe5N4MuF73LnJU9B6Ra/OUBy 9DZ+cYYVSeMhIdZJ27p5a+MlXlL5E+O5E6k/AjgKHvrQr+piHEDGyCbGNxgL2EmiW6Ro duCw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si204589oto.169.2020.03.25.15.06.37; Wed, 25 Mar 2020 15:06:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbgCYWFw (ORCPT + 99 others); Wed, 25 Mar 2020 18:05:52 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:44182 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbgCYWFt (ORCPT ); Wed, 25 Mar 2020 18:05:49 -0400 Received: by mail-io1-f67.google.com with SMTP id v3so3947013iot.11; Wed, 25 Mar 2020 15:05:49 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=AwF7FEOUbNvNk4mSehe5GSFcN0+uDrOJWlHbrUm2jl4=; b=pxv7G0herYnThW09pyD7DYp4RI8JVvu7jYaN33KTOuLgkNv+3/nMj0yJ5veHQCt39N oDt7O7mDwcObu8qZy6LIVkkkc98wzRAwclrDNQ0e1bqwWdaYKs6iJMb8tIhBXX+D9BeI J2r2cmU5dIxAAU+eq3tlPrW3Y31VbwcF5MDwOUeZc4Th/RyWXQSSYlJYUajbxNOwoNIh G4xolGeHUDw9cXUOZ0FQsV1XIhx4zXdwXsHEHKJv+yUPe3PTTkyCVZd7rM/jPw68Pq4X 9Urp2XjESJfCe7EHqB97Yfo+LysGH/euyVK9k1cGPiHcF9Ze2VZP+ShSkNaE5WOfhIlo D4aQ== X-Gm-Message-State: ANhLgQ3QQ76rZ5PNb2Rue3g92sfGo/nu+Ag6kvksZtiOPKWlZXGBnviL +mUCAeUwUoaJI40ikJuL5H2wBig= X-Received: by 2002:a5e:8214:: with SMTP id l20mr5055871iom.54.1585173948584; Wed, 25 Mar 2020 15:05:48 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.250]) by smtp.googlemail.com with ESMTPSA id v8sm102390ioh.40.2020.03.25.15.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 15:05:48 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Bartosz Golaszewski , Bjorn Andersson , Brian Masney , Daniel Lezcano , "David S. Miller" , Guillaume La Roque , Hartmut Knaack , Jonathan Cameron , Kevin Hilman , Lars-Peter Clausen , Lee Jones , Liam Girdwood , Linus Walleij , Mark Brown , Masahiro Yamada , Mauro Carvalho Chehab , Michael Hennerich , Neil Armstrong , Peter Meerwald-Stadler , Stephen Boyd , Thomas Gleixner , Zhang Rui , dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, linux-pm@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 2/4] dt-bindings: sram: qcom: Clean-up 'ranges' and child node names Date: Wed, 25 Mar 2020 16:05:39 -0600 Message-Id: <20200325220542.19189-3-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200325220542.19189-1-robh@kernel.org> References: <20200325220542.19189-1-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The regex for child nodes doesn't match the example. This wasn't flagged with 'additionalProperties: false' missing. The child node schema was also incorrect with 'ranges' property as it applies to child nodes and should be moved up to the parent node. Fixes: 957fd69d396b ("dt-bindings: soc: qcom: add On Chip MEMory (OCMEM) bindings") Cc: Brian Masney Cc: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/sram/qcom,ocmem.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml index 222990f9923c..469cec133647 100644 --- a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml @@ -43,6 +43,9 @@ properties: '#size-cells': const: 1 + ranges: + maxItems: 1 + required: - compatible - reg @@ -51,9 +54,10 @@ required: - clock-names - '#address-cells' - '#size-cells' + - ranges patternProperties: - "^.+-sram$": + "-sram@[0-9a-f]+$": type: object description: A region of reserved memory. @@ -61,12 +65,8 @@ patternProperties: reg: maxItems: 1 - ranges: - maxItems: 1 - required: - reg - - ranges examples: - | @@ -88,9 +88,9 @@ examples: #address-cells = <1>; #size-cells = <1>; + ranges = <0 0xfec00000 0x100000>; gmu-sram@0 { reg = <0x0 0x100000>; - ranges = <0 0 0xfec00000 0x100000>; }; }; -- 2.20.1