Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp270908lqk; Thu, 14 Mar 2024 02:37:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbY4+0Ro+vLSBmzEF/dekbts4kETDaH78JNulNf9n98CSTvPW+7rCe/EnzAMy0YKfxU0hFWfv5BwfNZcjHBNz6/Sl3sxvG/MpzXg2YbA== X-Google-Smtp-Source: AGHT+IHMZL+fzJ2G4LO8JVsixRZkeMGpCYWy+WmKeT+gjoF6BVPHdh7OG1nJZ8tD3TjxoAmoULRf X-Received: by 2002:a05:6870:218f:b0:21e:95dd:b212 with SMTP id l15-20020a056870218f00b0021e95ddb212mr1257198oae.57.1710409028265; Thu, 14 Mar 2024 02:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710409028; cv=pass; d=google.com; s=arc-20160816; b=Ptkih5PQoHWBhUc9lJnBWvyBQt6ZGdKpzLw+UzudT39mkdWmmindW4SARf9CCA6ydi o84/wBual1CWVjGwD0csaHq5MwmkXcEXjMegdWCX5gexf3ZwHvEec6jECxuQFBij2ysY lXaSupDpOVCZxk6CPoeAnRBoxdGirEC8YSm3IO4E5D3glIOH4+NQjvPgI85BXvm/xexD PMnkpDXGNXcqjcD06j4K35rm4mElrWuka39NdHTaot+ZGUlj6zz1f0qqQsmxF5TT13dQ 19hngzHLalsmbvrHgR2dpgrYpX8STEVgH6gWWBo6ZEn+JsTR995UEHGAMRpeh/IslaoN u+iw== 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=rFCyko4UygTC+eA1DqHkphcPHLw6z/FvgDsZ8y5K0hc=; fh=m0CJLuQ46OSbO1/hCcyr29w3C8Ad81W9eWRJ7PHEZeA=; b=E1e1HROXmD463GXWzXQWbDgOIDRsWSgbc6VR5JFT6RyoQSfbxbbbsw00Cr9sA9UhvR MyxV5XjIiq/VP7Iqh/NhCPlr6YBWOfMaw8DlSwT617PvqMPCweuye1VO0dFTEwIz0arW CDtHb0qSnc5QZIllsqFjt5XYPoxO1Wefpg/7L0zwN9NIbkE3LN9kaljv9SqjHh8Jxpyt q1n2lY/Kba3XD7BQI95gCE80rJU2fZ8GJfrVwZjhirXPXwGr0rmSjmyhi4JReMH/Iqx/ rl7iebYYgLngIBD13NsZZOKMgJU7pJTar5lF+3RJforMfUFa05DBnXZIrchN6S0Y9/Zb 0tIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CUWeeBGl; 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-103064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103064-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. [139.178.88.99]) by mx.google.com with ESMTPS id h17-20020a631211000000b005d8c19ca98dsi233609pgl.137.2024.03.14.02.37.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 02:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103064-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=pass header.i=@linaro.org header.s=google header.b=CUWeeBGl; 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-103064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103064-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 A48EA283AA2 for ; Thu, 14 Mar 2024 09:37:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C30E66CDD7; Thu, 14 Mar 2024 09:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CUWeeBGl" Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.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 2F9794D9E3 for ; Thu, 14 Mar 2024 09:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710409016; cv=none; b=KtjOUAdaljDMxv+bdgtD8q0SfLuNDs4EbxJiVs24hxQfXhMU/sjRBOzP8C2bRb10E4Ht52SAP4ZBlygXx9MoWlXKEHYxl0lgaLp7cDsBUS+Xt8uoHRbXn/B+zb8japYsfOtzo9IA7HhJ267RHLhkw+QZlFgF+RsmRXGE746a8hU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710409016; c=relaxed/simple; bh=1kL2QN6WVKz8gSy0PyRVHEePyuYyXifXRN8NSSLj2C8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ApeUdDc3/FXjaY/H5kg0F+JJAD/89qcQ5pIv92ggGuJ6r3TSL63Yl/z/HLBnRKBd5o5XssJbBF0RkwbtMv/aU/XeklBc21KpuvAdSMfZ4xO+rtIYZ6hbSvNZrgEzadWmB4tu8gShzkX8ZeNolkFEGqnUvlru6XCKpXq48weUc/E= 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=CUWeeBGl; arc=none smtp.client-ip=209.85.217.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-vs1-f46.google.com with SMTP id ada2fe7eead31-474c44ac8aeso215597137.3 for ; Thu, 14 Mar 2024 02:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710409014; x=1711013814; 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=rFCyko4UygTC+eA1DqHkphcPHLw6z/FvgDsZ8y5K0hc=; b=CUWeeBGlWyiP6E1YQSxhVNq28+HtealEt6mX/CZk+e+9zIKM3GCsm0WjhPqrEBS+SN UVcZeMAdhCMXcNFNtkPDjhaFFcz5jrnIeSou1Oz6m0cp7RZjQsK807eXwTiME/19jAcO rHgbFOfE2sP1pmS2ZD+8T5B/50QNZ+liqwtIB/QZevwrMPNknIit6/ApGJz3vk9srFMp ttRsYjF56HllPhG9owIveuRS+fNwUhnErpWLyMqXCd0BmrdTTCidx42VJKiuJTkkS4jS WLYpcSXcmGUvL5DyzBNz1gmNANkQt/lptpEIuIqP1S1IBOpBwLoMmVzK0MpxMWkf3qFp lQRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710409014; x=1711013814; 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=rFCyko4UygTC+eA1DqHkphcPHLw6z/FvgDsZ8y5K0hc=; b=HyHu3rohgTM2LhFwi03in1/48XhsVyCFtZZ3d6g8OXDfUDvI5RkGHH87TE+25YX4Oh RXrLI1LdXGyW5jvBQ+SG+5IqbDOkncYNg0vL/pJQJ+kWZhKiJniHySSTh0/7zyTtMMi9 +IwoiS1Qjn1/eUHEQangNUL7ouCInYSNr3JswHhZJ5x993tQtCpOKKp9MILS+5lA9R/L z3gE7RCto80Lp+EAf/ndaSvV+SN7mb2u8YwB4LBtlzckTGLFpwC+AeC8xduzgXUNbQWF fFtoVf67inEsXCm6ri4ySS5xSOVbOfEBOVHgSbucyM1fv9Ti53O1ddOyQQjaT+D1dwCU ERLg== X-Forwarded-Encrypted: i=1; AJvYcCUuyEwNycm7Pu4kt/QLUGVQLJhWExk7LphV4u75W1NuoP0zbWeduYqVZ3fWEFR0CDRY9FGAtacXb+Lnor0PvhbQKMfWPNf5F6d6x3ZO X-Gm-Message-State: AOJu0YwQ6W4QnE3UysoshH7jQic4DD3AbJyk4uUlzTO9ZtqWW1r2t7op f7/IM5jO4SWzZdCCl4mklI37DreJ5PxcWNyVjP5EKALGVfpqmVFr1u20rUzykkrflq7zyjXd/D4 YK8f65TpcUjWpuwqVNt4edHaGNch7z9zMIK6iuA== X-Received: by 2002:a67:f744:0:b0:475:fb4c:7945 with SMTP id w4-20020a67f744000000b00475fb4c7945mr1506021vso.26.1710409014054; Thu, 14 Mar 2024 02:36:54 -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: From: Sumit Garg Date: Thu, 14 Mar 2024 15:06:43 +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:47, Sumit Garg wrote: > > 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. See following breakage afterwards: $ make qcom/apq8016-schneider-hmibsc.dtb dtbs_check /home/sumit/build/upstream/linux/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dtb: leds: led@5: Unevaluated properties are not allowed ('reg' was unexpected) from schema $id: http://devicetree.org/schemas/leds/leds-gpio.yaml# /home/sumit/build/upstream/linux/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dtb: leds: led@6: Unevaluated properties are not allowed ('reg' was unexpected) from schema $id: http://devicetree.org/schemas/leds/leds-gpio.yaml# /home/sumit/build/upstream/linux/arch/arm64/boot/dts/qcom/apq8016-schneider-hmibsc.dtb: leds: '#address-cells', '#size-cells' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+' > Are you aware of any other saner way to > fix those warnings properly? > -Sumit