Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2470794iof; Wed, 8 Jun 2022 05:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRaF0/tJStv+0c8UUJF6tHPeMxSEJfdv8o2c4iG1Ka6wegvQqggq+BcsyF1ggb18M/XjKX X-Received: by 2002:a17:902:ca0b:b0:167:4c4d:7320 with SMTP id w11-20020a170902ca0b00b001674c4d7320mr26526366pld.113.1654692368097; Wed, 08 Jun 2022 05:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654692368; cv=none; d=google.com; s=arc-20160816; b=jU7JeqN1z1W/p6F+vC7j/GqTrhmquTZBl2r/f7mxIoD6YrZPbr/++Biyatb75ye/Pp LycpggTTJ/SxzU0EVj+kq3pmJZjvcUjBY8/50VhbUT2rWs1zY0Ez/PsLABTv9uU465yt gsnkgl36XeYXzjWagGAePsoVWFmv7yTBFSyGKV07c/1+r0+s9v96VN10Ebg/zkfHKy8Q zuGsmrHonFRsqr9hyby3+6ewhy5lZUwwh7eZ6xk/tJAcuqVptBYovav7Hj7S6Wl72Anl u1uhgL4gW4Mttskq4k9KbossjBAAvM00jXZkAPBxQJW+uP3jc8GlHWPGL6MtIxh3VDMa XJTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8Y6AK1jn7oe+SyJjNnA/GLTLhoLE15S3+PmwdGDxEqI=; b=gALOsaARtRDzNRGfFc8BIbaFx+PIRFhYOr371weghYkhTwLTvoqVtAZ/RHh1tlS7cn OxoQ5MSZB3HyFbpUARUxjgOaUSmqZf6VqZhlfmwOVeJE0tEhyegIEpr7tYVVROuB2Oa/ hTW+9rNtdxf2FR7kHNFFmbuoFktRtZQYvVb5QVAjzdV3fws2nutJ0upGlExQkdwPPUkq 3MVsA6wdk0MKKnyLn+ok6R8Uj0nGBnsm0YWXnJ8kK8g2bMQhQ3Dm7StBltSRE2z8zac3 MIPUlDNQhp4xgg2KWw4eG6ftCJzv4JFDvB8RDgdROylQM/ztLwXWxFHt/nHKmjEC6Ahv UbtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t1-20020a63f341000000b003fbb35b5d88si28546312pgj.347.2022.06.08.05.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E407D1775C6; Wed, 8 Jun 2022 05:20:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238767AbiFHMUL (ORCPT + 99 others); Wed, 8 Jun 2022 08:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238751AbiFHMUK (ORCPT ); Wed, 8 Jun 2022 08:20:10 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4130169702; Wed, 8 Jun 2022 05:20:07 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nyufE-0006gv-Ao; Wed, 08 Jun 2022 14:19:56 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Michael Riesch , linux-rockchip@lists.infradead.org, Sjoerd Simons Cc: kernel@collabora.com, Akash Gajjar , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: rockchip: rock-pi-s add more peripherals Date: Wed, 08 Jun 2022 14:19:55 +0200 Message-ID: <2759751.88bMQJbFj6@diego> In-Reply-To: <3576f2af98a0d9e7128568777d85af3bfbab801d.camel@collabora.com> References: <20220606082629.79682-1-sjoerd@collabora.com> <4731d47f-ef02-d512-c599-274f8208f845@wolfvision.net> <3576f2af98a0d9e7128568777d85af3bfbab801d.camel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 8. Juni 2022, 14:07:33 CEST schrieb Sjoerd Simons: > Hey Michael, > > On Mon, 2022-06-06 at 14:00 +0200, Michael Riesch wrote: > > > > > + aliases { > > > + ethernet0 = &gmac; > > > + mmc0 = &emmc; > > > + mmc1 = &sdmmc; > > > > Sure? emmc is at address ff49000 which is larger than sdmmc's address > > ff480000. I believe the aliases should be sorted w.r.t. addresses. > > Do you have a reference about this sorting requirement? I do believe we used that mmcx -> *mmc-device sorted by address when the aliases still were in the main soc dtsi. Simply because one couldn't really know what was available on a specific board (no emmc for example). I guess now on a per-board level we could actually do that more relaxed and let that be the decision of the board submitter ;-) . Heiko > Also do you mean that mmc0 should be &sdmmc *or* that the aliases > should have mmc1 listed first. > > For reference the reason is that mmc0 is emmc is because it seems more > logical to have the builtin devices come first (e.g. as mmcblk0) > > > > Best regards, > > Michael > > > > > + }; > > > + > > > chosen { > > > stdout-path = "serial0:1500000n8"; > > > }; > > > @@ -132,6 +138,15 @@ &emmc { > > > status = "okay"; > > > }; > > > > > > +&gmac { > > > + clock_in_out = "output"; > > > + phy-supply = <&vcc_io>; > > > + snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; > > > + snps,reset-active-low; > > > + snps,reset-delays-us = <0 50000 50000>; > > > + status = "okay"; > > > +}; > > > + > > > &i2c1 { > > > status = "okay"; > > > }; > > > @@ -195,10 +210,47 @@ &sdmmc { > > > status = "okay"; > > > }; > > > > > > +&u2phy { > > > + status = "okay"; > > > + > > > + u2phy_host: host-port { > > > + phy-supply = <&vcc5v0_otg>; > > > + status = "okay"; > > > + }; > > > + > > > + u2phy_otg: otg-port { > > > + phy-supply = <&vcc5v0_otg>; > > > + status = "okay"; > > > + }; > > > +}; > > > + > > > &uart0 { > > > status = "okay"; > > > }; > > > > > > &uart4 { > > > status = "okay"; > > > + > > > + bluetooth { > > > + compatible = "realtek,rtl8723bs-bt"; > > > + device-wake-gpios = <&gpio4 RK_PB3 > > > GPIO_ACTIVE_HIGH>; > > > + host-wake-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; > > > + }; > > > +}; > > > + > > > +&usb_host_ehci { > > > + status = "okay"; > > > +}; > > > + > > > +&usb_host_ohci { > > > + status = "okay"; > > > +}; > > > + > > > +&usb20_otg { > > > + dr_mode = "peripheral"; > > > + status = "okay"; > > > +}; > > > + > > > +&wdt { > > > + status = "okay"; > > > }; > >