Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3025575imm; Sun, 24 Jun 2018 09:42:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJM74XmkcCQ3Reyg/t/c1RVAZiy/BQ4if7b0OQzxeBwtKPR7hBK27UNg9DHXK+va/59LNKg X-Received: by 2002:a65:5307:: with SMTP id m7-v6mr2857434pgq.431.1529858557034; Sun, 24 Jun 2018 09:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529858557; cv=none; d=google.com; s=arc-20160816; b=QQQFnzsGzdBSWjEit5OJYuUU3bPtvLzP/I8afSc3odq/tn5uN6kT/7i0NNrVzmMsu2 ZcF2J3VA6sDXvwX6O44l3xqzMOZhhrrbrsN3I1+W7MuFwFm8ILBwvMvAPmoxV41zBPn+ ZEbP6S8Q4Rtn3A/Hsw+8/B1GIFW/0fbaIH9rs8tNhiQ9WY5ibG7Z7xqu+uGC26uSs4SR XCWv7RRaY7Llgruh93utazTA0w12weLNOZTWpyWR9lTnwUmQessUlB3foaQBpSS27rWD YvNqGK+uGSLjJlATWZsVQ7PeCxre3Y9V9pigY6Ns9L+5t1YRS0zB0OxhE7uymesZtRIc DSfQ== 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:content-transfer-encoding :content-id:mime-version:comments:references:in-reply-to:subject:cc :to:from:arc-authentication-results; bh=Co6s7E4tLv3a0lsIl/gz6vQT78TlJ92rRt3hxY9rAM4=; b=fdwSNs95ojPsoqWjO4RM1/tmeV6fKkUBgq6ze+px/MoAtmwYk/J+Tz4uOf5OljZh8L 6vLVz4edc99FDsCXA1CDfXkpe+I3vz+xiJhfCrDdvA1YCCVlOC9EkELaB8cUM7WyMbOn 94FFLVp04q+CwCqM/7HTNcHNqo9dMddF9daC5cMVQysghC+PasjYuvOYCDavjkm1aNF0 rrxLJsuZfotFdRPkPPzXzZ/yZgrCDNgEwJiNndb/nWekDYeBMjNJ8zudz2GKQeK3iRGA sZUBUhMf8QwAjB0FyjBRM63wWcG/AKjLwXOB+fpcYTxGdeaJqsBzWMj7ugME4v9bRaag A0Og== 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 z190-v6si4627296pgb.438.2018.06.24.09.42.20; Sun, 24 Jun 2018 09:42:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752073AbeFXQlc (ORCPT + 99 others); Sun, 24 Jun 2018 12:41:32 -0400 Received: from h1.radempa.de ([176.9.142.194]:40595 "EHLO mail.cosmopool.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbeFXQla (ORCPT ); Sun, 24 Jun 2018 12:41:30 -0400 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Sun, 24 Jun 2018 12:41:29 EDT Received: from localhost (localhost [127.0.0.1]) by mail.cosmopool.net (Postfix) with ESMTP id BF50E9011A7; Sun, 24 Jun 2018 18:34:47 +0200 (CEST) Received: from mail.cosmopool.net ([127.0.0.1]) by localhost (mail.your-server.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LFTug78XZQTu; Sun, 24 Jun 2018 18:34:44 +0200 (CEST) Received: from stardust.g4.wien.funkfeuer.at (77.117.167.127.wireless.dyn.drei.com [77.117.167.127]) by mail.cosmopool.net (Postfix) with ESMTPSA id 6746C9009D1; Sun, 24 Jun 2018 18:34:43 +0200 (CEST) Received: from lambda by stardust.g4.wien.funkfeuer.at with local (Exim 4.89) (envelope-from ) id 1fX7yK-0000OC-HA; Sun, 24 Jun 2018 18:34:40 +0200 From: Harald Geyer To: Icenowy Zheng cc: Maxime Ripard , Chen-Yu Tsai , Kalle Valo , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara , info@olimex.com, linux-wireless@vger.kernel.org Subject: Re: [PATCHv2 5/5] arm64: allwinner: a64: Add support for TERES-I laptop In-reply-to: References: <20180315162510.11669-1-harald@ccbib.org> <20180315162510.11669-6-harald@ccbib.org> Comments: In-reply-to Icenowy Zheng message dated "Sat, 23 Jun 2018 00:27:21 +0800." MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1498.1529858080.1@stardust.g4.wien.funkfeuer.at> Content-Transfer-Encoding: 8bit Date: Sun, 24 Jun 2018 18:34:40 +0200 Message-Id: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Icenowy Zheng writes: > 在 2018-03-15四的 16:25 +0000,Harald Geyer写道: > > +&mmc1 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&mmc1_pins>; > > + vmmc-supply = <®_aldo2>; > > + vqmmc-supply = <®_dldo4>; > > + mmc-pwrseq = <&wifi_pwrseq>; > > + bus-width = <4>; > > + non-removable; > > + status = "okay"; > > + > > + rtl8723bs: wifi@1 { > > + reg = <1>; > > + interrupt-parent = <&r_pio>; > > + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ > > + interrupt-names = "host-wake"; > > + }; > > I think this node has some problem: Thanks for the heads up! Admittedly, I simply copied this node from sun50i-a64-olinuxino.dts and since it worked, didn't look into it in too much detail. > - This device node has no binding. The "host-wake" interrupt is part of > Broadcom SDIO Wi-Fi binding, rather than a generic one. I think the general mmc and interrupts bindings apply. And the mmc binding clearly states that for sub-nodes a compatible string is optional. However I just realized that the 'interrupt-names' property is not part of the general interrupts binding, so I guess at least this property should be removed. > - Without the interrupt this device node isn't needed, as RTL8723BS has > MAC eFUSE and doesn't need a MAC in device tree. Indeed. I wasn't aware of this, but I just tested and the device probes fine without the subnode present. I think the devicetree is mainly for information which cannot be probed, so maybe the subnode should just get removed. > In order to solve the problems. I suggest either drop this device node > or make a generic "sdio-wifi" device tree binding. Personally I prefer > the latter, as it's more accurate device representation. > > If such a device tree binding is added, I think it should contain the > "host-wake" interrupt and a "local-mac-address" property. Both can be > ignored by the driver. (This interrupt can be needed if a more card- > ventor-neutral name is found.) I don't feel qualified to comment on this. If you want to propose such a patch and fix above node accordingly, I won't object. Otherwise I'll just send a patch to remove the subnode. Thanks, Harald