Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1115513lqm; Thu, 2 May 2024 05:58:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYUI8S60jQ9QnpiwA2L+jwwzmVTCt/hvP5dnxF3R9psFI/afkwwgPNw6Vwj1org6lXOkwmihcaD4enpxm5v4wO7BmigKlnitHywfFxog== X-Google-Smtp-Source: AGHT+IECkjCOfQ/yfKxy9mi5XL+TafLavIlI6FU3Wc7+hl6XXw/UaobqVFztvwVsQJRpx2hAfL2G X-Received: by 2002:a17:906:c248:b0:a52:c873:a66 with SMTP id bl8-20020a170906c24800b00a52c8730a66mr1405578ejb.34.1714654738579; Thu, 02 May 2024 05:58:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714654738; cv=pass; d=google.com; s=arc-20160816; b=KTWMkK1Wb4L0iRGg44zzLLjUpFJDm8DzSu280aU1sWMRv0x/ePgnudB/AMtFKGFksL Tdj21+ocsdgT+uxpLlOsgzpxQr6kuYMz8XOql48yPwYHxNwxUkqIDeurAqUJOoEHahGp 6oQB2sLajgR1MjvXTpcyJWI6Srvu9BATmVq2nCspMzM5LIaxwx4px8mH6SkHoZBg49F3 jUVsOpcSZOul5foS238W3n1zjbf4rE6CtNzVcaYm4fsD+MFbZd7E4cS+Wnbr6uUacsSX VI8Iqox4aGFSNDGgG2KLP6YrMhbAEKtZQINiaUlSblenPUEAAO4KBOP+geXCD3HK+iQP 2/SQ== 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:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ILl256fNm7d6+WyPrjrlI0BQ5JakEWr/Ruj7fSzE+qU=; fh=+79/YbVGPKoW42LOGDd+vTNC6USOTYEYl9jCOUMIVm8=; b=Jhe4SSqkPWWsqAJklKtSr1Gmy1NVKpmbNscrOfuj/lpl2s0yCZ4Rh1rEGmT71gHDLM QQPJv8imA4eiyr/DMUDV9sWiwkU/QF5MtikqgfaeKDn9bre4tYg+dHfr/Puy9VPpC76i GD9cx+ehNseUcGkkGAFiyJVOuwY9+aZZ4I+X9QdBPW/TRrfMdxyc/zcfo2mFzVHRnsrm VMupa5iGjM0qcdvQ2Hj/Kfjh6qPgbdYX6o5d0hen5whzQ3/7VuUPTp/1qJ+GXspf3cMe s0wFSHi6OdTxEI6/Vy3W3C4EGcZ0/AH2Tj/X4mxpDAzYTQ9XHp6kjTR9UnHqbUMu9abf gEIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RXAHvlTp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qf42-20020a1709077f2a00b00a55923b7a25si532151ejc.496.2024.05.02.05.58.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 05:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RXAHvlTp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 29D501F212AF for ; Thu, 2 May 2024 12:58:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3768083CCF; Thu, 2 May 2024 12:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RXAHvlTp" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3B0BB7F481; Thu, 2 May 2024 12:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714654727; cv=none; b=gNQaYaVvykTdif5WL3J/zEQJ/HI9g+fijTqrtokhJQT20Zll36bdmas3qbC6CsqN1rsKJHkYWQKHorDvZSBG7QHumn0gQR56mywWiF82jNnCy2ZcKGfYkDPkHP8Vg7iDAkl1+SLmI/JekW7PdlPFURhajI4tI+7iiQNhdttiI9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714654727; c=relaxed/simple; bh=d5lIMO407MDnIQ9/e79pnEoYgUg36/5ZYRteDB8/LzI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BccmvGRmHnLB6xKvkBZVaKqdHBVvFiTjqSk5M+suchU8yF/GxPTHR/Xk9ifLtFDTRfkQeyshGp8hMMYRcpedVpwXu+qoFt3Olpl5M73+33Xlrc2gYuRhghQZx0bEno2JLHHV7Cfba/avIKQnrz3+mJEgxWY/jSXY9ljvSojv1MY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RXAHvlTp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93977C113CC; Thu, 2 May 2024 12:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714654725; bh=d5lIMO407MDnIQ9/e79pnEoYgUg36/5ZYRteDB8/LzI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RXAHvlTpuULfleDV9iketGFXPT6pbR60YDBiVvOqF9bUgBAW+dxymgKhIqXjbaiN3 3+Ixu+Vt/U8w1ZX6IMprYSkHBSd4qoSkHvR4Eifa1Q8jV8HfoKoYHN9Wbq26qU7pJA dsAtSag72IDUrYruCrxb2H2cMY29ANlylCokpF+iPtBPovQT7KmNw857QpX0xKZpzB 7061dyk2a0L8fAvA0DYgNYwZmwNGeYGJiq9YjaVWVeBT1AniSjRpVToOZrtA0tlJml HbYn1gFXFC/om3b67m/Or8S3lFonLuXcuJdUs/gbOsp/eYAFdYg65563pDXbWyOnN5 MFqH+aQ6xxeNw== Message-ID: <59cdb557-cffd-41f3-b487-2f1890e7cac3@kernel.org> Date: Thu, 2 May 2024 14:58:39 +0200 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 v4 10/17] dt-bindings: i2c: i2c-fsi: Convert to json-schema To: Eddie James , linux-aspeed@lists.ozlabs.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsi@lists.ozlabs.org, linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, lakshmiy@us.ibm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, andi.shyti@kernel.org References: <20240429210131.373487-1-eajames@linux.ibm.com> <20240429210131.373487-11-eajames@linux.ibm.com> <1ebaaa48-9812-467e-9189-c1cd3369b6cb@linux.ibm.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307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S+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <1ebaaa48-9812-467e-9189-c1cd3369b6cb@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/05/2024 18:16, Eddie James wrote: > > On 4/30/24 02:35, Krzysztof Kozlowski wrote: >> On 29/04/2024 23:01, Eddie James wrote: >>> Convert to json-schema for the FSI-attached I2C controller. >>> >>> Signed-off-by: Eddie James >>> --- >>> Changes since v3: >>> - Update MAINTAINERS >>> - Change commit message to match similar commits >>> >>> .../devicetree/bindings/i2c/i2c-fsi.txt | 40 ------------- >>> .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 +++++++++++++++++++ >> >> Please split independent patches to separate patchsets, so they can be >> reviewed and picked up by respective maintainers. >> >> I don't see any dependency here. Neither in 1st patch. > > > OK, I guess that makes it complicated for Andrew to pull together with > the device tree changes in a way that avoids warnings, but I agree there > is no direct dependency. SoC tree should not pull subsystem patches. Plus DTS must be separate from drivers... >>> + >>> +examples: >>> + - | >>> + i2c@1800 { >>> + compatible = "ibm,i2c-fsi"; >>> + reg = <0x1800 0x400>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + i2c-bus@0 { >>> + reg = <0>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >> This does not look right. Why do you have multiple i2c-bus children? I >> do not think i2c-controller.yaml schema allows this. > > > It does seem to allow it, as this validates here and in the device tree. Only because children are treated as I2C devices. > It is this way because the I2C controller provides multiple busses. It does not look like I2C controller anymore. I think I2C controller sits on the bus, not on multiple busses. How are SDA/SCL lines connected? This looks like you are describing something which is not I2C bus controller as I2C bus controller... I'll let I2C maintainer comment on that - is this real I2C bus which consists of multiple buses. > Should I change it so to add "bus" pattern properties that reference > i2c-controller.yaml? Not sure if I get it right... whatever is the I2C bus controller, should reference i2c-controller.yaml. Not some other entity. Best regards, Krzysztof