From owner-freebsd-arm@freebsd.org Mon Apr 6 20:21:45 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7892A27ABD6 for ; Mon, 6 Apr 2020 20:21:45 +0000 (UTC) (envelope-from mishin@mh.net.ru) Received: from frog.mh.net.ru (mh.balakovo.san.ru [88.147.158.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48x24l0qZRz4YDh for ; Mon, 6 Apr 2020 20:21:41 +0000 (UTC) (envelope-from mishin@mh.net.ru) Received: from webmail.mh.net.ru (mouse.home [192.168.5.6]) by frog.mh.net.ru (Postfix) with ESMTPSA id CAF98E9066 for ; Tue, 7 Apr 2020 00:21:36 +0400 (+04) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 07 Apr 2020 00:21:36 +0400 From: Alexander Mishin To: freebsd-arm@freebsd.org Subject: Re: pinctrl is not working for RPI2 In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.2 Message-ID: <3cdb27900d94d01b3b970f669aabf80d@mh.net.ru> X-Sender: mishin@mh.net.ru X-Rspamd-Queue-Id: 48x24l0qZRz4YDh X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=mh.net.ru (policy=none); spf=fail (mx1.freebsd.org: domain of mishin@mh.net.ru does not designate 88.147.158.22 as permitted sender) smtp.mailfrom=mishin@mh.net.ru X-Spamd-Result: default: False [3.62 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; DMARC_POLICY_SOFTFAIL(0.10)[mh.net.ru : No valid SPF, No valid DKIM,none]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_MEDIUM(0.73)[0.726,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(1.05)[ipnet: 88.147.128.0/17(2.82), asn: 12389(2.40), country: RU(0.01)]; NEURAL_SPAM_LONG(0.85)[0.847,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12389, ipnet:88.147.128.0/17, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Mon, 06 Apr 2020 20:21:45 -0000 I reviewed the expectations from initializing the pins using the overlay and look towards fdt_pinctrl_configure_tree(9). Question canceled. Thanks. mishin@mh.net.ru писал 2020-04-05 14:33: > Hi! > I write a character device driver for tm1637-display and want to > initialize pins for it as output pins. > Now I do it by gpio_pin_setflags() from dev_attach(). But I wonder if > I could do it from a fdt-overlay? > For OPI PC an overlay I wrote works fine (&pio instead &gpio) but RPI2 > seems to be ignoring its overlay: ................ > But a "gpioctl -l" output reads: > .... > pin 20: 1 pin 20<> > pin 21: 0 pin 21<> > ..... > > What have I done wrong? > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"