From owner-freebsd-arm@freebsd.org Wed Jun 5 15:49:31 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5181C15B1B73 for ; Wed, 5 Jun 2019 15:49:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D3EE188623 for ; Wed, 5 Jun 2019 15:49:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 015BBBFD8 for ; Wed, 5 Jun 2019 15:49:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x55FnT9d088144 for ; Wed, 5 Jun 2019 15:49:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x55FnTAP088143 for freebsd-arm@FreeBSD.org; Wed, 5 Jun 2019 15:49:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 227974] libfdt reverses order of child devices in overlays Date: Wed, 05 Jun 2019 15:49:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ian@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2019 15:49:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227974 Ian Lepore changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug CC| |ian@FreeBSD.org Status|New |Closed --- Comment #1 from Ian Lepore --- The names of FDT device nodes do not necessarily have any relationship to t= he names of devices instantiated by freebsd. By FDT convention, a device node name is formed as devicetype@regaddr; it's just a coincidence in the case of spi that the register addresses are single-digit integers that seem to vagu= ely correspond with freebsd device names. (And it should be noted that the nam= es in the example shown do not follow the FDT rules and would generate a warni= ng with the modern gnu dtc compiler because they should be spigen@0 not spigen= 0). The root problem is that a user of spi devices needs some way to identify w= hich /dev/spigenX device corresponds to which device described in the FDT data. = We ultimately solved that problem by naming spigen devices in devfs after their bus and chip select number, instead of just using sequential 0-n numbers. = So instead of spigen0 and spigen1, the example overlay would now create /dev/spigen0.0 and /dev/spigen0.1 (assume they were on spi bus zero), and s= ince it's based on the chip select number it comes out the same name matter what order the nodes appear in. --=20 You are receiving this mail because: You are the assignee for the bug.=