Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4780671pxb; Tue, 5 Oct 2021 10:09:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsRuRkOEWKksufY1mYFSjv0uo42exBsF+l0xif7ZBjqPLP4G/AbkG/4BvDjLnpy0pgYpOt X-Received: by 2002:aa7:c401:: with SMTP id j1mr19398961edq.88.1633453765272; Tue, 05 Oct 2021 10:09:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633453765; cv=pass; d=google.com; s=arc-20160816; b=oLUNpZcx0gcU4sN9wzHN7j+mUTpZCM77scSjTyEoK/hlm1RHT3vMCFh/bVKQRONl+Q BZBwHqJVxzHfFZpBSCd2BnVXYsBBn97A+aAQ8FUX47HnYY9qQrIMIAVlbmoOR2k0yV5E ScT0+e+9lunWCqDgkdj0TlUsYFxfbRv6XNdVEQykLzOz/xlepc30dICGTgiitvEpur8Z Rw+5/8c5dOmCcGyyVOTvZEHBLSO2eG2s3EThwO/+EVU/qh8VmlbRVdUOvSM1Dq8iSnt8 AB/dsLSQ0jYlFQH1xCXTNZ3Ub7JQwlxrCXav8rwpJaLM7jJrics76gZy3VIRLeD2M6x4 g0Kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:content-language:references:cc:to:subject:from :user-agent:date:message-id:dkim-signature; bh=SQjFcE8j23JULq9dg8h1e1w29f6YS7iHzyO1RTBpUtM=; b=ggOivzA7G27tQZ2r05ie/CuASpTHk+fVcMiwSDuvdr6VkHnMWiRj2CpOKDs9CgVtQB 31ytAyxtXlTlHCMzMwMjQC71Ewj5/vNklfSb/lh5bji+Bx1irgkAJJ4ndVeV8rCE5NtO IqELQY8VV1yViCnkH0N6Q9osBV3Q/GD0uo+sq4fAp+xKicOQzsd9CiPM5XD35I/LrDwV X1X3jcFcBryjnRvD/693oapn6V45CTTU+gD8LFUJh6lMe1i+iNJ7Oez0adYJfHKAziSr D26QsSX4uFFWuSFc4V18nw4CdLzh7EAehEGVpPx+WlZMT9lWRjNWTPAhy6t2NDznVqGA iSEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=NOfn6BGt; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); 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 l7si25222382ejk.593.2021.10.05.10.09.01; Tue, 05 Oct 2021 10:09:25 -0700 (PDT) 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=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=NOfn6BGt; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); 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 S236618AbhJERI4 (ORCPT + 99 others); Tue, 5 Oct 2021 13:08:56 -0400 Received: from mail-eopbgr130101.outbound.protection.outlook.com ([40.107.13.101]:35303 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235238AbhJERIy (ORCPT ); Tue, 5 Oct 2021 13:08:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dkdWnymBgekb6aircnYZ6HoOFlu9+iaCPPw2w/CFsJQzvUGcqH5UBc9E7Q0DKt0DLBxNlf0azYjl7iXq/q4uz/tyOScVw4ZGFeR2kyjXOBZD1nL1ItANFuXrGaBEujnooRwdI/mHRJf3rzWli0vOH/1+eWrtQMINAmiKV/HxS2D5TyTEzXzrmH5kqeO3XyY4ogW1DJ2sHHlpbJR3Q1Q4vq6Ssj+up9SzoLXTIHTnlozanv081mS//4WQkX8fhql8R/gAh3loGx4Lo2Ubuh3D5x7rdbl+DHD+K0079PijqeNwZcTA6At3SD3xSQ+GQ74dumh+OVlCilbmASlPHYCZ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SQjFcE8j23JULq9dg8h1e1w29f6YS7iHzyO1RTBpUtM=; b=PR1tAQRPu8vuRaTc1D3Ej582SsLwn1R7C9LeHg+SRhPYx5GnjO6oMVglMx0Pj+n0sVwOd6bC2RHGxS49A8G2Q4E31CPym7c2TJX1dSqqhgGl2FCJV5r9yQrz4bB39T7qVV5e9p2/UA0afr6DTrMLEO7n5qW+qxYjN3L4zwZsjb4SOuB9Rk7SKBljCvVFLN57OC+TJjTN/bUgvWU5ARbZ1W334Wrea9JMhRNTDnlhC9XRUy4loJyf83KB4K+q5GvU+4RvU984KLgSTGawYBIwNXZi+bme742hY1rue37kR05FJOybsql1c7Rh/rN39kfyRLutp7jnHV7mGl9PmsS6RA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.de; dmarc=pass action=none header.from=kontron.de; dkim=pass header.d=kontron.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SQjFcE8j23JULq9dg8h1e1w29f6YS7iHzyO1RTBpUtM=; b=NOfn6BGttKykdDiOTVexnVyS2yEOI5SVOcIHqB294qC0M8WG4iwC1YMYIcU8EoVluBUGW+7GBg8vktTXN214FjgOySiEgMRUB064MokNdVqAdxu+pBspA76T3mf9Gw3n0HFgUA+SVqTk7ly+Y2EmLAjxo2CBiTK//V8260EhHk4= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=kontron.de; Received: from AM0PR10MB2963.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:157::14) by AM9PR10MB4054.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:1f0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Tue, 5 Oct 2021 17:07:00 +0000 Received: from AM0PR10MB2963.EURPRD10.PROD.OUTLOOK.COM ([fe80::216b:62be:3272:2560]) by AM0PR10MB2963.EURPRD10.PROD.OUTLOOK.COM ([fe80::216b:62be:3272:2560%6]) with mapi id 15.20.4566.022; Tue, 5 Oct 2021 17:07:00 +0000 Message-ID: <725cc24e-f264-60ea-e30c-c50a61f7fe88@kontron.de> Date: Tue, 5 Oct 2021 19:06:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 From: Frieder Schrempf Subject: Re: [PATCH 4/8] arm64: dts: imx8mm-kontron: Fix reg_rst_eth2 and reg_vdd_5v regulators To: Shawn Guo , Frieder Schrempf Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team References: <20210930155633.2745201-1-frieder@fris.de> <20210930155633.2745201-5-frieder@fris.de> <20211005070949.GB20743@dragon> Content-Language: en-US In-Reply-To: <20211005070949.GB20743@dragon> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM4PR0501CA0064.eurprd05.prod.outlook.com (2603:10a6:200:68::32) To AM0PR10MB2963.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:157::14) MIME-Version: 1.0 Received: from [192.168.10.40] (88.130.78.70) by AM4PR0501CA0064.eurprd05.prod.outlook.com (2603:10a6:200:68::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Tue, 5 Oct 2021 17:06:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0839451-50a1-48e0-5c25-08d988228bb4 X-MS-TrafficTypeDiagnostic: AM9PR10MB4054: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7hJ8ifpNbovLOLayMWFltLPzG8ZRRZ4eN0MyNUvjrRIBH9WQ7dnT0d2QqnZdxw5mmIbkzbPi3ZQpoElwCc5ddlDt/vQ4jzZXxYNhItQVbFNxs1PgB75zwKhEHlRxNBPSTdDzvKgcH1MXHM9n7bZLX56/Q1YaGv68XfnbI+A2PrPTM0WvXZosbhMoayv1fEofmYXPiyPut+dpF760I5iW9OTmNcp8leRUKii0fsdloFIxvsXngCPt+9VbJm/1swuJRER5kPQVeSXFoEgIWuLJ9BYPHW9PZCJ5SurwTa3tB81yY0coTlMLSn/ZhEATgGS/07QxrBsz5rFUDpdaiSig4BwBrY2wJYKcYSrhSdy/cAOywsBh0ZSWPtZMrnjC/IlTlkmheisqaCW/SJP5HGFDrbEoUB5Nr8gsjSBs41HWvD203qnzrOs9jpJiaITbgV907sA6Ijelw4po8+JCWjtGdt//MKGZoLhiq2cpf2khqKlMBbm1WI54HRm5n8CRWvdI9ufA+O+SWitSzJLJPZe7ybBRPkhIkb0ZiGQFagmuviQkT7iMpC3dR31RRz5z+bCdTBYXIBg0oaMc2QTRvSp6ayVdDIrUL3+z+PDDk4Bqpiz+9RvyWkRa8m341JAC2xY5ztr4+SSaAEFam8DgOdz/Y+A25qs2m60OaBXtzo4ycR1u2tdl/MUpfRnLaiB7Cdpbevu2E9MZFEo28VPeIQjVBLcI2FKidQTvVsaMGQjbzRUQGH++5OynJNeOVaqB5/bykJiNiOtnnautTfomKX0u3A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR10MB2963.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(31696002)(36756003)(8936002)(31686004)(86362001)(66556008)(26005)(6486002)(956004)(2616005)(2906002)(186003)(508600001)(5660300002)(54906003)(53546011)(83380400001)(66476007)(8676002)(4326008)(7416002)(44832011)(316002)(16576012)(66946007)(38100700002)(110136005)(32563001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MzJwSUV4ZWFFd2kxanN5UlM4TGRvVEw5UGd4Z1NWcVpTYWk3QVl5RnFFblpX?= =?utf-8?B?NG1OWnNHeHduZDVwTko1NDlFNUZpT0RhZ1ZmYzV0S2FaakZWT2d4ampJQWpT?= =?utf-8?B?VXUwNnQ4RG1sUXpLU2xGRk9EZVV1NElMVExnQW9uaFE2ZE4xaVZaU0ZpREVZ?= =?utf-8?B?MCtTUzhMYW9kc2wwd2c2cGRQcmVFVk1jY09JZXhMdm14MlByVmxTZnEyRnIx?= =?utf-8?B?RWZlWHdOT2Y4ME1BOHBBQ2Q1VGFmemZzVmNRbUtBcThYN0ZoSElYQjB5NTY1?= =?utf-8?B?aXduZ01lOUp3WFg4OUpsSUxQNWp1dXc0YThJczFIUDh6a0EzSW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TzhidUtJMDZPb2JYcXphNWVn?= =?utf-8?B?eG5vRFkrZzFucEtiNzlOZVA1dlhKUGZVeG5xRG9BQzRSQkZ5Qjd4TkRXbWt1?= =?utf-8?B?T2orUDY0aHFhTnFKOSt6SS9DVm5ERDEzdjhzOXFaTnZOQXNBOE94Tk9MYjF1?= =?utf-8?B?eXRCN05xazduZ3hSZS9nYUZLdmxLZWQ2bUF2blN5c0ZZM2J4Lzd5cVFPQm9u?= =?utf-8?B?aGNyTGF0WmZnbTd0UEdOeXlXV1FoY2E4d216WlN0NStEZEx2T3RBN0FXSEFB?= =?utf-8?B?VGtDN1grREhMdUIxVG9vby9haEMyeUV6NUdlN1B2VWhPRzlYTi9qY0ZtWWxz?= =?utf-8?B?QWhHZkhEV3F0eVZUV2dNL29NSGhwcWV3RDVqTTdLNXgwL0tNTzNVTC9Dc2or?= =?utf-8?B?bFFGQThDSWdrWjRUU3JLV1Y5aytTdWhXeTBncXRHVFg1ajlSemdBbjhyclo0?= =?utf-8?B?ZWl5a1ZuMkREbk13VVJGRFkrZVFZNXJQWk5rQUpzd1p6WU5waS9pZWh6VStR?= =?utf-8?Q?1PiliqpjAgUrrGzpEo3fYoE1ofIVF66+oDepHj2?= X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: a0839451-50a1-48e0-5c25-08d988228bb4 X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB2963.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2021 17:07:00.5273 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WzaVHWGfeJCSScrw73NBkNQAZy0mfxfWDSZMgQdAC5PnNyC+RZr4VFYRkEsT1cQfCT0dwTVl5DP4YhML4mnigr4rXrb1zYGkylzS0pdrmqo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR10MB4054 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.10.21 09:09, Shawn Guo wrote: > On Thu, Sep 30, 2021 at 05:56:27PM +0200, Frieder Schrempf wrote: >> From: Frieder Schrempf >> >> The regulator reg_vdd_5v represents the fixed 5V supply on the board which >> can't be switched off. Mark it as always-on. >> >> The regulator reg_rst_eth2 should keep the reset signal of the USB ethernet >> adapter deassertet anytime. Fix the polarity and mark it as always-on. > > It seems to be wrong from the beginning that the reset is modelled by a > regulator. Right, but at least at the time when I upstreamed this, there was no way to pass the reset GPIO to a USB device driver and using a regulator seems to be an accepted workaround as far as I understand. > >> >> Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") >> Cc: stable@vger.kernel.org >> Signed-off-by: Frieder Schrempf >> --- >> arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts >> index 62ba3bd08a0c..f2c8ccefd1bf 100644 >> --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts >> +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts >> @@ -70,7 +70,9 @@ reg_rst_eth2: regulator-rst-eth2 { >> regulator-name = "rst-usb-eth2"; >> pinctrl-names = "default"; >> pinctrl-0 = <&pinctrl_usb_eth2>; >> - gpio = <&gpio3 2 GPIO_ACTIVE_LOW>; >> + gpio = <&gpio3 2 GPIO_ACTIVE_HIGH>; >> + enable-active-high; >> + regulator-always-on; >> }; >> >> reg_vdd_5v: regulator-5v { >> @@ -78,6 +80,7 @@ reg_vdd_5v: regulator-5v { >> regulator-name = "vdd-5v"; >> regulator-min-microvolt = <5000000>; >> regulator-max-microvolt = <5000000>; >> + regulator-always-on; > > You do not have any on/off control over the regulator. So how does this > always-on property make any difference? Right, this doesn't make a difference and is definitely not a fix, I will drop it. Anyway, this regulator is just there for completeness of the hardware description. > >> }; >> }; >> >> -- >> 2.33.0 >>