Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3730486ybl; Mon, 13 Jan 2020 01:27:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwuC/24MhVtgJDbdrCxJKR8LU2ikHp7CDbibPQTkpJqnVzHuNs5muoK77hJQ9nZGhdBAMTo X-Received: by 2002:a9d:5888:: with SMTP id x8mr11673437otg.361.1578907663832; Mon, 13 Jan 2020 01:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578907663; cv=none; d=google.com; s=arc-20160816; b=NBsmbrWa9v2l+rOPB8C25W3JoyDCfyaBb7OkYrZZRKtd10oC9K2jv6Gx2AskxKD1QG hbbk9XBTgKyZsbY+ptEm3uEKExukhawIfik+13BOhlnDZfYD6LYQYgXkjaDRFunpdhAP bsFD3kr577O1JSfiNA9vkVAIeeyZO4sBGKDNrlZLyVf/ePwjEUth2PfMOGFlIzDY1prV vqOlT8TB0tjqoyr2+oXYFH3dGBNjQ304LWK7RuFpVJmdxfVfrDmaQ3Tsrx4gRcp4NLHx OXl2efrUooUl1OTYw5rM37XsOCVUOIG5xZtycgVMVOsDnNm7WMOG4cboPQ35lxgiAxCR ld/Q== 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=uwHbzgVpNysO9Wcq+QBTuHUSauMY5b/UR6zQfDQj+/4=; b=pwJy8MiW5nmUBmAD4ypS24CroLfK6HJQXRGua3ZJmTb2MES1e6wT7LTB6obUq+jatB ADYKRGiV+NpFWoGZQ82+ht293PJvchtMoqF/qgEoAeXtYu62TU05EF9krbDtVUTBplQR HWy9AnRY3UpiL0JVBxhNweT7Lpq1gqb27yx5vXDLyUEfPqOIP+NgO7DABgsXgAxMJSF9 6NUrRQoDob4CjS2ftMqVZKC1ficLqolIdRne6FIrqZgY2v4qHdd9W9DiOFNP82Td9kCY DsQGJ7GEWlzZBKjnrVQ9K/zdtngUcjoDUTY+IEEU4UCmqecySPbNom2jxSPhTE6BgigH /fLA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si6935031otd.9.2020.01.13.01.27.32; Mon, 13 Jan 2020 01:27:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727323AbgAMJ0i (ORCPT + 99 others); Mon, 13 Jan 2020 04:26:38 -0500 Received: from gloria.sntech.de ([185.11.138.130]:53204 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgAMJ0i (ORCPT ); Mon, 13 Jan 2020 04:26:38 -0500 Received: from wf0253.dip.tu-dresden.de ([141.76.180.253] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqvzU-000219-9u; Mon, 13 Jan 2020 10:26:32 +0100 From: Heiko Stuebner To: Johan Jonker 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 Subject: Re: [PATCH] arm64: dts: rockchip: add reg property to brcmf sub node Date: Mon, 13 Jan 2020 10:26:31 +0100 Message-ID: <2116127.mXfZQK7onI@phil> In-Reply-To: References: <20200110142128.13522-1-jbx6244@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Am Freitag, 10. Januar 2020, 16:40:24 CET schrieb Johan Jonker: > 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? I don't think it is a required property for the dw-mmc itself, as only in special-cases do you need subnodes there. Like emmc and sd-cards are completely probeable without needing further information and only the wifi/bt chips _might_ need these. So I don't think that this is a property of the controller itself, but te connected card - hence should stay in the board file. Heiko > > 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 > > > > >