Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp838854lqh; Sun, 5 May 2024 04:32:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9Diw80vpITRJcG7i4Rj3dHRY3u1ny3WrA2N/5QghpHX4gkveuPbYg1LiW9Q1wRxBGaixtc/yvNzEqk2HY5WSiOzyk+TH9sS0whMyhdg== X-Google-Smtp-Source: AGHT+IF1RrNb5DRL9jQ3uyX9zxtSg/1SslR1ZjvgtwPavTQ4z3bn8FWuBdeww0b+QURnZoBmjt/T X-Received: by 2002:ad4:5bc3:0:b0:6a0:585d:881e with SMTP id t3-20020ad45bc3000000b006a0585d881emr8235523qvt.10.1714908739509; Sun, 05 May 2024 04:32:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714908739; cv=pass; d=google.com; s=arc-20160816; b=vy4HCOOhi4/CCZZMlI3r2yQRlb+tkG48wrqQrqZ1VYsHUQ/tBfaMX5iqZDBv1nI5pg ygHQshActlaB50ej3joZkTFd2c6lQnE02z3OnuljakxbxxpKeZlbYuzwo6KSDG2LDXhY 4qpihFLiy5/DUpBRfimSYc6w6/1iyHv9A/5xAThcIFpumyT7UTOZBePuQycc2PDAF2iS 4CvAQySoMnUYyY8QyGP9vXr1CVWCIuPuCivCPJgub0gGykfdAAgc9dUXe8RRugf5yHMe 6nVBn9Ab3tc+O9fSwOddpZGAgEvf5+2cRJJjSwhAv2DjPF6XKJBXHaIHK2jsOON5KYoS uLiQ== 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=BZgQXzhjc4BspOtf65sFyb7aXLPl6/XrZOzD+b0z8hI=; fh=EkiPgveUseHlyanAytRLcuMofa4C9M+i2+flC3eRCg4=; b=oG8hiyaSHPC3/G/m9V2dkLC0WVehz73ikSgEoulkzBT9CYDLwgB482kFutVHKfs2FR t912tSobYcC5nk7Oragp46E1WioWPaRt/8gTrWqrN3yIjw5fayAPeCpJWA1/xUguvW+M ksMzZYUfpzEnqVBFlLkJJway+QP/iJ2SkaDvVDSASqeBT+OabaJhg76keC4SHapCrzX1 qKG5Myw5BT72ORIdSW+SxlWyhZD7BOfX9BX26l+J3HMcwMTS3ti2WKZlSXQsvNCzMEub sbZNXdSJmTudao2F4euGfkeGEgzojPHOTKWmW7YQXIc3CLKzbT/kJ8FI2gg+Ygm0aRwX 4/8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JimJYdjz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jf12-20020a0562142a4c00b006a0ac1c3c9esi7103016qvb.105.2024.05.05.04.32.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 04:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JimJYdjz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168964-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 059271C20E78 for ; Sun, 5 May 2024 11:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6660417C91; Sun, 5 May 2024 11:32:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JimJYdjz" 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 55642566A; Sun, 5 May 2024 11:32:11 +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=1714908731; cv=none; b=IVve0SeRm1aP6PzZ8qaxu0x93ma/eflVDuiTLaBbCy7cTgpkb/URqIT7onYYcb0tuMAO/Bj/Ac/eSsOmCuOPQtTySn18HBy40r9+OLUJsvNUhmCgK2G/ygdtMUtnRgaKzvDPBeIsrPl6XVxOci9JQx8BFW6DFd8QX7nTsJnk1iA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714908731; c=relaxed/simple; bh=zo6MNQZCEBD6b3AWALFdLcV6B6KTtGSpb1td+DtvigY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=E/Hde0lqAlZp8aip9/E2hqckhS9lxTP1On+2Pk9mtTHgPPavuIQh+SOUEwYuEvzOyziXY0acsONEWFUVOS+81IDUX5T8HRQZi1BqO6qHaREKrzcq4Ovi7dXKOanApjsOKAFWDcXRW60onilc5xO0EZKJ30E/DuKQt5Hz0jVDzeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JimJYdjz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F356AC113CC; Sun, 5 May 2024 11:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714908730; bh=zo6MNQZCEBD6b3AWALFdLcV6B6KTtGSpb1td+DtvigY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JimJYdjzvynBymUsAse5opQYcEnpmDDbXTJVjMvtlQTb/XUoJAJDQZ7U/bZkBRerO DCkMG5xFviIHmjnP7eiPa95q9/KEobvzcsT+mL7f9mo7pvvgDJodKDfU2CqEBZtEk/ ip/1hZ7wU12o1x3b4fpKzwe4pHGECDV/2osOX0j3iGapcgeSa0N/S/kp+UFb3VEALC seNWeALtUoXxoRyr6ErVRD+zyWyrwXT07pgE3kkCABtzgxzLzR+pwk0EKbo574a0S5 5FpIHDjY+p08XkISXyO5FcHaNnHYb5eStSIZbCOAeXVJcNeXtzFwT6RD+FDaZfTgbk ZVvnYhONvv92Q== Message-ID: <3425732a-390b-4c0f-ba1b-2a7e2219d581@kernel.org> Date: Sun, 5 May 2024 13:32:04 +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] ASoC: dt-bindings: omap-mcpdm: Convert to DT schema To: Mithil Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240417134237.23888-1-bavishimithil@gmail.com> <2e179356-425d-48cc-84db-0ea3e6203fba@kernel.org> <676ce61c-e850-4046-ad0f-e3382be3fe0c@kernel.org> 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 FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZ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: 7bit On 05/05/2024 11:59, Mithil wrote: >>>> Missing constraints, so replace it with maxItems: 1 >>> Similar to how clock-names are handled? >>> >>>> List the items. I asked to open existing bindings and take a look how it >>>> is there. Existing bindings would show you how we code this part. >>> clock-names: >>> items: >>> - const: pdmclk >>> minItems: 1 >>> maxItems: 1 >>> Something like this? >> >> No. Do you see code like this anywhere? Please only list the items, >> although without context impossible to judge. >> > Quick search on sources gave me > Documentation/devicetree/bindings/usb/dwc2.yaml Above code is different - it does not have maxItems, which you want to add. > which I used as reference for this prop > clock-names: > description: Must be "pdmclk" Again, no, please list the items. items: - const: foo > > compatible = "ti,omap4-mcpdm"; > reg = <0x40132000 0x7f>, /* MPU private access */ > <0x49032000 0x7f>; /* L3 Interconnect */ > interrupts = <0 112 0x4>; > Not really constants as they do change with platforms (omap4 vs 5 for > example) but That is not really relevant... This is not pi or other math constant. > So do i just make up the constants for it then? Those just seem like > magic numbers. Hm? Did you look around for other SoC nodes? 0 looks like SPI, 4 like LEVEL_HIGH, but it depends on number of meaning of the interrupt cells, so who is parent interrupt controller. To work with DT bindings it is necessary to have minimum basic knowledge about DTS. Maybe it would be good to start with some guides/tutorials about DTS. elinux has quite some tutorial and also resources pointing to various conference talks. Best regards, Krzysztof