From patchwork Thu Jun 11 15:19:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 187809 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp1495922ilo; Thu, 11 Jun 2020 08:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgXe38yT2CpmdL1/Y5d7h8dFFZvnFtxziC7eArl3d5DUTQr0sJwAejs1YXq9ClXgepULiw X-Received: by 2002:a17:906:39a:: with SMTP id b26mr9229858eja.204.1591888774202; Thu, 11 Jun 2020 08:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591888774; cv=none; d=google.com; s=arc-20160816; b=wy2jWBudN6guwmnUg/ZeKgrkw+D5TlnMj6R2D9Elupu26nC5A3qvnHIiLUZcgCngq4 RyQajsJe89f2vo9xTAXG9YLHQYTe5tccRsWVBZYw5NJrC2sOkru7nV82KDqYO0EipThl 16ShvR7g5GVgilTqEG60GlGbrFdYLC2GSzq8seDyW2iZEWNbyFXM/pRK19rm0xkpJ2zo F6MF7+2aOJu+q8y5izmIJtcPJdDHl3Ld+xD+iHLc/136tXMyIcop92p3grJgi51WnSWw +9sucJU9E4Cgd2CiBisMR6WlqPvjxFparzBQGaG2/oXVFL+1c1ulO+/I0xW/wuIfbKDF CBTw== 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 :message-id:date:subject:cc:to:from; bh=Bzom5I0Qsx/lQuO9r3157DQxFx5Ipkb4zVlo1+AHki0=; b=LF5Z0DUzTMuxe2wkNVSK17u8aeana2cJfcoJxmIfHjPWwyu7ZsY+L/e5i9g6YusFwE 4eOkkchbfg4kkZrlr++1ZPfgvGYFo6XrISvbQg8TX5CTFmHawc40oRQna+0sGcYZvJSl TfB2Wt+dPZz7iV5dRuobLffZgZiEAw/Cw1ARe9JeN5z1elETXj74mux9xJUCaDw8a2Mu FT3w4fNYcJeQrFUIW3J/VmRV36kkINIQZFb2yCINV30NDQ75MU1Mm1L5zpxcdvQzae4s jLmgKNcaynmeaD0tzrUoSwNaPswUdVPuvoDSsdkeaquQLb4FhS1vs7jcjVNrQ6aG4uW6 2lew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si1468376edf.467.2020.06.11.08.19.34; Thu, 11 Jun 2020 08:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1728555AbgFKPTa (ORCPT + 9 others); Thu, 11 Jun 2020 11:19:30 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:42611 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728484AbgFKPT0 (ORCPT ); Thu, 11 Jun 2020 11:19:26 -0400 Received: by mail-il1-f196.google.com with SMTP id j19so1611700ilk.9; Thu, 11 Jun 2020 08:19:25 -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:mime-version :content-transfer-encoding; bh=Bzom5I0Qsx/lQuO9r3157DQxFx5Ipkb4zVlo1+AHki0=; b=NNeDxr0AecAkZ4HRa1nydSUAeXZNp9nkI/lhJMYPBp0FXYGc5aItTdWp67nEiRzSdE aLt0OFni0Lb068GbLSiN8CLBfae5JzsQgRmFPtJgY1qFjAKtxb/lClagJbtj12KImuTM t80SQt5HPYRmajZE2WKzERzgARVmQo8dSpFtDm7P0pjsqDVbV5JXUGBEsa01cq+lgmRY 01VOHxfincKZNe9LtFpFZQ8PfzpkWaYA6Lhw83JhyPomofFwizdjSi0f+FNmDW30R6+N GINPQIF9VnH8UufPBrumgrbLw9zGqrKbajupnuLRrXQ/vTO/MVTw6RdoZipeRj/LPd+s 1UkQ== X-Gm-Message-State: AOAM530YY+W/hzVth3mew2/XvdJ+WhjpKgh5X9NSUN3yleImE5iYPGRS ARviH/AT8Uv3Zd5gmVfgJ/Q0SEM= X-Received: by 2002:a05:6e02:e51:: with SMTP id l17mr8951200ilk.39.1591888764995; Thu, 11 Jun 2020 08:19:24 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.251]) by smtp.googlemail.com with ESMTPSA id c20sm1587533iot.33.2020.06.11.08.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 08:19:24 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Heiko_St=C3=BCbner?= , Ezequiel Garcia , Mauro Carvalho Chehab , Philipp Zabel , Miquel Raynal , Richard Weinberger , "David S. Miller" , Bjorn Andersson , Kishon Vijay Abraham I , Vinod Koul , Liam Girdwood , Mark Brown , linux-rockchip@lists.infradead.org, linux-media@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH] dt-bindings: Fix more incorrect 'reg' property sizes in examples Date: Thu, 11 Jun 2020 09:19:23 -0600 Message-Id: <20200611151923.1102796-1-robh@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The examples template is a 'simple-bus' with a size of 1 cell for had between 2 and 4 cells which really only errors on I2C or SPI type devices with a single cell. The easiest fix in most cases is to change the 'reg' property to 1 cell for address and size. Cc: "Heiko Stübner" Cc: Ezequiel Garcia Cc: Mauro Carvalho Chehab Cc: Philipp Zabel Cc: Miquel Raynal Cc: Richard Weinberger Cc: "David S. Miller" Cc: Bjorn Andersson Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Liam Girdwood Cc: Mark Brown Cc: linux-rockchip@lists.infradead.org Cc: linux-media@vger.kernel.org Cc: linux-mtd@lists.infradead.org Cc: netdev@vger.kernel.org Cc: alsa-devel@alsa-project.org Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml | 4 ++-- Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml | 4 ++-- .../devicetree/bindings/display/rockchip/rockchip-vop.yaml | 4 ++-- Documentation/devicetree/bindings/media/rockchip,vdec.yaml | 2 +- Documentation/devicetree/bindings/media/rockchip-vpu.yaml | 2 +- .../devicetree/bindings/mtd/arasan,nand-controller.yaml | 2 +- Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml | 2 +- .../devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,easrc.yaml | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) -- 2.25.1 Acked-by: Mark Brown diff --git a/Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml b/Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml index d6a3b71ea835..68b0131a31d0 100644 --- a/Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml +++ b/Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml @@ -71,8 +71,8 @@ examples: bus@1f059000 { compatible = "baikal,bt1-apb", "simple-bus"; - reg = <0 0x1f059000 0 0x1000>, - <0 0x1d000000 0 0x2040000>; + reg = <0x1f059000 0x1000>, + <0x1d000000 0x2040000>; reg-names = "ehb", "nodev"; #address-cells = <1>; #size-cells = <1>; diff --git a/Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml b/Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml index 203bc0e5346b..29e1aaea132b 100644 --- a/Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml +++ b/Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml @@ -85,8 +85,8 @@ examples: bus@1f05a000 { compatible = "baikal,bt1-axi", "simple-bus"; - reg = <0 0x1f05a000 0 0x1000>, - <0 0x1f04d110 0 0x8>; + reg = <0x1f05a000 0x1000>, + <0x1f04d110 0x8>; reg-names = "qos", "ehb"; #address-cells = <1>; #size-cells = <1>; diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml index 1695e3e4bcec..ed8148e26e24 100644 --- a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml @@ -106,8 +106,8 @@ examples: #include vopb: vopb@ff930000 { compatible = "rockchip,rk3288-vop"; - reg = <0x0 0xff930000 0x0 0x19c>, - <0x0 0xff931000 0x0 0x1000>; + reg = <0xff930000 0x19c>, + <0xff931000 0x1000>; interrupts = ; clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, diff --git a/Documentation/devicetree/bindings/media/rockchip,vdec.yaml b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml index 0c68cdad9a31..8d35c327018b 100644 --- a/Documentation/devicetree/bindings/media/rockchip,vdec.yaml +++ b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml @@ -61,7 +61,7 @@ examples: vdec: video-codec@ff660000 { compatible = "rockchip,rk3399-vdec"; - reg = <0x0 0xff660000 0x0 0x400>; + reg = <0xff660000 0x400>; interrupts = ; clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>, <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>; diff --git a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml index 27df18ad6a81..2b629456d75f 100644 --- a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml +++ b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml @@ -66,7 +66,7 @@ examples: vpu: video-codec@ff9a0000 { compatible = "rockchip,rk3288-vpu"; - reg = <0x0 0xff9a0000 0x0 0x800>; + reg = <0xff9a0000 0x800>; interrupts = , ; interrupt-names = "vepu", "vdpu"; diff --git a/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml index db8f115a13ec..cb9794edff24 100644 --- a/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml +++ b/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml @@ -53,7 +53,7 @@ examples: - | nfc: nand-controller@ff100000 { compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10"; - reg = <0x0 0xff100000 0x0 0x1000>; + reg = <0xff100000 0x1000>; clock-names = "controller", "bus"; clocks = <&clk200>, <&clk100>; interrupt-parent = <&gic>; diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml index af608f2ecfdf..9b7117920d90 100644 --- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml @@ -121,7 +121,7 @@ examples: cpts@310d0000 { compatible = "ti,am65-cpts"; - reg = <0x0 0x310d0000 0x0 0x400>; + reg = <0x310d0000 0x400>; reg-names = "cpts"; clocks = <&main_cpts_mux>; clock-names = "cpts"; diff --git a/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml b/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml index 574f890fab1d..4949a2851532 100644 --- a/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml @@ -65,7 +65,7 @@ examples: #include phy@88e2000 { compatible = "qcom,sm8150-usb-hs-phy"; - reg = <0 0x088e2000 0 0x400>; + reg = <0x088e2000 0x400>; #phy-cells = <0>; clocks = <&rpmhcc RPMH_CXO_CLK>; diff --git a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml index 9dd57a974b28..32d547af9ce7 100644 --- a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml @@ -80,7 +80,7 @@ examples: easrc: easrc@300c0000 { compatible = "fsl,imx8mn-easrc"; - reg = <0x0 0x300c0000 0x0 0x10000>; + reg = <0x300c0000 0x10000>; interrupts = <0x0 122 0x4>; clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; clock-names = "mem";