Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp1841rdb; Wed, 21 Feb 2024 14:49:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXpUj59AqtBAMwLct3djDpsmeFFu4aHZRbAvf6WnWsv+JNVcajx2mCaOUQE/zFifXnHERee4KBDNsDlkCr66Wx7ZvWUhMAhPRwGuXEOcg== X-Google-Smtp-Source: AGHT+IEdV7RjEcPZlbm0oh55Laz9fgclDm9iEcyMykFQ6JzhDTb5LnyzpmFCRIpg2aMGOGv+3y2T X-Received: by 2002:a05:6a20:d81b:b0:19e:9647:dad3 with SMTP id iv27-20020a056a20d81b00b0019e9647dad3mr1216712pzb.12.1708555749325; Wed, 21 Feb 2024 14:49:09 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k21-20020a6568d5000000b005cdfd4aa8b3si8783994pgt.193.2024.02.21.14.49.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 14:49:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75616-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=neutral (body hash did not verify) header.i=@google.com header.s=20230601 header.b=4E9he3p9; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-75616-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=REJECT dis=REJECT) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A4822844F1 for ; Wed, 21 Feb 2024 22:49:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B43412B14F; Wed, 21 Feb 2024 22:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="4E9he3p9" Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (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 2228312CDBB for ; Wed, 21 Feb 2024 22:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708555723; cv=none; b=MJdeDp81ACtrP+Bg9mwkm0x1tUwqz/Mew4YSq48R8yfUp0OFGID+3wWudBFju0BTuptIL7kPFtGRBra2BuDsZSsglqNPMsQ6pCENI+yfPQb66rXXEiQxcmXmhlM5CsqRxo+9dlaKvGWAByjHyPl7NzbtaKlqv/Y27BKVd15NaA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708555723; c=relaxed/simple; bh=1CkGcXdG+KrlM+x9gWekq+WBiUkt/eToiyx5uT4ML+8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PnJldJdyfdsw4MxlghM/il88fAwcLDKHmUlvewJ7ExWqTOMnE1+Je4meNFU2mhNuxPY8H48xvfT0pAEi8BJiZs6zCxXZypIrFgFcTZqSlEQxYImqKbudvJg8UkeNywD+/WtJ0D2POCITu098Sp/D9xYVDGCugVxT5b0eTOBc0TM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=4E9he3p9; arc=none smtp.client-ip=209.85.160.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-428405a0205so54081cf.1 for ; Wed, 21 Feb 2024 14:48:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708555684; x=1709160484; 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=gw5fc5I26kdjc0zlKV7SIy+DOj8voXJyqY3HQnL2RuU=; b=4E9he3p9Gt5DJ4bz0VKbMtIezXkJVB1PMFthc06+xcYvzk2p8jeO8bCiTaEqPCnlJC TJSmMaQGZoTEoGcZUCib8edHI60UA6zfh0Ccww0hUFNo/eN581y2yd+zhd2XCShqN5MD gXfdUgtQOq1SzQiceBbALEFyPAnoCoOe8zcwqCYX4cS3KvVF6rrZOA770g36Y4XuajH3 3jU1rCkLgNbe5tIj8Q6dL0A07OcHM1vQMLV+rwNIXDv0n1CzjvS7G/GALHLtIis+AEpN Yr8LA+ASYHUapVw3SJeZuw2+fPbD8KckiatUIrA5/XdUAkGgj0gCLwZEP0PDGUYTEtrl a9Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708555684; x=1709160484; 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=gw5fc5I26kdjc0zlKV7SIy+DOj8voXJyqY3HQnL2RuU=; b=vEtxcOnBd3FweFduWfBtf+HKDDOjvbPohc0ComLUKeDiAtVlhQO0aK4zPcG7L6rGAe 4+GQKbYLNAJ0UCOFvx3HJe1Jt239qi1erKoQIIkgKEtNqEbneu0xH/l8EGpgTd6ID80W +QSRXS2d6EqWd1lhIMQYX14cZqbItlutryHfL1ufXg+8JYbS7u64fU1dg7igzYwjPpza VvTI8e8J/uWRxOJuF+plw+Kfo9vzlQc+g1Tt2N2DIPiMPbDYc9iI0mSzPHXZ0pAnWygj FmRGE6u9SUzeCANo4BzWtJdD7jQA5qpkpVInTV8haWltdqurt4bylH0u89Wjnrf1xKoG oCRg== X-Forwarded-Encrypted: i=1; AJvYcCU5mlC733ac+z7CeuB/PNyp3NlohhiuqvSYXaexkQ4ISsulOlMcVIgT5zaDrpuxAHTtEMeK30w9ZwK+iTw4rcG8j3rxPmdCbDA80x1Z X-Gm-Message-State: AOJu0YyYkF4595f6IcgYWkRUFXRJ+34awHgg/mHYWsl0uk+MZfrC4Lxe /Rpm7RcfKZZ93Oe+2qR7FM+f0sVs67CJBcRU2R6XTvl5uh7oU8ZaTblSRCcd0pnM9qgqpdWTxRy tiD6MjJMY0A0SBQb5yW3ZB7EWJIu9rxTqPZ+0 X-Received: by 2002:ac8:1242:0:b0:42d:dbd8:e12 with SMTP id g2-20020ac81242000000b0042ddbd80e12mr441467qtj.2.1708555683602; Wed, 21 Feb 2024 14:48:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240212213147.489377-1-saravanak@google.com> <20240212213147.489377-4-saravanak@google.com> <20240214-stable-anytime-b51b898d87af@spud> <20240215-unstirred-rearrange-d619a2524a63@spud> <20240221-emblaze-ripeness-7ad4e41343fa@spud> In-Reply-To: <20240221-emblaze-ripeness-7ad4e41343fa@spud> From: Saravana Kannan Date: Wed, 21 Feb 2024 14:47:26 -0800 Message-ID: Subject: Re: [PATCH v2 3/4] dt-bindings: Add post-init-supplier property To: Conor Dooley Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ard Biesheuvel , Frank Rowand , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , kernel-team@android.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 21, 2024 at 11:34=E2=80=AFAM Conor Dooley wr= ote: > > On Tue, Feb 20, 2024 at 08:13:31PM -0800, Saravana Kannan wrote: > > I made that fix and now I'm getting this: > > $ make DT_CHECKER_FLAGS=3D-m dt_binding_check > > DT_SCHEMA_FILES=3DDocumentation/devicetree/bindings/post-init-suppliers= yaml > > DTEX Documentation/devicetree/bindings/post-init-suppliers.example= dts > > LINT Documentation/devicetree/bindings > > CHKDT Documentation/devicetree/bindings/processed-schema.json > > /mnt/android/linus-tree/Documentation/devicetree/bindings/post-init-sup= pliers.yaml: > > 'oneOf' conditional failed, one must be fixed: > > 'unevaluatedProperties' is a required property > > 'additionalProperties' is a required property > > hint: Either unevaluatedProperties or additionalProperties > > must be present > > from schema $id: http://devicetree.org/meta-schemas/core.yaml# > > SCHEMA Documentation/devicetree/bindings/processed-schema.json > > /mnt/android/linus-tree/Documentation/devicetree/bindings/tpm/ibm,vtpm.= yaml: > > ignoring, error in schema: properties > > /mnt/android/linus-tree/Documentation/devicetree/bindings/post-init-sup= pliers.yaml: > > ignoring, error in schema: > > /mnt/android/linus-tree/Documentation/devicetree/bindings/soc/tegra/nvi= dia,tegra20-pmc.yaml: > > ignoring, error in schema: allOf: 0: then: properties: pinmux > > /mnt/android/linus-tree/Documentation/devicetree/bindings/net/lantiq,pe= f2256.yaml: > > ignoring, error in schema: properties: lantiq,data-rate-bps > > /mnt/android/linus-tree/Documentation/devicetree/bindings/post-init-sup= plier.yaml: > > ignoring, error in schema: > > /mnt/android/linus-tree/Documentation/devicetree/bindings/iio/pressure/= honeywell,mprls0025pa.yaml: > > ignoring, error in schema: properties: honeywell,pmax-pascal > > /mnt/android/linus-tree/Documentation/devicetree/bindings/iio/pressure/= honeywell,hsc030pa.yaml: > > ignoring, error in schema: properties: honeywell,pmax-pascal > > > DTC_CHK Documentation/devicetree/bindings/post-init-suppliers.example= dtb > > Documentation/devicetree/bindings/post-init-suppliers.example.dtb:0:0: > > /example-0/clock-controller@1000: failed to match any schema with > > compatible: ['vendor,soc4-gcc', 'vendor,soc1-gcc'] > > Documentation/devicetree/bindings/post-init-suppliers.example.dtb:0:0: > > /example-0/clock-controller@1000: failed to match any schema with > > compatible: ['vendor,soc4-gcc', 'vendor,soc1-gcc'] > > Documentation/devicetree/bindings/post-init-suppliers.example.dtb:0:0: > > /example-0/clock-controller@2000: failed to match any schema with > > compatible: ['vendor,soc4-dispcc', 'vendor,soc1-dispcc'] > > Documentation/devicetree/bindings/post-init-suppliers.example.dtb:0:0: > > /example-0/clock-controller@2000: failed to match any schema with > > compatible: ['vendor,soc4-dispcc', 'vendor,soc1-dispcc'] > > FWIW, I don't see these or the other errors you see above. You really > need to get yourself a newer version of dt-schema, or else avoid > working on this using whatever castrated system google provides you with! Ok, finally found the workaround to updating these packages and the output is a lot cleaner now. > > But I guess the "oneOf" error is because the yaml is being treated as > > a description of a DT node and not a schema? > > The oneOf is due to missing "additionalProperties: true" - As far as I > understand you need that regardless of whether this is going into > dt-schema or the kernel. Ok, I added that and the errors go away. I'll send out a v3 and hopefully Rob can pick it up. -Saravana