From patchwork Thu Apr 28 08:18:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12830160 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3119C43217 for ; Thu, 28 Apr 2022 08:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239889AbiD1IVm (ORCPT ); Thu, 28 Apr 2022 04:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344001AbiD1IVi (ORCPT ); Thu, 28 Apr 2022 04:21:38 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD7C998F64 for ; Thu, 28 Apr 2022 01:18:21 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id a21so4632328edb.1 for ; Thu, 28 Apr 2022 01:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n6DTGfTof5sYzGDiXrMP1vMIYG1Ilv6ThHsoRQn6zzQ=; b=DqxLNGi/xicx1g7puca5JU7KmIbbdaRlKjOMF1YlAi8Pl03hv2z3u8widpCctheFVC 7ldIRJrZgsEnwln2E3gAZBIR1oPdzjL2jzLSW6zggZ4BSER+3ONecAOGoXuaHahojOLj LNLDSn9YwYBu+sxv998eqpVCuLw3lU5hCAHi6O4pnTIwFU6Txm07mKXCb7kS43Sq3vi1 t49zhSxfmrkVhBhcPBhG0NtqY+lQPnimbRbkghy8fIHV5wk0hPEaSwk6hLDXE7dbbBVd hh5+Jd3Q0n/vDLZAkdH/gdnhJQud+aUN4hWIeR/l+D6Avs5OC4/iaSmBfB9MWOCwITmR oo/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n6DTGfTof5sYzGDiXrMP1vMIYG1Ilv6ThHsoRQn6zzQ=; b=a9nWzKBceu5CVeUNrMrbPkMhpMo9U0ruXt/Ef1qZBQqV5T0bTrMLOoPk1VUtQ3v9Jk 8dG0kIAyMyXCAuUtWcz/Kw1fRUB4t8yo0pllwnC1tncsc794Bn43j/CqJItuhWQUQiYQ E1HYbgsblCRSRIgnj65zcJlHG9zvhcKVkNBnwBIhIo8+Tv1vCcaVTiaB1fWmPDVkwJ/6 /FYHJJcKCn2jvpW8F5rJ8sJH1dYbSX22nJzUQbSCALfIgJ+qcHCTqcCtdBY/6IZh4CJ5 4AZPQDsdY2MMyFhWWUQCY+uph9oEkRcUTq8Vh5LyJMI+VO7kXxTwEg36qwNXg2aXVGN1 hFVg== X-Gm-Message-State: AOAM532LaPOk1HmVRAC+HOjQf0+dXtofxjX7+A7QjU585nPhh5Q2r+O9 aR57yPv2yjIhd51AB62wfXyLmg== X-Google-Smtp-Source: ABdhPJzI1dVgNMP8B2mGDFiv76P/6lIOuogOVY09/RMyn4Ngcb0VYTUD2iJ4jMWfkJ6hiZ4u/AIbNQ== X-Received: by 2002:a05:6402:35c5:b0:426:1bd8:94ea with SMTP id z5-20020a05640235c500b004261bd894eamr5937347edc.40.1651133900398; Thu, 28 Apr 2022 01:18:20 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n10-20020a170906700a00b006efdb748e8dsm8007744ejj.88.2022.04.28.01.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 01:18:19 -0700 (PDT) From: Krzysztof Kozlowski To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Broadcom Kernel Team , Al Cooper , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: mmc: brcm,sdhci-brcmstb: correct number of reg entries Date: Thu, 28 Apr 2022 10:18:16 +0200 Message-Id: <20220428081817.35382-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The binding should not allow infinite number of 'reg' entries, so add strict limit. Signed-off-by: Krzysztof Kozlowski Acked-by: Florian Fainelli --- Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml index dccd5ad96981..54a0edab5f8c 100644 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml @@ -31,7 +31,7 @@ properties: - const: brcm,sdhci-brcmstb reg: - minItems: 2 + maxItems: 2 reg-names: items: From patchwork Thu Apr 28 08:18:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12830159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D613C433EF for ; Thu, 28 Apr 2022 08:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344018AbiD1IVm (ORCPT ); Thu, 28 Apr 2022 04:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343988AbiD1IVi (ORCPT ); Thu, 28 Apr 2022 04:21:38 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DED8798F68 for ; Thu, 28 Apr 2022 01:18:22 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id p18so4608820edr.7 for ; Thu, 28 Apr 2022 01:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q6ObuNAUe3IapWBmxguwLTs3rzFOyELI4KMoy84mKI8=; b=vr0zLoeA8qcFRf/JF23LpbGRsMu27mS7NCLPTNl3IvUo61ZTGf6537v3BckD5UxY5S FPySCLSrRh3TZgIv52RFXuA0i/xq9EfOxXuxySq46tzEm07FU7zqRE+0IdpsEWFo7WSp H9FidhtJkAr0DNDmViKD/zBj5Tm9aUygAWUEGiqswUyYv3oV2fnRjtk1BK0uF38t33TY w3MJx9ocF0bKKBLK8H/c5BQXwa+QvCJ9iaUHRYYyn9v4NblTQ9g/rPSGiywuSoVJmMN5 ca5xnSneLSPqCm2/2tL231d97m5OIvb+eW6p83QtxzZbPi9k9GCCYQGo4MbizD3ffNKf 997A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q6ObuNAUe3IapWBmxguwLTs3rzFOyELI4KMoy84mKI8=; b=56OAI4+SY3haKmvz1An0f34jJ655djE0JwPbee3PF36+tUYsJJ9MYggsl0zD63UhTd AVGY3eZ/xT3CMbXito2hukGR+MRMAneJZYIwDNcY98kIx0wOLqoSkv7Xg0q077+PiaQN DwPOSV0NSZAXo+lkTd+B1fi+PUfyX93R6J/BI+Ssjb5JVAeW/p1anvpZhDIQkCuPWq0Z I1XSMCKgBbjkMCYmygVTBvmgS7YRepE6o7WkgAwJkQoLLX08Vz3O2vl/fJ56ipF0qknr wswJPvNyncTT7WdhhVYQ4DgHIZZywlBmqjTAvQ3pibQKK2X3GqYCuZFY4NGXLpDJwBD+ jTYQ== X-Gm-Message-State: AOAM533OBt5o71CQPOWUdPMSjrGwPoHF4kt3tXNKo9WRRq+2++DVqs0k R6TGsy5lK1VK32a7oR1IszdXGQ== X-Google-Smtp-Source: ABdhPJxRc96budO9H6KzxrRujkg8tG5V8iP+QoQrMj/hHOqWwyAH2FSFFYOUoqdy55WJbz8RAXpq3Q== X-Received: by 2002:a50:9e61:0:b0:419:d8e5:6236 with SMTP id z88-20020a509e61000000b00419d8e56236mr34698212ede.327.1651133901498; Thu, 28 Apr 2022 01:18:21 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n10-20020a170906700a00b006efdb748e8dsm8007744ejj.88.2022.04.28.01.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 01:18:21 -0700 (PDT) From: Krzysztof Kozlowski To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Broadcom Kernel Team , Al Cooper , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] dt-bindings: mmc: brcm,sdhci-brcmstb: cleanup example Date: Thu, 28 Apr 2022 10:18:17 +0200 Message-Id: <20220428081817.35382-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220428081817.35382-1-krzysztof.kozlowski@linaro.org> References: <20220428081817.35382-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Cleanup indentation and order of entries in example DTS. The most important when reading the DTS are compatible and reg. By convention they are usually to first entries. No functional change. Signed-off-by: Krzysztof Kozlowski Acked-by: Florian Fainelli --- .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml index 54a0edab5f8c..b672202fff4e 100644 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml @@ -65,15 +65,15 @@ unevaluatedProperties: false examples: - | mmc@84b0000 { - sd-uhs-sdr50; - sd-uhs-ddr50; - sd-uhs-sdr104; - sdhci,auto-cmd12; compatible = "brcm,bcm7216-sdhci", "brcm,bcm7445-sdhci", "brcm,sdhci-brcmstb"; reg = <0x84b0000 0x260>, <0x84b0300 0x200>; reg-names = "host", "cfg"; + sd-uhs-sdr50; + sd-uhs-ddr50; + sd-uhs-sdr104; + sdhci,auto-cmd12; interrupts = <0x0 0x26 0x4>; interrupt-names = "sdio0_0"; clocks = <&scmi_clk 245>; @@ -81,6 +81,11 @@ examples: }; mmc@84b1000 { + compatible = "brcm,bcm7216-sdhci", + "brcm,bcm7445-sdhci", + "brcm,sdhci-brcmstb"; + reg = <0x84b1000 0x260>, <0x84b1300 0x200>; + reg-names = "host", "cfg"; mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; @@ -88,11 +93,6 @@ examples: supports-cqe; non-removable; bus-width = <0x8>; - compatible = "brcm,bcm7216-sdhci", - "brcm,bcm7445-sdhci", - "brcm,sdhci-brcmstb"; - reg = <0x84b1000 0x260>, <0x84b1300 0x200>; - reg-names = "host", "cfg"; interrupts = <0x0 0x27 0x4>; interrupt-names = "sdio1_0"; clocks = <&scmi_clk 245>;