From owner-freebsd-arm@freebsd.org Sat Nov 3 21:04:49 2018 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 9A49010E813A for ; Sat, 3 Nov 2018 21:04:49 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1C9E06AA6B for ; Sat, 3 Nov 2018 21:04:48 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1541279081; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=UiKIedxjYILs6nk0if2sxLtXSwIbkNjbatUW8vS2AR2fzVilqM0Zo7uO2JqjkP/Cbtf+EIen0mbqh y9gpmMzsQtefxVvCasrsKo2+RcFH0dJA08Xi5M4bV8545lvEHvIcOiPF5AJqZDwK2ZvhsDJz1lPj6e 8Yzft5Uy0R8BD4K59cU7wSY/gNLAfNtVEriHf15Uk3BR6K5EtGfGE0pkeyatvIkUkDadIOfAS3ItJ1 SCIsTFKYX8nN4N+11eQhOKGc/ivRPdk76Vr3ifGzktC3m4D0lARlXlrYIBwvYyfZAEQu+zYNrCPLtM vSAWP2q/PyzUEHdlw+smOKH+dc33fWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=bQGvS7IAeoZuei/ihpVxgTwYGUdScQeYcKbJtg8facs=; b=qWp3Q1zGKjT14ybJMpeyUOY0bt13CMmBG3hNtgptt2WDnzVyCuJoqAzvHib3bcKPTbzpLXgPZB2Fu ixubUXSf8b8Vve0hG7dVhYQGtOJcf6hAt6PaScW4V25GLrV4775CG6ARshXf443A3DKkuMXtFl126B J4Aon07L2kPWzpagN9crg3Bd7ls/0mky2CUN8fi0EOUsox0qOGoSF2rb1J8Kf0XTVgb79b4ZBWvhpi uEMuLML9ViDhA+YWBsvf0BL32hxAn0nm7PFjXgJ0l37kYcZefun/croHUD1v9wghjQu8Omlf6N+I0v OvxQKJMDRCLeYRxVI2Wn7cXZUHLbhlA== ARC-Authentication-Results: i=1; outbound1.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=bQGvS7IAeoZuei/ihpVxgTwYGUdScQeYcKbJtg8facs=; b=kElH9eRAcVY8KBqn/+hxZglIrd2W7lc/zVqEOUyW3GQJHuXv/RGIgZGXu0z+JYlKjkzfIeTQhC2rP FFlIm1teemxsCtqRpKt6GBAotMC/JZOcc/4sRuCFGRdIPW0GrOJLJyIbkZiDJqed61Y/CqRhTDXq/k FR+/U0jxKBUHtqkGVnImspwX+HAcdmFEjq9W2+w+gyMyIFM1D03fRuOEn3HNTS1FV8IoNJMBDjPZgo dZUInrpQk3lFo+HoAt80h0NAxV0vUT9G3ZihD3zZBxgnBDGvjiUkdDTj+VQdIG36ZEqvA2mYCNunbp iHcTmPdFq0eQOXfGpzCW7AILj0zbFLg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 13d9247d-dfac-11e8-a93b-310333596487 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 13d9247d-dfac-11e8-a93b-310333596487; Sat, 03 Nov 2018 21:04:40 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id wA3L4dm1074798; Sat, 3 Nov 2018 15:04:39 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1541279079.52306.8.camel@freebsd.org> Subject: Re: How to add custom dts entries From: Ian Lepore To: ticso@cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter Date: Sat, 03 Nov 2018 15:04:39 -0600 In-Reply-To: <20181103205455.GD79858@cicely7.cicely.de> References: <20181103200709.GB79858@cicely7.cicely.de> <1541277990.52306.4.camel@freebsd.org> <20181103205455.GD79858@cicely7.cicely.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Sat, 03 Nov 2018 21:04:49 -0000 On Sat, 2018-11-03 at 21:54 +0100, Bernd Walter wrote: > On Sat, Nov 03, 2018 at 02:46:30PM -0600, Ian Lepore wrote: > > > > We do have overlay support now. I don't know much about using it, > > hopefully those who do will reply with details. > That's good to know. > Hope for an answer too ;-) > > > > > There have also been updates to the SPI world. Your apa102led0 fdt > > node > > now requires a "spi-max-frequency" property, the value is the bus > > speed > > to use when communicating with that device, in Hz (different > > devices on > > the same bus can now have different speeds, and there is no concept > > of > > a default speed). Also, the chipsel number should be in a reg= > > property, but we still support spi-chipselect= too for backwards > > compatibility.  > Ah, important information. > I had been using dev.spi.0.clock to increase speed. > Obviously dev.spi doesn't even exists anymore. > Have to check about the CS, technically it is a dummy value anyway, > since the APA102 LEDs don't have a chip select and are the only > device connected to the SPI. > The sysctl nodes should still exist, but now they're all read-only values that just tell you about the current transfer (or the last one to complete), since all those values can change on each transfer now depending on how individual devices are configured. Also, there is now a spi(8) program that lets you do spi transfers and to some degree manipulate the transfer properties (bus polarity/phase, speed, etc) from the command line. -- Ian