From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D08D4C433EF for ; Thu, 31 Mar 2022 15:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JhAd5iPCMZYqMMa0qZ5v++rBCWIlcZ3fdAxyR2EhtlA=; b=TrKLMuUdUxvPmL dk90kv2Ysjl0OvOVsKiA8nrv6XVsG8eszM4isTx23qq5gVf02wyaAZ31k3u/iISs42Dy9pBMcM8oM dQDdNZ1VaC7J8alpamaztRWjFnNQb263VsdSEfM2KjAy2WM1R/IgUjX3Pl/mRXMxHpnqhSucRPEJX 8WROJUaw3dVvj01XcO2AcE27wPe4dOviWPLTG/Vj3S9ir0e/FKwVE+qnpb5EgZrvyixjXvNFtZgkQ kcaQ+/jVWAVO0U7a8b6MR9o6U76B3MGHj4nok4/Xap/k1cEb/bef/B794EY+B8wabiVzSKAYWI+nL gCAEAeW3yc3+pBR4PkCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZx03-002n9M-GW; Thu, 31 Mar 2022 15:46:15 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZwzf-002mzF-DB for linux-arm-kernel@lists.infradead.org; Thu, 31 Mar 2022 15:45:53 +0000 Received: by mail-wr1-x432.google.com with SMTP id d7so349709wrb.7 for ; Thu, 31 Mar 2022 08:45:50 -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=NTk71lcApIDnaufqXkt4JJ2niYkXc5EJQfG/xzmJ8kk=; b=ylpjyIXdiIL565mvGo0U3p6iEoKTCb7dG4ri4XKluZp+QxnCogbrEXhZw8qZCG4538 Bn2mlhPMYEnoenlo2Fvylp4W/u64Pm4lCrRuhpveCMtM9C62fKqT6tsj5XnW7Gf7ssmo /kcleFEOGazu7x1i9xVgiPafpMX4xql0dpi6DJ1LVU+En1TNzD2WDcyRnK68vP0LfaTU l7ckjxQLhpg0f/KuqjTucMSbVSajcR2gXxGCNxrXIVYY0F47gipc/uImz9f3W5/pgYUc EsaYZG+khuxEYbV2jtlc08QQGvDQ7ps2TvqtXAg7/3lWCfncimizAghIScTqh6oQYbly YDew== 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=NTk71lcApIDnaufqXkt4JJ2niYkXc5EJQfG/xzmJ8kk=; b=AzQXr334P8QGZZKCoE2PO8pkepizBjkPZu0nMjV3a0OTGFudS9Tj85sg7l/Oke/ioD 7ThfcKMQPv8+dvtLyXu4BWPUhXU285C+51xmDACiglAh1WXzXuTMtg0LrxGAZeqYHcMe JR1N5IysRmn8T1VoltLTD5gcWv64X+nModMs6NIzh4TAMrJTBvxZxWiIfxbGpaGq1pL0 R1Mhgi1xNqGF81sUSF8KRQLCc0bo6qBDahCFPIks1VRuAiCvSyqwXXfvEoP+ryYJF9n1 J5pSYjqDDmhEc+PQdbGvpxpwgETxv7zuRyW2HGT+v9pws4UIZQbjS10+2kSAOQI/ztKL GMSg== X-Gm-Message-State: AOAM530L5hmAKHwWz0d4CllPE8NX3eihBXifZGhE4nYGY87X5Afy8HIf slDuXM5txPMpd27GqHEl7/+3WTfxlAV/mQ== X-Google-Smtp-Source: ABdhPJxieu9NrSj2W08uIG2ZiGCXptlTwIUbOZSXkz52y1AGvwuoPMG2cgquPVhqAAc9k54q/3U3mA== X-Received: by 2002:a5d:588c:0:b0:205:7f17:3901 with SMTP id n12-20020a5d588c000000b002057f173901mr4490650wrf.359.1648741549592; Thu, 31 Mar 2022 08:45:49 -0700 (PDT) Received: from arch-thunder.local (a109-49-33-111.cpe.netcabo.pt. [109.49.33.111]) by smtp.gmail.com with ESMTPSA id az19-20020a05600c601300b0038cadf3aa69sm11622812wmb.36.2022.03.31.08.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 08:45:49 -0700 (PDT) From: Rui Miguel Silva To: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v4 1/3] dt-bindings: net: smsc,lan91c111 convert to schema Date: Thu, 31 Mar 2022 16:45:34 +0100 Message-Id: <20220331154536.1544220-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220331154536.1544220-1-rui.silva@linaro.org> References: <20220331154536.1544220-1-rui.silva@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220331_084551_463663_E82F3249 X-CRM114-Status: GOOD ( 17.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the smsc lan91c9x and lan91c1xx controller device tree bindings documentation to json-schema. Signed-off-by: Rui Miguel Silva --- .../bindings/net/smsc,lan91c111.yaml | 61 +++++++++++++++++++ .../bindings/net/smsc-lan91c111.txt | 17 ------ 2 files changed, 61 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/smsc,lan91c111.yaml delete mode 100644 Documentation/devicetree/bindings/net/smsc-lan91c111.txt diff --git a/Documentation/devicetree/bindings/net/smsc,lan91c111.yaml b/Documentation/devicetree/bindings/net/smsc,lan91c111.yaml new file mode 100644 index 000000000000..1730284430bc --- /dev/null +++ b/Documentation/devicetree/bindings/net/smsc,lan91c111.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/smsc,lan91c111.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Smart Mixed-Signal Connectivity (SMSC) LAN91C9x/91C1xx Controller + +maintainers: + - Nicolas Pitre + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: smsc,lan91c111 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reg-shift: true + + reg-io-width: + enum: [ 1, 2, 4 ] + default: 4 + + reset-gpios: + description: GPIO connected to control RESET pin + maxItems: 1 + + power-gpios: + description: GPIO connect to control PWRDEWN pin + maxItems: 1 + + pxa-u16-align4: + description: put in place the workaround the force all u16 writes to be + 32 bits aligned + type: boolean + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + ethernet@4010000 { + compatible = "smsc,lan91c111"; + reg = <0x40100000 0x10000>; + phy-mode = "mii"; + interrupts = ; + reg-io-width = <2>; + }; diff --git a/Documentation/devicetree/bindings/net/smsc-lan91c111.txt b/Documentation/devicetree/bindings/net/smsc-lan91c111.txt deleted file mode 100644 index 309e37eb7c7c..000000000000 --- a/Documentation/devicetree/bindings/net/smsc-lan91c111.txt +++ /dev/null @@ -1,17 +0,0 @@ -SMSC LAN91c111 Ethernet mac - -Required properties: -- compatible = "smsc,lan91c111"; -- reg : physical address and size of registers -- interrupts : interrupt connection - -Optional properties: -- phy-device : see ethernet.txt file in the same directory -- reg-io-width : Mask of sizes (in bytes) of the IO accesses that - are supported on the device. Valid value for SMSC LAN91c111 are - 1, 2 or 4. If it's omitted or invalid, the size would be 2 meaning - 16-bit access only. -- power-gpios: GPIO to control the PWRDWN pin -- reset-gpios: GPIO to control the RESET pin -- pxa-u16-align4 : Boolean, put in place the workaround the force all - u16 writes to be 32 bits aligned -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel