Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp977922lql; Tue, 12 Mar 2024 04:04:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUj0wD0jbqCZYTBoMw/E3nSIBBdPYXV/EzPnMozjaDN5Lp9jf4QYmROAgjoaq3cr0sxr11tV6Sb+JNLPQTfoE16KPFYLrSA5g160uh88Q== X-Google-Smtp-Source: AGHT+IEi6k9zY6OG7DO1S0um/X1e0O/U2mGNHY7BpoDrtut9Wi7r665x34piwl/1y/Y+urXx0Vc9 X-Received: by 2002:a17:902:7404:b0:1db:8fd6:915e with SMTP id g4-20020a170902740400b001db8fd6915emr9619363pll.33.1710241468211; Tue, 12 Mar 2024 04:04:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710241468; cv=pass; d=google.com; s=arc-20160816; b=CtsG6vzDhKSwp6cG3/Spg2bt08UIaniSwfeYliE28LinYblCag1HkraIBEJFJBtJHs Ek1pS31EDV4pvvVYfi6niEKM1DuTRmiCIlhy9+3tNDZojaSci4K3Kdz5nDlkmWpFi2DD lLZJn7kbGokXz9O8LxZuUllWWGQop4os52mjYGMMm/9v4RyvahOGYfXI1q8UZEoU3WhW E1kXugtG0FpTsgA8D3CkbXYNbR659BSZ48utT2Nd5IKd3wqrbLgcuZf0KeILhxLbzQ3r slPJruijys5EEJqG4tb1nZ5iJIWZLPEndyt8RQY3W+9N3dVvzJX1yfmH9r23Sp1MQD1i Q9lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ZEGWOujdW89Dpl1fCi0Jc9+UKMnXm1pN5XkS4ijg4qg=; fh=BiOYdlsSq7ExIf7k9vJbbgMWNjl6nuSR95CBmmuB3z8=; b=wABiVGh+T+/9YE6pRGJzPVEwHdPPLvCSQGR90guxeG7rB72hmsCOYzln7BzVZIfZ63 js+FkHGPRnwwEPuhlAod/n6D/Dq44+Q0/Kbi5W4O+ERnvDnWoFglPpVzBS4sAZKtRlkL bW44sBF4iD++X6PlJXfJ3XpPBA9UbS6OCp5Em7tIJtjCAu8bx814v5heaYTMSZizTkbU 7kpEeOcjQGWxSbsqvuFKI2EvzViiIGJqpmUGdVWOmEFStDjs0yh/ZWARsXgUzf5npG5O WrfPuJNoaes+PVmOGua6s5f8qb1r4uVkER8vOi5LvZYVd8sBQfVv6Q898tpwWVxATHIL 9oKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TZN0sQzB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100154-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z10-20020a170903018a00b001dd7e10c6c0si6089599plg.305.2024.03.12.04.04.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 04:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100154-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TZN0sQzB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100154-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CE5EE2848AC for ; Tue, 12 Mar 2024 11:04:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A0D979B69; Tue, 12 Mar 2024 11:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TZN0sQzB" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 945F76997E for ; Tue, 12 Mar 2024 11:04:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710241459; cv=none; b=qwmna6RfWPQlQ1IBZUdt5n8WM7oPtIHrl+iWYtXu1b9mPXb64qRRPrTkpS45rJj0eaGYd48nUV2Thh0w7o2e3mV7YoBNgtRiUrAdIDlgDwGF+6+BDgDuyFmrQkFECLTBaQHpWbBcBP1F47xnPXkI0tiCUrtDPkuWyt4pbaDzdV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710241459; c=relaxed/simple; bh=pLHlfjqZrAjvbkvSlj5qpzs5K5Lppb9UXKcsKcDGhoY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PxtBaUiLVR3j4LaxOY6iwQTg5hAgYQ359XjJpppijZAA5LHG43AgR+fUUmo4XL+6/XJT0pDR2dX4pNozEqvBfKWn7IJXMg4SjUhgawZyICzjqCJP/gJvFmv3PP6NyHuIJP7a3VuwSqQv4GdEKSyvXZmspQ86r1HSG23waQlxWaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=TZN0sQzB; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-413318a3a29so5494665e9.2 for ; Tue, 12 Mar 2024 04:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710241456; x=1710846256; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ZEGWOujdW89Dpl1fCi0Jc9+UKMnXm1pN5XkS4ijg4qg=; b=TZN0sQzBzoFtj3Q4i/XgBUUlWAGyVoDUaqycZIzX4kv6JPyC1bZ0UhzI9PEXEA77It c/SkKaZdNiSzBKZX8thAj/GQECp8+Ycn0+hSnxRESibR/xTg1uIq5itxKXPAeGteQx4x f5OB+dzQmhoiKcqPgna4NXceVEgdNbwiiqFL9kPlfbS16f8/ksBOrYVpSzB53DljQ7wK lpdJqHaUx5nSDEvn/xCHqJ3flacyKMBEzc8g70QPF31QY+DT37VCiSdyUpokCW1joYdT cv5r8NueiSfYDjABCmHEhfLGC+EFjKqEeajmtTSf+b/g3MgQ8+1kJm4yAqxeJkJfMuGm LX0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710241456; x=1710846256; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZEGWOujdW89Dpl1fCi0Jc9+UKMnXm1pN5XkS4ijg4qg=; b=L1ZsyPF/fCI3Qq34XgrB92gMdHIe5hcazaTcePrB30OM0+xI6zEjpILMNoelWeSxel dfgPR1QQowHyYYupa3ZpYDSSxNg9uj8ZbXYaIKkJa2W9ItDkvlCjhs7hhmlRTuLSG4oT 7ePDdU6bmA3ks0Fesjpfz6Vf6M2tZFu5F5HutnU4f+hvxu8fJG6QQ9asnPwPwDsb4W8q JQjE0QvqnXSwUkBuIwiIswWl9qoJIjb4W3GKW8e4IOTgoVwgQrJSrdzQFEVJDlpN3d9W +uK4FzjvUk+0vCYyQNrhP7b2jdoTgvxbEWw/qtD9+lFrAWdwCppqXINiVQ7Pco7HTnrA uFpQ== X-Forwarded-Encrypted: i=1; AJvYcCU5BTxA9Y4k7NsltidiRHiPgHEncEPYc19X+mqU0lBzfkZx57m11pAVs92A7Hmm4P3Yit9kMSWnmOI//pMkmh27ELTflIRwDsRLL5QJ X-Gm-Message-State: AOJu0YyOPwm3+fM5C/qPt4svDNKsDNLBWTIUnxtlMpQ9hqZqY5aMpvr5 AUTdTzz5pKqFp/m5YOkh866bzS6AckYxNkZd/IOlJZ/k6xyrSatIwttbAW9YAbY= X-Received: by 2002:a05:600c:4f51:b0:413:2489:d194 with SMTP id m17-20020a05600c4f5100b004132489d194mr5032001wmq.27.1710241455939; Tue, 12 Mar 2024 04:04:15 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id r4-20020a05600c35c400b004130c1dc29csm12089953wmq.22.2024.03.12.04.04.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Mar 2024 04:04:15 -0700 (PDT) Message-ID: Date: Tue, 12 Mar 2024 12:04:13 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/5] dt-bindings: i2c: renesas,riic: Document R9A09G057 support Content-Language: en-US To: Geert Uytterhoeven Cc: "Lad, Prabhakar" , Chris Brandt , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Wolfram Sang , linux-renesas-soc@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro , Lad Prabhakar References: <20240308172726.225357-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240308172726.225357-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <7082ed3b-d6d0-4228-b7a6-7c0e0e46b8e2@linaro.org> <2974085a-d9b4-4a66-b60f-c02a06a74647@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1Cw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kbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/03/2024 10:00, Geert Uytterhoeven wrote: >>>>> - - renesas,riic-r9a07g054 # RZ/V2L >>>>> - - const: renesas,riic-rz # generic RIIC compatible >>>>> + oneOf: >>>>> + - items: >>>>> + - enum: >>>>> + - renesas,riic-r7s72100 # RZ/A1H >>>>> + - renesas,riic-r7s9210 # RZ/A2M >>>>> + - renesas,riic-r9a07g043 # RZ/G2UL and RZ/Five >>>>> + - renesas,riic-r9a07g044 # RZ/G2{L,LC} >>>>> + - renesas,riic-r9a07g054 # RZ/V2L >>>>> + - const: renesas,riic-rz # generic RIIC compatible >>>>> + >>>>> + - items: >>>>> + - enum: >>>>> + - renesas,riic-r9a09g057 # RZ/V2H(P) >>>> >>>> No, that does not look right. If you added generic compatible for all >>>> RIIC then how can you add a new RIIC compatible which does not follow >>>> generic one? >>>> >>> The generic compatible above which was added previously was for the >>> RZ/(A) SoCs and not for all the RIICs. The RZ/G2L family was also >> >> No, it said: "generic RIIC compatible". It did not say "RIIC RZ/A". It >> said RIIC RZ > > At the time the original bindings were written, only RZ/A1, RZ/T1, > and RZ/N1 existed, and all RIIC modules present in these SoCs were > identical. Later, we got RZ/A2, which also included a compatible > RIIC block. > > Somewhere along the timeline, the marketing department became creative, > and we got RZ/G1 (RZ/G1[HMNEC]) and RZ/G2 (RZ/G2[HMNE]), which were > unrelated to earlier RZ series :-( When marketing started smoking > something different, we got RZ/G2L, which is unrelated to RZ/G2, > but reuses some parts from RZ/A. Recently, we got RZ/G3S, which is > similar to RZ/G2L... That's fine, but then the comment "generic RIIC compatible" is confusing for anyone not knowing this. Commit msg could also mention why the generic compatible covers actually entirely different hardware. The commit msg so far focused on the differences between these hardwares, thus my questions - why do you create generic compatibles which are not generic? > >>> compatible hence they fallback to the generic RZ one. >> >> riic-r9a09g057 is also RIIC RZ, isn't it? > > Yes, as in "it comes from the division that calls its products > RZ/something". But... > >>>> This shows the ridiculousness of these generic compatibles. They are >>>> generic till you figure out the truth: oh crap, it's not generic. >>>> >>> Sorry I lack skills to predict the future of upcoming IP blocks which >>> fit in the SoC. >> >> So don't use generic compatibles as fallbacks. That's the point. > > It's indeed difficult to predict the future. So SoC-specific compatible > values are safer. > At the same time, we want to avoid having to add compatible values for > each and every SoC to each driver, so we try to group SoCs per family. > For R-Car that worked out reasonably well, however, for RZ... I did not propose that. Nothing changes in your driver with my proposal. Use SoC-compatibles only: for fallbacks and for specific(frontbacks?) parts. To give you some sort of guidance for any future submission: 1. Use SoC-like fallback compatible, prepended with SoC-specific compatible. 2. If you insist on generic fallback compatible, its usage should be limited to the cases where you can guarantee for 99.9% that future devices will be compatible with this. I doubt anyone can guarantee that, thus we keep repeating on mailing lists the same: go to point (1). Best regards, Krzysztof