Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2612317pxu; Mon, 14 Dec 2020 06:52:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe4/DZ3h55MwlKg5eXevSN4TNt7AsKU6zGuuxaZX+bkk5VOgsvvXNTj8L+tYFAv9/NDpK2 X-Received: by 2002:a17:906:4e53:: with SMTP id g19mr22539145ejw.454.1607957564842; Mon, 14 Dec 2020 06:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607957564; cv=none; d=google.com; s=arc-20160816; b=xLcX/6JqjLnxZK1awMUWgpkq29d1nQUecFU391iOOXML3cqfI3RHuRX8nyTfNKEd9u nYgtR1NQCvgYKStxG1+1vu0yw81N8HOT+bSXxQcH9Jxkr/CA7u0r961fQrwB9akMZjMZ +oPk+E1GICTgKLZgQ4wjjq5EZFTuPrxTN51cj8XC/VEuuA+PtSiLMNEjl8QY0aFrEQMk 1YFYeruZuykmqdYe58ClGFLWi9W/JrB4284MWxrS2oGrmzyaotbODobtImmyHUDECk1W 9Yc5IR53ZsXVXOQfFu32qbjvdxk/Z+bUm6cISwnYPWvny1xAKCpIAuk7wFC2tuPGCtFQ Upvg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=yxB6dcGjattY1g4hqyxHSx3N8FxCqIigvNbA/dxeAvs=; b=c2oSLmXwOQq2WgSiHS/GxUvvhF7eODQfvVtyEQ1Io0zJR+QvhojVl4a0V43RtDi+00 v2qYPlnFgSp8+LpiQdMSWUdT0AqqNoiqCEY7ZDk6vb80iwnMZ9L50pJOXqT/A95IRe2e 2mG24yPwE79LgXP2KjUm/aWzZEV2iI6tkfsgu6kJu38P5ATKKxv7OxWiqZ/nKlIDyF6E KiyWN5bZxrwHYRSuGG+NkXaH0ZR+11JW0J8YACT4sEXAGYupoQvFSQUhBMPDeU7Xk7Md Qbaqh5WCtAQeN1glaOBhVFhUFebjoBtNLqwblyQvK0tJg+tHTcMENiOfLWkmAv6v0Rev Adqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd19si10592616edb.502.2020.12.14.06.52.21; Mon, 14 Dec 2020 06:52:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439065AbgLNMyl (ORCPT + 99 others); Mon, 14 Dec 2020 07:54:41 -0500 Received: from foss.arm.com ([217.140.110.172]:47036 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438578AbgLNMyk (ORCPT ); Mon, 14 Dec 2020 07:54:40 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 013E11FB; Mon, 14 Dec 2020 04:53:55 -0800 (PST) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5299A3F66B; Mon, 14 Dec 2020 04:53:53 -0800 (PST) Date: Mon, 14 Dec 2020 12:53:43 +0000 From: Andre Przywara To: Maxime Ripard Cc: Chen-Yu Tsai , Jernej Skrabec , Icenowy Zheng , Linus Walleij , Rob Herring , =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Shuosheng Huang , Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, devicetree@vger.kernel.org Subject: Re: [PATCH v2 19/21] arm64: dts: allwinner: Add Allwinner H616 .dtsi file Message-ID: <20201214125343.0cd1bc6a@slackpad.fritz.box> In-Reply-To: <20201214095831.j63nks3fqxlaw75w@gilmour> References: <20201211011934.6171-1-andre.przywara@arm.com> <20201211011934.6171-20-andre.przywara@arm.com> <20201214095831.j63nks3fqxlaw75w@gilmour> Organization: Arm Ltd. X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Dec 2020 10:58:31 +0100 Maxime Ripard wrote: Hi, > On Fri, Dec 11, 2020 at 01:19:32AM +0000, Andre Przywara wrote: > > + reserved-memory { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + ranges; > > + > > + /* 512KiB reserved for ARM Trusted Firmware (BL31) > > */ > > + secmon_reserved: secmon@40000000 { > > + reg = <0x0 0x40000000 0x0 0x80000>; > > + no-map; > > + }; > > + }; > > This should still be set by the firmware > > > + mmc0: mmc@4020000 { > > + compatible = "allwinner,sun50i-h616-mmc", > > + "allwinner,sun50i-a100-mmc"; > > + reg = <0x04020000 0x1000>; > > + clocks = <&ccu CLK_BUS_MMC0>, <&ccu > > CLK_MMC0>; > > + clock-names = "ahb", "mmc"; > > + resets = <&ccu RST_BUS_MMC0>; > > + reset-names = "ahb"; > > + interrupts = > IRQ_TYPE_LEVEL_HIGH>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&mmc0_pins>; > > + status = "disabled"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + }; > > Somewhat related: we shouldn't set the MMC speed flags in the drivers. > This is biting us on the already supported SoCs, so it would be great > to not repeat the same mistake with the new ones Do you mean to list the "sd-uhs-sdr50" and friends properties here in the DT? What is the best practice here in terms putting them in the .dts vs. the .dtsi? Surely the controller has limits, but bad traces on a board could impose further restrictions, right? Though that's probably rare, so it sounds like a lot of churn to list them in every board DT. So can we list everything in here (.dtsi), then delete in those affected boards only? Cheers, Andre