Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1020744lqj; Mon, 3 Jun 2024 08:01:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaFkfVoNg6FmHXEmCmtmVJVhoX8UOpaprwsWut1wVcC7nzsL96XeZAIq2eTfxvSuVhW+0DEh/oTgNSTu1lknibAc5CQcyg3gk9Y3n4JQ== X-Google-Smtp-Source: AGHT+IGcFScvfNv2ha2zgH2dx1NMgXVbmtqRGppNyOgCL1RT3FScxQUJLEXrZWXDoclwWYLKfiMV X-Received: by 2002:a05:6512:78:b0:51c:3e9e:98ee with SMTP id 2adb3069b0e04-52b895864bdmr5527822e87.23.1717426873350; Mon, 03 Jun 2024 08:01:13 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c69799si4065702a12.268.2024.06.03.08.01.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 08:01:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199332-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KzpRmN2R; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-199332-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0FC521F2276E for ; Mon, 3 Jun 2024 15:01:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BDA2847C; Mon, 3 Jun 2024 15:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="KzpRmN2R" Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2066.outbound.protection.outlook.com [40.107.105.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 463EF391; Mon, 3 Jun 2024 15:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.66 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717426841; cv=fail; b=SzJFBmbq3Yb4Sv+oXHcMQOpkk147M4oZkl6TqYmFkrZwkXEI973CQOGRarcKvMDwoZ/n89TYo4q95VLX+uLu+mMacNX23W+lyGwkTSoVPzC5wBLAVBOHFiBNsoSGPvBl8TTYYAvBjAjuU3RQUNadVbgGc0HzYs7evIjvUfPmbYg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717426841; c=relaxed/simple; bh=EesVeiUONRoIYjV/LS6LC8wpkAlHfqxPSVngGw2QupA=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=Emp/49Eovj1E45nHACWXV6vrYN46kxmX/RiZ85gKQsxo9oYI1k3xjVHLmqP0l4SkCEzDNNlP15nFNxfbjirfoRXh/T83TEElXXfwHEJaK+esZY+DeTmhzEfIPxjlXSgIkq8nI19WcylAABL9FOgFEsfr/Q+L36z54BOwwagxbVw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=KzpRmN2R; arc=fail smtp.client-ip=40.107.105.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QOSE3OmOBRW9hImw+bdUML37vhnoT5XQdW+dXxRYYiF0hMXBZuy5MPN9tPCz+864h9V+hPjMxlKNG5miN4JtCX8eBO70bYnJHjaxZR7hMdLiK73Cl2Ft+YDKBI75HuavLXLEg3z47uEPr/AcfxTok25VVQGiF+ssJmq9y83L6gjdVu0es/taliXfTEpZMtsR3eS28AYvBCrSyJT29QOucwlvksGNCYMdosYGH2FST7HafioExH+ojVYtrBFhamN4qNMJnZQvzYn1S0NmUohkw0i5o+G3juIlXV7UNGekYEdT2cCA48luxi3t20nHRuzdW65pNZpDjHQ6FLGtbE+Rvg== 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=8eiXHN0j4hAbw9JzOWJtZkz4jKhLYpgFdhcefE5feQg=; b=ijb7kaXEAqAEYYn/k1m23c+J1sAb9c0BHgE/Hj5O4Z9MBtQDkgDy9tZt0/QoOK/675N7wu0aQi11vIzoG6PKYx//7QLEVlGeuwi5LRaGRVidaKLVXScNzGhvrSfO1FBcNFAaBDd9/NpNrqulMBwWdM9m6FZ567YSmpUpjbiuwxbEXmnGaOP4OpXMpA/CAtEgo0YY9gMlqaSwD/xhTT1jKZWyUosJcsAj6imOu7LKkkdfx+Is0ap+ciIRIRsPuGQMo/1vVSGZZLZHA+o1CtLPp02OhRUcFvfQHW+AkN6iK70kuCHrneRboKry6BM/e5wWYt7MUqDBkUt5uqr0Xbc+jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8eiXHN0j4hAbw9JzOWJtZkz4jKhLYpgFdhcefE5feQg=; b=KzpRmN2RatqL/Z46ydWhBpPiCPGyWLi3X6Sj5gUtRvVg/TPzcBWI15z8f4lQsIxkrbX3GMY8s0bz2r7NQFoguTQrPzZ3WmHjKbDPEIJO5Bca60ptEHQEk1fyf5agTt8s3NJ4aVt4+pL7y6wJ8KNIftLsfgRZfbaWaQr10vVs5Uo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB8PR04MB7050.eurprd04.prod.outlook.com (2603:10a6:10:129::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.24; Mon, 3 Jun 2024 15:00:36 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 15:00:36 +0000 Date: Mon, 3 Jun 2024 11:00:28 -0400 From: Frank Li To: Krzysztof Kozlowski Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND..." , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , imx@lists.linux.dev Subject: Re: [PATCH 1/1] dt-bindings: mmc: Convert fsl-esdhc.txt to yaml Message-ID: References: <20240531193745.1714046-1-Frank.Li@nxp.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BY5PR04CA0028.namprd04.prod.outlook.com (2603:10b6:a03:1d0::38) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB8PR04MB7050:EE_ X-MS-Office365-Filtering-Correlation-Id: 74fbf25a-4c36-4b5d-d85e-08dc83ddec85 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005|52116005|38350700005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?0CPtFdnRfBfi7lJOCQd5emtloxAqwFnhh4A7smFZNjCVpS0yK+98v8fSvDM+?= =?us-ascii?Q?DrNXZgtj7KOkVOpOsGUgMgw/R6jKGzISMEo4uG0G1TEjqOmHWYO2SLt48vkU?= =?us-ascii?Q?M6kqAjEPoVFhBy3X69MnZ8sz2dMKdyVZ6xQj9G/O8pvNs8oi9cyYSBKpNsvo?= =?us-ascii?Q?OAyL/q0iNK8+WqXsEp72fhEivB74+41SgtjhFbuvEiP+Ynmdb+v3mR+fzpu9?= =?us-ascii?Q?XAEpfAOxjjuVoo5ltrKnip+g1IcNYCdKoRNvTimEf7aPEjQRT5ZZiwcR7dPf?= =?us-ascii?Q?nl7kZ6KuLlX/eZyheJC+Lv8mZHwnmjVwninXO5UGRK3itqc++y/+Uh8ui5o6?= =?us-ascii?Q?e8WgTSJUTCikvzFrDyEGq3ZPh+iJ73mgESzy1noScGsii97g+/uJVtcvsHox?= =?us-ascii?Q?VDzJ+Vz8sRmk+rxtx837aR7Pyr//TjCkin+2tYSucmXlVNZvw9DREjFk8Cze?= =?us-ascii?Q?S30bCxNr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Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(376005)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?vypXhQdWk0ZAfBtgjGiPFcArEzwOSNN8u+l8axGF8oeZ/s2rL1Z008gkxxu9?= =?us-ascii?Q?khgF7++jiASO4+XEIGEXTMwUdsZIO/CzYhAtxFRgC8iN1rMjAhCISDeAi7pm?= =?us-ascii?Q?KrU36CcRbI6U9nRT5CDGvz3qQWdREMvbI0AdUvJNLGI7QIml01VL5uwVp81s?= =?us-ascii?Q?EKOvKORvMyaW4HV/uKFgz1w/FOAemMCXARnM/xpFrktROdCI7x9ABV8asBl0?= =?us-ascii?Q?BH+CyBlbDrxCK+Az11qTMy/jESV8SY9gJWd8bON+ei9pUdDE3csFDIKEfkTB?= =?us-ascii?Q?pyjGTuwHPOrSptNQ+DVze/3E5ezsoJ2TRG0/dcxCbYEfQdx38aIfPh/b+mOM?= =?us-ascii?Q?RAn3Gfr9mlilM0tkVyXqcNneZEBL0QnwAx56XVkDh3Dr1r+AT+nQ78H7+0mU?= =?us-ascii?Q?TEk7gl+iLSamGzCSwt0ogxBcgt16DyBM+DftjokLosRgdPG6BNzIou6MJaVI?= =?us-ascii?Q?+jh6KL7kK+50fZbSzmyXfnagBd6ILlv/Pgl1AQCwxM/d2Xt0q0GQX501UwSF?= =?us-ascii?Q?tCw36SpmuAhh+XdsIu0SREVIJMUbBKmzdNWpnUhKl9T8TWSO9hmPIo1LSfqf?= =?us-ascii?Q?JvW42vLqUzYyjGhuEQNE7WmYwdDwrk5DOCy59afnLJf1ZSK4dt8FRiBSfJSb?= =?us-ascii?Q?QC4DBLlyJuFtteClOBfMyVACOM2DU9FCyUVUtGLq0xSgVVG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QkGUuatUUvOj?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74fbf25a-4c36-4b5d-d85e-08dc83ddec85 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 15:00:35.9827 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JFFGSzyCRO8VOpwDU3LdgaO1ik3prMVr9kZ1braOsEgP732Thf6/0g2CqppGmJRhSSM40pOW8A/9cIEXMzXsgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7050 On Sat, Jun 01, 2024 at 05:25:46PM +0200, Krzysztof Kozlowski wrote: > On 31/05/2024 21:37, Frank Li wrote: > > Convert layerscape fsl-esdhc binding doc from txt to yaml format. > > > > Addtional change during convert: > > - deprecate "sdhci,wp-inverted", "sdhci,1-bit-only". > > - Add "reg" and "interrupts" property. > > - change example "sdhci@2e000" to "mmc@2e000". > > - compatible string require fsl,-esdhc followed by fsl,esdhc to match > > most existed dts file. > > > > > > -}; > > diff --git a/Documentation/devicetree/bindings/mmc/fsl-ls-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-ls-esdhc.yaml > > new file mode 100644 > > index 0000000000000..cafc09c4f1234 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/mmc/fsl-ls-esdhc.yaml > > Filename: fsl,esdhc.yaml There is fsl-imx-esdhc.yaml for freescale imx esdhc. If use "fsl,esdhc.yam", it may confuse user, which will cover imx chips also, actually it is only used for layerscape chips. Frank > > > @@ -0,0 +1,98 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > ... > > > + clock-frequency: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: specifies eSDHC base clock frequency. > > + > > + sdhci,wp-inverted: > > + $ref: /schemas/types.yaml#/definitions/flag > > + deprecated: true > > + description: > > + specifies that eSDHC controller reports > > + inverted write-protect state; New devices should use the generic > > + "wp-inverted" property. > > + > > + sdhci,1-bit-only: > > + $ref: /schemas/types.yaml#/definitions/flag > > + deprecated: true > > + description: > > + specifies that a controller can only handle > > + 1-bit data transfers. New devices should use the generic > > + "bus-width = <1>" property. > > + > > + sdhci,auto-cmd12: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: > > + specifies that a controller can only handle auto CMD12. > > + > > + voltage-ranges: > > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > > + items: > > + items: > > + - description: specifies minimum slot voltage (mV). > > + - description: specifies maximum slot voltage (mV). > > + > > + little-endian: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: > > + If the host controller is little-endian mode, specify > > + this property. The default endian mode is big-endian. > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > clock-frequency was required. Isn't it required now? > > > + > > +allOf: > > + - $ref: sdhci-common.yaml# > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + mmc@2e000 { > > + compatible = "fsl,mpc8378-esdhc", "fsl,esdhc"; > > + reg = <0x2e000 0x1000>; > > + interrupts = <42 0x8>; > > + interrupt-parent = <&ipic>; > > + /* Filled in by U-Boot */ > > + clock-frequency = <0>; > > Please provide complete (final) example. > > > + voltage-ranges = <3300 3300>; > > + }; > > Best regards, > Krzysztof >