Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp543048rwn; Thu, 15 Sep 2022 02:47:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RFRou7/kzeRbHF33f3xNZj3PD6AhNLe9HKArvaqar+zJHjARf81cvcA0SnmwKVOIAl7AV X-Received: by 2002:a05:6402:2498:b0:452:ce23:c9da with SMTP id q24-20020a056402249800b00452ce23c9damr5562768eda.387.1663235255388; Thu, 15 Sep 2022 02:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663235255; cv=none; d=google.com; s=arc-20160816; b=i0hbGsm6p6FbUHG3BB9CsGb4ylfTpHCegWpfljRM4ML0He7pfo5IIcCQweg+NQwVAo X2RI/aZnjl65eT8xWBh9Vwfkm+Xc9hr9cLmV5fqyzJNgJRMv7wSk1Yy2F6rmyKhko9iW X42hmrn4O5w6GN9fGnwiePP6/VXN0Ho7AHhdb1+v5/DXNa9h3ykiaURiP/ikC8EfNwVd ECcfrCzAecFJHQle9pANQvTJHDZv5Wq7jOUVpbPArXH+RotAvYgM5+66EVglaAU40h/5 ZCdkk9wESltlzBE2n2VfURro2Wma0aXmP1huJr00sGHzoxCdo4+QpXo0378DIX24YUJB ymnQ== 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=I3PvG5SX2olX6EPk9Llbg2dFQwsJIOEbxcoO4ttiAik=; b=bIySGtHUJcJDJsu4RElT5jQj43z+1poJDD2dR/YVn/MW3rnwuXSImQCL/Siovdx9L3 q05G3yaKOjD6toaeX7eELXqPp2/03g57eiDZ1UR9vKEAhYBzBa0lpXRS2omCqWxqkzBU qpxBeoaTgBRV9bV9nwcmg4DFa8okxj8cIAby7tLMaYS///EJqMWWIf8/qMIBdL+VQ3VZ lg0M8kDktojc6fkmeyJvDFyQwZ+oP/LtcDOM1zdBiVnVVwT9zpdRoQmb+9Jzi4JnCIUQ BtXDnHrk0B4gyIKdcMJiXGAs4YqY+XdxECq6G8oHTlm98GVh8sNALIcdfJz34sXe2kof lt6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=WHh0AKKf; 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 hb40-20020a170907162800b0077fda35e1aesi7109704ejc.248.2022.09.15.02.47.10; Thu, 15 Sep 2022 02:47:35 -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=WHh0AKKf; 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 S229936AbiIOJpW (ORCPT + 99 others); Thu, 15 Sep 2022 05:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbiIOJpJ (ORCPT ); Thu, 15 Sep 2022 05:45:09 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCF4DEB1; Thu, 15 Sep 2022 02:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663235105; x=1694771105; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ta57q+0ptWGytEDpLrQro8nAHU6O7/jtI1SRgtlncZE=; b=WHh0AKKfTy5dzzKy2hvhxwbI/tcxUXSFfXlbc/tNNGY24ERTKsRwaQ82 OtRlbB9obnxsXg3uipFErFxI8UTZixUT64PktplSTkA+9A+Zhdl30NcjI j+6exl1OM4Nscjogb3em9aAQW4febZHpJXC/sBpXBerRuT8zn2T5fT0ex xYs620ffCXi5ms3tlsJz9SoNtKLdBChyUMYTS24GQyKU7sVXIZat/xmBz gorXpYsC2sz3s3nSc/8+0Nogew/Amz/5ZurlEf5F5o7bcd8iAvap4FY6+ JcrwX+Z/5Ynnpwmx6hFh7jRC2MSgb0ydXwlGIYiHJ8kRrhz37TGryrHAS A==; X-IronPort-AV: E=Sophos;i="5.93,317,1654585200"; d="scan'208";a="177278944" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Sep 2022 02:45:03 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 15 Sep 2022 02:45:03 -0700 Received: from kavya.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 15 Sep 2022 02:44:59 -0700 From: Kavyasree Kotagiri To: CC: , , , , , , , , Subject: [RESEND PATCH v8 0/3] Add support for lan966x flexcom chip-select configuration Date: Thu, 15 Sep 2022 07:44:50 -0200 Message-ID: <20220915094453.1872798-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. 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