Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1803301pxb; Fri, 5 Feb 2021 01:39:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy1tCdMWuZn0Pd40wCUmnCVe+wIwEULH5bOkjF+da7XQZe1wvc9Tt5NdI9IzBfLYzG6mGU X-Received: by 2002:a17:906:7d9:: with SMTP id m25mr3165558ejc.473.1612517943782; Fri, 05 Feb 2021 01:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612517943; cv=none; d=google.com; s=arc-20160816; b=jh48EgxpUNz9rD84WN+hjMb24/8KIMXyBwiZ2nn7c6CU/oPj81VHU2AAWuK55ejboy a1M6nUd0MVQRZHCY6PGnIh99fhL5wEv8CKexacfXWjyjiolF9WrcowTNZWbS1XIsnIA9 J0b2t90lJkw0S0F45ol2jhMFdZ9VHeMwMUTc7ZBZ8ztF6Y+/S4xYwO+o2TaeT97nMwmA l1CYjN24A44D2qWAegatfusdyzbrif1sDbhCf0aw1MpDMF3ledLdAJgB9xFdWIV6EhvB YlAzZyRxErdKbgU2ss4BUWWb4XbD5FKXV1AkLpgW9wj3gylXKaZVPO7VhVwXs8SnNACh /nmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ojCeZlO98s2SPY23e+5Mf36GGQC+0u+nCZYUoLCQnwU=; b=J4rAcXiNf7krv5S66cXuvzgQlzOfuLzO+8VaXf50/Bemj9lHxo66y2kZ2vRjRGEGeo KL49T7RdrSsWwWhS63S706E168Bw0qocyIA385cJwYtsiawIYNy1mhH92B15kWuS4UD/ nUpvva9AkH/llOFOQRsJ8TEFbY6K+OcQl0BhqXKp8XhXn2fsLdHP/d3s3JrfTzFkXSI/ Bul+s45XFfE9R8JoekQ6UkYEbYvm1jbu+L3eUOTzyN6Sik8cqGqkaBEEYe7J4oAV2A/a 5TKdgT+MD0kSdj6jeYXPs4rG1q0cAhTQonBb6NtR9+4maiGafiemJyrA3esmXbSKKAOL 2tvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=c3m2FX9e; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si4758486ejn.270.2021.02.05.01.38.38; Fri, 05 Feb 2021 01:39:03 -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; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=c3m2FX9e; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhBEJhJ (ORCPT + 99 others); Fri, 5 Feb 2021 04:37:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhBEJeL (ORCPT ); Fri, 5 Feb 2021 04:34:11 -0500 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C867C06178C for ; Fri, 5 Feb 2021 01:33:31 -0800 (PST) Received: by mail-qt1-x832.google.com with SMTP id z32so4495897qtd.8 for ; Fri, 05 Feb 2021 01:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ojCeZlO98s2SPY23e+5Mf36GGQC+0u+nCZYUoLCQnwU=; b=c3m2FX9eauVZ9sIWQoZ+8mW8Xl5kQUxMzUIXIiXpEUEEdseHz+zR2axVX4AWVDhyh1 nYzlpYc7gA23nipHsSuC9lATjWbV+qKnwJxrpYZP7hP8UyikduSztl2Kg31pDEJzshY3 vjn6u4wX+cOGp1HFsTDaos9fsfZZJKT0g694Pqd89AuFJjoVTiHynmhXFMwqLvKfzLEA q9o4k/V1Kvsq4DuGBqqU3jnjHB//7WErk7+czsnf9rHGhYV4n/SXI5T/0euC+F/+Jifp 6mfu0RkpmP8U8Imd5i4UsNZBQD1B4krshdK5FywN50HEHyqQD+RsiQvEMdPC3uexUaaP wORw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ojCeZlO98s2SPY23e+5Mf36GGQC+0u+nCZYUoLCQnwU=; b=VQHhgPjuU17xpLL6GiTpTDWPm2+1jWekRX4mNpul+aa79U7iC0B/9A92vlStnJk4JG jOrDTQrvE2DKcfwWDn/QAR5R18oTrmoSs387yN/LbC0Rhf2MFNsaaR1WrFyHxczCMABq fvoEhpMGUNpdT+pOcdTnubD9Mr1oP7ofgyfWxuTQN7COIMDtyojidYR90X812oZw8F2z 5uzp5cxZ8nzlJnCK+i2ib36UzgNkC59XYFaSlymSbbSYw/Tih6w2Sbje/LmB76/1ue9C BXwj/AKY42NkRfZlYVJ/a+6/I0vlxXxygDEh+sbuh3L0exl1Th0FVCcQwteNGpQgL7qJ /5ew== X-Gm-Message-State: AOAM5303nw6ZVTYu0DPFjVX5cAgOG03lJEP6L/hHbBmkmGvHfUeeKneJ dgBqv0MSuKQ+Up9UNJEnaVufyaY/DgU7BQE4863ekA== X-Received: by 2002:aed:204d:: with SMTP id 71mr3478755qta.318.1612517610095; Fri, 05 Feb 2021 01:33:30 -0800 (PST) MIME-Version: 1.0 References: <20210203133138.10754-1-kostap@marvell.com> <20210203133138.10754-3-kostap@marvell.com> <87h7mtckxe.fsf@tarshish> <20210203143851.GR1463@shell.armlinux.org.uk> <20210203161137.GS1463@shell.armlinux.org.uk> In-Reply-To: From: Marcin Wojtas Date: Fri, 5 Feb 2021 10:33:18 +0100 Message-ID: Subject: Re: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings To: Kostya Porotchkin Cc: Russell King - ARM Linux admin , Baruch Siach , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "andrew@lunn.ch" , "jaz@semihalf.com" , "gregory.clement@bootlin.com" , Nadav Haklai , "robh+dt@kernel.org" , Stefan Chulski , Ben Peled , "sebastian.hesselbarth@gmail.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kosta, Let me chime in. =C5=9Br., 3 lut 2021 o 17:57 Kostya Porotchkin napisa= =C5=82(a): > > Hello, Russell, > I agree that this patch needs rework. > I will definitely do it and issue a new version. > > > On Wed, Feb 03, 2021 at 02:50:45PM +0000, Kostya Porotchkin wrote: > > > [KP] So for older systems this "slow mode" parameter could be set on = the > > board level. > > > When it is set in ap80x,dtsi file it downgrades all systems to HS-SDR= 52, even > > if they support HS400 on AP side. > > > MacchiatoBIN AP eMMC is connected to 3.3v regulator and has "no-1-8-v= " > > flag set, so it should remain in low speed anyway. > > > > Your reasoning does not make sense. > > > > The ap80x.dtsi file does not specify "marvell,xenon-phy-slow-mode". > > It is not specified at this level. It is already specified at board lev= el. > [KP] it does. In current armada-ap80x.dtsi File this specification is on = row 260: > ap_sdhci0: sdhci@6e0000 { > compatible =3D "marvell,armada-ap806-sdhc= i"; > reg =3D <0x6e0000 0x300>; > interrupts =3D ; > clock-names =3D "core"; > clocks =3D <&ap_clk 4>; > dma-coherent; > marvell,xenon-phy-slow-mode; > status =3D "disabled"; > }; > So I would like to remove this row. > > > Given that Macchiatobin will still use slow mode, why remove the > > marvell,xenon-phy-slow-mode property from this file? > [KP] Agree, I will keep this property in Macchiatobin DTS file. > Please do it another way around. 1. We need to leave the device tree bindings intact as much as possible - specifically for Armada 7k8k changes in this area have been causing enough problems in the past, breaking compatibility between kernel revisions. Moving the property to board level can be good here, but forces all other board dts files to adjust. Unfortunately Linux is a source of truth for the arm64 device tree bindings, but please note other OS's use those files as well - let's minimize the impact for existing HW and drivers. 2. What I propose is to remove `marvell,xenon-phy-slow-mode` from armada-ap80x.dtsi and add below in armada-ap806.dtsi: &ap_sdhci0 { marvell,xenon-phy-slow-mode; }; This way AP807 becomes free from the unwanted slow mode setting. Also any user of Armada 7k8k the B0 revision can add below to the board file: &ap_sdhci0 { + /delete-property/marvell,xenon-phy-slow-mode; }; 3. Contrary to the SDK version, sdhci-xenon.c is not capable of checking the SoC revision. HS200 is disabled for all versions of AP806 there - I believe this place requires revisiting, to start relying explicitly on the `marvell,xenon-phy-slow-mode` setting, rather than the compatible string. I can handle this one. 4. Please move armada-8040-db.dts changes to a separate patch, please. Thanks, Marcin > > > > Also, if you're upgrading ap80x.dtsi to use a bus-width of 8, why keep = the bus- > > width specifier of 8 in the board files? > [KP] The bus width is updated in A8040 DB DTS. This board utilizes 8-bit = interface. > The armada-ap80x.dtsi file does not specifies the bus width since it is b= oard-specific. > > > > > This patch just doesn't make sense, and your responses to our points se= em to > > add to the confusion. > [KP] I am sorry about it. Hope my last response clarifies it. > > Kosta > > > > -- > > RMK's Patch system: https://urldefense.proofpoint.com/v2/url?u=3Dhttps- > > 3A__www.armlinux.org.uk_developer_patches_&d=3DDwIBAg&c=3DnKjWec2b6R0 > > mOyPaz7xtfQ&r=3D- > > N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=3DV27OOcgNqKN2 > > WrlW2YFvHm_D_dXoP44wPd5zyOKvEBk&s=3Do3OrmStt1ZuXVNlYklTV_b1wY35 > > NvPPrdLqwGgtxRZU&e=3D > > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!