From patchwork Sun Dec 4 09:47:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 29392 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1730614wrr; Sun, 4 Dec 2022 02:32:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6r9dnCiZ7HCF6W6Y5joaATfyBc/6FMU8F6a7htveeQzYlGdeijryzUOlkIFfXNlKvR9Kir X-Received: by 2002:a17:902:a604:b0:189:9e92:9e01 with SMTP id u4-20020a170902a60400b001899e929e01mr25087611plq.2.1670149941996; Sun, 04 Dec 2022 02:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670149941; cv=none; d=google.com; s=arc-20160816; b=A8ZYkAgbJu8Oi9ESdjzDBlUsLzwmC+wOeDywXJSb23H80FxnL7pgkcaLWc/+SIyxWq eGDINi0dLdlScqHJWWLBzb7QJngFEhblHpwwppPNC3jbVwzfGVU+kAPj+D4cu6vdazxo lsbXNgaAa7P1Jt+/O1iexsz//qQrsRXef+MYx4hjzAkAx4Oz+hNsT5Fa9KeLIR5QzabW 3WUkwPCT517u/Nby3sQd334yvTwdj8vhxSnL/swvJKUxrqlPneO8a+JI+Z7HKbGe0TID Wpz23xWpKTvX+SpGx6kMZelx+BYtMzExNVYC6UsF7MaXuEq9AhJatk7mFgKwGe7wuQ/V P6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GccF7ob3XNHDsWukO3JP0Wi8T2Hdw6MMBFnO2OSTh1A=; b=tZTWj6NdxCsCR/AeCh/JhdAx87iwDXnVdtNwyMnb73WYcgPVXGkx+b0HMDsJEyuxkP HF3nspl8SEgRXWagYlS3eKTmtQKH4nRyKnHvVbNmZMsVzWMNyjVG/M1ugoe5f2IeypDB Z0Yfvu3KHbFM6j/SMHnwMEFPf3cRS6g+1msaBRGDitxlkl64T2LMnlquSoO9ANav7sim X0CIJLC15vBJlXt5jgTge8jnttcxF2J3ZKDkOSIa+UKyelIXuxeNHq3w4z1B9dxfMR9i JxFbvox55FLAfVpNysvkaxCpjKILqsRNisnW99vLPuQw02trxbxwPPun+auZMjbwmj/y 4/8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AOOQWKhB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a1709029a4100b00184c33ddeb8si10788844plv.23.2022.12.04.02.32.04; Sun, 04 Dec 2022 02:32:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AOOQWKhB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230086AbiLDJrf (ORCPT + 99 others); Sun, 4 Dec 2022 04:47:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbiLDJrb (ORCPT ); Sun, 4 Dec 2022 04:47:31 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 578C9186DA for ; Sun, 4 Dec 2022 01:47:30 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id a7so10251887ljq.12 for ; Sun, 04 Dec 2022 01:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GccF7ob3XNHDsWukO3JP0Wi8T2Hdw6MMBFnO2OSTh1A=; b=AOOQWKhB0eM1snLNVJXxJ88RKnUmw1wOQGkdAV3MIpX+smm7OZiVUrXnMmw3iGjsje i5bX6ND0rB9MVdLTcNO1QBQamLrAXcEqZHS1FQ67LO4JcISpgNaUm6mOSccz32H+b9EJ VzlHtWtwn0poo7BNMlW+ovG2h2nUixyNut/xsGmxIIu7Ibni+TX8eJknx2pkIY810syt pggK7xOtQAjIQFFt+g5xOhMlzZdpwh8RYrtDDFVdjZFqnBpdu/n9kCfc2EvoGN9QhyfA 2U2I5NoM3fTlxSzkbPfa8qHpdbplFSqwCLsfLpmjr6/GFgXl01Rwt7cl3aUOqoe7T91F fhRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GccF7ob3XNHDsWukO3JP0Wi8T2Hdw6MMBFnO2OSTh1A=; b=IN8C9ptoDatcxPQ6d4qno+B27IfrL+mdc5fnN2EqJnWTzwakOvCSKxSLA/zjmjoA9c 2F2r5+6i2mo9OFD2Ddyr6lAfJbQMD99J8kss9tzLqMmIX8RSp2MYWDcgtXXNzizp+Azx vtgeSBtQuIOa+Egmcv3CrDE9e/lmzrwWqC/T0lIvjGVLoXY0LS4XqZyfDaYy+nNdVDLG QrGDtAqLdXedyXl4/8d5dRegA59WPs/Z14i+L38YwLsZhxTUpbRMMl/Wjr1hImF8ssmt O28zv+TKuo+dA1ImechBI4at92BUfmR5ioJyuwRUxEUDD4pbeC5D6SKc1dngnS75wLoS K58w== X-Gm-Message-State: ANoB5pmrhudhPnOJt6znnd0klGt/l4vrBtf6iHzVA+K3wdD/EqBALDMq CmbW99i2VuBAzeY4t/LdczLmCA== X-Received: by 2002:a2e:2e0e:0:b0:279:7455:9d6e with SMTP id u14-20020a2e2e0e000000b0027974559d6emr18302515lju.235.1670147248670; Sun, 04 Dec 2022 01:47:28 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id e18-20020a056512091200b00498f00420e9sm1706703lft.194.2022.12.04.01.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 01:47:28 -0800 (PST) From: Krzysztof Kozlowski To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Adrian Hunter , Bhupesh Sharma , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Andersson , Konrad Dybcio , abel.vesa@linaro.org, Johan Hovold , Krzysztof Kozlowski Subject: [PATCH 2/5] dt-bindings: mmc: sdhci-am654: cleanup style Date: Sun, 4 Dec 2022 10:47:14 +0100 Message-Id: <20221204094717.74016-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221204094717.74016-1-krzysztof.kozlowski@linaro.org> References: <20221204094717.74016-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751279145369917864?= X-GMAIL-MSGID: =?utf-8?q?1751279145369917864?= Cleanup coding style without functional changes: 1. Drop unnecessary quotes from $ref. 2. Use simple enum for compatible enumeration and sort entries. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/mmc/sdhci-am654.yaml | 61 ++++++++++--------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml b/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml index c4c73ee1422c..676a74695389 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml +++ b/Documentation/devicetree/bindings/mmc/sdhci-am654.yaml @@ -2,8 +2,8 @@ # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ %YAML 1.2 --- -$id: "http://devicetree.org/schemas/mmc/sdhci-am654.yaml#" -$schema: "http://devicetree.org/meta-schemas/core.yaml#" +$id: http://devicetree.org/schemas/mmc/sdhci-am654.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# title: TI AM654 MMC Controller @@ -16,12 +16,13 @@ allOf: properties: compatible: oneOf: - - const: ti,am654-sdhci-5.1 - - const: ti,j721e-sdhci-8bit - - const: ti,j721e-sdhci-4bit - - const: ti,am64-sdhci-8bit - - const: ti,am64-sdhci-4bit - - const: ti,am62-sdhci + - enum: + - ti,am62-sdhci + - ti,am64-sdhci-4bit + - ti,am64-sdhci-8bit + - ti,am654-sdhci-5.1 + - ti,j721e-sdhci-4bit + - ti,j721e-sdhci-8bit - items: - const: ti,j7200-sdhci-8bit - const: ti,j721e-sdhci-8bit @@ -59,67 +60,67 @@ properties: ti,otap-del-sel-legacy: description: Output tap delay for SD/MMC legacy timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-mmc-hs: description: Output tap delay for MMC high speed timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-sd-hs: description: Output tap delay for SD high speed timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-sdr12: description: Output tap delay for SD UHS SDR12 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-sdr25: description: Output tap delay for SD UHS SDR25 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-sdr50: description: Output tap delay for SD UHS SDR50 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-sdr104: description: Output tap delay for SD UHS SDR104 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-ddr50: description: Output tap delay for SD UHS DDR50 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-ddr52: description: Output tap delay for eMMC DDR52 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-hs200: description: Output tap delay for eMMC HS200 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,otap-del-sel-hs400: description: Output tap delay for eMMC HS400 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf @@ -129,55 +130,55 @@ properties: ti,itap-del-sel-legacy: description: Input tap delay for SD/MMC legacy timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,itap-del-sel-mmc-hs: description: Input tap delay for MMC high speed timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,itap-del-sel-sd-hs: description: Input tap delay for SD high speed timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,itap-del-sel-sdr12: description: Input tap delay for SD UHS SDR12 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,itap-del-sel-sdr25: description: Input tap delay for SD UHS SDR25 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,itap-del-sel-ddr50: description: Input tap delay for MMC DDR50 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,itap-del-sel-ddr52: description: Input tap delay for MMC DDR52 timing - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0x1f ti,trm-icp: description: DLL trim select - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0 maximum: 0xf ti,driver-strength-ohm: description: DLL drive strength in ohms - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 enum: - 33 - 40 @@ -187,11 +188,11 @@ properties: ti,strobe-sel: description: strobe select delay for HS400 speed mode. - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 ti,clkbuf-sel: description: Clock Delay Buffer Select - $ref: "/schemas/types.yaml#/definitions/uint32" + $ref: /schemas/types.yaml#/definitions/uint32 ti,fails-without-test-cd: $ref: /schemas/types.yaml#/definitions/flag