Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1038528rwi; Thu, 27 Oct 2022 10:20:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SHmOLgN+VWepUcfSy/+lfA3IanDw93bMQDaMpNelN/wwI7XKiJ2htAjWEW+xvaQs/IXyO X-Received: by 2002:a17:903:183:b0:184:5b9a:24e7 with SMTP id z3-20020a170903018300b001845b9a24e7mr51140554plg.79.1666891252781; Thu, 27 Oct 2022 10:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666891252; cv=none; d=google.com; s=arc-20160816; b=WTpxHtxZnaHbHEvyIkW+7tUnkXMH0Rnl2bL2m6FFsOyTEXw8V2alxbvHy0RkYbZp+8 JsVm9n3CR1JSYRISx674hvtMJLKpiaOJbKjaZU8E6XiJnOzTDsQD0ZESFXweqckEBxUG MTRaANPGapJdX1OPuYBYkMaYt2O0B4hfzOY1TtHyelHMr57ameADUtYtrrNCtdWC6lcT W3+3U1Y/SiRb4delIzUfhdVj53Fej6HoApb1AudLgVgBk+9QafC2ZKpt2GmchcWYOtfU uhA64Xqmw2a1H00gV916+3KCbsdLvtg7bzB1sot4cc1RpB6oStQ1z0jrv3/+gszC+5lK JTyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ub/UuR49D98JnSHq7xzP8q4azrXYgGYGBiD0zPIpIJ8=; b=LCnGaZtpgBxTXoKPT1YGxhQZGZfq2MZpdXQNhf69g0TfqF/o7ybW2jLklyW/Es8+Z1 xb8ogTm9pqupgVo0K6QenLrr0q5XBPj6i/9WiNxJZSaEm10EP9voolP9Z2xDRInXoeSz vxyf5By3VQBXO8qJj7jMARjPcUOHQv38pNzeblU9730rByXOUzPq1VHd6h8U7BISQ6QZ WtMfWYSrbSlkO5wZ36v+Cy/xh0MiScpIqO0ZXbhWSe7l/hMBfMXweI72uNfkpadcFxEY TXXt4j8s1yRDnn+ttudGsIgrw12QaJ95xAdAmljduViM1OAAPYttQ34nz3e21eN/sIBh utLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=qTM77UVu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020a63495e000000b0044e12bf26ecsi2119612pgk.465.2022.10.27.10.20.41; Thu, 27 Oct 2022 10:20:52 -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=@foss.st.com header.s=selector1 header.b=qTM77UVu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236142AbiJ0Pg4 (ORCPT + 99 others); Thu, 27 Oct 2022 11:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235285AbiJ0Pgy (ORCPT ); Thu, 27 Oct 2022 11:36:54 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3008A1C0; Thu, 27 Oct 2022 08:36:52 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29RD5jsK014867; Thu, 27 Oct 2022 17:11:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=Ub/UuR49D98JnSHq7xzP8q4azrXYgGYGBiD0zPIpIJ8=; b=qTM77UVu7ZQvg3xadL0m3caMY1WyMSlAIjuye2hIHVfkrOfU1oBraFX3wopVy8LRBRnq UrRgEEAAuSzAL4umWmohZxkFr5ZH/0+3aqwS/jEMIFsLr4STItNvektz4QjkM6I+7u63 SWXNGwJf09ERbw4N3/71GvLG3uP1BLwkpyjEvLyvhlTBELC6yuZqV71rODFUybyrokAj u2zdVGKrFge1F1nYGiUp/9fcVkci+pVBWLMxmPsXPfV9M67TmfLa4Clz9/xHcF94gSwL bxA0Fb0Y7W83mi9w9LZNTyRj7FA3bdpmn9eeFFhcsCFJX87qmO3vEUYDcR0p2j9rp3TE qA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kfajf6pt3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Oct 2022 17:11:00 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6386C10002A; Thu, 27 Oct 2022 17:10:56 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5E4A822A6D6; Thu, 27 Oct 2022 17:10:56 +0200 (CEST) Received: from [10.48.0.157] (10.48.0.157) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 27 Oct 2022 17:10:53 +0200 Message-ID: Date: Thu, 27 Oct 2022 17:10:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem Content-Language: en-US To: Krzysztof Kozlowski , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Fabrice Gasnier CC: , , , References: <20221014172324.1.Ifc1812116ff63f5501f3edd155d3cf5c0ecc846c@changeid> <7ada410d-8d13-b29a-869c-3f5d032528bf@linaro.org> <4d113cfd-4c22-780e-2a13-48ca0e2b28ab@foss.st.com> <730eec7e-deb2-2d04-6ba9-132a41ebed58@linaro.org> From: Patrick DELAUNAY In-Reply-To: <730eec7e-deb2-2d04-6ba9-132a41ebed58@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.48.0.157] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-27_07,2022-10-27_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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, On 10/20/22 14:48, Krzysztof Kozlowski wrote: > On 19/10/2022 13:23, Patrick DELAUNAY wrote: >> Hi, >> >> On 10/18/22 03:56, Krzysztof Kozlowski wrote: >>> On 14/10/2022 11:23, Patrick Delaunay wrote: >>>> Add a new compatible for stm32mp13 support. >>>> >>>> Signed-off-by: Patrick Delaunay >>>> --- >>>> >>>> Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml >>>> index 448a2678dc62..16f4cad2fa55 100644 >>>> --- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml >>>> +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml >>>> @@ -22,6 +22,7 @@ properties: >>>> compatible: >>>> enum: >>>> - st,stm32f4-otp >>>> + - st,stm32mp13-bsec >>>> - st,stm32mp15-bsec >>> According to usage in DTS (separate patch for some reason), the devices >>> are compatible, so please describe them like that. >> >> I push the separate patch "ARM: dts: stm32mp13: fix compatible for BSEC" >> >> It is a advice of my colleagues: send an update of device tree >> >> only when the binding modification is acked. > That's not correct advice - only for few cases it's valid (when > subsystem maintainer wants to take entire patchset, so there should be > no DTS inside). We want to see the bindings and its usage, so one of: > 1. the same patchset > 2. if two patchsets, then cross linked to each other with URLs to > lore.kernel.org. I see DTS had link but not this one. > > Driver changes also must be sent together with the bindings. Since there > are no driver changes here, it means for us the devices are compatible > from Linux point of view. > >> >> Sorry for disturbance, I can sent a V2 with the 2 patches. >> >> >> The STM32MP15 and STM32MP13 don't use the same version of the BSEC device, >> >> and the driver need to handle it. >> >> >> In these 2 patches: >> >> - [PATCH] dt-bindings: nvmem: add new stm32mp13 compatible for stm32-romem >> >> - [PATCH] ARM: dts: stm32mp13: fix compatible for BSEC >> >> >> I fix a error for BSEC node in the initial patch to support STM32MP13x, > The question is then whether device was working before or not. If it was > working, you fix one error but break DTS usage on any system which does > not have updated driver (so BSD, u-boot, other firmware, other Linux > kernel versions). > > If it was not working, then it's okay, but such case was not explained > in DTS patch, I think. > >> the DTS "stm32mp131.dtsi" should not used/accepted with the a BSEC node >> using >> >> the compatible "st,stm32mp15-bsec" in commit 1da8779c0029 ("ARM: dts: >> stm32: add STM32MP13 SoCs support") >> >> >> It is a preliminary step to add support of STM32MP13x in STM32 ROMEM driver. >> >> >> I don't indicate these patches as "Fixes:" to avoid a dts check issue >> >> if only the DTS patch was backported. >> >> >> Today it not blocking for STM32MP13x users because this SoC is not yet >> available for customers >> >> and it is only used internally on the ST Microelectronics board >> STM32MP135F-DK. > DTS patch says nothing about it... > >> >> Nobody (except STMicroelectronics) use this SoC  STM32MP13x with the >> current DTS / Linux version. >> >> >> Moreover, by default, the STM32 ROMEM driver in not activated in any >> defconfig, > Independent issue. > >> I prepare a other patch to activated it by default in arm_multiv7_defconfig. >> >> but I am waiting this DTS correction to avoid to probe the stm32 romen >> driver with STM32MP15 >> >> configuration on STM32MP13x SoC. >> >> >> I think is a good time to update this DTS error before the SoC availability, >> >> agreed with SoC Maintainer, Alexandre Torgue, even if this patch breaks >> surrent users >> >> of STM32MP13x DTS (but it is only internals user STMicroelectronics >> until now). >> >> >> but perhaps you prefer a other solution ? > With that explanation it is fine, but the DTS commit was not mentioning > explanation. OK > >> add Fixes in the DTS patch ? >> >> + Fixes: 1da8779c0029 ("ARM: dts: stm32: add STM32MP13 SoCs support") >> >> or >> >> >>         bsec: efuse@5c005000 { >>             compatible = "st,stm32mp13-bsec", "st,stm32mp15-bsec"; > > Depends whether devices are compatible or not. > > Best regards, > Krzysztof > For device point of view, the BSEC used on STM32MP13 have few corrections wich need to be managed in the driver. But for driver point of view, as the BSEC IP is secured on STM32MP13 the IP is managed by OP-TEE, acess should be provided with TA / OP-TEE and some obcolete features will be never supported (access to OTP with proprietary SMC: STM32_SMC_BSEC) on STM32MP13x SoC. The device are not compatibles in the 2 SoC, I will sent a V2 with cover letter +  binding,  DT and driver modification to be more clear. Regards Patrick