From patchwork Mon Mar 24 12:53:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 14027185 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 6AA3D25F7A7 for ; Mon, 24 Mar 2025 12:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742820801; cv=none; b=bXkIBjHF1a6EwQ2B6wBbarTvX3Aoc4X7I+yrzjt5fagWTOYwFmd+zR5mbY5SpLZQZPbDjvN0/Dc6YhWIHcerkq+caR2eJRvIvzDIjV21wjOBol+tWDX4++1kLY9gbVKapjYFigXGanYW4qSIN6GhUtp5P0rotkX0lJMKtgt9pHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742820801; c=relaxed/simple; bh=aCC06cQYStRLjYVF2ZVpcwRGmX4d+mJq2tiafIi1n7g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fFhBpPYt8F9VW6bzC0qmckJItkkJjJqQQ4i3LUzDrXCC0bCEJEMU+oegGL5z3jysxUL4F379kXLz1NHH4uVq3XXWEwvqjj1pCyol8CL9YfZQdarFda+U/jTszHmISAbvkQoT0VqzL6tpgIqbwBK5IcvRm/CtDTNKOmvbNIHJ6pY= 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=YnPQcJve; arc=none smtp.client-ip=209.85.128.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YnPQcJve" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-43d0953d3e1so3899275e9.2 for ; Mon, 24 Mar 2025 05:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742820797; x=1743425597; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DhkKbL6Pj56pOT19f4sCe0HKXFmoTLO1O69IhcGdyYM=; b=YnPQcJve4xeM+tqGA9DuoxKTXVhUw/72V6JhiGTaNcmrFGgSNcNWRYN+oyGj3Fpdmv J0L7ERuC7QR9G95DC0vDCOdUCCQJOoqg85AWG093pjI4vG+v4hpwszWx8dk5ihXSmqYl B0XWb0sSALJX9gmxuS07t6jcW78fziN6MP/bhIlAaCWTwc/ttbnR8936lL5LoLBuV59a j6/kkwKuPUVTQtUqyQDCtC1VoRe2Oqw1BD/bzoLEEf9vpxsWwz2lotC8E9LHAtFZAh6a 5N3if0WRP58c0Vo2tUy5dVpGFOupQ0M3imYboXLsSxt733PHtYo+nGefVSOdOvgqmbl+ UFQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742820797; x=1743425597; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DhkKbL6Pj56pOT19f4sCe0HKXFmoTLO1O69IhcGdyYM=; b=ZMsmwjQeykGAys3opDYhmWYZGf3YD/wUxM58WaCENriUuEazly+Ng08Ao8PoO4r3zx fUK0DRLkYCvjgZmb4cEvRCoALqQrrZAvwexs/dn042Yxu3e0dD81Ig2XXRO9zw60I2KI XLUzBEE0KG0vjpEt6Y5HJgsq70YoKb8ETuRD0sBGMatG8gi8lfyehOME0/IKbowvp8+8 a7eXGTb+cj9gZ9wypte/hqaxgiJzyOB+4fHqJNtqtLx3k7EU12DTAOjymbIYWytkFraa xSchZJHc4VTdq+gMLYyoPiGLtSkQ/R6GPtjNCTbHAeXGB2FS+qrV0nxC7FZagU/q7jfX GCCA== X-Forwarded-Encrypted: i=1; AJvYcCVn2pmVZ/MoMFT3JH/i0Qm1BzmqGjM5UTe11M4R/ui5YC9nq6WeLgv4IOCyEujRGYqAf+DNI6RWY18=@vger.kernel.org X-Gm-Message-State: AOJu0YyRgVeg4MgyWHQccd95p50lNwdryKJenXrnlVVs+b/Zlu6iVt5g o+9EApZz++QW3L+7NlRqyKxjEoi09sGy3mFuE+iRXyV9D2HwqksbS3WXBVdcxP4= X-Gm-Gg: ASbGncuPtuApGTmp9cD2yaJXQXXlNpRBaEFfhogQdRKNQbgLwwyGnQUKhmfz+jIyWoA Z/S0RuvfIfxEpphs0FhkxtCnFOEk4NLwiKMdSKfPVvfqisq9IwGutII8M93lFGrDjSeL1lJxy7X xZLkuIddz+ndP7vdJyF2dYrBPXBJ+/qQTkbwew3jYCtFqHO+1mFD7gRpgEr18xMO2jFbcL9sbxu UanbhsU/h0KOAfaL0EsN1ft+kDxKGXcooB13kd3EgfQUgxjRF8KofZZmvlrOM16RjKuj2vJs0wt qx3G5DY14KF1yuFhof3/uuzLPUI8Yv10xJ0MXDsS/++iP90fqVAaGY03M17DwzS1Jqoa X-Google-Smtp-Source: AGHT+IELSRnS6+jDcoXD4ACf2eotZaDufAhTgDfQtnO8l4nSz1FNdFEmD6wP6RQaXMoBJDuTs30T2A== X-Received: by 2002:a05:6000:1842:b0:391:2f03:4cb9 with SMTP id ffacd0b85a97d-3997f8f9c98mr4498820f8f.1.1742820796672; Mon, 24 Mar 2025 05:53:16 -0700 (PDT) Received: from krzk-bin.. ([178.197.198.86]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3997f9efd61sm11017167f8f.91.2025.03.24.05.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 05:53:16 -0700 (PDT) From: Krzysztof Kozlowski To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , =?utf-8?q?Nuno_S=C3=A1?= , Michael Hennerich , Kim Seer Paller , Anshul Dalal , Ramona Gradinariu , Antoniu Miclaus , Robert Budai , Petre Rodan , Andreas Klinger , Fabrice Gasnier , Matti Vaittinen , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: iio: Correct indentation and style in DTS example Date: Mon, 24 Mar 2025 13:53:12 +0100 Message-ID: <20250324125313.82226-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski --- .../bindings/iio/adc/st,stm32-adc.yaml | 102 +++++++++--------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml index ef9dcc365eab..17bb60e18a1c 100644 --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml @@ -498,7 +498,7 @@ patternProperties: examples: - | // Example 1: with stm32f429, ADC1, single-ended channel 8 - adc123: adc@40012000 { + adc123: adc@40012000 { compatible = "st,stm32f4-adc-core"; reg = <0x40012000 0x400>; interrupts = <18>; @@ -512,28 +512,28 @@ examples: #address-cells = <1>; #size-cells = <0>; adc@0 { - compatible = "st,stm32f4-adc"; - #io-channel-cells = <1>; - reg = <0x0>; - clocks = <&rcc 0 168>; - interrupt-parent = <&adc123>; - interrupts = <0>; - st,adc-channels = <8>; - dmas = <&dma2 0 0 0x400 0x0>; - dma-names = "rx"; - assigned-resolution-bits = <8>; + compatible = "st,stm32f4-adc"; + #io-channel-cells = <1>; + reg = <0x0>; + clocks = <&rcc 0 168>; + interrupt-parent = <&adc123>; + interrupts = <0>; + st,adc-channels = <8>; + dmas = <&dma2 0 0 0x400 0x0>; + dma-names = "rx"; + assigned-resolution-bits = <8>; }; // ... // other adc child nodes follow... - }; + }; - | // Example 2: with stm32mp157c to setup ADC1 with: // - channels 0 & 1 as single-ended // - channels 2 & 3 as differential (with resp. 6 & 7 negative inputs) - #include - #include - adc12: adc@48003000 { + #include + #include + adc12: adc@48003000 { compatible = "st,stm32mp1-adc-core"; reg = <0x48003000 0x400>; interrupts = , @@ -550,27 +550,27 @@ examples: #address-cells = <1>; #size-cells = <0>; adc@0 { - compatible = "st,stm32mp1-adc"; - #io-channel-cells = <1>; - reg = <0x0>; - interrupt-parent = <&adc12>; - interrupts = <0>; - st,adc-channels = <0 1>; - st,adc-diff-channels = <2 6>, <3 7>; - st,min-sample-time-nsecs = <5000>; - dmas = <&dmamux1 9 0x400 0x05>; - dma-names = "rx"; + compatible = "st,stm32mp1-adc"; + #io-channel-cells = <1>; + reg = <0x0>; + interrupt-parent = <&adc12>; + interrupts = <0>; + st,adc-channels = <0 1>; + st,adc-diff-channels = <2 6>, <3 7>; + st,min-sample-time-nsecs = <5000>; + dmas = <&dmamux1 9 0x400 0x05>; + dma-names = "rx"; }; // ... // other adc child node follow... - }; + }; - | // Example 3: with stm32mp157c to setup ADC2 with: // - internal channels 13, 14, 15. - #include - #include - adc122: adc@48003000 { + #include + #include + adc122: adc@48003000 { compatible = "st,stm32mp1-adc-core"; reg = <0x48003000 0x400>; interrupts = , @@ -587,28 +587,28 @@ examples: #address-cells = <1>; #size-cells = <0>; adc@100 { - compatible = "st,stm32mp1-adc"; - #io-channel-cells = <1>; - reg = <0x100>; - interrupts = <1>; - #address-cells = <1>; - #size-cells = <0>; - channel@13 { - reg = <13>; - label = "vrefint"; - st,min-sample-time-ns = <9000>; - }; - channel@14 { - reg = <14>; - label = "vddcore"; - st,min-sample-time-ns = <9000>; - }; - channel@15 { - reg = <15>; - label = "vbat"; - st,min-sample-time-ns = <9000>; - }; + compatible = "st,stm32mp1-adc"; + #io-channel-cells = <1>; + reg = <0x100>; + interrupts = <1>; + #address-cells = <1>; + #size-cells = <0>; + channel@13 { + reg = <13>; + label = "vrefint"; + st,min-sample-time-ns = <9000>; + }; + channel@14 { + reg = <14>; + label = "vddcore"; + st,min-sample-time-ns = <9000>; + }; + channel@15 { + reg = <15>; + label = "vbat"; + st,min-sample-time-ns = <9000>; + }; }; - }; + }; ...