Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp398133imw; Fri, 8 Jul 2022 05:07:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIoOcKkC9Tq28FegX8WUskQmgu0S/LuXiAivLboN88PYkT1YtIz4tj7sBmz9XdoqZDvSc4 X-Received: by 2002:a17:906:5a43:b0:72a:e926:8a15 with SMTP id my3-20020a1709065a4300b0072ae9268a15mr3329215ejc.232.1657282071504; Fri, 08 Jul 2022 05:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657282071; cv=none; d=google.com; s=arc-20160816; b=vYThflQCCo0CiEDNv8NPP6YZhm7wfnyYokVL8WWrOEcxy/dbmuO+lz+DfCbTkt89SZ GCcitTd7YIrG8MNmNKXPSQtCV7DhXy4HOmIzJWgitOzLScucNFJoKp0Fw64d1Vu7rPEi 504ELqwGqqTPdXVNBxK3RAYjtojVbfo3Zez6RayDzTNjaG5B39Jz2wwdg0gSP9XS/h1u VYArW3UyUWaD/paBD4X+CJTUT1jDs2tec744EEtQ8XzQBNuqLrMWJTpY76BX7oSitGEt mc27I2GhdO/ao4/+/vCnELuKudBi6lgjh1fnF9F33XeryyIDHUwkoUxt4t9zkMTRbcIM EK8A== 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=LFZaU3DnNmgBWkVZ3vlVa1POwPxIOTGMsB9tX86WEpSNjZRGOBVQDuNZOo8eQ4RR2V XRefc/U51eHmvEykQHoEer8KtHa4UINMlsz9kngpApzcixuTYKXyNmw8By4maXay+PeZ oyk9dUCdXmK2gMOJgN7l898upqWCenE2OlX8tFWZ3Jht9wABflOzyd2+yfse+n+GyvFF 2GOu3WyJFm2HvvFb6AXc9nlxz/hG5SR98St1wThQtrFaDHsrnKpXNzrU/9jMhPVStBp2 jOLdZdpOTVJHXTsfS4vxlflU++FZDoihwZrnMVbH/mxPN3zAUgMreUD0nT6Gv1cTjmW1 7jdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=aPMmoyGD; 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=fail (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 cs16-20020a170906dc9000b00722e3682c3bsi4626064ejc.257.2022.07.08.05.06.54; Fri, 08 Jul 2022 05:07:51 -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=fail header.i=@microchip.com header.s=mchp header.b=aPMmoyGD; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237619AbiGHL5G (ORCPT + 99 others); Fri, 8 Jul 2022 07:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237909AbiGHL5C (ORCPT ); Fri, 8 Jul 2022 07:57:02 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C33DB9A6B2; Fri, 8 Jul 2022 04:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1657281422; x=1688817422; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ta57q+0ptWGytEDpLrQro8nAHU6O7/jtI1SRgtlncZE=; b=aPMmoyGDhYmjCtoLt65tmWertfqZVqkMqxo1mkwr/lnzGDIAg6x9bbe0 91TR1Jtgi2zYgm/BrDQiQojVvBidh3C4f4mxw3519nWKH/jT0Qc3m8/Kh K/gw7eeV0V76GbI7x4j7E9WPNJn1R8vk7ASFpRmty7CK5QcscKq51qlq3 3Xf6y8URiQ9S27x/dkhASmWZdTP5ccNEHiVqiFDebzXWIaCJcmVWyk/F2 Vc09Q8btgnXlw92wQlJ9qOdpWcrrQf1SQCHHN8h1SnjZJl/jtSedS6L3P uF540mq1Zhr6p0Nhpy8hSd9PGlxo6PX0dXysOi6JVH/+pBBqUwpryoMUl w==; X-IronPort-AV: E=Sophos;i="5.92,255,1650956400"; d="scan'208";a="171312653" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Jul 2022 04:57:01 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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.2375.17; Fri, 8 Jul 2022 04:57:00 -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.2375.17 via Frontend Transport; Fri, 8 Jul 2022 04:56:56 -0700 From: Kavyasree Kotagiri To: , , , , , CC: , , , Subject: [PATCH v8 0/3] Add support for lan966x flexcom chip-select configuration Date: Fri, 8 Jul 2022 09:56:16 -0200 Message-ID: <20220708115619.254073-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=-5.1 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,T_SCC_BODY_TEXT_LINE 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