Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp847384ybl; Fri, 10 Jan 2020 07:42:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwlD4/wrSP70J3ubJB1aYP4EeiQalSahzi2tlwxVBx7wKTX5emDKUKt9i4hWyNJIRUPNqU/ X-Received: by 2002:aca:d787:: with SMTP id o129mr2785068oig.75.1578670950012; Fri, 10 Jan 2020 07:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578670950; cv=none; d=google.com; s=arc-20160816; b=IJsDPBcBv+e88CX17xaXt842mYTWPZ5roqF9Enavh7vjrqbWoMrbmW2K7e2rvLhWgo f4+qR7sOGTbjaOGjNlDqCeNceExAyAMLDXfp/51Pq7UAuDyDdkR1+BnVQZ1n9VwUre5Z D3fQUSGZyUZcB4QtDH7TfXApKIzGSWErvMSvLGn+dH6p/1nn4ZX6Qj4dlgSio1PUHDaW jR5wBr/a7N9x1B8+r6Qfw/vdrhqYJVsfJE8TWMKqCGkRR773sXVsjEqKjG4KiGjolNEW 1ITI73UTZLr6WWii8/kxj9jGdyLxLvNdN4JcmZn9BgmDSjDJSYo+jufEaEvMYBpUgl31 mWPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=zfveKwnRK85mJXCf2w5k6uuMDFTAUqHiB2SRdT1OPtw=; b=tcT2UTYzI5OyYR2R3MjgS+v5hPbiIgmy4bheikmHNOdJAHXER13dXjt5EN7iL81+0M aHzo6L9PjFUTaMQ/fBgyJgTSNq/JhAiUz7tuAr8RjhJxPLAffA//x0I5kto2k7GKkwBO 5q3hatgSqOlJOGIBLDHVCmf02pVh1b7XDsqDFG76fw6yTVNsoVa1dvLZJ2k3dVwegvlk YGlbKireOcDnds1GBSrNZyM5T1ms1GSr4CaBot6Rdh60ia75x2BtLxMiyavwKpJNy0eK eFvTsxrAXLPxfejTS9MjdvaVcwYAZjkqBXcY+LvHR1LY74nzAZJ1XkgiMAAQLiGjo/t2 QcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Eyf2pDtv; 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 q2si1536264oti.273.2020.01.10.07.42.18; Fri, 10 Jan 2020 07:42:30 -0800 (PST) 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=Eyf2pDtv; 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 S1728452AbgAJPkZ (ORCPT + 99 others); Fri, 10 Jan 2020 10:40:25 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:39661 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728369AbgAJPkZ (ORCPT ); Fri, 10 Jan 2020 10:40:25 -0500 Received: by mail-il1-f195.google.com with SMTP id x5so2078733ila.6; Fri, 10 Jan 2020 07:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zfveKwnRK85mJXCf2w5k6uuMDFTAUqHiB2SRdT1OPtw=; b=Eyf2pDtvCwsChMpc+mpR9mGl+B89HFzVOVjGCDfOKJzIuX/1FUntYjwt/szKs2X2RP oyZsDtCNH9oXEolJwkI4bijMHUmbH5gDCN9bnb1TEsZ89cjwOfEIS2J9qXOpPcL79TkC Jb3nK4NB5HgKGsCGV0DVJoZjflgCFWqifdSJEarXjG5DUdLUIwsZUlBxHtetIJ/SVbwT /IUOavZELqgR8+Me4B2vS5JeYUae0m/LokZu+KbQnGX9lQKnXY1JxtIpMOa+Zi4ApeJ6 ndDe1GXurmXskgSPnAcbFjg9dPc3vPv8p1l4pRzbYxD9N3enYdTuE2JSHf7TreI+m/Bb LqZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zfveKwnRK85mJXCf2w5k6uuMDFTAUqHiB2SRdT1OPtw=; b=nVdRICVi5/6BzjSiBkebzBwwhZQMXYWlvsa78xhm32tjkQ72jBWEWekwKVFOi1mGLV fDaB+t/KOdN7T3I7wHKCEPO+WNLkEMq6/SgakL/ZQzyYZEVNXmQrhJx9lb+mE9LengLf 9bbs/IjXBRt5UIz/PmY0yj7Axvl6K1RO433DB66QjT5wJ6WZCNLBKovuB05/smjpdmWR 6UOj8eaL+xpGTe6U1oBte/zEyJVdEToWKnVigdSZpqVO67039EVPQT5/mWT9C1WnT8Cs fwV/q35xOPS8qyw3sQqW8hTZ+82D2HE2FzZKoJ4fIev7FtFynL04zBN0PwVk0UxWhGNB ulhA== X-Gm-Message-State: APjAAAWqwGcTmi0CLuucPtBHL/Plmv0HyaEdQIO4PWeegOFdx3zkIbdu gg0H9vjVggf6DZcuJBWbTpYbwAjNYHlO/rdlATU= X-Received: by 2002:a92:d5cf:: with SMTP id d15mr3025126ilq.306.1578670824629; Fri, 10 Jan 2020 07:40:24 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:5809:0:0:0:0:0 with HTTP; Fri, 10 Jan 2020 07:40:24 -0800 (PST) In-Reply-To: <20200110142128.13522-1-jbx6244@gmail.com> References: <20200110142128.13522-1-jbx6244@gmail.com> From: Johan Jonker Date: Fri, 10 Jan 2020 16:40:24 +0100 Message-ID: Subject: Re: [PATCH] arm64: dts: rockchip: add reg property to brcmf sub node To: heiko@sntech.de Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Question for Heiko or rob+dt. Where would should #address-cells and #size-cells go in the dts or to the dtsi. In case they become required in a futhure rockchip-dw-mshc.yaml? ie. Should we patch all XXX rockchip,rk3288-dw-mshc nodes with them? Thanks 2020-01-10 15:21 GMT+01:00, Johan Jonker : > An experimental test with the command below gives this error: > rk3399-firefly.dt.yaml: dwmmc@fe310000: wifi@1: > 'reg' is a required property > rk3399-orangepi.dt.yaml: dwmmc@fe310000: wifi@1: > 'reg' is a required property > rk3399-khadas-edge.dt.yaml: dwmmc@fe310000: wifi@1: > 'reg' is a required property > rk3399-khadas-edge-captain.dt.yaml: dwmmc@fe310000: wifi@1: > 'reg' is a required property > rk3399-khadas-edge-v.dt.yaml: dwmmc@fe310000: wifi@1: > 'reg' is a required property > So fix this by adding a reg property to the brcmf sub node. > Also add #address-cells and #size-cells to prevent more warnings. > > make ARCH=arm64 dtbs_check > DT_SCHEMA_FILES=Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml > > Signed-off-by: Johan Jonker > --- > arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 3 +++ > arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi | 3 +++ > arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | 3 +++ > 3 files changed, 9 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts > b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts > index 92de83dd4..06043179f 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts > @@ -669,9 +669,12 @@ > vqmmc-supply = &vcc1v8_s3; /* IO line */ > vmmc-supply = &vcc_sdio; /* card's power */ > > + #address-cells = <1>; > + #size-cells = <0>; > status = "okay"; > > brcmf: wifi@1 { > + reg = <1>; > compatible = "brcm,bcm4329-fmac"; > interrupt-parent = <&gpio0>; > interrupts = ; > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi > b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi > index 4944d78a0..e87a04477 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi > @@ -654,9 +654,12 @@ > sd-uhs-sdr104; > vqmmc-supply = <&vcc1v8_s3>; > vmmc-supply = <&vccio_sd>; > + #address-cells = <1>; > + #size-cells = <0>; > status = "okay"; > > brcmf: wifi@1 { > + reg = <1>; > compatible = "brcm,bcm4329-fmac"; > interrupt-parent = <&gpio0>; > interrupts = ; > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts > b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts > index 0541dfce9..9c659f311 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts > @@ -648,9 +648,12 @@ > pinctrl-names = "default"; > pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; > sd-uhs-sdr104; > + #address-cells = <1>; > + #size-cells = <0>; > status = "okay"; > > brcmf: wifi@1 { > + reg = <1>; > compatible = "brcm,bcm4329-fmac"; > interrupt-parent = <&gpio0>; > interrupts = ; > -- > 2.11.0 > >