Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1825238rwn; Fri, 16 Sep 2022 01:03:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41FozxF+p7J8B8CJQ9tEQXFMrzILmsFJwpIdrM56nEOOjOZde311f9R7PVT/f1OSGCV6rw X-Received: by 2002:a05:6a00:1907:b0:534:f847:b495 with SMTP id y7-20020a056a00190700b00534f847b495mr4105284pfi.47.1663315432633; Fri, 16 Sep 2022 01:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663315432; cv=none; d=google.com; s=arc-20160816; b=r9vShjzGDTwjQzsAWI51wknYxcBYosDpZlgBsJ1EylqcMXVn3XLBUl41hqDgQ/Iki7 rsqA41hsdzt6LIKSySaKEjPOXkK6I9FxAyvkBqAClHtwoqSgFgjGx5PsD4jnC1Li9Tm2 HJMyFr5Nmu3KyrAJhhiKbM+K4MCVTeeftMd3v8m/Hs5VLYuv8oUkbwIDBsblBhfz/Fvx n0VcPSVtg33pxnikopJ7TiiTHTMimoP5gQ16bUDvup8YyIW5UmP2BkDtLMtnSF9E28QO Dmf9U5n3q2EOfJkX+U5GeluM6KzpLji092DBhseJqiXAAJvDSJ2jAjXtb0tCwDsFCCp3 UAfg== 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=H47CXyG7vQLMy1rgnfdtDmpZx3CBmtYi0lhxdxM29o4=; b=J8z1SohnXjqmn/b1jcAfohfZ7u2B+TKiz2L/oTIy7Fsw/CRwhUjVMmXxfAc1EXIgUh SV2qT7UAHH5BJGN+RkoYJjbMTVqIzcYkA4rbaGBkxLixn6dyO2IHBCtJslTo2Uwf/9re uk1TPZuSOYv25fzD/QiHDYphQf7/W/dRJ6qr6xqrJbZsJ+wrpnTMSCryH20o+Wi6EfER MaMeImT6Skl3qO9/UjfYuG+mY+SwRmXiMOhzj3e3REiitaTAER0UzglkfrtFOZxau4vl LxO06repKZj7lHuybLV6OcUoMf7OtqEd9FHOsjw6esk6RkbTTK1ZVoJV9WfQhlVjAlAn s/2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=zsqO8qxj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a170902bc4900b0016d9877e753si19744699plz.46.2022.09.16.01.03.41; Fri, 16 Sep 2022 01:03:52 -0700 (PDT) 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=@microchip.com header.s=mchp header.b=zsqO8qxj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbiIPH6H (ORCPT + 99 others); Fri, 16 Sep 2022 03:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiIPH6G (ORCPT ); Fri, 16 Sep 2022 03:58:06 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5879A261B; Fri, 16 Sep 2022 00:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663315083; x=1694851083; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0ImJqvXkjWQBbr5gjBeYFAekuwOEBAQjdUJIP1nl8tc=; b=zsqO8qxjwogM1xkIQxHaywaad5XQpbo1hkvFXn4KkRMha1wIc0vd6Dfp znciK+dFc7YdSqFWrNONelds2egM+QqwsOi1u4RXGYISgG9/j2UNJEk2J I0C2waoIYBB0Pz23kgflvm4WC3eFRKZtJ74xgzIVy3b5HOKFX/TliBMpj qy5wzbVKhP+gRBAVTx+Ifo2AsOrJBM24vqgRRTEnBDULYhYH0KZFredi8 fxdxzbQGp6FR2IBulHl9PqtirL8kCG5VP8cDhnKr1O/pBhgtPRq53WDUU R5p7zG+b60g1TkPvcgaP6zv4lrz+fBgT8QajpRLiqbovaMyB02SSfb++f Q==; X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="180657343" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Sep 2022 00:58:03 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 16 Sep 2022 00:58:01 -0700 Received: from kavya.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 16 Sep 2022 00:57:57 -0700 From: Kavyasree Kotagiri To: , CC: , , , , , , , , Subject: [PATCH v9 0/3] Add support for lan966x flexcom chip-select configuration Date: Fri, 16 Sep 2022 05:57:41 -0200 Message-ID: <20220916075744.1879428-1-kavyasree.kotagiri@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 This patch series converts atmel-flexcom bindings into json-schema format. Adds support for lan966x flexcom chip-select configurations and its DT bindings. v8 -> v9: - Use full schema path for i2c bindings. v7 -> v8: - Added back patternProperties for child nodes. - Changed compatible string to microchip,lan9668-flexcom. v6 -> v7: - Change filename to atmel,sama5d2-flexcom.yaml - Add #address-cells, #size-cells to flexcom node - Fixed warnings. v5 -> v6: - Removed spi node from example as suggested by Rob and also pattern properties(spi dt-bindings conversion to yaml patch is under review). https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220629125804.137099-1-sergiu.moga@microchip.com/ Once this is accepted, I will add back spi example through new patch. v4 -> v5: - Fix indentations of DT example. - Fix dt-schema errors - removed minItems, maxItems for allOf:if:then "reg" property as it is not required. v3 -> v4: - Fix dtschema errors. - Add a condition to flexcom chip-selects configuration as chip-select lines are optional. v2 -> v3: - changed IRQ flag in dt-bindings example. - added reg property specific to lan66x which is missed in v2. - used goto label for clk_disable in error cases. v1 -> v2: - minor fix in title of dt-bindings. - Modified new dt properties usage in atmel,flexcom.yaml. - Used GENMASK and macros for maximum allowed values. - Use u32 values for flexcom chipselects instead of strings. - disable clock in case of errors. Kavyasree Kotagiri (3): dt-bindings: mfd: Convert atmel-flexcom to json-schema dt-bindings: mfd: atmel,sama5d2-flexcom: Add new compatible string for lan966x mfd: atmel-flexcom: Add support for lan966x flexcom chip-select configuration .../bindings/mfd/atmel,sama5d2-flexcom.yaml | 155 ++++++++++++++++++ .../devicetree/bindings/mfd/atmel-flexcom.txt | 63 ------- drivers/mfd/atmel-flexcom.c | 94 ++++++++++- 3 files changed, 248 insertions(+), 64 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/atmel-flexcom.txt -- 2.25.1