Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp261800lqk; Thu, 14 Mar 2024 02:17:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPGK5S7M1RadN6cbWTUFKfNgr31mG0a9bD+XVBa7RdZ8wx5CsH8tOB5jyE5wNQizoNycHDTXHlginGB9H5FAzeX3TMixlqpItEZgg4pg== X-Google-Smtp-Source: AGHT+IH19kPm4q1XEwUwsCnRJ6gMGLhHHolxXSZfKg1VVWJRikmxTYkZmz1H8SrpHGIoqDhkxE6+ X-Received: by 2002:a05:6a00:2d91:b0:6e5:ea19:bbcb with SMTP id fb17-20020a056a002d9100b006e5ea19bbcbmr1255960pfb.5.1710407864441; Thu, 14 Mar 2024 02:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710407864; cv=pass; d=google.com; s=arc-20160816; b=GnvFKdeKJbaj8r5/NvwnbkEMcfJV7XuqUx0+qwmmJttoGSjTLtbhhJHg4cQzzuDAYa hxhWfK+4Tp3bfwPClCHCwYXquKto/SPYRiJXG8Inv5R4xb/o1SIZIvaQyROmtIjOU+D5 aHMw02VyWWXMExrPkkPmW1sC//6OCcHw63PoknbgkzO+4x2QHN0y7p9Th7N83OvLOaDM dXl739aqgxTIAXpvAkiQIai9dFGKB5GruZSySJmkjwnBuAn34tRgWJ6NNYN4EZ1S63LA 0+3mS+At1l1Sg7aSrnq5jX7P5U1smgSeh42ZxR2KoHdGeMyP32RFF0WO4mrU1ZvB7Uqw 2ZiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=WfWk4XBcHwwmI2jSyNvJBltXJUJKtcGlGvyxd2OQIgg=; fh=AKEDzwScux44ipDcD4RfYABBwTH/v6AxSDZIiLAh2F8=; b=hgqm9getswD0gjylwSK7ibAf3z0gdpA5YiphioYhCuR3G/1/sg3zSsDtXgC1WiG59t Ft57T21vvj9GYPOlgH2XQuyyBfGcn9ZN4FMthSm2iL6hjKN+na2skNwBQKVhku8j9eNc HaZP63r/XP+mfDEJy0EvHy/Kufo/t0JyBxSrQthRYlHInzft8Dai7IL+1mW15iYqxjQA 0vjgnho6utngv3LFbbDx6eaIASar0Yorlg2l6bvpzOkTDBQjHnTSeT3vA04r8U0r5/UD jRwSkn/oRUDPGmfys6H2qFO6kGzTy4nvja0F1MSEZsCxRVZns2RQgLgUmLDsM+MO1NSL iWgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b2Hy8y9I; 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-103036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103036-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 26-20020a63175a000000b005dc42014e30si199296pgx.692.2024.03.14.02.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 02:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b2Hy8y9I; 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-103036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103036-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 549A3281BC0 for ; Thu, 14 Mar 2024 09:17:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4EB96CDB3; Thu, 14 Mar 2024 09:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="b2Hy8y9I" Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (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 6777B4D9F9 for ; Thu, 14 Mar 2024 09:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710407841; cv=none; b=tI4C9MdXCNB6W49WNHeoltBCQvbxxH/c/RvZmYsB6gmSbd9Cr1gUBWrlbgWMSk/jN00PEJ+blD+aWvBiOoVjaIpUW9E+OPrGgOsO2VdPSm+703q5xFPMIut6qd74iEy3if1p9VUsNuwm7M+guMrZtXaSTbXDo6mgATPcdB3TOXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710407841; c=relaxed/simple; bh=qep5NbVdm4qe88UZ31aM1yYAlnMDcjEZfqmlKMPlOGw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MBWj+LGO/rJMwEH5IML003h01Um4DPXohTLSICVMF0BfCaw8UnvfOFn+B9wR0FtZ/MAYw8YVfJsiIpuHhjpAGy4wgHqFWpEZKu7GXxBwQzrCXIGH5cE7RApNW35GFjhhUBAh6+MvnEI+xHcVntYIe6irBRJTGK1qr6swMI3Z330= 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=b2Hy8y9I; arc=none smtp.client-ip=209.85.222.46 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-ua1-f46.google.com with SMTP id a1e0cc1a2514c-7de1f4be3f1so74755241.2 for ; Thu, 14 Mar 2024 02:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710407838; x=1711012638; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WfWk4XBcHwwmI2jSyNvJBltXJUJKtcGlGvyxd2OQIgg=; b=b2Hy8y9IryrN26x/oLEekdVWI+uawX+kzilXm3bH92KxiGvP+X588GGmzCDP3tffkf Bv+JCM55M/mmIEobEG2MxQOn20A7JEfHBTDXVjlEDTCnhDrzE6vozfS4NytVFYvAkZHv L+j1WpJiEjjdBh6pV5St4o0h4k93su0FRlJq5YhejAkKgoh5JBSOhxZxpI9L1imrS8IC 8PepUGXjAG9pOv2DNrIT/1oAHkJSUUTYyM/u5OxmvrN0/cfEJoOrZEKqSeoMSskqV4Wx 0iK6dLxApWEsYhC8G9LJmN3r28TjkoPkOGFKC190joblep3pFOQWlXw1hLreoU50KjU3 kp6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710407838; x=1711012638; h=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=WfWk4XBcHwwmI2jSyNvJBltXJUJKtcGlGvyxd2OQIgg=; b=GANl6ob1BtfE4EhNWnOrN3KoTQuce2nd/DiwtAMlSTcvKNwrjhjHD22/x5Z5Rokhkj k5rnjcWYIUTD5wkJJcxczlF12hW88Q6E0Z9am9ZmwCSPjMBDXTmgL6IhUPkteWkMLYPv umHF3eSy6JTgN7PBlWXfUwARA6SSf6WVVoqMaKMcEjSrwPTvSP1lCHOgRIScYw+fwNuF 3rKiLt7h7yho0uxjXCIf+jZtEmePuu/frs/8NCbMZwGTuQrI3fXquwVpepByEU97wnuf sjb5Ft37zw/fVbnflBL5FM8gSDP3Sa8kH8rAXjIlVztuMvs6SO6+pC0hJ7jYDkKfhvfU oLUQ== X-Forwarded-Encrypted: i=1; AJvYcCU/7GZ9hy4Jvh0GqPpZ7EOuBpmQhMB5fo5HGw9KQEbKy6xt762DH0qL7Qnl/8ufTfUFe576QKrvH0m+VZ4lGckY+uGZ/cFYAVgtRPXK X-Gm-Message-State: AOJu0YyEK4W8H0AZf0goOz5gfvJPYTGUPQuxeaDj5Hp2zPZh+jdCO30U UXd0oJyu7wtdhG58DQYKnagpvh6D/qkDs8pExBP0IF9tJ48i7g6ncISPn0PZiKdfevKk5NhmXzc yn74gMzYUvoOPfUErhq/cNw+BmdZiWsXJXpfnvA== X-Received: by 2002:a05:6102:54a4:b0:473:15d8:9209 with SMTP id bk36-20020a05610254a400b0047315d89209mr1715777vsb.28.1710407838314; Thu, 14 Mar 2024 02:17:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240313123017.362570-1-sumit.garg@linaro.org> <20240313123017.362570-4-sumit.garg@linaro.org> <4a0a8db7-a2bc-4c99-94b2-c13facbd1bef@linaro.org> <9dc0415c-4138-4867-861a-38b45b636182@linaro.org> In-Reply-To: <9dc0415c-4138-4867-861a-38b45b636182@linaro.org> From: Sumit Garg Date: Thu, 14 Mar 2024 14:47:06 +0530 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: apq8016: Add Schneider HMIBSC board DTS To: Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, stephan@gerhold.net, caleb.connolly@linaro.org, neil.armstrong@linaro.org, laetitia.mariottini@se.com, pascal.eberhard@se.com, abdou.saker@se.com, jimmy.lalande@se.com, benjamin.missey@non.se.com, daniel.thompson@linaro.org, linux-kernel@vger.kernel.org, Jagdish Gediya Content-Type: text/plain; charset="UTF-8" On Thu, 14 Mar 2024 at 14:00, Krzysztof Kozlowski wrote: > > >>> + > >>> + compatible = "gpio-leds"; > >>> + #address-cells = <1>; > >>> + #size-cells = <0>; > >> > >> That's not a bus. > >> > >> It does not look like you tested the DTS against bindings. Please run > >> `make dtbs_check W=1` (see > >> Documentation/devicetree/bindings/writing-schema.rst or > >> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ > >> for instructions). > > > > I assumed earlier that W=1 is sufficient for DT schema checks but it > > W=1 as in make? No, it is not. It's flag changing the build process. > dtbs_check is separate target. > > > looks like those are two different entities. However, I added these > > address and size cells properties only to get rid of warnings reported > > by W=1, see below: > > > > $ make qcom/apq8016-schneider-hmibsc.dtb W=1 > > DTC arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dtb > > arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts:96.9-103.5: > > Warning (unit_address_vs_reg): /leds/led@5: node has a unit name, but > > no reg or ranges property > > arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts:105.9-112.5: > > Warning (unit_address_vs_reg): /leds/led@6: node has a unit name, but > > no reg or ranges property > > Wait, so you saw the warnings and ignored them? Sorry but you are ignoring what I am trying to say. > These are legitimate > warnings, although they don't give you full answer. > > > > > > > So it looks like W=1 is reporting false warnings and we should rather > > Warnings were true. > That's was my initial impression too and I fixed them via following diff: diff --git a/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts b/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts index 8f9cacf8de89..a366d3aff3c5 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dts @@ -92,8 +92,11 @@ leds { pinctrl-0 = <&pm8916_mpps_leds>; compatible = "gpio-leds"; + #address-cells = <1>; + #size-cells = <0>; led@5 { + reg = <5>; label = "apq8016-hmibsc:green:wlan"; function = LED_FUNCTION_WLAN; color = ; @@ -103,6 +106,7 @@ led@5 { }; led@6 { + reg = <6>; label = "apq8016-hmibsc:yellow:bt"; function = LED_FUNCTION_BLUETOOTH; color = ; But it then broke dtbs_check. Are you aware of any other saner way to fix those warnings properly? -Sumit