From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4BECC433DF for ; Tue, 25 Aug 2020 07:18:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7688820706 for ; Tue, 25 Aug 2020 07:18:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="G/5wEUe0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7688820706 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kubtj/1bH29X+SKtL73sdPhw+0yn8ogMGvioDbzoJHg=; b=G/5wEUe0UibycD7wj6e7bozzy BDy6OWnmnj+UWDm4oDYlSsrVuv0Dn8URh1BFJwucReg+gKd4lD96AotW2YnTjxwusSk/WW97/VKJ7 YsrBp/fRf00Nc8s+vteWXxe6GP+5VaInsWreIwEBLR5SOqGibK7ixqqDskcXKjI6t+Iv2LmIHedRi 89WKFE0nBb1x0BFSG9mJdxRszn658kq83q1OyNDEY1WBWlVc1SM38oM84NZxi8h8WMjWTVmgR+pUs cpnBMcV0s/dhazSv37sOnCfLizUHSza5Ff9Q72THBQ9uYOh+Lmq4/dqKDJ3LMHO34YdGyNZoVkX/y 8RYX+yPVA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kATD9-0003Wi-DS; Tue, 25 Aug 2020 07:17:39 +0000 Received: from mail-wr1-f66.google.com ([209.85.221.66]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kATD6-0003VI-K7; Tue, 25 Aug 2020 07:17:37 +0000 Received: by mail-wr1-f66.google.com with SMTP id r15so11562664wrp.13; Tue, 25 Aug 2020 00:17:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VUO6i/U3AVhRZX9XkX8wTuXOsuDoxa3aV3dAz0woA4o=; b=JGXxN60UHh1hbRbdy9Bs78OUQHnzOkwU7xYzE1qd6cEjfXfYruihaQjXYZTikRilbI dnlpJGecwq4fkvM4RD6vb22Cajn6oIeNT4jH/krfyP4eMfGMN1+Dr2Du9WpKxWSkMFRc Seh5WFAV3HXUAUZQ2mOs/u7ynW9VEVW8FlZTWgqnPJK8wfiWZCfEb/ko8ZD0RgfjzQ9X D6zoL5SswYyMXUG+uh/np4UvAdnbSHDO6aNS3XGSdcWF0uXM2tnFMuZHV4k99telJ8AT 8J9z9VnlvZORCmWNQHAv9xdf6d9lxagg6POl4xO57lLLGtoaszKlf6SOy/B0FaY2xQKu opYw== X-Gm-Message-State: AOAM530bQxUOMubbjT5ZqYvJUpB0d09jJ9iQxNM7ms4RCwbLvjs68X7T tHgnGAUC4cIJrjjo1k4oniQ= X-Google-Smtp-Source: ABdhPJzJYPNbntZuVXqhHtMzbv8B44RjyoelOfsWDije4BgkxJQBl+U8ambvcHbMGJuX5NndB1iaIw== X-Received: by 2002:adf:fd84:: with SMTP id d4mr8719602wrr.243.1598339855693; Tue, 25 Aug 2020 00:17:35 -0700 (PDT) Received: from kozik-lap ([194.230.155.216]) by smtp.googlemail.com with ESMTPSA id y3sm20848575wrs.36.2020.08.25.00.17.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Aug 2020 00:17:35 -0700 (PDT) Date: Tue, 25 Aug 2020 09:17:32 +0200 From: Krzysztof Kozlowski To: Sascha Hauer Subject: Re: [PATCH v2 13/19] dt-bindings: nvmem: imx-ocotp: Update i.MX 8M compatibles Message-ID: <20200825071732.GD3458@kozik-lap> References: <20200824162652.21047-1-krzk@kernel.org> <20200824162652.21047-13-krzk@kernel.org> <20200825044653.GK13023@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200825044653.GK13023@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200825_031736_716869_75B81C47 X-CRM114-Status: GOOD ( 18.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ulf Hansson , linux-pwm@vger.kernel.org, Linus Walleij , Frank Li , Thierry Reding , Srinivas Kandagatla , Miquel Raynal , Will Deacon , linux-watchdog@vger.kernel.org, Fabio Estevam , Bartosz Golaszewski , NXP Linux Team , linux-serial@vger.kernel.org, Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Guenter Roeck , devicetree@vger.kernel.org, Pengutronix Kernel Team , linux-pm@vger.kernel.org, linux-gpio@vger.kernel.org, Rob Herring , Han Xu , linux-arm-kernel@lists.infradead.org, Fugang Duan , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Li Yang , Philipp Zabel , linux-mtd@lists.infradead.org, Shawn Guo Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Aug 25, 2020 at 06:46:53AM +0200, Sascha Hauer wrote: > On Mon, Aug 24, 2020 at 06:26:46PM +0200, Krzysztof Kozlowski wrote: > > + oneOf: > > + - items: > > + - enum: > > + - fsl,imx6q-ocotp > > + - fsl,imx6sl-ocotp > > + - fsl,imx6sx-ocotp > > + - fsl,imx6ul-ocotp > > + - fsl,imx6ull-ocotp > > + - fsl,imx7d-ocotp > > + - fsl,imx6sll-ocotp > > + - fsl,imx7ulp-ocotp > > + - fsl,imx8mq-ocotp > > + - fsl,imx8mm-ocotp > > + - fsl,imx8mn-ocotp > > + - fsl,imx8mp-ocotp > > + - const: syscon > > + - items: > > + # The devices are not really compatible with fsl,imx8mm-ocotp, however > > + # the code for getting SoC revision depends on fsl,imx8mm-ocotp compatible. > > Shouldn't this be fixed? It seems strange to justify a binding with > existing code. The fsl,imx8mn-ocotp is actually compatible with "mm", only the fsl,imx8mp-ocotp is not (although someone might argue that subset of "mp" falls into "mn"). The problem is that drivers/soc/imx/soc-imx8m.c checks revision only against the fsl,imx8mm-ocotp compatible, not the others. It's the pattern used in that driver also for other i.MX 8. Therefore it is a binding implemented and actually used, regardless whether it is correct from hardware point of view or not. If that's preferred, I could adjust the drivers/soc/imx/soc-imx8m.c for the incompatible "mp". It should not break anything. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel