From: Marek Szyprowski <m.szyprowski@samsung.com> To: u-boot@lists.denx.de Subject: [PATCH 0/6] VIM3: add support for checking 'Function' button state Date: Mon, 14 Dec 2020 12:24:31 +0100 [thread overview] Message-ID: <20201214112437.18757-1-m.szyprowski@samsung.com> (raw) In-Reply-To: CGME20201214112449eucas1p28f3ade12253fb8b60c1396c706a65220@eucas1p2.samsung.com Hi All, This patchset adds all building blocks needed for checking the 'Function' button state in the boot script on Amlogic A311D based VIM3 board. This button is connected to the ADC lines of the SoC, so it required to enable meson SARADC, the clocks needed for it and a simple button-adc drivers. Once applied, one can use following commands in the boot scripts: -->8--- echo Checking Func button state: \\c button Function if test ${button} = on then echo Selected alternative boot ... fi --->8--- Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (6): clk: meson: add minimal driver for g12a-ao clocks adc: meson-saradc: add G12A variant adc: meson-saradc: skip hardware init only if ADC is enabled button: add a simple ADC-based button driver cmd: button: store button state in the 'button' env configs: khadas-vim3: enable Function button support cmd/button.c | 4 +- configs/khadas-vim3_defconfig | 4 ++ drivers/adc/meson-saradc.c | 9 ++- drivers/button/Kconfig | 8 +++ drivers/button/Makefile | 1 + drivers/button/button-adc.c | 117 ++++++++++++++++++++++++++++++++++ drivers/clk/meson/Makefile | 1 + drivers/clk/meson/g12a-ao.c | 83 ++++++++++++++++++++++++ 8 files changed, 224 insertions(+), 3 deletions(-) create mode 100644 drivers/button/button-adc.c create mode 100644 drivers/clk/meson/g12a-ao.c -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Marek Szyprowski <m.szyprowski@samsung.com> To: u-boot@lists.denx.de, u-boot-amlogic@groups.io Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Neil Armstrong <narmstrong@baylibre.com>, Lukasz Majewski <lukma@denx.de>, Philippe Reynes <philippe.reynes@softathome.com>, Simon Glass <sjg@chromium.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Jaehoon Chung <jh80.chung@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Subject: [PATCH 0/6] VIM3: add support for checking 'Function' button state Date: Mon, 14 Dec 2020 12:24:31 +0100 [thread overview] Message-ID: <20201214112437.18757-1-m.szyprowski@samsung.com> (raw) In-Reply-To: CGME20201214112449eucas1p28f3ade12253fb8b60c1396c706a65220@eucas1p2.samsung.com Hi All, This patchset adds all building blocks needed for checking the 'Function' button state in the boot script on Amlogic A311D based VIM3 board. This button is connected to the ADC lines of the SoC, so it required to enable meson SARADC, the clocks needed for it and a simple button-adc drivers. Once applied, one can use following commands in the boot scripts: -->8--- echo Checking Func button state: \\c button Function if test ${button} = on then echo Selected alternative boot ... fi --->8--- Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (6): clk: meson: add minimal driver for g12a-ao clocks adc: meson-saradc: add G12A variant adc: meson-saradc: skip hardware init only if ADC is enabled button: add a simple ADC-based button driver cmd: button: store button state in the 'button' env configs: khadas-vim3: enable Function button support cmd/button.c | 4 +- configs/khadas-vim3_defconfig | 4 ++ drivers/adc/meson-saradc.c | 9 ++- drivers/button/Kconfig | 8 +++ drivers/button/Makefile | 1 + drivers/button/button-adc.c | 117 ++++++++++++++++++++++++++++++++++ drivers/clk/meson/Makefile | 1 + drivers/clk/meson/g12a-ao.c | 83 ++++++++++++++++++++++++ 8 files changed, 224 insertions(+), 3 deletions(-) create mode 100644 drivers/button/button-adc.c create mode 100644 drivers/clk/meson/g12a-ao.c -- 2.17.1
next parent reply other threads:[~2020-12-14 11:24 UTC|newest] Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <CGME20201214112449eucas1p28f3ade12253fb8b60c1396c706a65220@eucas1p2.samsung.com> 2020-12-14 11:24 ` Marek Szyprowski [this message] 2020-12-14 11:24 ` [PATCH 0/6] VIM3: add support for checking 'Function' button state Marek Szyprowski [not found] ` <CGME20201214112449eucas1p2ce0ef939e0d7f468e64be3555f29ea04@eucas1p2.samsung.com> 2020-12-14 11:24 ` [PATCH 1/6] clk: meson: add minimal driver for g12a-ao clocks Marek Szyprowski 2020-12-14 11:24 ` Marek Szyprowski 2020-12-14 18:53 ` Neil Armstrong 2020-12-14 18:53 ` Neil Armstrong 2020-12-14 21:50 ` Jaehoon Chung 2020-12-14 21:50 ` Jaehoon Chung [not found] ` <CGME20201214112449eucas1p1ebcf51e2b91ed2bac7fc4d309a174499@eucas1p1.samsung.com> 2020-12-14 11:24 ` [PATCH 2/6] adc: meson-saradc: add G12A variant Marek Szyprowski 2020-12-14 11:24 ` Marek Szyprowski 2020-12-14 18:54 ` Neil Armstrong 2020-12-14 18:54 ` Neil Armstrong 2020-12-14 21:50 ` Jaehoon Chung 2020-12-14 21:50 ` Jaehoon Chung [not found] ` <CGME20201214112450eucas1p1e7ad389bceaaf1082c9afdcb0733e9c0@eucas1p1.samsung.com> 2020-12-14 11:24 ` [PATCH 3/6] adc: meson-saradc: skip hardware init only if ADC is enabled Marek Szyprowski 2020-12-14 11:24 ` Marek Szyprowski 2020-12-14 18:54 ` Neil Armstrong 2020-12-14 18:54 ` Neil Armstrong 2020-12-14 21:50 ` Jaehoon Chung 2020-12-14 21:50 ` Jaehoon Chung [not found] ` <CGME20201214112450eucas1p18b98479811b98d883196c72b0f6deebd@eucas1p1.samsung.com> 2020-12-14 11:24 ` [PATCH 4/6] button: add a simple ADC-based button driver Marek Szyprowski 2020-12-14 11:24 ` Marek Szyprowski 2020-12-19 2:28 ` Simon Glass 2020-12-19 2:28 ` Simon Glass 2020-12-21 9:33 ` Marek Szyprowski 2020-12-21 9:33 ` Marek Szyprowski 2020-12-21 16:46 ` Simon Glass 2020-12-21 16:46 ` Simon Glass [not found] ` <CGME20201214112451eucas1p2ace7794301c6791761fd130c158f3d08@eucas1p2.samsung.com> 2020-12-14 11:24 ` [PATCH 5/6] cmd: button: store button state in the 'button' env Marek Szyprowski 2020-12-14 11:24 ` Marek Szyprowski 2020-12-19 2:28 ` Simon Glass 2020-12-19 2:28 ` Simon Glass [not found] ` <CGME20201214112452eucas1p2ceb557dffa15ea073f922bf59afb8578@eucas1p2.samsung.com> 2020-12-14 11:24 ` [PATCH 6/6] configs: khadas-vim3: enable Function button support Marek Szyprowski 2020-12-14 11:24 ` Marek Szyprowski 2020-12-14 18:55 ` Neil Armstrong 2020-12-14 18:55 ` Neil Armstrong 2020-12-14 20:17 ` Marek Szyprowski 2020-12-14 20:17 ` Marek Szyprowski 2020-12-14 21:51 ` Jaehoon Chung 2020-12-14 21:51 ` Jaehoon Chung
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=20201214112437.18757-1-m.szyprowski@samsung.com \ --to=m.szyprowski@samsung.com \ --cc=u-boot@lists.denx.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.