From owner-freebsd-arm@freebsd.org Wed Jan 22 07:54:51 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 E5AE1230996 for ; Wed, 22 Jan 2020 07:54:51 +0000 (UTC) (envelope-from jwbentum44@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 482d3Z6Bhgz3Dwq for ; Wed, 22 Jan 2020 07:54:50 +0000 (UTC) (envelope-from jwbentum44@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id n21so5702148ioo.10 for ; Tue, 21 Jan 2020 23:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=d71sCWGRJbqM9JQzgmqCkCie7kkwNILmL88El9gEaA0=; b=ceK9/WJTvUF1axprThIgQgLETL0ifQXcZ9IQPI0+qtgLqqbLCyhat3LxbP+xrajdos QyR1eJwwe0ZITbaAP1Nx7AdGZntt/tpeUK5HBb1N/CbXwKkrtA8UcphaRP+UGC4nFWRi PWU9P0iSJB3wmjw1mTOm3G5ydQ2N2RyT8Q26Xkub/5A5pfNEZYuRrtMXApXsSsPjyde7 x/3J7MEk01NsbeOQ7X7ZjSSl+rRDG970A7/3I5Z2hG067zJ2ne7vI6nsqtSxwkoN4d2P 5/31zCOBB9OkFm6Zchr3gcaTuFwiv9xpTDHyMDCL6n/spETi9TcMPgcfp9NzexK8ukG8 Mfwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=d71sCWGRJbqM9JQzgmqCkCie7kkwNILmL88El9gEaA0=; b=FmCTs1rfP4KtEj7s+GcqIaPGL4Wjcyi6/4WmX1eE9gRhHv+y3wwyK8M7aXCSZ5Y1IU 6n0JQesZWnH4fKk+BHRVTNmJMyPqOkiwOuBPaAw0v63/jJZmkFLkvx+heqZNM4HKRbIv oPzqOM/dQ+s3RVgBsLzx7XulMTws51x0KFTYaKKpfEdAxKTLyuRuxt+xMyiXRRw5SWZx jiX6pAz8lVXReJwSVW5s15pd68Ggdfw4hB+dHkQjqHSk252GxDq9+7BoOqIm+H/UEIth wAWPczETerHnUbIpb0J+pPzsw9gTHiaALXxS5Z7F0l9fEemFP2GVwoG8BRCm4Jwfm7a6 j7qA== X-Gm-Message-State: APjAAAWlZ6AW0iE3GodybXjqry1rRs3YrfG5u3FKQe3yDWEw0ycgcHz1 kZ9e5zUUcDyfvbhr06pQaXir5eonZd2ZGS/uaeawJpVU X-Google-Smtp-Source: APXvYqwnQz9n6cRG0C9+wxgTyHgdH+5mtS3KT9HVan+L9ZDikDCIEpIZfzCJ+PZVfVRVsUa+8+KnesDvX+LVsnLf3ao= X-Received: by 2002:a02:ad0a:: with SMTP id s10mr2028736jan.73.1579679689766; Tue, 21 Jan 2020 23:54:49 -0800 (PST) MIME-Version: 1.0 References: <20200115220647.1958e8639dc718e714775fed@freenet.de> <20200116213411.ba213b01885d2108c9ace7a5@freenet.de> <20200120212547.aa3a36c31b90d4438250c367@freenet.de> In-Reply-To: <20200120212547.aa3a36c31b90d4438250c367@freenet.de> From: Hans Bentum Date: Wed, 22 Jan 2020 08:54:38 +0100 Message-ID: Subject: Re: How to get pin to mode 6 on beagle bone black To: "freebsd-arm@freebsd.org" , =?UTF-8?Q?Manuel_St=C3=BChn?= X-Rspamd-Queue-Id: 482d3Z6Bhgz3Dwq X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ceK9/WJT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jwbentum44@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) smtp.mailfrom=jwbentum44@gmail.com X-Spamd-Result: default: False [-2.90 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-6.42), ipnet: 2607:f8b0::/32(-2.08), asn: 15169(-1.82), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; SH_EMAIL_ZRD(0.00)[0.0.0.1,0.0.0.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.1,0.0.0.0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 22 Jan 2020 07:54:52 -0000 > > Hello Manuel, > > Thanks a lot for your help. I am able to read the pin 8_16 in mode 6 by > the pru program now. > I had to merge the overlay to turn the pru on and to put the pin in mode 6 > into the same overlay to > get it working. (Maybe you want to publish your other ovelay to enable the > pruss also to keep it separate). > > But for now I use the following overlay: > > /dts-v1/; > /plugin/; > / { > > compatible="ti,am335x-bone-black","ti,am335x-bone","ti,am33xx"; > fragment@0 { > target-path="/ocp"; > __overlay__ { > pruss@4a300000 { > compatible = "ti,pruss-v2"; > reg = <0x4a300000 0x080000>; > interrupt-parent = <&intc>; > interrupts = <20 21 22 23 24 25 26 27>; > status = "okay"; > pinctrl-names = "default"; > pinctrl-0 = <&pru_pru_pins>; > }; > }; > }; > > fragment@1 { > target = <&am33xx_pinmux>; > __overlay__ { > pru_pru_pins: pinmux_pru_pru_pins { > pinctrl-single,pins = < > 0x38 0x26 /* Pin 8_16 in gpmc_ad14 mode 6 */ > >; > }; > }; > }; > }; > > The test assembly program I published in the first post works now. > > Thanks, > > Hans > >