From: Frank Wunderlich <frank-w@public-files.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Frank Wunderlich <linux@fw-web.de>, barebox@lists.infradead.org
Subject: Aw: Re: [PATCH v1] ARM: Rockchip: Add rk3568 BananaPi R2 Pro board support
Date: Mon, 24 Jan 2022 10:11:03 +0100 [thread overview]
Message-ID: <trinity-f96a614e-0fb1-40e9-b179-fcff525119d1-1643015462944@3c-app-gmx-bs10> (raw)
In-Reply-To: <20220124085513.GX23490@pengutronix.de>
Hi,
> Gesendet: Montag, 24. Januar 2022 um 09:55 Uhr
> Von: "Sascha Hauer" <s.hauer@pengutronix.de>
> > +static bool machine_is_rk3568_r2pro = false;
> > +
> > +static int rk3568_r2pro_probe(struct device_d *dev)
> > +{
> > + enum bootsource bootsource = bootsource_get();
> > + int instance = bootsource_get_instance();
> > +
> > + barebox_set_model("RK3568 R2PRO");
> > + barebox_set_hostname("rk3568-r2pro");
> > + machine_is_rk3568_r2pro = true;
>
> Maybe add a bpi to the hostname, model, variable names and instead drop
> the rk3568?
i can do...
> > + if (!IS_ENABLED(CONFIG_AIODEV))
> > + return 0;
> > +
> > + if (!machine_is_rk3568_r2pro)
> > + return 0;
> > +
> > + hwid_chan = aiochannel_by_name("aiodev0.in_value1_mV");
> > + if (IS_ERR(hwid_chan)) {
> > + ret = PTR_ERR(hwid_chan);
> > + goto err_hwid;
> > + }
> > +
> > + ret = aiochannel_get_value(hwid_chan, &hwid_voltage);
> > + if (ret)
> > + goto err_hwid;
> > +
> > + pr_info("hwid_voltage: %d\n", hwid_voltage);
>
> The voltage is not really interesting. This should be a pr_debug.
ok, i change this
> > +
> > + if (hwid_voltage == 1800)
> > + hwid = "V00";
> > + else
> > + hwid = "unknown";
>
> Have you verified this board really encodes the hardware revision using
> this adc channel?
yes, in shematics it is named SARADC_VIN1_HW_ID (which should map the in_value1_mV), but i have only this one prototype for testing.
> > diff --git a/arch/arm/dts/rk3568-bpi-r2-pro.dts b/arch/arm/dts/rk3568-bpi-r2-pro.dts
>
> I saw this device tree looks different from the one you sent for kernel
> inclusion. This is not a problem now, but once the kernel dts is
> upstream it will show up in dts/ in the barebox tree. We then usually
> include the upstream dts from the barebox board dts, so that only the
> barebox specific additions are in the barebox dts. Given that it would
> be nice if you could minimize the differences now already, so that later
> inclusion of the upstream dts becomes easier.
ok, we can wait for kernel dts to be merged, but most stuff in kernel dts will be unused in barebox. so i started with the evb one which is enough for barebox atm. Only added the leds.
regards Frank
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2022-01-24 9:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-23 16:51 Frank Wunderlich
2022-01-24 8:55 ` Sascha Hauer
2022-01-24 9:11 ` Frank Wunderlich [this message]
2022-02-10 15:22 ` Aw: " Frank Wunderlich
2022-02-10 15:55 ` Sascha Hauer
2022-01-24 9:12 ` Ahmad Fatoum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-f96a614e-0fb1-40e9-b179-fcff525119d1-1643015462944@3c-app-gmx-bs10 \
--to=frank-w@public-files.de \
--cc=barebox@lists.infradead.org \
--cc=linux@fw-web.de \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox