Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3637184pxb; Fri, 11 Feb 2022 04:36:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoTT516eTj+QdF3GXOCXokzecbbic9DbrAZJOlFXIAwS7dLKMwVHRqruKLBCKHKI/c4oY5 X-Received: by 2002:a63:101b:: with SMTP id f27mr787513pgl.565.1644582999486; Fri, 11 Feb 2022 04:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644582999; cv=none; d=google.com; s=arc-20160816; b=E6hHAKf7w00HfSST08FJD1b5KsoSX6JdJ+lDw9eeLUskKnzkBw21+Ui8kMv3LeNW5l FCp1/MdqUow0OSu18ABbeJTeoIgGdkKoXta3ASJlXBs2wjlkROLb0cvcsxdmpLpg5fRB s6Qm6DftDEDtwwYB07OwD6NDW5lDxDR6vA/0Pyk7kbPOJQrjDwmvbwzDHj9JIbsdZ1MM qr92Ky9Ehy1SCxrqrI4fEIvYQSUuzwTRmuUWXwasgsMuP5Oz/LJ62wz1+JLdggqlj5lV hZcUXmrvuN6LvwjAFVIdY9yU6zAa+24gcPvHskzHhopw9/j+Ieqt3A/S1JANuM54/KSF f8OQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=bAuohS2r9a+rHBFH3yY/vSyvPnTGhT8Dt1KFd/tOWeI=; b=Ilqb+HDGjHkJxxAMKgZF1GNCLA4mYf09SRy3cSsQsdYMRTOdAMkoGuciOypOha8Qdy UCthDfbbe766jFJK68VV8xuFUFHMw3Zdp3n+WTlvomXlBuVVe79HnBAYnDnuOoZC4tzE cHuu3A+dladS+ZmAqgv4IAjVdlh5PtqpDR0YwdFovVbx4e2uxov7h2zHM8OJVbteJmFL qt1ZGXCa9MipPXubWi0zQjqI4KTxbn268rAN1oYKxR2fkQ0+BO/CNeu57CGalDLXwhx+ /o95a/0vrNqwt9D1SR4Sk4u9NszkWqzM+L/UijG5ZLpqDjNW2C4LHRbbJqAcO+GgRWC0 nKGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=P45HGFmH; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be3si4531800plb.194.2022.02.11.04.36.25; Fri, 11 Feb 2022 04:36:39 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=P45HGFmH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349799AbiBKMIw (ORCPT + 99 others); Fri, 11 Feb 2022 07:08:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348790AbiBKMIv (ORCPT ); Fri, 11 Feb 2022 07:08:51 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A3DD5A for ; Fri, 11 Feb 2022 04:08:49 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id i14so14830664wrc.10 for ; Fri, 11 Feb 2022 04:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bAuohS2r9a+rHBFH3yY/vSyvPnTGhT8Dt1KFd/tOWeI=; b=P45HGFmHAEfQUBc17dQA6o/s45i6unuZR5s340ifEwoZCHFXTa9wDuR69ZBx52vIiN EYl7Bt5ZOKRfiKArVUV26ZLXh5KCFYHcH0xA2ynxrxSTdCemcMgNTtMgmMLboFnPuViZ N7i3uIYj6QV9YHo1GDsV/eJ53JGEfGmNQ15y28AirhIdb5dljS8FcVap/P6GTYEGT0GN HjVT6Jucs4aZlJ2t8GnjqQKM1f8uJ/UFxEtbM2VW4LbBcJnsRXV+qwcUAospcWAmgqUW j9jwUjX8mjB1PdQ3xCDbXZVwGrye5JM/pPp6ovxrzHVcCweU6pliKVrtajTecIJL4W81 t55Q== 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=bAuohS2r9a+rHBFH3yY/vSyvPnTGhT8Dt1KFd/tOWeI=; b=Ctu7EGmAaMhFYM103RDdyabQ4KolkPnoXRWqu1RABFOTeqZfYYhtdU4DcYC7RV0hxQ pVrHUGW8zgeHVmUfdc82Qif6HpXfnAbCw8SQa06XN1TSgFmcB9Hy07ASlR3qvVKnVYG9 ZUzIPgcVCB+GTP5GTlEjcF1YBA3IROIxc373jpzkLBOxY/iMF2dVkz4w194ODFEMvoFR dp92BGk6ibRtYTc0NBL07l/lu0NP7wAvV1dLXr0JWr3OcZRrEZPL4mrLMhAtkp6IK5dP wI8zdRMvDl3zi+4nkuhbVW+90A5kR/7upv4ReCroFIEjqA5OpGWRTvv20qNW5UZGN6mz mBVQ== X-Gm-Message-State: AOAM531fQA48DjIbo+EUSJoDKC33uhQwLcTNLlbgmr9ZpnHcwZ4RAHV0 khewNXd4VA8auuCyi8ljKhXLcA== X-Received: by 2002:a5d:6d4b:: with SMTP id k11mr1102228wri.623.1644581328100; Fri, 11 Feb 2022 04:08:48 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id h6sm4095412wmq.26.2022.02.11.04.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 04:08:47 -0800 (PST) From: Corentin Labbe To: krzysztof.kozlowski@canonical.com, linus.walleij@linaro.org, miquel.raynal@bootlin.com, richard@nod.at, robh+dt@kernel.org, vigneshr@ti.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Corentin Labbe Subject: [PATCH v3] dt-bindings: mtd: drop mtd/cortina,gemini-flash.txt Date: Fri, 11 Feb 2022 12:08:42 +0000 Message-Id: <20220211120842.3388592-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Drop mtd/cortina,gemini-flash.txt since it is nearly already handled by Documentation/devicetree/bindings/mtd/mtd-physmap.yaml. We add jedec-flash to list of compatible because one board (gemini-dlink-dns-313.dts) needs it. See commit a10d862e585e ("ARM: dts: Fix the DNS-313 flash compatible") The flash on the DNS-313 needs to be probed as JEDEC, it does not conform to the common CFI standard. Reviewed-by: Linus Walleij Signed-off-by: Corentin Labbe --- Change since v1 - fixed typo in syscon Change since v2 - Added reason of adding jedec-flash .../bindings/mtd/cortina,gemini-flash.txt | 24 ------------------- .../devicetree/bindings/mtd/mtd-physmap.yaml | 18 +++++++++++++- 2 files changed, 17 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt diff --git a/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt b/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt deleted file mode 100644 index efa5b2aba829..000000000000 --- a/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt +++ /dev/null @@ -1,24 +0,0 @@ -Flash device on Cortina Systems Gemini SoC - -This flash is regular CFI compatible (Intel or AMD extended) flash chips with -some special bits that can be controlled by the machine's system controller. - -Required properties: -- compatible : must be "cortina,gemini-flash", "cfi-flash"; -- reg : memory address for the flash chip -- syscon : must be a phandle to the system controller -- bank-width : width in bytes of flash interface, should be <2> - -For the rest of the properties, see mtd-physmap.yaml. - -The device tree may optionally contain sub-nodes describing partitions of the -address space. See partition.txt for more detail. - -Example: - -flash@30000000 { - compatible = "cortina,gemini-flash", "cfi-flash"; - reg = <0x30000000 0x01000000>; - syscon = <&syscon>; - bank-width = <2>; -}; diff --git a/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml b/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml index f827984936f6..82eb4e0f453b 100644 --- a/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml @@ -44,7 +44,9 @@ properties: - numonyx,js28f128 - sst,sst39vf320 - xlnx,xps-mch-emc-2.00.a - - const: cfi-flash + - enum: + - cfi-flash + - jedec-flash - items: - enum: - cypress,cy7c1019dv33-10zsxi @@ -127,6 +129,20 @@ required: - compatible - reg +if: + properties: + compatible: + contains: + const: cortina,gemini-flash +then: + properties: + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon controller + required: + - syscon + # FIXME: A parent bus may define timing properties additionalProperties: true -- 2.34.1