Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp85577lqb; Thu, 14 Mar 2024 06:15:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVr4vyvOQhaWVv0YrvbbsFuWdqt70kcOgWziSAPvDmRlkq52+LgLIffkBMMUu0SRCvxSpjtYMjqS1heuobwI6ewhfckC8My5W2uQdAcxA== X-Google-Smtp-Source: AGHT+IFa8Ktf9tOOq6sPbHwtyB7GjyABJpXBj33Y3O/MtlnMZtN1C3EIWl28K1LpLgmX+UIBmheH X-Received: by 2002:a05:6a20:3942:b0:1a3:463e:af40 with SMTP id r2-20020a056a20394200b001a3463eaf40mr2142pzg.24.1710422100381; Thu, 14 Mar 2024 06:15:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710422100; cv=pass; d=google.com; s=arc-20160816; b=LYdrMzEajOka8Ve8pC5yc0wJSwjy+scJK7QklvvEsWUTX2voQfbVXzW5cgJyMQeVXx Lq8Jxu0YW8qtf+eDdpA4we+tzxOMcKTu96CGUsRrkt4gnYx3ZaJX0jfxu+P9kzWmwlv9 FdRHjKrrAV/5NPztxXWdFWpuZWiTQjJkZ5nxuKfn1KDTqln+iBNa9CWMzNjIQR4Cvlfj 1ZWXENl1SbK7R6ujaepU2/PNq6tp6+4e1qHi2ixbhz0a4v4ioE/AozTGxQNvuG+MHl2f 9kG6X24RBN8psyM+L9izVHbbRpJk07fFkb1Vo3RkQeUMx7xBhF/9OEMtqjSPdkbYc5Ws /0xA== 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=fkD0KnYDjnqjUj1tphaFuRIzplXQwfgK5ojv6GksvlY=; fh=ILKWdHxp83Z7JCjKaHw6jNlQc2khpyROUnJHcMx4qkg=; b=aWH/foR55Ohnq0YVZ3EbVGWUmfyclIhI1fRP0ebNJIW3LSl58bWNhOqj/z9Mlv6sps wykRVI6ljQg4UXZvUNpj+tD6C9eo0OKqM6tMcYmMOyNLQcLJ/G8P5beJZNh5eg687UAL s6W2DZJ3MmbCvNy4RBIcfJzFmXhh4tw4KE7x7NWEZeBHQrba9Pv8/3YLAJFIjnC3fc/s r7IPqtvAvzyB0i48TAaRhCqtR7Ox9OOCw4sN2PEwkHjJC/aqO7RTSYycOSFMrHqmjtYG lXV0YU8TIGiRzHc2mtoccP4oV7PQqv2yR5U/rZkzKMiTaKOPTNm2ns2PPOFnb8PIPMr9 dL7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mbExeOXW; 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-103280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103280-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 e15-20020a630f0f000000b005e4f1095585si537810pgl.688.2024.03.14.06.15.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 06:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103280-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=mbExeOXW; 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-103280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103280-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 00FAD2890BB for ; Thu, 14 Mar 2024 13:15:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84D7D5BAC3; Thu, 14 Mar 2024 13:14:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mbExeOXW" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 B996D5B200 for ; Thu, 14 Mar 2024 13:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710422086; cv=none; b=Lwq88C3rRAUZLfN1UMzob/v3LiVXtVqQ8CsBnQ4Fn8/fQXn6gJb7msTQasdjASOCC3QdZw9cpv+dMZfdl4jm6WCAH66CBsVYaNrnVnLGcXU0sawJlh7VyO0uIFxZKSgkQWKF72FJTLUNlkNGTa3HJtHqMEpVePViuASONW3QR6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710422086; c=relaxed/simple; bh=nzs6zCI1jdSZw5ilnOs66b3DiJ+Gf76pVPexRiRqK7E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=A3ev6ZFDjEd1YMOqNmPpmhQQhAkVWgIpVUoD1dVLEqu6z7QetOlCYEZBUtZQ/sTOjjiq20bT41DHEebqkpX/cWCIsCyKZXKkfGIWaku7mGk4Fhzm8kis59whOht27/CBByIcc8kw9AP5Sxg2qyer+cyF4g7BiwK5AT5yK8hbWNs= 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=mbExeOXW; arc=none smtp.client-ip=209.85.128.175 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-yw1-f175.google.com with SMTP id 00721157ae682-60a068e26d8so10632377b3.3 for ; Thu, 14 Mar 2024 06:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710422084; x=1711026884; 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=fkD0KnYDjnqjUj1tphaFuRIzplXQwfgK5ojv6GksvlY=; b=mbExeOXWboJjaCa3+MJDNvkDycW3WnS7LAgCFA+ETZWcjDuJUe01dOwfhbqJ8GHTiK eUl4AT/2414JLugozU+NuTglKzUQm6h2NJqtadjwqSV/MV+G0BWcnQVfkEyYH5oOl3ad jaBQvGr7jBp7Nv+5nIeesKqk5usYZfGNm7+A5skXqQaY1ZgOp+YFR+q3fnzmBMMR8kVf fCYeWsH6BuljNTJxUm0Q+7tFKQgSoRjAtd9hKAvkPTlcyYiaD2QG6Dg0Y8zQqmPqfM24 sDkJVZninY99Nu/F+9dzUbpB5fcS977LehLkc/Ku4PJlgjTgD3Km4QK6Rl8FU7C2wg9M 1vpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710422084; x=1711026884; 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=fkD0KnYDjnqjUj1tphaFuRIzplXQwfgK5ojv6GksvlY=; b=BnmarV8IiWJraiqj5kvb0HLizG/7qzULj4l+KGFEeQGqlE9VLnHIYJuwdLq6BMOgb4 HEwahjrl8hGgYzEzr2F2ki73kNt2wCTJOJyqhZdFCLOUyi22ZazSxmbSk4z7Bjzqbwtz kQMNk08nIyLoDWd2v5fW9lAxKSr1xvyJrOeCH+MOZSaNXN2rJD2gBNbapAf37YFHfs5Z LqP0Ntt4gzT3mFATZpEDirgmqMFh3FwX9giTnPkJ9DuenoowpCp3Oo3K8wjDlKvzQLWd D4MhHy2aRnlJ6l6m08RdRc/gm+EFsCeLNhLHN7PjixhhGLtHDslfaQCoTRT0q5sWRRLH +qaA== X-Forwarded-Encrypted: i=1; AJvYcCVFi4Z6QCDOr9GqKnp1kWhycXuUl1pmjRZl8WSrjnDixQ6NlNrpPtTSgrS5Hya4STQKIy58DRNuNbLCn7hk1J//9ZlkyJ74UmWGaShQ X-Gm-Message-State: AOJu0YxdOVxe6bv+hUjD9qOU9POxsN/KM/mnYYU/+xZ0jnhJ1QFTbSsi 6vMHokz5bZPq1v+Mu755r6egdLHO2hUq90EZJ5Q8cRsVAD5//uIVrUXkQ0vPcUY1AlClZtum3em TK2VNXaHC5mtYgsndiV5yM//XGZg9ZySUQgtD9Q== X-Received: by 2002:a05:690c:6f88:b0:60c:d56c:2c38 with SMTP id je8-20020a05690c6f8800b0060cd56c2c38mr341959ywb.7.1710422083691; Thu, 14 Mar 2024 06:14:43 -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: Dmitry Baryshkov Date: Thu, 14 Mar 2024 15:14:32 +0200 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: apq8016: Add Schneider HMIBSC board DTS To: Sumit Garg Cc: Krzysztof Kozlowski , 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 11:37, Sumit Garg wrote: > > 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]+' > That's because there is no addressing for gpio-leds. Just use names as led-5, led-6. > > > Are you aware of any other saner way to > > fix those warnings properly? > > > > -Sumit > -- With best wishes Dmitry