Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp6143lql; Tue, 7 May 2024 08:22:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYWHc5moqkaVqAig6lvhp9yoBUQdwJNwx8dLqdD0BMbOyR5bsaJPYvdwZm5rLZzczUwoMWHdSICbhaXLnvedf16hTRUFDrJW5/AxMcew== X-Google-Smtp-Source: AGHT+IHgIMJgDQpYUSVDwo/Fa3NTC0DIIn8ykdhKax1XpQX24FjDUL4aF/500aDJzCyXPCM9Z11K X-Received: by 2002:a50:ccc7:0:b0:572:9984:1921 with SMTP id 4fb4d7f45d1cf-5731d9d4887mr44436a12.17.1715095326435; Tue, 07 May 2024 08:22:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715095326; cv=pass; d=google.com; s=arc-20160816; b=dqYkMGORWmpmuxD4CtSUs9v5UvasgJB0KqQw00dxITzDLYaO4y55yQ4oiBnUi67PtD 7KjPjyJyz8TK8w/RPU6bWkot9QUXF99WaJTlqwmowPw/gIzhpBWWmkGbNVD6cqVtMYAO LXZDwnJi93cUM9/QcxgEMBmhEC4ZD5VrI4wwFhL1jNbb/QltDjbna25TA6qrl/Nkuuwd NgdWP3lx/SNy52ezEQkIoTDaS5e+xdREoxkMutNIX2QR1+Y59cgURa8YaXmKSLVnE7PT 189JmG2Cw4OU9ks2hfoHZyL8eFD/JV6RKcNkuj2cfr18dnftQ0kMGR39FIdh5uS5ihWW agdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=l0XnUy7N7GmzfhRBhUIrbtF1Olv4xCz/CaIdT4eaN4M=; fh=P9kZyshZkU7ywm0xiSXpabOMS6pjI5UH8gNdnviG+5I=; b=WM05xlbR7uVZS8eliGcjGtN/7+XgdIIKq5uDMVZp2u2Z9zQ/8oxYO3SvhVXV9MOcmH pENbV8PTXmBnMpbIhm0ukBU2fwnrN5MBBmj5I0JaeecmX3db6eIKlybeyljaG5G8WkkZ +pHIzpdFSG8leuKzrEm0DUGoMuqDHPckDy30rWsS7qna+EcyVl3sUAYa/O8TghSw/7hq 9tycaFw2wuF0zyp4UgRgwPFMt7+REu1/voQPCRxoEH8QKcCVRSoPp/9Kdu7wDINPi6lu jA6r6xqgeN5yCgYj18NAuNQQwcI/n99A4AF8qBhecTOJ8/VYVWZ9Vt9teKcqtmnoTnu1 hS3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="RsqPFWQ/"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e5-20020a50fb85000000b005726df6b601si5982270edq.508.2024.05.07.08.22.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:22:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="RsqPFWQ/"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 9B1231F26DF9 for ; Tue, 7 May 2024 15:13:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46A16161930; Tue, 7 May 2024 15:12:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RsqPFWQ/" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 C17D7161313; Tue, 7 May 2024 15:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094766; cv=none; b=u2ouEjI0vpIHItQhSpav5qICHHZ2bDI8ifW5vbMgOmXaqibVQ4mEGjBI/riQpX3sJ5IWfrjbHBK6Kh3nKjm/RKs49DAS5w0txIX4eAIkbVOXAbEyteFs6a509XLIxArlD5KC0M4SWU9lqoXpS4IiEo9qypU3ZIWILRoBRgU00nY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094766; c=relaxed/simple; bh=AeQpyOACUEH32G+Z9i3H6jfYrCothtxTZY2nD1bb05g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kkwvL1Xm/b29Hlq4s0QFih/CkPLnzquJvTPHA7eqlRnYjCmTbMF4XhBUYhZP12dBwsKVrdHCsKCyON8lbrgMfVXPzo231xCkbuStrdJewDw0Puv5HatP8OmkWxRFec4T0iv22h3m8+iiLOfT4qF4Np7cuvR7Q2p1uETgHcwiuJ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RsqPFWQ/; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2e43c481b53so2424271fa.2; Tue, 07 May 2024 08:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715094763; x=1715699563; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=l0XnUy7N7GmzfhRBhUIrbtF1Olv4xCz/CaIdT4eaN4M=; b=RsqPFWQ/h2p0fgtOkqeDpDJLl8keWM3tn/KyqMXZsV2w5Jduue/LZPyJHLJsZc9bW+ iejdWK7A3ChMGS8HAVrXlcch4jpLhxi7qETTiqTNTbspG7OoMdVnmb+fPJXp0SSPv6Rc rzsM4XP3JEr/qaBdsTC4TOD1dJOI8AaQX46KyGMyBWKTO+MOzG/93F8+Vz3ZSO54yo4l 5TJ9n2b6Pw6drqqk9HqMFT3Z9mdCSWwzrJ53+19lsPIdH8pMnfZV3yNiTn3TWJJe1YNp eGzdmo+FUfaxQpNk5CRpy/IEMoXNpM8e0yKtdR5abovJ7hi6PjJN32/iqwrJn7ii0yut qcvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715094763; x=1715699563; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l0XnUy7N7GmzfhRBhUIrbtF1Olv4xCz/CaIdT4eaN4M=; b=WFIKfnuZEzNWo/1B1maSOtWx5KDOv0Yu8d1mYiEUV4yELNQr0wy6KDw+X1h7yXE4dF Xf3dOAgwITm3Ik3Axt2A4dTSAHsrDrUVnahZ8fpzQoxKcCv4xpdbNlPjlqDn3XNEYvmh E8m/+GtEyEAtqv4oPF5vw33zD2sq4S9Qg43vuNoTCIO5wAiE374HjzxyZmFmg0XmA7GE mfLO+KSm0qKZpKjm+FNfJrfCsv1mRIM4ssKALj4DQFOTdgS/yyKIjOPh9BRjBDJsGinB yfdvuOLCT/6YHuK7hnT+cGtBQnVx7hno4qqbrrF7KzidX1wNXnpzJykJzZps1REl+wBb Kg9g== X-Forwarded-Encrypted: i=1; AJvYcCXAPwtNahVX+vZnbhc4mWScJHEHFZfwy6yNtDKf7dF615AJjHw+iuP7jTzCTJjGpEQdGtFQIQ2ltiKDro2TByTDpPcd+LQK+rbsYt6EZmppBZezK5yw3yofRpipJIMa6eOc29Xa0BxMDsflKiM4Cv7RstGI1Tou/rF/30UBfZkuJEmG7fgQ X-Gm-Message-State: AOJu0YyHK4YbH44GtoI4UYfndBt84wlJJTq+7LaVsEYm2Owf3vUKt5yu oj98boFfjg/n/YZ5W6vBTcKNvhyiXHSd6+H+M4UTBPKH9q31T7UAXLqJ4o9PyuBUJZTGUZTkmmh jM3raXYiiFNUzbGgw6cXPmBQ3xcOte2P94mE= X-Received: by 2002:a2e:a9a4:0:b0:2dc:f188:a073 with SMTP id x36-20020a2ea9a4000000b002dcf188a073mr11287501ljq.35.1715094762470; Tue, 07 May 2024 08:12:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240417134237.23888-1-bavishimithil@gmail.com> <2e179356-425d-48cc-84db-0ea3e6203fba@kernel.org> <676ce61c-e850-4046-ad0f-e3382be3fe0c@kernel.org> <3425732a-390b-4c0f-ba1b-2a7e2219d581@kernel.org> In-Reply-To: From: Mithil Date: Tue, 7 May 2024 20:42:30 +0530 Message-ID: Subject: Re: [PATCH v4] ASoC: dt-bindings: omap-mcpdm: Convert to DT schema To: Krzysztof Kozlowski 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey, before making a new patch I'll just list the changes that need to be done according to this discussion. Change maintainer Change clocks to only include maxItems: 1 Change clock-names to include items: - const: pdmclk Use correct address in example Use flags for interrupt in example Best regards, Mithil On Sun, May 5, 2024 at 5:19=E2=80=AFPM Mithil wro= te: > > On Sun, May 5, 2024 at 5:02=E2=80=AFPM Krzysztof Kozlowski wrote: > > > > 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 > Yep that was the old code for reference. Just items (no > maxItems/minItems as well) > > > > compatible =3D "ti,omap4-mcpdm"; > > > reg =3D <0x40132000 0x7f>, /* MPU private access */ > > > <0x49032000 0x7f>; /* L3 Interconnect */ > > > interrupts =3D <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. > > > Ah the irq values, correct, I thought you meant the reg values. > It should be ; not sure about 112 though= . > > I suppose these changes are enough right? > > Best regards, > Mithil