Commit Graph
7 Commits
Author SHA1 Message Date
Scott C 6f89cc7c72 device-barnesnoble-encore: Set pixman as weston and wlroots renderer and add charger to modules-initfs
Set pixman as weston and wlroots renderer:
- Set as renderer for wayland/wlroots using file copied from nokia-n900
  - Install etc-profile.d-25wlr-pixman.sh as /etc/profile.d/25wlr-pixman.sh
- Set as renderer for weston in weston.ini

modules-initfs: Add max8903_charger

Bump pkgver to 5

remove default wallpaper file reference from weston.ini

Update APKBUILD to properly install config files with amove command

use the /usr/share/x11/xorg.conf.d directory instead of /etc/x11/xorg.conf.d

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9126>
2026-08-12 13:37:49 +00:00
Scott C 83b13b1ad0 device-barnesnoble-encore: Become maintainer and add udev rule for touchscreen
I've added support for this device and continue to work on it, so
become maintainer.

Udev rule is just a slight tweak to the one generated by pmbootstrap
when touchscreen details are in deviceinfo, except use the device
name instead of /dev/input/eventX, whose number varies each boot.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8470>
2026-05-04 20:05:31 +00:00
Scott C a204d8e335 linux-postmarketos-omap: barnesnoble-encore: Add pinctrls, update panel section, enable touchscreen, wifi, poweroff, and more
Get touchscreen going by using correct hex value as i2c address

Update display panel / DSS sections:
- Add comment to 'dss' section to explain need for a kernel configuration setting
  which in an ideal world could be set in devicetree
- Set rotation property, panel-timing values, and comment on panel section in mcspi4

Set pinctrl entries for the device:
- Entries initially based on older u-boot and kernel board files and code, then
  revised based on similar devices
- Add pinctrl values in &omap3_pmx_core and &omap3_pmx_core2 sections
- add pinctrl-names and pinctrl-0 entries for most devices

Start to get sound card / codec set up, although not working yet:
- Set correct codec compatible entry.
  Device uses 'ti,tlv320dac3100', not 'ti,tlv320aic310x'
- Attempt to set sys_clkout2 clock for audio codec, but this is not working yet
- Add 'simple-audio-card' section
- Add &mcbsp2 section
- Add two regulators

Enable/ revise wifi section (mmc3 -> wifi)

Add vaux2 regulator section, used by mmc3/wifi
- Other devices have more comprehensive entries for the vmmc-supply and
  vqmmc-supply values for wifi which should likely be used for this device as
  well, but not implemented yet.

Allow device to actually turn off by setting system-power-controller property on
twl4030
- Add power ("ti,twl4030-power-idle-osc-off") section in twl, this seems to set
  suspend/low power commands

Add/ update some items based on similar devices, such as:
- hfclk_26m - set on twl4030
- vpll2 - set regulator to always-on, supposedly for dss/dpi

Set some unused components as disabled: gpmc, mcspi1, mcspi2, mcspi3, uart3, uart4
- uart2 is disabled since bluetooth hasn't been tested. Device does not have
  antenna for bluetooth

Many smaller updates:
- add pclk-sample property to lvds-encoder
- Correct accelerometer mount-matrix
- Set max8903_charger as power-supply for max17042 fuel gauge
- corrected touchscreen-size-.. properties to match 'native' orientation
- Add manufacturer model number to model string
- Revise max8903_charger section/ comments

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8144>
2026-03-20 11:31:06 -04:00
Scott C 39dc15dc4a linux-postmarketos-omap: panel-lg-ld070ws1: Mode, Orientation, Devicetree Updates, Many Cleanups
Many updates made throughout to bring this driver from the rough initial state
previously committed to something much more comprehensive and correct/ final.

Make various updates to allow setting the panel mode from the device tree:

- add functionality to be able to read a display mode / panel-timing from the
  device tree
  - wanted to add this to make explicit that nook color requires building
    kernel with a certain dss flag/value set also requiring
    that pixel clock to be <= functional clock / 4
- make bus_flags in device tree fail probe
- Allow setting panel orientation

Update spi init function to modernize bit handling and remove older redundant function

Facilitate apparent need for min FCK / PCK = 4 with Barnes & Noble Encore / Nook Color

- switch the default display mode to match the apparent
  need for min FCK / PCK = 4 with Barnes & Noble Encore / Nook Color
- tweak the modes array and remove the sizing since that is actually set elsewhere

Clean-Up All Over:

- Clean up logging to hopefully be close to kernel norms/ standards.
  - Driver now only generates logs when probe completes and when panel
    is powered off / on.
  - Some additional logging is generated when debug is enabled.
- Remove extra/unnecessary code from enable function that was added when
  initially developing
- Remove commented code and updated formatting
- Tweake mode names to not include @ sign
- remove some likely unnecessary bus flags

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7882>
2026-02-13 12:49:19 +00:00
Scott C 7f37e14b69 device-barnesnoble-encore: Set xorg screen rotation with conf file
add xorg-rotate-monitor.conf file to set default xorg rotation to portrait mode,
  matching the 'native' orientation of the touchscreen. Add x11 subpackages
  entry to APKBUILD to install xorg conf file.

In deviceinfo, add deviceinfo_drm flag to match with other similar devices

bump pkgver of apkbuild and update checksums

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7939>
2026-02-06 01:34:04 +00:00
Scott C b7bb10cbe4 linux-postmarketos-omap: add support for barnesnoble-encore
Add device tree and initial stab at panel driver for the new barnesnoble-encore device.

 Changes to be committed:
	new file:   device/community/linux-postmarketos-omap/0013-arm-dts-Add-barnesnoble-encore-support.patch
	new file:   device/community/linux-postmarketos-omap/0014-panel-Add-lg-ld070ws1-for-barnesnoble-encore.patch
	modified:   device/community/linux-postmarketos-omap/APKBUILD
	modified:   device/community/linux-postmarketos-omap/config-postmarketos-omap.armv7

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6486
[ci:skip-build]: already built successfully in CI
2025-05-12 19:15:15 +02:00
Scott C d3742fc7ee device-barnesnoble-encore: new device
Add device package for barnesnoble-encore, aka Barnes & Noble Nook Color. Device tree and initial stab at panel driver will be added as a separate commit to the mainline omap kernel.

	new file:   device/testing/device-barnesnoble-encore/APKBUILD
	new file:   device/testing/device-barnesnoble-encore/deviceinfo
	new file:   device/testing/device-barnesnoble-encore/modules-initfs

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6486
2025-05-12 19:15:15 +02:00