Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp918572imw; Tue, 5 Jul 2022 00:01:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tZggkpzgGp8wgTrHzwLmcFALfvKCCV2HBQBl8ZN4/TkoYOrAIdLqxy28fZ0anZ54rnU6kx X-Received: by 2002:a05:6a00:340d:b0:528:9040:611 with SMTP id cn13-20020a056a00340d00b0052890400611mr3254757pfb.59.1657004463145; Tue, 05 Jul 2022 00:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657004463; cv=none; d=google.com; s=arc-20160816; b=PphmKxi8xK+l7BH6bpbEbu5QGcaKkrPM3lpuhJhxt98hCAxP2K1hGVP/70U3WauyRh nPbHAmlGsqYOnpTQDfWHxJtNZeAviJGBBB1oSRs3jAyglIktnEMaEo2gYNkutjrDfAX0 8jQLCXzGku011mRHiLs3AUV+o7dCrxYQI0OooOn+gRmyxoVSmOlU0X5dn+IyOFmo/Ud7 LhUUNtF+NNumX1Kri14MOfwCylJ/19I84qkBppnNPla2b7RB4ZW2ubTLa2k4siNy2/z5 R2F1t3Q9p3xu/lH/9nZWTXh/JuXZ8hn74ec+WXJB/72bxGUQKRNJd07ok7uRs+DaVC7p Ksqw== 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=9UlvnftVPgYJJrfdPOfv4wUr0V3bw+jqsINZ6WEjaGQ=; b=sTl6iL3QB4q7/0XnRmeG2LSz0fqe8AIuEwOiDCsNqZDdB4lIbonT9gP1qnf317M0lX gFL9KI302e5jbsVuqbJHuoO+fuphpRf12PXmYrq61ULGxj+SFmL3kzJUkCkr745TSOoZ 8LlnGwa8n7or7mrooKGj3UxdaIIBigpcVinD+4tPMthIVbZJeUntky4AbE1SDxdQnYbG LrMJ0XeGzycltMVAmYF8vRyl0d6J1Cv46g8/0iHic8evYjmI+YPusC8K6Oyu474ZCj3c fVUTZvH7xyGD1/TiBrLp29UHAWsaw5FlSJkfSL1TUyG5C4ka75E1NJyPkDdCH5Y8VWhm Uhkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=hL42Gfjt; 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 q7-20020a654947000000b0040d28f1a110si47039150pgs.490.2022.07.05.00.00.50; Tue, 05 Jul 2022 00:01:03 -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=hL42Gfjt; 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 S230095AbiGEG6K (ORCPT + 99 others); Tue, 5 Jul 2022 02:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiGEG6I (ORCPT ); Tue, 5 Jul 2022 02:58:08 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1732665A8; Mon, 4 Jul 2022 23:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1657004286; x=1688540286; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GiqVGAWe0ed2Ac11tE3p4Hn6irDT3qOXxWkw28tVY/s=; b=hL42Gfjt8bIqmhibcypEatY4yi2tlujTI9W7vpmsggXL18z1oS+y91Fr qytgLuIlMS4I8uzEK43g4jzKjtwcfY1g2PYHwYlY9PiIY2JPf93WxEAwO pi1Pb1BAPZI2Ke17HtCKxwLo4ZWzi9J6ctBQhMsAHHcSjm6A82URKkb8m wYqvsF9yIRG4+p8t6J1e3Y5WbNllNvctm3VVSQmKe0GW3aF2fiSgPoFrV BcSoXzNxXn2A9qmTMJorcNXAnPJtNSwAnDvgyEBQ9zgbTYLkMHrak0w/c m0GVb3Qi9PB+mseDR071pGaAxnV+tFpyhmRlFb9UjDm39B6axdHTdFb9+ g==; X-IronPort-AV: E=Sophos;i="5.92,245,1650956400"; d="scan'208";a="180749500" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Jul 2022 23:58:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 4 Jul 2022 23:58:05 -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.2375.17 via Frontend Transport; Mon, 4 Jul 2022 23:58:01 -0700 From: Kavyasree Kotagiri To: , , , , , CC: , , , Subject: [PATCH v6 0/3] Add support for lan966x flexcom chip-select configuration Date: Tue, 5 Jul 2022 04:57:55 -0200 Message-ID: <20220705065758.17051-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. 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: atmel,flexcom: Convert to json-schema dt-bindings: mfd: atmel,flexcom: Add new compatible string for lan966x mfd: atmel-flexcom: Add support for lan966x flexcom chip-select configuration .../bindings/mfd/atmel,flexcom.yaml | 133 ++++++++++++++++++ .../devicetree/bindings/mfd/atmel-flexcom.txt | 63 --------- drivers/mfd/atmel-flexcom.c | 94 ++++++++++++- 3 files changed, 226 insertions(+), 64 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/atmel-flexcom.txt -- 2.25.1