Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1846667iog; Tue, 14 Jun 2022 14:56:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypxeh12NkFby3SMBRbWoJqH9EqZfn38bD2iwCrXeyAQhP9+Osrps1aTMTGIzjF3xMKXs7P X-Received: by 2002:a65:6cc8:0:b0:3fe:2b89:cc00 with SMTP id g8-20020a656cc8000000b003fe2b89cc00mr6136390pgw.599.1655243790714; Tue, 14 Jun 2022 14:56:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655243790; cv=pass; d=google.com; s=arc-20160816; b=lkHbDZhXGFWflbVMegRkj+LxuTbIFW3+nwnXD92PHS9QAz64413iXotYOG1xmPb8QL HOnf8xPuAyla4GcvQP5nRU6zSic47+90Czm3/emdA4QeG/FXmMV9CNUJOst5fzEnk3OF N+HPFFCJKxfLq27yAY2TOXGMwvKaCP1OJG8tqqinQm6Y8aMEhWag0E/cBGHk7s2fNKWd 8Dq8XlmnBgV05wlOu0H4QovmpO8496OfXCGfu9vfGsIbMgr66tc/jwpgzdkLEOcjoCIH 8LTegBSk2YcyNxELEkX3MXzhjEOM8akppta93xSzFDcOp/3qXBZP6bmMlwMVY51BIj77 sBsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6wJGwi07HtK05NQWgbAZxhWwx1aPuF4EDqd9d0wMruE=; b=yGlAEryjnD/odUHTukNxdQPfMU1/EKAXAnFgiBX3w0Nx9TiFRL8g2kL8wdNleknL8H JiNlH73pywCCCdwGizlKeyJHj/E2WuqgTS3cSNPzySO1jt7Ll3nkC7zmnryOseAsoLEG wqw8ha4VFIF04CfVyjHU/NtL2i2h2UQdwbsPvCUaw3wk75RwSiKvIw+tDgdu+Y5KBgas LAR7tqwTWHYMyqjRNiYJeOtd7Z88fG7W7b7OUj+FQlV+GlpbFlnxjxgSRnNn5Y+ViF5F F1fG6NgPReRIiPnIN9dPSob/IOmD4ZPKwDT3kdoAtm5RxL5UbSNdo20ppfAi96Rg5xOD 1ViA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=IgThAm7x; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a056a00139800b005183283a2dcsi15562982pfg.59.2022.06.14.14.56.19; Tue, 14 Jun 2022 14:56:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=IgThAm7x; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356528AbiFNV2I (ORCPT + 99 others); Tue, 14 Jun 2022 17:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344334AbiFNV15 (ORCPT ); Tue, 14 Jun 2022 17:27:57 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2133.outbound.protection.outlook.com [40.107.100.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A56AD2936B; Tue, 14 Jun 2022 14:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gnxvyb0vb7vUxjetrZq4kT3ERKviGI49ZApLKbkHvcrzuZcgf29Ou1w9n3eHHuWs0g/ZMI4yAt1kV4cd+o21Q3fh+mclNc4cS0MSNIeLM1xgnZ3QR9yRIp0fMcXPEvvRH+NH7wQ6JOKrTBGlUCt+hKXHAL9ryMkTLsv3honFZK+yVZx085rjNcKrubPWbzg5tSeTd3VcwTJzBAfzn0McVLgLaGjXvrVEnARlKIhQ+j3Cb+4ML908GkUrqzIRd+uPguOj5/FYeih7DuQXaK04Jkgue1u/WLp2jQl9SwRUntaUpWAf60vSZtnlFG+HaQ4BcFfDZUOXiewiY7xrKRB3Pw== 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=6wJGwi07HtK05NQWgbAZxhWwx1aPuF4EDqd9d0wMruE=; b=BNjsd/LyAVs/mg+uNZ3PzDgXlzsiVNoV4Ve96MGsMbivr34JYKqLk5vI40gudWvhwneQMkfTe9zuh5VX1fTpMN0HhdP6YkqDRKi0VaWZ98o/ZotJGImWSdMzeG4+9d4GiTzxaurU4Lqz+Ub+QGUc8impswfyFzjyrS66wl8ZM6AeBj7VwuFKnOunTb+decX+suwmM4v58EOQKRUvqYUeGNzbXJQkz+ENOoqpysOVJOsglWiFb9Xzd4quwYlEv6ewT2iSp3wRjqMhhalkg1+g9Ei0+UtKCpCTQ71pnKQnGMp8m4Cpm3+pO762Vnx/uIWpMsT0D9yb65kCw+NBN+E38A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6wJGwi07HtK05NQWgbAZxhWwx1aPuF4EDqd9d0wMruE=; b=IgThAm7x9sYPtwDWxaphJaVXFaumsGLbDsIDmAlVfCkNcNs/DOH6FGy0ZRjzcZ/fspaMXZtTF+yuw2clYvcDg3s3V1XTHg5pkxcli9BC3QHDUWaWp4dRvtFpbJz+kJ1KHkBQKItzutXSZ6vzlGqUBR6fl9MRcP3GTrHSXzzRLpM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by DM4PR10MB5920.namprd10.prod.outlook.com (2603:10b6:8:aa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.20; Tue, 14 Jun 2022 21:27:51 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b8c0:76a2:4c89:d10f]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b8c0:76a2:4c89:d10f%7]) with mapi id 15.20.5332.022; Tue, 14 Jun 2022 21:27:51 +0000 Date: Tue, 14 Jun 2022 14:27:35 -0700 From: Colin Foster To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Vladimir Oltean , Lee Jones , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Linus Walleij , Wolfram Sang , Terry Bowman , Andy Shevchenko Subject: Re: [PATCH v10 net-next 6/7] dt-bindings: mfd: ocelot: add bindings for VSC7512 Message-ID: <20220614212735.GA592415@colin-ia-desktop> References: <20220610202330.799510-1-colin.foster@in-advantage.com> <20220610202330.799510-7-colin.foster@in-advantage.com> <20220614204345.GA2419690-robh@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614204345.GA2419690-robh@kernel.org> X-ClientProxiedBy: MWHPR13CA0038.namprd13.prod.outlook.com (2603:10b6:300:95::24) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c6fd3cb-4bde-43e8-3605-08da4e4cbba7 X-MS-TrafficTypeDiagnostic: DM4PR10MB5920:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FqfbI3nfqA5ClwctQyPsxuxnuXM5OEcs2sKOuH/ehU3yZ72PAc4XqpTkezEBMfYen3PbmqqtU81NeOOmKwnk/ioR/5D3WxfoRbzsjfAnFUWcIWq6FVJGSk+kyqlT583IabwvVuy6aZwPq2+1lfOHxnGtNEaB7kgyv7IVKGLLCH6qV0AlswE3vXMvYw7FxR37dedRtR0oCUc6Wu1Kx2yzbntTerapDDeNuK4nBipHZhz8nna2ZmhX5BNrwjmP9y49jYpnAyFcTaPFtFeVoQncr4JZ4RxXgdkkRk3RwnpYljj5b7xNtDaGBKMDbnqlsLzUQIRQvZhzwOQek2/sf8vriuoC7AaDCVuToCYajzE6adiE99LHFI9cNzEmUVbZSZUgyFjXOt6jvOCLQgU7H6EpedhEQGYx2PVvi+m37YmQdO1Zf9n8DwKp1KT/cHku3ls7VHSYBxgWS6trSozZiEP522t2L5mINQVk6MRvJGHE+hrN1tPz/y5hARe0Ahjr09WaaDkVPClINCVjCAHwuqtJdRCxu6J2+KXPtbqswcItfbzkvrF9cHUn2ijkTlaakKWpdtE8giETQhpHzLMwcgn2oySV1nlLTTvqVL0aoYJ5HX5LdVmfJwwWdxqm1bSiZojBJa/F7hG/KDZhHwEt0FU9zqpAIS2c0Y3O/ZfUitWBTGCVnXqb2Zz/6h6bnSA3wetz3wTn2lawltvd3A2xKhJw8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(7916004)(346002)(396003)(136003)(39830400003)(366004)(44832011)(41300700001)(66946007)(6666004)(66556008)(33656002)(7416002)(4326008)(2906002)(66476007)(26005)(9686003)(8936002)(38350700002)(5660300002)(6506007)(508600001)(52116002)(6486002)(1076003)(86362001)(186003)(54906003)(6512007)(316002)(38100700002)(33716001)(6916009)(83380400001)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lCEX1/uCFl7t2X8SASUx5iXBUjQ8jHIgmoDbbUdtJ21OEyZrnHQ/F6EzaGGY?= =?us-ascii?Q?LVRZerh6iNAX8TzJV3L9XkvN21jWVxw92lUFVVsqLAicLWHMd0L/JvJFbMuT?= =?us-ascii?Q?pqsK2BMFrFJUTL9d4weUafKrNayOHxn5WRDsgkWwEOjGUSQrWBFmN8zubVTs?= =?us-ascii?Q?1oYDVyWWA21XX780yJoXU0eRvVQWzrPkWjYnfMygAHulK1nm3BLinfQKn1Cv?= =?us-ascii?Q?8F9rIbM5vdFmO+93Ihct2ybI1cfdn3DK5Pper7Yr+Imtw9vLuOJklx/FlPRX?= =?us-ascii?Q?ubkPB1rBQIf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ui9vNk87tPoIj?= =?us-ascii?Q?nl/XzoVThMWVbW6HHGocVH6hi6wp4qklFUTU3wU+haUqUoel3r4QVGdn3STl?= =?us-ascii?Q?wI4k1c8xLCOXiYBoECxR729Z8pc1GxQbvbvkJljPRFFzefUm/LgDYyDu9KMo?= =?us-ascii?Q?bCCjXfzi6qlFoZexihF/VvKKp0SxUClNj4dGxlLt0k2FOOcbYaqCDhqVkHa+?= =?us-ascii?Q?AMJdBshD1l/WvlavMMikLep+V2eVekGYEb0e7jzsZHYzpKCNGMsc8tA2H8UQ?= =?us-ascii?Q?mL1Xvt3/+Ej1fiabZiN2oy/GwRlmEiBu3Ovs3Vp7BcsQDeBqpSXn+zu0Mlrc?= =?us-ascii?Q?d9qQwoXHMdUGntOcAsNW8FN+6MOtIblXKpxltnZCy8oof1roRej0dZAb2LOb?= =?us-ascii?Q?nw+2MugIcN1NvQSDhigZ2Iy7IfNwNSCbyit+Fpbwd9maPY/uoq8X8AGj0PgR?= =?us-ascii?Q?19vD37IN0ikxdJaE4hwVBDmt9bb3jXnXzTkDtdEsY/5EDmy0f9VzfEhw81I9?= =?us-ascii?Q?Swcq2gKEpVu9Jw1jHeckQ8rJuFhMo6crT6M7ONMybN39b2nAkBd1V4WInzf8?= =?us-ascii?Q?tmFFjj8KUeIndv/pkYf9rh4YlmVTNK0=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c6fd3cb-4bde-43e8-3605-08da4e4cbba7 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2022 21:27:50.8187 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: E9nmWjCweeEmBvYjftqzRQPbfKubMLXw+JxWy/FKjja+OIkjvdHzTTPjuqARxWnpt+7JqvXGxGnXqy4l/QrCim68By9lTUYyLgTp2M0Kdfo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB5920 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Rob, Thanks for the feedback! I'll include these changes in my next set. On Tue, Jun 14, 2022 at 02:43:45PM -0600, Rob Herring wrote: > On Fri, Jun 10, 2022 at 01:23:29PM -0700, Colin Foster wrote: ... > > +properties: > > + compatible: > > + enum: > > + - mscc,vsc7512-spi > > '-spi' is redundant as we know what bus this is on looking at the > parent. > Ahh... I see this now. A spi driver and an i2c driver (or otherwise) can share the same compatible string, and the device tree sorts that out for me. Thanks! > > + > > + reg: > > + maxItems: 1 > > + > > + "#address-cells": > > + const: 1 > > + > > + "#size-cells": > > + const: 0 > > No size? That's odd given the child nodes are the same as memory mapped > peripherals which expect a size. This one has gone back and forth a couple times. The base addresses were hard-coded in the driver and kept out of the device tree. But I couldn't explicitly differentiate between mfd children "mdio0" and "mdio1" below, so I recently added the address cells back in. This way mfd_cell->of_reg and mfd_cell->use_of_reg can be used. Unless suggested otherwise, I'll add size in here. As it is right now, that size will be essentially ignored though. The resources (base and size) are all defined in drivers/mfd/ocelot-core.c during the last patch of this series.