Message ID | 20231013093109.37165-2-kris.chaplin@amd.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1765861vqb; Fri, 13 Oct 2023 02:32:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGailWLttXpj6PfBlzeT3JaZJ2fKGO/Ogtk5xhtM0tCKRekAB0hm6miHbg7w2I9qUNzQCYa X-Received: by 2002:a05:6870:a111:b0:1e9:bbfe:6458 with SMTP id m17-20020a056870a11100b001e9bbfe6458mr4541500oae.1.1697189535063; Fri, 13 Oct 2023 02:32:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697189535; cv=pass; d=google.com; s=arc-20160816; b=T0Fvz+8FO+DaGqUXfQFQ3LMUiTr4SNuIMatgTwbeTLHOHr/wj6vMQ2GiVxWEDPIlH8 xXjYw3T1zvVK635ivP/MBSJdjFosRMIWLfH6aIXGS2/BUNwbvwy+tlutvcEAok3LtlPz a5gDQgsvgu4B2I6Ora6JM7A9jguhy6NL3dmPXpS0DFc2oS44UW5vxj+reaLFdcFihxYW CJg9pgbz5YSAAbvx4ynG+cS3HSoeE8tU1353w7JlHUqsODaDvo6zjmeOHbwMs1UduBfn k57XohtBPWIlXzq2a2EMFCDpZSuWze4szx50xAbN0xyIYHEKmdKlUT0Z6aj9CkauJuU5 1t6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UX7zrHpZICgkYz2ipg5F0EBl3fQ3AA2GrgujCX7fTC0=; fh=sxcAg9AvoKfTw1HwZk/kQ0bhgmWy3nLPPs5Jc9DhHKU=; b=Nv2ZGJkZAlDQC5eTNa5FaLazex+yWLURFVx5aOBnyJ7Pjt+98iw55Gz1ratrT1Hidq cH7YPquRhtoBnNu9N7KdMwJKG5BDnoGXRsq7DAMe4ReEYJxyJeCjjTeI+2dpvajnGMjV OofUErHSWfNcfsrG6vio4fUMsbf88E4r2F0pnzWwFxg57C3KUM8+T+LuhRmXvmjnxb7v chLHeL6LmNoDMIGnJSwbb50pzRWCX7C6Y+fMNKSdZT8SoysSmoWTOq9eUzKAuDHwVNKS domerBErzeC8Ky/ZS/M7dRCQkMZ3/9Y8idO81YzexqixXb09QqQovDBQ4fVk8DlFB9nm OFDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=U5zaF3Ly; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z22-20020a637e16000000b005898ed1915bsi4460383pgc.460.2023.10.13.02.32.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=U5zaF3Ly; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 18BC281D68E8; Fri, 13 Oct 2023 02:32:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbjJMJbm (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Fri, 13 Oct 2023 05:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjJMJbg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Oct 2023 05:31:36 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2080.outbound.protection.outlook.com [40.107.95.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7ABBE; Fri, 13 Oct 2023 02:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hHfC8dNCFOgl/aVYREahA91IH6/pGNj2UeIR7inWXIS4VPihxHff67jpo21Mkg8Sv3ICUz5UN9h/Bn6vHLzr+P4EN0jjgRKwokvVJWxS84EHl8zSgjfL6EPfNrD2tAEabX4cU3Y98cDCPQjiE4B1xW3Pm4A/c+b1kmLhsGSqn3Eo4kOYs/eqbax+nsOmOLoHtfhUtDR7KztLtUAdVyTdr+x4d3nSg6oiTs3QTZ7BWzZB8I7P2BJDrt1FBJicVlNNyM3fX/a2FD6HPeCynYd1G9f2KG21L4widHSOzvHXVLfNsFHD2hUhcDVXslgoSoRMBRw8q7lQEzBADJtd0QU3CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UX7zrHpZICgkYz2ipg5F0EBl3fQ3AA2GrgujCX7fTC0=; b=GTC6/OUv0rrNkYVm0dseSjjDtkCoA/vSihUI4zXjg3fAJwZWeD1UeqBxRn1EQru56s3fxQ1hDLK81ECjCOECq9aUk9jccKom1tLBx8tfN9yyzmCex61WBlaGJKgyQztZVBZH4q9+CVcqtsGDhQmop4TyQh69X9hjttOlDHGWxiNT9WlvGbFOsMUENGS+FUYdEanOuMfjfb8yEvUlK8lglvSKScLVDWiIKeGA6WbutxBdFzjauKxkVkuhAEwGZ0JLdPf5bysnpmToQM5GIRdpCwNGsSTS1HoYp13WCxPNNcDGCyd5GGVxTpvAXxnHg8hITUvis8bU2EiSuFZaXZiS8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UX7zrHpZICgkYz2ipg5F0EBl3fQ3AA2GrgujCX7fTC0=; b=U5zaF3Ly/RFRY9g4ZWGAHpzLh72xMvidZpmcJdFd7tQ/OO4CP3m7YWD66yuBaVkRc0KK0mGw9Pht3jpg+Qn65OOtAn3L41N3Sk6x7GWUjHV6acYnhO1FHseR7R4IJ/otqHEn6QJPCt1QI+X9j339K8am4cgPPnnj/3RskY9knf0= Received: from MW2PR16CA0045.namprd16.prod.outlook.com (2603:10b6:907:1::22) by MW4PR12MB7216.namprd12.prod.outlook.com (2603:10b6:303:226::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.46; Fri, 13 Oct 2023 09:31:31 +0000 Received: from CO1PEPF000044F3.namprd05.prod.outlook.com (2603:10b6:907:1:cafe::26) by MW2PR16CA0045.outlook.office365.com (2603:10b6:907:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38 via Frontend Transport; Fri, 13 Oct 2023 09:31:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1PEPF000044F3.mail.protection.outlook.com (10.167.241.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Fri, 13 Oct 2023 09:31:30 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 13 Oct 2023 04:31:30 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 13 Oct 2023 02:31:29 -0700 Received: from xsjapps55.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Fri, 13 Oct 2023 04:31:28 -0500 From: Kris Chaplin <kris.chaplin@amd.com> To: <kris.chaplin@amd.com>, <thomas.delev@amd.com>, <michal.simek@amd.com>, <krzysztof.kozlowski@linaro.org>, <robh+dt@kernel.org>, <conor+dt@kernel.org> CC: <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <git@amd.com> Subject: [PATCH 1/2] dt-bindings: w1: Add YAML DT Schema for AMD w1 master and MAINTAINERS entry Date: Fri, 13 Oct 2023 02:30:12 -0700 Message-ID: <20231013093109.37165-2-kris.chaplin@amd.com> X-Mailer: git-send-email 2.42.GIT In-Reply-To: <20231013093109.37165-1-kris.chaplin@amd.com> References: <20231013093109.37165-1-kris.chaplin@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044F3:EE_|MW4PR12MB7216:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b2a0f81-407f-461e-b4e4-08dbcbcf2eff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CxjiVcrfU5o4x3rnq8locK6ep3OSTJ5EQ1ZNKWpA//8amdsTzV6q1VYIFD8thV3d+nkxF2BVKMVTxJxbbTyh8oc1Bh/YSzbxNxfcqxzZRUWRilyB8WaRCaXyHgBDZ+0cjxrUsJrnfTHYLwA1h9Qs59WOsxzDCElEBI8x5yjuJhpSvTY/bMsYYTzt7fRiP1hFBIsWXPZ67Oz6Be1r6+hDO7rLkTQ7i1Q9e+QfsRdJKqizrzOhYvEtlpCbkn/OBKlBE7+rQGTUvic6Nv0Jbp8l2pVTmn/jdvGomauSqOttLT/EOUmH/Dm038MseS7Hoqr1IMXFVk0zycAfPFAxFCRHSb65qgfQkCXykwbGk9sD4RUApbWC5u2ZPEIKN7yBSq1aL0gX174rlAWHj6OgaJ7I75HiPK2K6A0D6lBMrCuYDanmi5wLbiudbZ9oPV1iwxd69RAaioUoWWBlGp8z9JczQejHTBEDm9FML4lFPW+CRpJBu9jtdWicDBB/BiPd8fbTHuzehnmzRzrZEuKpKSkjjWS2HTXmEUjPXP9g9viGeumFAD/Fguq9KxFJm+TG/ncwVy9bwav0hNLNN2BsvfxiXfjLNkOYi1ze580b6DulnXWB7UeIEFc5v4pqftvhl2m0G/Tz7dysLizre0nVm/viam/Ob0A+kK9MRxM7RhdSWrOdYo6Q8BoKPufxZqf19MKio6qGxKr2oSWASAqvY8hjua6epA4aose5mg6tvGt+0tUS9R/yb6sDPK5dICo40g4CyDzr/V/FYuhwoAWjuhQMfGSDSNfp2NFkrg05hYH/R8M= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(136003)(376002)(346002)(39860400002)(230922051799003)(64100799003)(451199024)(82310400011)(1800799009)(186009)(36840700001)(46966006)(40470700004)(40480700001)(40460700003)(966005)(478600001)(70586007)(70206006)(6666004)(110136005)(82740400003)(47076005)(86362001)(81166007)(54906003)(83380400001)(36860700001)(26005)(316002)(2616005)(1076003)(336012)(426003)(36756003)(2906002)(5660300002)(356005)(44832011)(8936002)(8676002)(4326008)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 09:31:30.8517 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b2a0f81-407f-461e-b4e4-08dbcbcf2eff X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044F3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7216 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:32:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779632213837101177 X-GMAIL-MSGID: 1779632213837101177 |
Series |
w1: Add 1-wire master driver for AMD programmable logic IP Core
|
|
Commit Message
Kris Chaplin
Oct. 13, 2023, 9:30 a.m. UTC
Add YAML DT Schema for the AMD w1 master IP. This hardware guarantees protocol timing for driving off-board devices such as thermal sensors, proms, etc using the 1wire protocol. Add MAINTAINERS entry for DT Schema. Co-developed-by: Thomas Delev <thomas.delev@amd.com> Signed-off-by: Thomas Delev <thomas.delev@amd.com> Signed-off-by: Kris Chaplin <kris.chaplin@amd.com> --- .../bindings/w1/amd,axi-1wire-master.yaml | 44 +++++++++++++++++++ MAINTAINERS | 7 +++ 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml
Comments
On Fri, Oct 13, 2023 at 02:30:12AM -0700, Kris Chaplin wrote: > Add YAML DT Schema for the AMD w1 master IP. > > This hardware guarantees protocol timing for driving off-board devices such > as thermal sensors, proms, etc using the 1wire protocol. > > Add MAINTAINERS entry for DT Schema. > > Co-developed-by: Thomas Delev <thomas.delev@amd.com> > Signed-off-by: Thomas Delev <thomas.delev@amd.com> > Signed-off-by: Kris Chaplin <kris.chaplin@amd.com> > --- > .../bindings/w1/amd,axi-1wire-master.yaml | 44 +++++++++++++++++++ > MAINTAINERS | 7 +++ > 2 files changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > > diff --git a/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > new file mode 100644 > index 000000000000..41f7294a84a3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/w1/amd,axi-1wire-master.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: AMD AXI 1-wire bus master for Programmable Logic Inconsistent case for the title here bothers my OCD, but the binding is fine as far as I can see. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Thanks, Conor. > + > +maintainers: > + - Kris Chaplin <kris.chaplin@amd.com> > + > +properties: > + compatible: > + const: amd,axi-1wire-master > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/interrupt-controller/arm-gic.h> > + > + onewire@a0000000 { > + compatible = "amd,axi-1wire-master"; > + reg = <0xa0000000 0x10000>; > + clocks = <&zynqmp_clk 0x47>; > + interrupts = <GIC_SPI 0x59 IRQ_TYPE_LEVEL_HIGH>; > + }; > + > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index 4b2c378b4fd9..6ec3922b256e 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1066,6 +1066,13 @@ M: Sanjay R Mehta <sanju.mehta@amd.com> > S: Maintained > F: drivers/spi/spi-amd.c > > +AMD W1 DRIVER > +M: Kris Chaplin <kris.chaplin@amd.com> > +R: Thomas Delev <thomas.delev@amd.com> > +R: Michal Simek <michal.simek@amd.com> > +S: Maintained > +F: Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > + > AMD XGBE DRIVER > M: "Shyam Sundar S K" <Shyam-sundar.S-k@amd.com> > L: netdev@vger.kernel.org > -- > 2.42.GIT >
On 13/10/2023 11:30, Kris Chaplin wrote: > Add YAML DT Schema for the AMD w1 master IP. > > This hardware guarantees protocol timing for driving off-board devices such > as thermal sensors, proms, etc using the 1wire protocol. > > Add MAINTAINERS entry for DT Schema. > > Co-developed-by: Thomas Delev <thomas.delev@amd.com> > Signed-off-by: Thomas Delev <thomas.delev@amd.com> > Signed-off-by: Kris Chaplin <kris.chaplin@amd.com> > --- > .../bindings/w1/amd,axi-1wire-master.yaml | 44 +++++++++++++++++++ > MAINTAINERS | 7 +++ > 2 files changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > > diff --git a/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > new file mode 100644 > index 000000000000..41f7294a84a3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/w1/amd,axi-1wire-master.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: AMD AXI 1-wire bus master for Programmable Logic > + > +maintainers: > + - Kris Chaplin <kris.chaplin@amd.com> > + > +properties: > + compatible: > + const: amd,axi-1wire-master That's a quite generic compatible. axi is ARM term, 1-wire is the name of the bus and master is the role. Concatenating three common words does not create unique device name. Compatibles are supposed to be specific and this is really relaxed. Anything can be over AXI, everything in 1wire is 1wire and every master device is a master. Best regards, Krzysztof
On Fri, Oct 13, 2023 at 05:04:32PM +0200, Krzysztof Kozlowski wrote: > On 13/10/2023 11:30, Kris Chaplin wrote: > > Add YAML DT Schema for the AMD w1 master IP. > > > > This hardware guarantees protocol timing for driving off-board devices such > > as thermal sensors, proms, etc using the 1wire protocol. > > > > Add MAINTAINERS entry for DT Schema. > > > > Co-developed-by: Thomas Delev <thomas.delev@amd.com> > > Signed-off-by: Thomas Delev <thomas.delev@amd.com> > > Signed-off-by: Kris Chaplin <kris.chaplin@amd.com> > > --- > > .../bindings/w1/amd,axi-1wire-master.yaml | 44 +++++++++++++++++++ > > MAINTAINERS | 7 +++ > > 2 files changed, 51 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > > > > diff --git a/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > > new file mode 100644 > > index 000000000000..41f7294a84a3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml > > @@ -0,0 +1,44 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/w1/amd,axi-1wire-master.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: AMD AXI 1-wire bus master for Programmable Logic > > + > > +maintainers: > > + - Kris Chaplin <kris.chaplin@amd.com> > > + > > +properties: > > + compatible: > > + const: amd,axi-1wire-master > > That's a quite generic compatible. axi is ARM term, 1-wire is the name > of the bus and master is the role. Concatenating three common words does > not create unique device name. Compatibles are supposed to be specific > and this is really relaxed. Anything can be over AXI, everything in > 1wire is 1wire and every master device is a master. Given the vendor (and the title of the binding) this is almost certainly an FPGA IP core, so the generic name is understandable. Using the exact name of the IP in the AMD/Xilinx catalog probably is the best choice?
On 13/10/2023 17:07, Conor Dooley wrote: >>> +maintainers: >>> + - Kris Chaplin <kris.chaplin@amd.com> >>> + >>> +properties: >>> + compatible: >>> + const: amd,axi-1wire-master >> >> That's a quite generic compatible. axi is ARM term, 1-wire is the name >> of the bus and master is the role. Concatenating three common words does >> not create unique device name. Compatibles are supposed to be specific >> and this is really relaxed. Anything can be over AXI, everything in >> 1wire is 1wire and every master device is a master. > > Given the vendor (and the title of the binding) this is almost certainly > an FPGA IP core, so the generic name is understandable. Using the exact > name of the IP in the AMD/Xilinx catalog probably is the best choice? Other option is that it is a part of some Zynq SoC. Best regards, Krzysztof
On 13/10/2023 16:07, Conor Dooley wrote: > On Fri, Oct 13, 2023 at 05:04:32PM +0200, Krzysztof Kozlowski wrote: >> >> That's a quite generic compatible. axi is ARM term, 1-wire is the name >> of the bus and master is the role. Concatenating three common words does >> not create unique device name. Compatibles are supposed to be specific >> and this is really relaxed. Anything can be over AXI, everything in >> 1wire is 1wire and every master device is a master. > Given the vendor (and the title of the binding) this is almost certainly > an FPGA IP core, so the generic name is understandable. Using the exact > name of the IP in the AMD/Xilinx catalog probably is the best choice? Indeed this is an Programmable Logic IP core - the official name of the core in our catalog is axi_1wire_master. It is a soft HDL core. regards, Kris
On 13/10/2023 17:23, Kris Chaplin wrote: > > On 13/10/2023 16:07, Conor Dooley wrote: >> On Fri, Oct 13, 2023 at 05:04:32PM +0200, Krzysztof Kozlowski wrote: >>> >>> That's a quite generic compatible. axi is ARM term, 1-wire is the name >>> of the bus and master is the role. Concatenating three common words does >>> not create unique device name. Compatibles are supposed to be specific >>> and this is really relaxed. Anything can be over AXI, everything in >>> 1wire is 1wire and every master device is a master. >> Given the vendor (and the title of the binding) this is almost certainly >> an FPGA IP core, so the generic name is understandable. Using the exact >> name of the IP in the AMD/Xilinx catalog probably is the best choice? > > Indeed this is an Programmable Logic IP core - the official name of the > core in our catalog is axi_1wire_master. It is a soft HDL core. AMD product managers are highly skilled in naming things. Sigh. Go ahead with AXI 1-wire master. Any future - from now to next 100 years - product from AMD which will be different but sold under the same name, thus creating conflict in compatible naming, should be rejected because of that conflict or renamed to something else. If that happen I will propose a name like "banana-wire". Best regards, Krzysztof
On 13/10/2023 16:29, Krzysztof Kozlowski wrote: > > AMD product managers are highly skilled in naming things. Sigh. > > Go ahead with AXI 1-wire master. Any future - from now to next 100 years > - product from AMD which will be different but sold under the same name, > thus creating conflict in compatible naming, should be rejected because > of that conflict or renamed to something else. If that happen I will > propose a name like "banana-wire". > > Best regards, > Krzysztof To be fair on the product managers the IP naming from a hardware perspective is in the context of the ex-Xilinx development tools, and as such there is no risk of namespace overlap with the rest of the business. I'm not against changing the binding name for clarity in the kernel. Would adding pl within the binding (Programmable Logic) assist? Ie: amd,pl-axi-1wire-master Regards Kris
On Fri, Oct 13, 2023 at 04:23:15PM +0100, Kris Chaplin wrote: > > On 13/10/2023 16:07, Conor Dooley wrote: > > On Fri, Oct 13, 2023 at 05:04:32PM +0200, Krzysztof Kozlowski wrote: > > > > > > That's a quite generic compatible. axi is ARM term, 1-wire is the name > > > of the bus and master is the role. Concatenating three common words does > > > not create unique device name. Compatibles are supposed to be specific > > > and this is really relaxed. Anything can be over AXI, everything in > > > 1wire is 1wire and every master device is a master. > > Given the vendor (and the title of the binding) this is almost certainly > > an FPGA IP core, so the generic name is understandable. Using the exact > > name of the IP in the AMD/Xilinx catalog probably is the best choice? > > Indeed this is an Programmable Logic IP core - the official name of the core > in our catalog is axi_1wire_master. It is a soft HDL core. Only 1 version of it (ever)? Like other PL IP, it needs a version number (and not v1, v2, etc. made up by you). Really, your versioning scheme should be documented (like bindings/sifive/sifive-blocks-ip-versioning.txt), but Xilinx started versioning stuff some time back. Also, 'master' is not considered great terminology nowadays. Perhaps the catalog name should be updated. Rob
On 13/10/2023 18:18, Rob Herring wrote: > i_1wire_master. It is a soft HDL core. > Only 1 version of it (ever)? Like other PL IP, it needs a version number > (and not v1, v2, etc. made up by you). Really, your versioning scheme > should be documented (like > bindings/sifive/sifive-blocks-ip-versioning.txt), but Xilinx started > versioning stuff some time back. I've specified the PL IP to have both an ID and version number register in it, which is queried by the driver on probe. As such we can version autodiscover. Should there be incompatibilty in the driver due to new features in future PL IP, the major version number in the register will increment and the same driver can be extended to support the modified behaviour. The default code in this first version will check to ensure major is at 1. I'm working with our IP group to encourage that all new IP have this mechanism moving forwards, as registers are a lot cheaper in logic than they used to be. + if (ver_major != 1) { + dev_err(dev, "AMD AXI W1 Master version %u.%u is not supported by this driver", + ver_major, ver_minor); + return -ENODEV; + } > Also, 'master' is not considered great terminology nowadays. Perhaps the > catalog name should be updated. Agreed - I've used the term to fit with others in the subsystem. Would this be something that is changed and aligned across W1? If so I'm happy to get the HDL IP renamed and binding / driver documentation to match if an alternative designator to replace master has already been chosen and standardised across 1Wire. Regards Kris
diff --git a/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml new file mode 100644 index 000000000000..41f7294a84a3 --- /dev/null +++ b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/w1/amd,axi-1wire-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMD AXI 1-wire bus master for Programmable Logic + +maintainers: + - Kris Chaplin <kris.chaplin@amd.com> + +properties: + compatible: + const: amd,axi-1wire-master + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + onewire@a0000000 { + compatible = "amd,axi-1wire-master"; + reg = <0xa0000000 0x10000>; + clocks = <&zynqmp_clk 0x47>; + interrupts = <GIC_SPI 0x59 IRQ_TYPE_LEVEL_HIGH>; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 4b2c378b4fd9..6ec3922b256e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1066,6 +1066,13 @@ M: Sanjay R Mehta <sanju.mehta@amd.com> S: Maintained F: drivers/spi/spi-amd.c +AMD W1 DRIVER +M: Kris Chaplin <kris.chaplin@amd.com> +R: Thomas Delev <thomas.delev@amd.com> +R: Michal Simek <michal.simek@amd.com> +S: Maintained +F: Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml + AMD XGBE DRIVER M: "Shyam Sundar S K" <Shyam-sundar.S-k@amd.com> L: netdev@vger.kernel.org